From dgtized at gmail.com Mon Aug 1 16:19:37 2005 From: dgtized at gmail.com (Charles Comstock) Date: Mon Aug 1 16:13:47 2005 Subject: [typo] Sidebar Components access to Route params and Various other topics Message-ID: <3582ae120508011319126c087b@mail.gmail.com> Is there a way to access the route params from @params from within the sidebar components? I'm trying to write a calendar sidebar, however @params["year"] and @params["month"] are never passed onto the subcomponents of the sidebar. Is there a way to access these variables that anyone is aware of? Also why is it that the link_to and url_for commands don't work in the components? Also is there a nice way to gets helpers for a component? Or should those just go in another class in the component controller class file. Also I know it's all peachy cool and whatnot to drag and drop components onto the sidebar and set up the orderings there, however doing a query on the list of components really seems to clog up the logging with a lot of queries. Maybe it would make more sense to write out a new sidebar file everytime the sidebar list is updated on the admin end. If it doesn't exist then create it, that way we minimize the db queries. Obviously on production the content caching should eliminate some of this, but it would make the development log alot easier to read, not to mention the issues if any of the components have dynamic content. Charles Comstock From jeff at commontext.com Mon Aug 1 22:36:14 2005 From: jeff at commontext.com (Jeff Casimir) Date: Mon Aug 1 22:30:21 2005 Subject: [typo] Don't mess with my CSS! Message-ID: <42EEDC1E.1090303@commontext.com> Hey all, Is there an easy way to keep Typo from resetting the azure.css file whenever I write articles? I just want to make a few changes to the appearance, but whenever I write a new article it all gets reset. Obviously there are some nuclear options (going in and removing chunks of code), but I am wondering if there is a simple way? Thanks, Jeff From tobias.luetke at gmail.com Mon Aug 1 22:42:04 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Mon Aug 1 22:36:14 2005 Subject: [typo] Don't mess with my CSS! In-Reply-To: <42EEDC1E.1090303@commontext.com> References: <42EEDC1E.1090303@commontext.com> Message-ID: <9963c1bd0508011942e77020c@mail.gmail.com> Change it in the themes folder On 8/1/05, Jeff Casimir wrote: > Hey all, > > Is there an easy way to keep Typo from resetting the azure.css file > whenever I write articles? I just want to make a few changes to the > appearance, but whenever I write a new article it all gets reset. > Obviously there are some nuclear options (going in and removing chunks > of code), but I am wondering if there is a simple way? > > Thanks, > Jeff > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From zerohalo at gmail.com Wed Aug 3 00:20:45 2005 From: zerohalo at gmail.com (zer0halo) Date: Wed Aug 3 00:14:53 2005 Subject: [typo] help needed - switching to fcgi gives typo error Message-ID: <92b38bd5050802212066e19b93@mail.gmail.com> I've been using typo with WEBrick, but when trying to get it going with fastcgi, I get the following error: NoMethodError in Articles#index Here's the log output for the error: Processing ArticlesController#index (for 127.0.0.1 at Tue Aug 02 22:14:38 MDT 2005) Parameters: {"action"=>"index", "controller"=>"articles"} Rendering within ../../themes/azure/layouts/default Rendering articles/index (200 OK) ActionView::TemplateError (undefined method `permalink' for #) on line #1 of /articles/_article.rhtml: 1:

<%= article_link article.title, article %>

2:

Posted by <%= author_link(article) %> 3: <%= js_distance_of_time_in_words_to_now article.created_at %>

4: <%= article.body_html %> /gems/activerecord-1.11.1/lib/active_record/base.rb:1203:in `method_missing' /var/www/typoconfig/..//app/helpers/application_helper.rb:77:in `article_url' /var/www/typoconfig/..//app/helpers/application_helper.rb:65:in `article_link' (erb):1:in `evaluate_locals' /gems/actionpack-1.9.1/lib/action_view/base.rb:272:in `evaluate_locals' /gems/actionpack-1.9.1/lib/action_view/base.rb:283:in `rhtml_render' /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `send' /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `render_template' /gems/actionpack-1.9.1/lib/action_view/base.rb:173:in `render_file' /gems/actionpack-1.9.1/lib/action_view/base.rb:188:in `render' /gems/actionpack-1.9.1/lib/action_view/partials.rb:55:in `render_partial' (erb):3:in `evaluate_locals' (erb):1:in `each' (erb):1:in `evaluate_locals' /gems/actionpack-1.9.1/lib/action_view/base.rb:272:in `evaluate_locals' /gems/actionpack-1.9.1/lib/action_view/base.rb:283:in `rhtml_render' /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `send' /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `render_template' /gems/actionpack-1.9.1/lib/action_view/base.rb:173:in `render_file' /gems/actionpack-1.9.1/lib/action_controller/base.rb:588:in `render_with_no_layout' /gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in `render_without_benchmark' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /gems/actionpack-1.9.1/lib/action_controller/base.rb:591:in `render_with_no_layout' /gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in `render_without_benchmark' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /gems/actionpack-1.9.1/lib/action_controller/base.rb:604:in `render_with_no_layout' /gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in `render_without_benchmark' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /gems/actionpack-1.9.1/lib/action_controller/base.rb:627:in `render_with_no_layout' /gems/actionpack-1.9.1/lib/action_controller/layout.rb:210:in `render_without_benchmark' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /gems/actionpack-1.9.1/lib/action_controller/base.rb:757:in `perform_action_without_filters' /gems/actionpack-1.9.1/lib/action_controller/filters.rb:295:in `perform_action_without_benchmark' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `perform_action_without_rescue' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `measure' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `perform_action_without_rescue' /gems/actionpack-1.9.1/lib/action_controller/rescue.rb:80:in `perform_action' /gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send' /gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process' /gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch' /gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request' /gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' /gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `each_cgi' /usr/lib/ruby/1.8/fcgi.rb:597:in `each' /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' /gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!' /gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!' /var/www/typo/public/dispatch.fcgi:24 Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error) Any help? Thanks! -- "Impossible is nothing." From tobias.luetke at gmail.com Wed Aug 3 09:02:43 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Wed Aug 3 08:56:52 2005 Subject: [typo] help needed - switching to fcgi gives typo error In-Reply-To: <92b38bd5050802212066e19b93@mail.gmail.com> References: <92b38bd5050802212066e19b93@mail.gmail.com> Message-ID: <9963c1bd05080306026e872f9e@mail.gmail.com> its probably because your fastcgi runs in production environment and your other tests in development environment. try to go to /admin/ and update the database schema On 8/3/05, zer0halo wrote: > I've been using typo with WEBrick, but when trying to get it going > with fastcgi, I get the following error: > > NoMethodError in Articles#index > > Here's the log output for the error: > > Processing ArticlesController#index (for 127.0.0.1 at Tue Aug 02 > 22:14:38 MDT 2005) > Parameters: {"action"=>"index", "controller"=>"articles"} > Rendering within ../../themes/azure/layouts/default > Rendering articles/index (200 OK) > > ActionView::TemplateError (undefined method `permalink' for > #) on line #1 of /articles/_article.rhtml: > 1:

<%= article_link article.title, article %>

> 2:

Posted by <%= author_link(article) %> > 3: <%= js_distance_of_time_in_words_to_now article.created_at %>

> 4: <%= article.body_html %> > > /gems/activerecord-1.11.1/lib/active_record/base.rb:1203:in `method_missing' > /var/www/typoconfig/..//app/helpers/application_helper.rb:77:in > `article_url' > /var/www/typoconfig/..//app/helpers/application_helper.rb:65:in > `article_link' > (erb):1:in `evaluate_locals' > /gems/actionpack-1.9.1/lib/action_view/base.rb:272:in `evaluate_locals' > /gems/actionpack-1.9.1/lib/action_view/base.rb:283:in `rhtml_render' > /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `send' > /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `render_template' > /gems/actionpack-1.9.1/lib/action_view/base.rb:173:in `render_file' > /gems/actionpack-1.9.1/lib/action_view/base.rb:188:in `render' > /gems/actionpack-1.9.1/lib/action_view/partials.rb:55:in `render_partial' > (erb):3:in `evaluate_locals' > (erb):1:in `each' > (erb):1:in `evaluate_locals' > /gems/actionpack-1.9.1/lib/action_view/base.rb:272:in `evaluate_locals' > /gems/actionpack-1.9.1/lib/action_view/base.rb:283:in `rhtml_render' > /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `send' > /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `render_template' > /gems/actionpack-1.9.1/lib/action_view/base.rb:173:in `render_file' > /gems/actionpack-1.9.1/lib/action_controller/base.rb:588:in > `render_with_no_layout' > /gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in > `render_without_benchmark' > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > /gems/actionpack-1.9.1/lib/action_controller/base.rb:591:in > `render_with_no_layout' > /gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in > `render_without_benchmark' > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > /gems/actionpack-1.9.1/lib/action_controller/base.rb:604:in > `render_with_no_layout' > /gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in > `render_without_benchmark' > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > /gems/actionpack-1.9.1/lib/action_controller/base.rb:627:in > `render_with_no_layout' > /gems/actionpack-1.9.1/lib/action_controller/layout.rb:210:in > `render_without_benchmark' > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > /gems/actionpack-1.9.1/lib/action_controller/base.rb:757:in > `perform_action_without_filters' > /gems/actionpack-1.9.1/lib/action_controller/filters.rb:295:in > `perform_action_without_benchmark' > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in > `perform_action_without_rescue' > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `measure' > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in > `perform_action_without_rescue' > /gems/actionpack-1.9.1/lib/action_controller/rescue.rb:80:in > `perform_action' > /gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send' > /gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process' > /gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch' > /gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request' > /gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' > /gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `each_cgi' > /usr/lib/ruby/1.8/fcgi.rb:597:in `each' > /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' > /gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!' > /gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!' > /var/www/typo/public/dispatch.fcgi:24 > > > Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/templates/rescues/layout.rhtml > (500 Internal Error) > > Any help? Thanks! > > -- > "Impossible is nothing." > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From zerohalo at gmail.com Wed Aug 3 12:20:37 2005 From: zerohalo at gmail.com (zer0halo) Date: Wed Aug 3 12:14:45 2005 Subject: [typo] help needed - switching to fcgi gives typo error In-Reply-To: <9963c1bd05080306026e872f9e@mail.gmail.com> References: <92b38bd5050802212066e19b93@mail.gmail.com> <9963c1bd05080306026e872f9e@mail.gmail.com> Message-ID: <92b38bd5050803092033bc56a4@mail.gmail.com> Thanks, Tobi. I am able to log in to /admin/, and am presented with the option to perform the database migration (none of the other tabs in the admin section work). However, when attempting to do so I get the following error: ActiveRecord::StatementInvalid in Admin/general#migrate Duplicate column name 'user_id': ALTER TABLE articles ADD user_id int(11) I have typo, typo_dev and typo_tests all created with the same structure. My /config/environment.rb points to production: RAILS_ENV = ENV['RAILS_ENV'] || 'production' On 8/3/05, Tobias Luetke wrote: > its probably because your fastcgi runs in production environment and > your other tests in development environment. > > try to go to /admin/ and update the database schema > > On 8/3/05, zer0halo wrote: > > I've been using typo with WEBrick, but when trying to get it going > > with fastcgi, I get the following error: > > > > NoMethodError in Articles#index > > > > Here's the log output for the error: > > > > Processing ArticlesController#index (for 127.0.0.1 at Tue Aug 02 > > 22:14:38 MDT 2005) > > Parameters: {"action"=>"index", "controller"=>"articles"} > > Rendering within ../../themes/azure/layouts/default > > Rendering articles/index (200 OK) > > > > ActionView::TemplateError (undefined method `permalink' for > > #) on line #1 of /articles/_article.rhtml: > > 1:

<%= article_link article.title, article %>

> > 2:

Posted by <%= author_link(article) %> > > 3: <%= js_distance_of_time_in_words_to_now article.created_at %>

> > 4: <%= article.body_html %> > > > > /gems/activerecord-1.11.1/lib/active_record/base.rb:1203:in `method_missing' > > /var/www/typoconfig/..//app/helpers/application_helper.rb:77:in > > `article_url' > > /var/www/typoconfig/..//app/helpers/application_helper.rb:65:in > > `article_link' > > (erb):1:in `evaluate_locals' > > /gems/actionpack-1.9.1/lib/action_view/base.rb:272:in `evaluate_locals' > > /gems/actionpack-1.9.1/lib/action_view/base.rb:283:in `rhtml_render' > > /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `send' > > /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `render_template' > > /gems/actionpack-1.9.1/lib/action_view/base.rb:173:in `render_file' > > /gems/actionpack-1.9.1/lib/action_view/base.rb:188:in `render' > > /gems/actionpack-1.9.1/lib/action_view/partials.rb:55:in `render_partial' > > (erb):3:in `evaluate_locals' > > (erb):1:in `each' > > (erb):1:in `evaluate_locals' > > /gems/actionpack-1.9.1/lib/action_view/base.rb:272:in `evaluate_locals' > > /gems/actionpack-1.9.1/lib/action_view/base.rb:283:in `rhtml_render' > > /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `send' > > /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `render_template' > > /gems/actionpack-1.9.1/lib/action_view/base.rb:173:in `render_file' > > /gems/actionpack-1.9.1/lib/action_controller/base.rb:588:in > > `render_with_no_layout' > > /gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in > > `render_without_benchmark' > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > > /gems/actionpack-1.9.1/lib/action_controller/base.rb:591:in > > `render_with_no_layout' > > /gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in > > `render_without_benchmark' > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > > /gems/actionpack-1.9.1/lib/action_controller/base.rb:604:in > > `render_with_no_layout' > > /gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in > > `render_without_benchmark' > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > > /gems/actionpack-1.9.1/lib/action_controller/base.rb:627:in > > `render_with_no_layout' > > /gems/actionpack-1.9.1/lib/action_controller/layout.rb:210:in > > `render_without_benchmark' > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > > /gems/actionpack-1.9.1/lib/action_controller/base.rb:757:in > > `perform_action_without_filters' > > /gems/actionpack-1.9.1/lib/action_controller/filters.rb:295:in > > `perform_action_without_benchmark' > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in > > `perform_action_without_rescue' > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `measure' > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in > > `perform_action_without_rescue' > > /gems/actionpack-1.9.1/lib/action_controller/rescue.rb:80:in > > `perform_action' > > /gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send' > > /gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process' > > /gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch' > > /gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request' > > /gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' > > /gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `each_cgi' > > /usr/lib/ruby/1.8/fcgi.rb:597:in `each' > > /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' > > /gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!' > > /gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!' > > /var/www/typo/public/dispatch.fcgi:24 > > > > > > Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/templates/rescues/layout.rhtml > > (500 Internal Error) > > > > Any help? Thanks! > > > > -- > > "Impossible is nothing." > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > -- > Tobi > http://www.snowdevil.ca - Snowboards that don't suck > http://typo.leetsoft.com - Open source weblog engine > http://blog.leetsoft.com - Technical weblog > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- "Impossible is nothing." From justus at ryoohki.net Wed Aug 3 12:25:00 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Wed Aug 3 12:19:17 2005 Subject: [typo] blobs and multiple blogs Message-ID: <42F0EFDC.7060206@ryoohki.net> I just installed Typo and like what I've seen so far but have two questions. One, is there an easy way to host multiple Typo blogs from the same subversion checkout? Two, is there any way to include "other" content in Typo? Audio, video, pictures, etc. I didn't see anything and from my glance at too-biased it looked like its pictures were in an uncontrolled, external directory. It would be nice if Typo could serve all content related to my posts. Justus From tobias.luetke at gmail.com Wed Aug 3 12:37:13 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Wed Aug 3 12:31:21 2005 Subject: [typo] help needed - switching to fcgi gives typo error In-Reply-To: <92b38bd5050803092033bc56a4@mail.gmail.com> References: <92b38bd5050802212066e19b93@mail.gmail.com> <9963c1bd05080306026e872f9e@mail.gmail.com> <92b38bd5050803092033bc56a4@mail.gmail.com> Message-ID: <9963c1bd0508030937783c14ec@mail.gmail.com> ok this is really curious. Could you please check your schema_info table and see what number you find in there? Somehow your DB has a user_id field already, however the schema_info suggest that the migration which would create this field hasn't yet run. On 8/3/05, zer0halo wrote: > Thanks, Tobi. I am able to log in to /admin/, and am presented with > the option to perform the database migration (none of the other tabs > in the admin section work). However, when attempting to do so I get > the following error: > > ActiveRecord::StatementInvalid in Admin/general#migrate > > Duplicate column name 'user_id': ALTER TABLE articles ADD user_id int(11) > > I have typo, typo_dev and typo_tests all created with the same structure. > > My /config/environment.rb points to production: > > RAILS_ENV = ENV['RAILS_ENV'] || 'production' > > > On 8/3/05, Tobias Luetke wrote: > > its probably because your fastcgi runs in production environment and > > your other tests in development environment. > > > > try to go to /admin/ and update the database schema > > > > On 8/3/05, zer0halo wrote: > > > I've been using typo with WEBrick, but when trying to get it going > > > with fastcgi, I get the following error: > > > > > > NoMethodError in Articles#index > > > > > > Here's the log output for the error: > > > > > > Processing ArticlesController#index (for 127.0.0.1 at Tue Aug 02 > > > 22:14:38 MDT 2005) > > > Parameters: {"action"=>"index", "controller"=>"articles"} > > > Rendering within ../../themes/azure/layouts/default > > > Rendering articles/index (200 OK) > > > > > > ActionView::TemplateError (undefined method `permalink' for > > > #) on line #1 of /articles/_article.rhtml: > > > 1:

<%= article_link article.title, article %>

> > > 2:

Posted by <%= author_link(article) %> > > > 3: <%= js_distance_of_time_in_words_to_now article.created_at %>

> > > 4: <%= article.body_html %> > > > > > > /gems/activerecord-1.11.1/lib/active_record/base.rb:1203:in `method_missing' > > > /var/www/typoconfig/..//app/helpers/application_helper.rb:77:in > > > `article_url' > > > /var/www/typoconfig/..//app/helpers/application_helper.rb:65:in > > > `article_link' > > > (erb):1:in `evaluate_locals' > > > /gems/actionpack-1.9.1/lib/action_view/base.rb:272:in `evaluate_locals' > > > /gems/actionpack-1.9.1/lib/action_view/base.rb:283:in `rhtml_render' > > > /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `send' > > > /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `render_template' > > > /gems/actionpack-1.9.1/lib/action_view/base.rb:173:in `render_file' > > > /gems/actionpack-1.9.1/lib/action_view/base.rb:188:in `render' > > > /gems/actionpack-1.9.1/lib/action_view/partials.rb:55:in `render_partial' > > > (erb):3:in `evaluate_locals' > > > (erb):1:in `each' > > > (erb):1:in `evaluate_locals' > > > /gems/actionpack-1.9.1/lib/action_view/base.rb:272:in `evaluate_locals' > > > /gems/actionpack-1.9.1/lib/action_view/base.rb:283:in `rhtml_render' > > > /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `send' > > > /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `render_template' > > > /gems/actionpack-1.9.1/lib/action_view/base.rb:173:in `render_file' > > > /gems/actionpack-1.9.1/lib/action_controller/base.rb:588:in > > > `render_with_no_layout' > > > /gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in > > > `render_without_benchmark' > > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' > > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > > > /gems/actionpack-1.9.1/lib/action_controller/base.rb:591:in > > > `render_with_no_layout' > > > /gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in > > > `render_without_benchmark' > > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' > > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > > > /gems/actionpack-1.9.1/lib/action_controller/base.rb:604:in > > > `render_with_no_layout' > > > /gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in > > > `render_without_benchmark' > > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' > > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > > > /gems/actionpack-1.9.1/lib/action_controller/base.rb:627:in > > > `render_with_no_layout' > > > /gems/actionpack-1.9.1/lib/action_controller/layout.rb:210:in > > > `render_without_benchmark' > > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' > > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' > > > /gems/actionpack-1.9.1/lib/action_controller/base.rb:757:in > > > `perform_action_without_filters' > > > /gems/actionpack-1.9.1/lib/action_controller/filters.rb:295:in > > > `perform_action_without_benchmark' > > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in > > > `perform_action_without_rescue' > > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `measure' > > > /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in > > > `perform_action_without_rescue' > > > /gems/actionpack-1.9.1/lib/action_controller/rescue.rb:80:in > > > `perform_action' > > > /gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send' > > > /gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process' > > > /gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch' > > > /gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request' > > > /gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' > > > /gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `each_cgi' > > > /usr/lib/ruby/1.8/fcgi.rb:597:in `each' > > > /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' > > > /gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!' > > > /gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!' > > > /var/www/typo/public/dispatch.fcgi:24 > > > > > > > > > Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/templates/rescues/layout.rhtml > > > (500 Internal Error) > > > > > > Any help? Thanks! > > > > > > -- > > > "Impossible is nothing." > > > > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list@rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > -- > > Tobi > > http://www.snowdevil.ca - Snowboards that don't suck > > http://typo.leetsoft.com - Open source weblog engine > > http://blog.leetsoft.com - Technical weblog > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > -- > "Impossible is nothing." > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From tobias.luetke at gmail.com Wed Aug 3 12:38:32 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Wed Aug 3 12:32:41 2005 Subject: [typo] blobs and multiple blogs In-Reply-To: <42F0EFDC.7060206@ryoohki.net> References: <42F0EFDC.7060206@ryoohki.net> Message-ID: <9963c1bd05080309387534513@mail.gmail.com> You can upload pictures with desktop clients like mars-edit. this is fully supported in typo. The admin interface doesn't yet allow this though. Currently typo has no multiblog capabilities. But this is planned for a future version. On 8/3/05, Justus Pendleton wrote: > I just installed Typo and like what I've seen so far but have two > questions. One, is there an easy way to host multiple Typo blogs from > the same subversion checkout? Two, is there any way to include "other" > content in Typo? Audio, video, pictures, etc. I didn't see anything > and from my glance at too-biased it looked like its pictures were in an > uncontrolled, external directory. It would be nice if Typo could serve > all content related to my posts. > > Justus > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From kyle.cooney at gmail.com Thu Aug 4 11:37:30 2005 From: kyle.cooney at gmail.com (Kyle Cooney) Date: Thu Aug 4 11:31:38 2005 Subject: [typo] Modifying Delicious feeds on typo Message-ID: <4ecac81705080408377794629e@mail.gmail.com> Hi all, New to typo, new to rails, new to ruby. Looking for a bit of assistance in modifying the del.icio.us sidebar in Typo. What I basically want to do is add a text, non-link description to each of the del.icio.us links that are fed into my site. I've tried editing various bits of the ruby code in the controllers, and adding item collections into the sidebar code, but I keep coming up with errors. I'm basically trying to replicate what's been done on this site: http://www.7nights.com/asterisk/ On my own site: http://www.yesterdaywasdramatic.com Thanks in advance for any bit help you offer. Kyle -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050804/b4cc49dd/attachment.htm From justus at ryoohki.net Thu Aug 4 16:12:30 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Thu Aug 4 16:06:38 2005 Subject: [typo] blosxom entry importer Message-ID: <20050804201229.GA1918@kiyone.ryoohki.net> Attached is the importer I wrote to get my blosxom entries into Typo. It is my first ruby script and largely based on the other files in db/converters. Blosxom has a ton of plugins and this script only understands the few I use: meta-markup, meta-author, entries cache (meta-creation_date), seemore. You're on your own for comments and flavours :) -------------- next part -------------- #!/usr/bin/env ruby # vim: ts=2 sw=2 require File.dirname(__FILE__) + '/../../config/environment' require 'optparse' require 'etc' require 'article' require 'category' require 'html_engine' class BlosxomMigrate attr_accessor :options def initialize self.options = {} self.parse_options self.convert_entries end def convert_entries blosxom_entry_extension = "txt" Dir.chdir(self.options[:dir]) Find.find(".") { |filename| if filename =~ /(.*)\.#{blosxom_entry_extension}$/ category = File.dirname($1[2..-1]) entryname = File.basename($1[2..-1]) puts("Parsing #{filename}") if category == '.' categories = nil else categories = category.split('/') end if categories categories.each do |cat| # there was a category associated with this post so add it to the DB Category.create('name' => cat) unless Category.find_by_name(cat) end end a = Article.new # use the blosxom filename for the permalink a.permalink = entryname uid = File.stat(filename).uid user = Etc.getpwuid(uid).name # these can be overridden by meta keywords # but we use these for defaults a.author = user a.created_at = File.stat(filename).mtime a.text_filter = 'none' fp = File.open(filename, "r") title = fp.readline title.chomp! a.title = title meta = true do_extended = false body = '' extended = '' fp.readlines.each { |line| if meta == true and line =~ /^\s*$/ meta = false next end if meta == true case line when /meta\-markup: (.*)$/ case $1 when /textile/: a.text_filter = 'textile' when /markdown/: a.text_filter = 'markdown smartypants' end when /meta\-creation_date: (.*)$/ # 23/3/2005 02:31:50 $1 =~ /(\d+)\/(\d+)\/(\d+) (\d+):(\d+):(\d+)/ time = Time.mktime($3, $2, $1, $4, $5, $6) a.created_at = time when /meta\-author: (.*)$/ a.author = $1 else puts("Unknown meta: #{line}") end else if line =~ /\<\!\-\- more \-\-\>/ do_extended = true next end if do_extended == true extended << line else body << line end end } a.body = body if extended != '' a.extended = extended end a.save # make sure we add with categories if categories categories.each do |cat| a.categories.push_with_attributes(Category.find_by_name(cat), :is_primary => 1) end end # a.comments.create (author,email,url,body,created_at,updated_at) # a.trackbacks.create (title,excerpt,url,ip,blog_name,created_at,updated_at) end } end def parse_options OptionParser.new do |opt| opt.banner = 'Usage: blosxom.rb [options]' opt.on('-d', '--dir DIR', 'blosxom datadir to import') do |d| self.options[:dir] = d end opt.on_tail('-h', '--help', 'Show this message.') do puts opt exit end opt.parse!(ARGV) end unless self.options.include?(:dir) puts 'See blosxom.rb --help for help.' exit end end end BlosxomMigrate.new From ben at incomumdesign.com Thu Aug 4 17:13:55 2005 From: ben at incomumdesign.com (Benjamin Jackson) Date: Thu Aug 4 17:08:02 2005 Subject: [typo] Delicious Sidebar - Timeout::Error Message-ID: I'm getting a Timeout error in my production log after adding the del.icio.us component to my sidebar: Timeout::Error (execution expired): /usr/local/lib/ruby/1.8/timeout.rb:42:in `new' /usr/local/lib/ruby/1.8/net/protocol.rb:83:in `connect' /usr/local/lib/ruby/1.8/net/protocol.rb:82:in `timeout' /usr/local/lib/ruby/1.8/timeout.rb:55:in `timeout' /usr/local/lib/ruby/1.8/net/protocol.rb:82:in `connect' /usr/local/lib/ruby/1.8/net/protocol.rb:64:in `initialize' /usr/local/lib/ruby/1.8/net/protocols.rb:37:in `initialize' /usr/local/lib/ruby/1.8/net/http.rb:430:in `open' /usr/local/lib/ruby/1.8/net/http.rb:430:in `do_start' /usr/local/lib/ruby/1.8/net/http.rb:419:in `start' /usr/local/lib/ruby/1.8/net/http.rb:324:in `start' /usr/local/lib/ruby/1.8/open-uri.rb:544:in `proxy_open' /usr/local/lib/ruby/1.8/open-uri.rb:525:in `direct_open' /usr/local/lib/ruby/1.8/open-uri.rb:169:in `open_loop' /usr/local/lib/ruby/1.8/open-uri.rb:164:in `catch' /usr/local/lib/ruby/1.8/open-uri.rb:164:in `open_loop' /usr/local/lib/ruby/1.8/open-uri.rb:134:in `open_uri' /usr/local/lib/ruby/1.8/open-uri.rb:424:in `open' /usr/local/lib/ruby/1.8/open-uri.rb:85:in `open' /app/models/aggregations/delicious.rb:27:in `refresh' /app/models/aggregations/delicious.rb:21:in `initialize' /app/helpers/application_helper.rb:115:in `new' etc ... The installation works fine on my OS X machine running lighttpd 1.4 and the latest mysql, but chokes on TxD's shared server. Running 492 from the trunk. ___________________ Ben Jackson Diretor de Desenvolvimento ben@incomumdesign.com http://www.incomumdesign.com From ben at incomumdesign.com Thu Aug 4 17:18:42 2005 From: ben at incomumdesign.com (Benjamin Jackson) Date: Thu Aug 4 17:12:49 2005 Subject: [typo] Typo/lighttpd - application/x-http-fastphp? Message-ID: I made some modifications to the trunk which worked fine on my local OS X machine, however when testing them out on TxD lighttpd is returning some empty file with content type application/x-http-fastphp. With the latest version from the trunk I don't get the error, so I'm pretty sure it's not a lighttpd config issue. Any ideas? ___________________ Ben Jackson Diretor de Desenvolvimento ben@incomumdesign.com http://www.incomumdesign.com From nic.lindh at gmail.com Fri Aug 5 23:02:26 2005 From: nic.lindh at gmail.com (Nic Lindh) Date: Fri Aug 5 22:56:29 2005 Subject: [typo] NameError in Admin/content#new Message-ID: Congrats to everybody for getting 2.5 out the door. The new features look really compelling. But of course there is a problem. I created a brand-new blog on a Fedora Core 4 system with the latest gems, and after realizing that I had to remove the "rails" folder from the "vendor" folder in order to let Typo find the installed Rails components, found that the Admin piece works great and looks quite delicious. The problem is that when I try to create a new post, either through Quick Post (suh-weet Ajax!) or Create New Article, I get the following error: uninitialized constant MD5 /app/models/article.rb:89:in `set_defaults' app/controllers/admin/content_controller.rb:34:in `new' script/server:49 Show framework trace This error occured while loading the following files: m_d5.rb Am I missing a gem or what is going on? This is with an empty SQLite database. Appreciate any help, Nic From typo at isolated-designs.net Sat Aug 6 01:57:09 2005 From: typo at isolated-designs.net (Justin Palmer) Date: Sat Aug 6 01:51:17 2005 Subject: [typo] NameError in Admin/content#new In-Reply-To: References: Message-ID: <240B396E-A954-403C-96B2-FB913307F281@isolated-designs.net> A fix has been checked in to the repo. Its just a small name space problem that used to work, but today it doesn't seem to for some reason. In article.rb change MD5.new to Digest::MD5.new -Justin On Aug 5, 2005, at 10:02 PM, Nic Lindh wrote: > Congrats to everybody for getting 2.5 out the door. The new features > look really compelling. > > But of course there is a problem. > > I created a brand-new blog on a Fedora Core 4 system with the latest > gems, and after realizing that I had to remove the "rails" folder from > the "vendor" folder in order to let Typo find the installed Rails > components, found that the Admin piece works great and looks quite > delicious. > > The problem is that when I try to create a new post, either through > Quick Post (suh-weet Ajax!) or Create New Article, I get the following > error: > > uninitialized constant MD5 > /app/models/article.rb:89:in `set_defaults' > app/controllers/admin/content_controller.rb:34:in `new' > script/server:49 > Show framework trace > This error occured while loading the following files: > m_d5.rb > > Am I missing a gem or what is going on? > > This is with an empty SQLite database. > > Appreciate any help, > > Nic > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > From jw at innerewut.de Sat Aug 6 11:18:44 2005 From: jw at innerewut.de (Jonathan Weiss) Date: Sat Aug 6 11:12:54 2005 Subject: [typo] Problems with packaging of typo-2.5.0 Message-ID: Cheers, There is a problem with the current typo-2.5.0.tgz archive. It seems like this archive was created on OS X and it therefore includes OS X-specific ressource forks. If you unpack it on a non-osx platform you get: ------------------------------------------- x typo-2.5.0/db/migrate/._1_add_extended_html.rb x typo-2.5.0/db/migrate/1_add_extended_html.rb x typo-2.5.0/db/migrate/2_add_user_email.rb x typo-2.5.0/db/migrate/3_add_article_user_id.rb x typo-2.5.0/db/migrate/4_add_sidebars.rb x typo-2.5.0/db/migrate/._5_add_cache_table.rb x typo-2.5.0/db/migrate/5_add_cache_table.rb x typo-2.5.0/db/migrate/6_add_pages.rb x typo-2.5.0/db/migrate/._7_add_permalink.rb x typo-2.5.0/db/migrate/7_add_permalink.rb x typo-2.5.0/db/migrate/8_add_page_title.rb x typo-2.5.0/db/migrate/._9_add_article_guid.rb x typo-2.5.0/db/migrate/9_add_article_guid.rb ------------------------------------------- The "._*" files are the ressource forks. On OS X they get merged into the original file so you will not see them. These ressource forks should be excluded from the tar file. Further I get this error with the tar/zip of 2.5.0: #ruby script/server ./script/../config/environment.rb:46:in `require': No such file to load -- active_support (LoadError) from ./script/../config/environment.rb:46 from script/server:42:in `require' from script/server:42 This error will not happen with a fresh svn-version (trunk). A `gem list -l` shows: ------------------------------------------- *** LOCAL GEMS *** actionmailer (1.0.1, 1.0.0, 0.9.1) Service layer for easy email delivery and testing. actionpack (1.9.1, 1.9.0, 1.8.1) Web-flow and rendering framework putting the VC in MVC. actionwebservice (0.8.1, 0.8.0, 0.7.1) Web service support for Action Pack. activerecord (1.11.1, 1.11.0, 1.10.1) Implements the ActiveRecord pattern for ORM. activesupport (1.1.1, 1.1.0, 1.0.4) Support and utility classes used by the Rails framework. fixrbconfig (1.2, 1.0) Fixes the rbconfig.rb that ships with Mac OS X 10.4 (Tiger), which makes it impossible to compile C extensions mysql (2.6) MySQL/Ruby provides the same functions for Ruby programs that the MySQL C API provides for C programs. rails (0.13.1, 0.13.0, 0.12.1) Web-application framework with template engine, control-flow layer, and ORM. rake (0.5.4) Ruby based make-like utility. rubygems-update (0.8.11) RubyGems Update GEM sources (0.0.1) This package provides download sources for remote gem installation sqlite-ruby (2.2.3) SQLite/Ruby is a module to allow Ruby scripts to interface with a SQLite database. ------------------------------------------- Also I miss a HOWTO for upgrading from 2.0.6 to 2.5.0 Greets, Jonathan -- Jonathan Weiss http://blog.innerewut.de From mathieu.chappuis.lists at gmail.com Sat Aug 6 11:33:26 2005 From: mathieu.chappuis.lists at gmail.com (Mathieu Chappuis) Date: Sat Aug 6 11:27:33 2005 Subject: [typo] Problems with packaging of typo-2.5.0 In-Reply-To: References: Message-ID: <935eeb180508060833735a803c@mail.gmail.com> On 8/6/05, Jonathan Weiss wrote: > Cheers, > > > There is a problem with the current typo-2.5.0.tgz archive. > Further I get this error with the tar/zip of 2.5.0: > #ruby script/server > ./script/../config/environment.rb:46:in `require': No such file to load -- > active_support (LoadError) > from ./script/../config/environment.rb:46 > from script/server:42:in `require' > from script/server:42 > > This error will not happen with a fresh svn-version (trunk). > diff environment.rb environment.rb_fromTGZ 44c44 < require 'rubygems' # unless File.directory?("#{RAILS_ROOT}/vendor/rails") --- > require 'rubygems' unless File.directory?("#{RAILS_ROOT}/vendor/rails") Sorry, a bit violent, but works.. Ciao' Mathieu From jw at innerewut.de Sat Aug 6 11:42:50 2005 From: jw at innerewut.de (Jonathan Weiss) Date: Sat Aug 6 11:36:59 2005 Subject: [typo] Problems with packaging of typo-2.5.0 In-Reply-To: <935eeb180508060833735a803c@mail.gmail.com> Message-ID: > > diff environment.rb environment.rb_fromTGZ > 44c44 > < require 'rubygems' # unless File.directory?("#{RAILS_ROOT}/vendor/rails") > --- >> require 'rubygems' unless File.directory?("#{RAILS_ROOT}/vendor/rails") > > Sorry, a bit violent, but works.. > Thanks, but I think this was corrected by 2.5.1 and removing vendor/rails. This brings up the question why Typo-2.5.1 claims to depend on RedCloth.gem but includes it in vendor. With 2.5.1 I now can startup script/server but I get an error when trying to connect with the browser: NameError in # uninitialized constant ArticlesController generated/routing/recognition.rb:4:in `recognize_path' script/server:49 Show framework trace This error occured while loading the following files: articles_controller.rb > Ciao' > Mathieu Greets, Jonathan -- Jonathan Weiss http://blog.innerewut.de From scott at sigkill.org Sat Aug 6 12:08:42 2005 From: scott at sigkill.org (Scott Laird) Date: Sat Aug 6 12:02:52 2005 Subject: [typo] Problems with packaging of typo-2.5.0 In-Reply-To: References: Message-ID: <15BFDAEC-2152-4A46-B3DA-AAC97A314BEE@sigkill.org> On Aug 6, 2005, at 8:42 AM, Jonathan Weiss wrote: > With 2.5.1 I now can startup script/server but I get an error when > trying to > connect with the browser: > > NameError in # > > uninitialized constant ArticlesController > generated/routing/recognition.rb:4:in `recognize_path' > script/server:49 > Show framework trace > This error occured while loading the following files: > articles_controller.rb Do you have app/controllers/articles_controller.rb? For some reason, the 2.5.1 release is missing this file, but has articles_controller.rb.orig. I suspect that we'll see 2.5.2 in an hour or two. For now, you can either rename articles_controller.rb.orig to articles_controller.rb *or* download that one file via http://typo.leetsoft.com/trac/file/ tags/release_2_5_1/app/controllers/articles_controller.rb Scott From jw at innerewut.de Sat Aug 6 12:12:13 2005 From: jw at innerewut.de (Jonathan Weiss) Date: Sat Aug 6 12:06:21 2005 Subject: [typo] Problems with packaging of typo-2.5.0 In-Reply-To: <15BFDAEC-2152-4A46-B3DA-AAC97A314BEE@sigkill.org> Message-ID: > > Do you have app/controllers/articles_controller.rb? For some reason, > the 2.5.1 release is missing this file, but has > articles_controller.rb.orig. > This was my problem. > > > Scott Thanks, Jonathan -- Jonathan Weiss http://blog.innerewut.de From jw at innerewut.de Sat Aug 6 12:41:09 2005 From: jw at innerewut.de (Jonathan Weiss) Date: Sat Aug 6 12:35:19 2005 Subject: [typo] A minor typo on the website Message-ID: On http://typo.leetsoft.com/trac/wiki/DownloadStable It says: 2005-08-05 Typo 2.5.1 release Download: typo.tar.gz typo.zip ^^^^^^^^^ The actual file on rubyforge is "typo.tgz". Jonathan -- Jonathan Weiss http://blog.innerewut.de From nic.lindh at gmail.com Sat Aug 6 13:59:35 2005 From: nic.lindh at gmail.com (Nic Lindh) Date: Sat Aug 6 13:53:35 2005 Subject: [typo] NameError in Admin/content#new In-Reply-To: <240B396E-A954-403C-96B2-FB913307F281@isolated-designs.net> References: <240B396E-A954-403C-96B2-FB913307F281@isolated-designs.net> Message-ID: Excellent! Thank you very much. Nic On 8/5/05, Justin Palmer wrote: > A fix has been checked in to the repo. Its just a small name space > problem that used to work, but today it doesn't seem to for some reason. > > In article.rb change MD5.new to Digest::MD5.new > > -Justin > > > On Aug 5, 2005, at 10:02 PM, Nic Lindh wrote: > > > Congrats to everybody for getting 2.5 out the door. The new features > > look really compelling. > > > > But of course there is a problem. > > > > I created a brand-new blog on a Fedora Core 4 system with the latest > > gems, and after realizing that I had to remove the "rails" folder from > > the "vendor" folder in order to let Typo find the installed Rails > > components, found that the Admin piece works great and looks quite > > delicious. > > > > The problem is that when I try to create a new post, either through > > Quick Post (suh-weet Ajax!) or Create New Article, I get the following > > error: > > > > uninitialized constant MD5 > > /app/models/article.rb:89:in `set_defaults' > > app/controllers/admin/content_controller.rb:34:in `new' > > script/server:49 > > Show framework trace > > This error occured while loading the following files: > > m_d5.rb > > > > Am I missing a gem or what is going on? > > > > This is with an empty SQLite database. > > > > Appreciate any help, > > > > Nic > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From zerohalo at gmail.com Sat Aug 6 16:13:22 2005 From: zerohalo at gmail.com (zer0halo) Date: Sat Aug 6 16:07:24 2005 Subject: [typo] 2.5 - hover buttons not appearing Message-ID: <92b38bd505080613137147f340@mail.gmail.com> I just made a fresh install of typo 2.5. (I had used previous versions but ran into problems so I deleted them entirely, including the databases, and manually transferred over the data--thankfully it wasn't much). However, the hover edit/nuke buttons don't appear either for the articles or for the comments. (They did on the old installation.) I'm using WEBrick, viewing with Firefox 1.0.6. Other than that, everything seems to work okay. (The AJAX effects work in the admin sidebar section). My production.log shows no errors. Any clues? Thanks. -- "Impossible is nothing." From tobias.luetke at gmail.com Sat Aug 6 16:16:11 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Sat Aug 6 16:10:12 2005 Subject: [typo] 2.5 - hover buttons not appearing In-Reply-To: <92b38bd505080613137147f340@mail.gmail.com> References: <92b38bd505080613137147f340@mail.gmail.com> Message-ID: <9963c1bd05080613162c7f0dc5@mail.gmail.com> They should appear after you login and go back to the blog. On 8/6/05, zer0halo wrote: > I just made a fresh install of typo 2.5. (I had used previous versions > but ran into problems so I deleted them entirely, including the > databases, and manually transferred over the data--thankfully it > wasn't much). > > However, the hover edit/nuke buttons don't appear either for the > articles or for the comments. (They did on the old installation.) I'm > using WEBrick, viewing with Firefox 1.0.6. > > Other than that, everything seems to work okay. (The AJAX effects work > in the admin sidebar section). My production.log shows no errors. > > Any clues? Thanks. > > -- > "Impossible is nothing." > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From zerohalo at gmail.com Sat Aug 6 16:23:14 2005 From: zerohalo at gmail.com (zer0halo) Date: Sat Aug 6 16:17:18 2005 Subject: [typo] 2.5 - hover buttons not appearing In-Reply-To: <9963c1bd05080613162c7f0dc5@mail.gmail.com> References: <92b38bd505080613137147f340@mail.gmail.com> <9963c1bd05080613162c7f0dc5@mail.gmail.com> Message-ID: <92b38bd505080613234e960b0f@mail.gmail.com> Yes, I realized that shortly after I sent the email. Stupid me ... But this raises a question: Shouldn't typo remember that I have previously logged in and therefore automatically log me in when I access the site (via a cookie?). Otherwise, if I want to edit comments, I have to go to the admin section, log in, then go my blog. Requiring the user to log in each time (and having to go to the admin section to do that rather than being able to do it from the home page) seems like extra steps? Thanks for the cool app. On 8/6/05, Tobias Luetke wrote: > They should appear after you login and go back to the blog. > > On 8/6/05, zer0halo wrote: > > I just made a fresh install of typo 2.5. (I had used previous versions > > but ran into problems so I deleted them entirely, including the > > databases, and manually transferred over the data--thankfully it > > wasn't much). > > > > However, the hover edit/nuke buttons don't appear either for the > > articles or for the comments. (They did on the old installation.) I'm > > using WEBrick, viewing with Firefox 1.0.6. > > > > Other than that, everything seems to work okay. (The AJAX effects work > > in the admin sidebar section). My production.log shows no errors. > > > > Any clues? Thanks. > > > > -- > > "Impossible is nothing." > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > -- > Tobi > http://www.snowdevil.ca - Snowboards that don't suck > http://typo.leetsoft.com - Open source weblog engine > http://blog.leetsoft.com - Technical weblog > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- "Impossible is nothing." From tobias.luetke at gmail.com Sat Aug 6 16:26:03 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Sat Aug 6 16:20:05 2005 Subject: [typo] 2.5 - hover buttons not appearing In-Reply-To: <92b38bd505080613234e960b0f@mail.gmail.com> References: <92b38bd505080613137147f340@mail.gmail.com> <9963c1bd05080613162c7f0dc5@mail.gmail.com> <92b38bd505080613234e960b0f@mail.gmail.com> Message-ID: <9963c1bd05080613264a63f47@mail.gmail.com> i'd take a patch for that. On 8/6/05, zer0halo wrote: > Yes, I realized that shortly after I sent the email. Stupid me ... > > But this raises a question: Shouldn't typo remember that I have > previously logged in and therefore automatically log me in when I > access the site (via a cookie?). Otherwise, if I want to edit > comments, I have to go to the admin section, log in, then go my blog. > Requiring the user to log in each time (and having to go to the admin > section to do that rather than being able to do it from the home page) > seems like extra steps? > > Thanks for the cool app. > > > On 8/6/05, Tobias Luetke wrote: > > They should appear after you login and go back to the blog. > > > > On 8/6/05, zer0halo wrote: > > > I just made a fresh install of typo 2.5. (I had used previous versions > > > but ran into problems so I deleted them entirely, including the > > > databases, and manually transferred over the data--thankfully it > > > wasn't much). > > > > > > However, the hover edit/nuke buttons don't appear either for the > > > articles or for the comments. (They did on the old installation.) I'm > > > using WEBrick, viewing with Firefox 1.0.6. > > > > > > Other than that, everything seems to work okay. (The AJAX effects work > > > in the admin sidebar section). My production.log shows no errors. > > > > > > Any clues? Thanks. > > > > > > -- > > > "Impossible is nothing." > > > > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list@rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > -- > > Tobi > > http://www.snowdevil.ca - Snowboards that don't suck > > http://typo.leetsoft.com - Open source weblog engine > > http://blog.leetsoft.com - Technical weblog > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > -- > "Impossible is nothing." > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From jw at innerewut.de Sat Aug 6 20:01:00 2005 From: jw at innerewut.de (Jonathan Weiss) Date: Sat Aug 6 19:55:03 2005 Subject: [typo] Again problems with 2.5.x Message-ID: Cheers, After converting my typo-2.0.6 DB from a SQLite-DB to a MySQL-DB as migrations are not supported with SQLite I tried to upgrade to 2.5.2. The WEBrick mode works, but I have problems with Apache2/FastCGI. This stetting worked flawlessly with 2.0.6. It seems like that in the packages on rubyforge there is no .htacces file in public but in svn-trunk there is one (and there are still the osx ressource forks). Without the .htaccess file I get an "not found" error while trying to access an article. I tried copying the file from svn but with it I get this error: Application Errror Typo could not be reached This is a FreeBSD 5_STABLE machine with these settings: LoadModule fastcgi_module libexec/apache2/mod_fastcgi.so FastCgiIpcDir /tmp/fcgi_ipc/ AddHandler fastcgi-script .fcgi FastCgiServer /usr/local/www/blog_innerewut_de/public/dispatch.fcgi -initial-env RAILS_ENV=production ServerName blog.innerewut.de ServerAdmin admin@innerewut.de DocumentRoot /usr/local/www/blog_innerewut_de/public/ ErrorLog /var/log/blog.innerewut.de-error_log CustomLog /var/log/blog.innerewut.de-access_log combined Options ExecCGI FollowSymLinks AddHandler cgi-script .cgi AllowOverride all Allow from all Order allow,deny Greets, Jonathan -- Jonathan Weiss http://blog.innerewut.de From inselsbacher at gmail.com Sun Aug 7 06:41:06 2005 From: inselsbacher at gmail.com (Ralph Inselsbacher) Date: Sun Aug 7 06:35:07 2005 Subject: [typo] Error from typo 2.5 Message-ID: i downloaded and followed the instructions of the newly released typo 2.5, but i still get this error: ActionController::DoubleRenderError in Articles# This is what i get after running script/server -e production and pointing my browser to the domain. -- Cheers, Ralph From mathieu.chappuis.lists at gmail.com Sun Aug 7 07:40:26 2005 From: mathieu.chappuis.lists at gmail.com (Mathieu Chappuis) Date: Sun Aug 7 07:34:26 2005 Subject: [typo] Error from typo 2.5 In-Reply-To: References: Message-ID: <935eeb18050807044061c7c1b5@mail.gmail.com> > ActionController::DoubleRenderError in Articles# > Be sure to d/l the lastest 2.5.2 http://rubyforge.org/frs/download.php/5444/typo-2.5.2.tgz and show us back your logs running in '-e development' Ciao' From lists at wearenotsheep.com Sun Aug 7 17:06:09 2005 From: lists at wearenotsheep.com (Yvonne Adams) Date: Sun Aug 7 17:00:13 2005 Subject: [typo] Modify views in theme? Message-ID: <42F677C1.2000700@wearenotsheep.com> I'd like to modify a couple of the articles/views partials for a theme I'm working on. Is there a way to do this in a theme without modifying the core? I'd like to retain the ability to switch between themes with different markup characteristics if possible. Yvonne From tobias.luetke at gmail.com Sun Aug 7 17:14:52 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Sun Aug 7 17:08:53 2005 Subject: [typo] Modify views in theme? In-Reply-To: <42F677C1.2000700@wearenotsheep.com> References: <42F677C1.2000700@wearenotsheep.com> Message-ID: <9963c1bd0508071414207d142@mail.gmail.com> This is currently not possible with the typo theme system. We decited to go with the basics first and expand it later. You can do a lot of poitioning and these kind of things using CSS however. On 8/7/05, Yvonne Adams wrote: > I'd like to modify a couple of the articles/views partials for a theme > I'm working on. Is there a way to do this in a theme without modifying > the core? I'd like to retain the ability to switch between themes with > different markup characteristics if possible. > > Yvonne > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From scott at sigkill.org Sun Aug 7 20:32:57 2005 From: scott at sigkill.org (Scott Laird) Date: Sun Aug 7 20:27:03 2005 Subject: [typo] Modify views in theme? In-Reply-To: <9963c1bd0508071414207d142@mail.gmail.com> References: <42F677C1.2000700@wearenotsheep.com> <9963c1bd0508071414207d142@mail.gmail.com> Message-ID: On Aug 7, 2005, at 2:14 PM, Tobias Luetke wrote: > This is currently not possible with the typo theme system. We decited > to go with the basics first and expand it later. > > You can do a lot of poitioning and these kind of things using CSS > however. Yeah, we'd *like* to be able to override views in themes, but we don't have that ability yet. It's definitely on the list of things that we'd like to have in the next version. Scott From pratiknaik at gmail.com Tue Aug 9 08:27:35 2005 From: pratiknaik at gmail.com (Pratik) Date: Tue Aug 9 08:21:36 2005 Subject: [typo] Unable to configure typo using CGI/Apache 1.3.33 Message-ID: <9212531d05080905275ca532ae@mail.gmail.com> Hi, I am trying to setup typo on my server running Apache 1.3.33 using CGI. But I am getting "Application Errror - Typo could not be reached" error everytime. My public/dispatch.cgi is : ============= #!/usr/local/bin/ruby require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired require "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher" ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun) Dispatcher.dispatch ============= My public/.htaccess ( which btw I had to copy manually as it's missing from distribution ) ============= SetEnv RAILS_ENV production # General Apache options AddHandler fastcgi-script .fcgi AddHandler cgi-script .cgi Options +FollowSymLinks +ExecCGI # Redirect all requests not available on the filesystem to Rails RewriteEngine On # try to suggest current rss subscribers that the url moved permently RewriteRule ^xml/([a-z]+)$ /xml/$1/feed.xml [R=301] RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.cgi [QSA,L] # In case Rails experiences terminal errors ErrorDocument 500 "

Application Errror

Typo could not be reached ============= I've gone through document located at http://typo.leetsoft.com/trac/wiki/TroubleShooting, but that's not helping. If someone wants, I can setup an account on my server. Thanks, Pratik -- http://www.religiontalk.org & http://www.spiritualtalk.org - Enlighten your soul From scott at sigkill.org Tue Aug 9 08:52:41 2005 From: scott at sigkill.org (Scott Laird) Date: Tue Aug 9 08:46:43 2005 Subject: [typo] Unable to configure typo using CGI/Apache 1.3.33 In-Reply-To: <9212531d05080905275ca532ae@mail.gmail.com> References: <9212531d05080905275ca532ae@mail.gmail.com> Message-ID: On Aug 9, 2005, at 5:27 AM, Pratik wrote: > I've gone through document located at > http://typo.leetsoft.com/trac/wiki/TroubleShooting, but that's not > helping. Is Apache logging anything to its error log file? Can you run dispatch.cgi by hand from the command line without generating errors? Does the web server have write access to the log/ directory? Scott From tobias.luetke at gmail.com Tue Aug 9 09:13:32 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Tue Aug 9 09:07:31 2005 Subject: [typo] Unable to configure typo using CGI/Apache 1.3.33 In-Reply-To: <9212531d05080905275ca532ae@mail.gmail.com> References: <9212531d05080905275ca532ae@mail.gmail.com> Message-ID: <9963c1bd0508090613748692de@mail.gmail.com> > My public/.htaccess ( which btw I had to copy manually as it's missing > from distribution ) Thanks. I pushed a new version of typo to address this. -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From pratiknaik at gmail.com Tue Aug 9 14:36:54 2005 From: pratiknaik at gmail.com (Pratik) Date: Tue Aug 9 14:30:50 2005 Subject: [typo] Unable to configure typo using CGI/Apache 1.3.33 In-Reply-To: <9963c1bd0508090613748692de@mail.gmail.com> References: <9212531d05080905275ca532ae@mail.gmail.com> <9963c1bd0508090613748692de@mail.gmail.com> Message-ID: <9212531d05080911364e22a8dd@mail.gmail.com> Finally, I could get typo running at http://typo.in (:p) Is it necessary to do the following step as listed in README : "Run script/server -e production and see if it works" Because, I did it and it started working. Thanks, Pratik -- http://www.religiontalk.org & http://www.spiritualtalk.org - Enlighten your soul From hammed at gmail.com Tue Aug 9 20:07:46 2005 From: hammed at gmail.com (Hammed Malik) Date: Tue Aug 9 20:01:40 2005 Subject: [typo] testing on xp Message-ID: <5440c2a90508091707749c82b2@mail.gmail.com> Hi All, Since windows doesn't have symlinks, theme tests fail on xp. I ended up copying the azure them to the mockss folder in order to get the tests to pass. Is there a way around the lack of symlinks on windows? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050809/095d8476/attachment-0001.htm From trejkaz at trypticon.org Tue Aug 9 20:27:24 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Tue Aug 9 20:21:34 2005 Subject: [typo] testing on xp In-Reply-To: <5440c2a90508091707749c82b2@mail.gmail.com> References: <5440c2a90508091707749c82b2@mail.gmail.com> Message-ID: <20050810102724.d5so7yuuo04o8kkg@home.trypticon.org> Quoting Hammed Malik : > Hi All, > > Since windows doesn't have symlinks, theme tests fail on xp. I ended up > copying the azure them to the mockss folder in order to get the tests to > pass. > > Is there a way around the lack of symlinks on windows? On Windows, I run my Rails stuff under Cygwin. This version does support symlinks so things largely work as expected. :-) TX ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From hammed at gmail.com Tue Aug 9 20:52:10 2005 From: hammed at gmail.com (Hammed Malik) Date: Tue Aug 9 20:46:06 2005 Subject: [typo] testing on xp In-Reply-To: <20050810102724.d5so7yuuo04o8kkg@home.trypticon.org> References: <5440c2a90508091707749c82b2@mail.gmail.com> <20050810102724.d5so7yuuo04o8kkg@home.trypticon.org> Message-ID: <5440c2a90508091752352dd8e@mail.gmail.com> On 8/9/05, Trejkaz wrote: > > On Windows, I run my Rails stuff under Cygwin. This version does support > symlinks so things largely work as expected. :-) > > TX Thanks. I'll look into Cygwin. Will that also solve the following error I'm getting? C:\Projects\typo-2.5.2>rake appdoc (in C:/Projects/typo-2.5.2) rake aborted! Don't know how to build task 'doc/README_FOR_APP' I'm not sure what the problem here is. -- Hammed Malik -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050809/5123fb2d/attachment.htm From trejkaz at trypticon.org Tue Aug 9 20:55:11 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Tue Aug 9 20:49:19 2005 Subject: [typo] testing on xp In-Reply-To: <5440c2a90508091752352dd8e@mail.gmail.com> References: <5440c2a90508091707749c82b2@mail.gmail.com> <20050810102724.d5so7yuuo04o8kkg@home.trypticon.org> <5440c2a90508091752352dd8e@mail.gmail.com> Message-ID: <20050810105511.4b0nddq28owgggc0@home.trypticon.org> Quoting Hammed Malik : > On 8/9/05, Trejkaz wrote: > >> >> On Windows, I run my Rails stuff under Cygwin. This version does support >> symlinks so things largely work as expected. :-) >> >> TX > > Thanks. I'll look into Cygwin. Will that also solve the following error I'm > getting? Hmm, can't say. Actually I haven't gone really far on Windows, I use it for quick testing and a bit of development, but use my Linux server for all my real work. TX ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From hammed at gmail.com Tue Aug 9 21:00:39 2005 From: hammed at gmail.com (Hammed Malik) Date: Tue Aug 9 20:54:35 2005 Subject: [typo] testing on xp In-Reply-To: <20050810105511.4b0nddq28owgggc0@home.trypticon.org> References: <5440c2a90508091707749c82b2@mail.gmail.com> <20050810102724.d5so7yuuo04o8kkg@home.trypticon.org> <5440c2a90508091752352dd8e@mail.gmail.com> <20050810105511.4b0nddq28owgggc0@home.trypticon.org> Message-ID: <5440c2a905080918006adad6ab@mail.gmail.com> Thanks, I'll try posting to the Rails list. On 8/9/05, Trejkaz wrote: > > Quoting Hammed Malik : > > On 8/9/05, Trejkaz wrote: > > > >> > >> On Windows, I run my Rails stuff under Cygwin. This version does > support > >> symlinks so things largely work as expected. :-) > >> > >> TX > > > > Thanks. I'll look into Cygwin. Will that also solve the following error > I'm > > getting? > > > Hmm, can't say. Actually I haven't gone really far on Windows, I use it > for > quick testing and a bit of development, but use my Linux server for all > my real > work. > > TX > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Hammed Malik -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050809/6e18b06f/attachment.htm From tobias.luetke at gmail.com Tue Aug 9 21:20:58 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Tue Aug 9 21:14:53 2005 Subject: [typo] testing on xp In-Reply-To: <5440c2a90508091752352dd8e@mail.gmail.com> References: <5440c2a90508091707749c82b2@mail.gmail.com> <20050810102724.d5so7yuuo04o8kkg@home.trypticon.org> <5440c2a90508091752352dd8e@mail.gmail.com> Message-ID: <9963c1bd050809182071d0d281@mail.gmail.com> Typo doesn't support this rake task, i'll remove it next chance. I'll also get rid of the symlink, i didn't know it existed... > C:\Projects\typo-2.5.2>rake appdoc > (in C:/Projects/typo-2.5.2) > rake aborted! > Don't know how to build task 'doc/README_FOR_APP' > > I'm not sure what the problem here is. -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From patrick at lenz.sh Wed Aug 10 03:48:43 2005 From: patrick at lenz.sh (Patrick Lenz) Date: Wed Aug 10 03:42:44 2005 Subject: [typo] testing on xp In-Reply-To: <9963c1bd050809182071d0d281@mail.gmail.com> References: <5440c2a90508091707749c82b2@mail.gmail.com> <20050810102724.d5so7yuuo04o8kkg@home.trypticon.org> <5440c2a90508091752352dd8e@mail.gmail.com> <9963c1bd050809182071d0d281@mail.gmail.com> Message-ID: <3363F264-AFE6-4CC8-99C7-7A24F381BE11@lenz.sh> On 10.08.2005, at 03:20, Tobias Luetke wrote: > I'll also get rid of the symlink, i didn't know it existed... The symlink exists for testing to avoid shipping two identical copies of azure while still maintaining a credible amount of testing for the theme parts. If you prefer to ship two copies or know a better way, feel free to. -- Patrick Lenz (scoop) http://poocs.net/ # Personal Weblog http://limited-overload.de/ # Web application development http://freshmeat.net/ # Free software archive http://topmedia.de/ # IT Storage Solutions From typouser at gmail.com Wed Aug 10 07:14:23 2005 From: typouser at gmail.com (Kris Kaido) Date: Wed Aug 10 07:08:20 2005 Subject: [typo] Routing errors Message-ID: <47b6204005081004145f06678e@mail.gmail.com> Hi, I just set up a new Typo installation, all seems fine, except that I get a lot of routing errors like these : ActionController::RoutingError (Recognition failed for "/stylesheets/administration.css"): /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:444:in `recognition_failed' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:434:in `recognize!' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `each_cgi' /usr/lib/ruby/1.8/fcgi.rb:597:in `each' /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!' dispatch.fcgi:24 Processing Base#index (for 194.7.114.130 at Wed Aug 10 03:57:04 PDT 2005) Parameters: {} ActionController::RoutingError (Recognition failed for "/javascripts/prototype.js"): /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:444:in `recognition_failed' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:434:in `recognize!' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `each_cgi' /usr/lib/ruby/1.8/fcgi.rb:597:in `each' /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!' dispatch.fcgi:24 And indedd when I'm going to the admin interface, it comes without style and javascripts because it doesn't find it apparently. Do I have to change something in routes.rb ? It's the default from Typo 2.5.2 ... Any help will be greatly appreciated ! Thanks, Kris. From typouser at gmail.com Wed Aug 10 09:01:12 2005 From: typouser at gmail.com (Kris Kaido) Date: Wed Aug 10 08:55:07 2005 Subject: [typo] Re: Routing errors In-Reply-To: <47b6204005081004145f06678e@mail.gmail.com> References: <47b6204005081004145f06678e@mail.gmail.com> Message-ID: <47b62040050810060166a77838@mail.gmail.com> Hi again, I saw that my routes.rb mentions this : map.connect '/stylesheets/theme/:filename', :controller => 'theme', :action => 'stylesheets' map.connect '/javascript/theme/:filename', :controller => 'theme', :action => 'javascript' map.connect '/images/theme/:filename', :controller => 'theme', :action => 'images' And errors mention "/stylesheets", "/javascript" and "/images" without the "theme" subdirectory. Do I have to add some static default routes ? Should my hosting provider (Dreamhost) be configured for this to work out-of-the-box ? Thanks, Kris. On 8/10/05, Kris Kaido wrote: > Hi, > > I just set up a new Typo installation, all seems fine, except that I > get a lot of routing errors like these : > > > ActionController::RoutingError (Recognition failed for > "/stylesheets/administration.css"): > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:444:in > `recognition_failed' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:434:in > `recognize!' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in > `process_request' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in > `process!' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in > `each_cgi' > /usr/lib/ruby/1.8/fcgi.rb:597:in `each' > /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in > `process!' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in > `process!' > dispatch.fcgi:24 > > > > > Processing Base#index (for 194.7.114.130 at Wed Aug 10 03:57:04 PDT 2005) > Parameters: {} > > > ActionController::RoutingError (Recognition failed for > "/javascripts/prototype.js"): > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:444:in > `recognition_failed' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:434:in > `recognize!' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in > `process_request' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in > `process!' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in > `each_cgi' > /usr/lib/ruby/1.8/fcgi.rb:597:in `each' > /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in > `process!' > /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in > `process!' > dispatch.fcgi:24 > > > And indedd when I'm going to the admin interface, it comes without > style and javascripts because it doesn't find it apparently. > Do I have to change something in routes.rb ? It's the default from > Typo 2.5.2 ... > > Any help will be greatly appreciated ! > > Thanks, > > Kris. > From scott at sigkill.org Wed Aug 10 09:43:36 2005 From: scott at sigkill.org (Scott Laird) Date: Wed Aug 10 09:37:35 2005 Subject: [typo] Re: Routing errors In-Reply-To: <47b62040050810060166a77838@mail.gmail.com> References: <47b6204005081004145f06678e@mail.gmail.com> <47b62040050810060166a77838@mail.gmail.com> Message-ID: /stylesheets/administration.css is a real file, and doesn't go through Rails at all. Look in public/stylesheets/administration.css. If it's missing, then something's wrong with your Typo install. I'd recommend grabbing Typo 2.5.3 and giving it another try--2.5.3 fixes a couple bugs and re-adds public/.htaccess, which was missing from the 2.5.2 release. Scott On Aug 10, 2005, at 6:01 AM, Kris Kaido wrote: > Hi again, > > I saw that my routes.rb mentions this : > > > map.connect '/stylesheets/theme/:filename', > :controller => 'theme', :action => 'stylesheets' > map.connect '/javascript/theme/:filename', > :controller => 'theme', :action => 'javascript' > map.connect '/images/theme/:filename', > :controller => 'theme', :action => 'images' > > > And errors mention "/stylesheets", "/javascript" and "/images" without > the "theme" subdirectory. > > Do I have to add some static default routes ? Should my hosting > provider (Dreamhost) be configured for this to work out-of-the-box ? > > Thanks, > > Kris. > > On 8/10/05, Kris Kaido wrote: > >> Hi, >> >> I just set up a new Typo installation, all seems fine, except that I >> get a lot of routing errors like these : >> >> >> ActionController::RoutingError (Recognition failed for >> "/stylesheets/administration.css"): >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ >> action_controller/routing.rb:444:in >> `recognition_failed' >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ >> action_controller/routing.rb:434:in >> `recognize!' >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb: >> 32:in `dispatch' >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: >> 144:in >> `process_request' >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: >> 64:in >> `process!' >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: >> 55:in >> `each_cgi' >> /usr/lib/ruby/1.8/fcgi.rb:597:in `each' >> /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: >> 55:in >> `process!' >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: >> 21:in >> `process!' >> dispatch.fcgi:24 >> >> >> >> >> Processing Base#index (for 194.7.114.130 at Wed Aug 10 03:57:04 >> PDT 2005) >> Parameters: {} >> >> >> ActionController::RoutingError (Recognition failed for >> "/javascripts/prototype.js"): >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ >> action_controller/routing.rb:444:in >> `recognition_failed' >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ >> action_controller/routing.rb:434:in >> `recognize!' >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb: >> 32:in `dispatch' >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: >> 144:in >> `process_request' >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: >> 64:in >> `process!' >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: >> 55:in >> `each_cgi' >> /usr/lib/ruby/1.8/fcgi.rb:597:in `each' >> /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: >> 55:in >> `process!' >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: >> 21:in >> `process!' >> dispatch.fcgi:24 >> >> >> And indedd when I'm going to the admin interface, it comes without >> style and javascripts because it doesn't find it apparently. >> Do I have to change something in routes.rb ? It's the default from >> Typo 2.5.2 ... >> >> Any help will be greatly appreciated ! >> >> Thanks, >> >> Kris. >> >> > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From jw at innerewut.de Wed Aug 10 14:26:28 2005 From: jw at innerewut.de (Jonathan Weiss) Date: Wed Aug 10 14:20:30 2005 Subject: [typo] Problems with FastCGI and Typo 2.5.3 Message-ID: Cheers, I tried to update my typo 2.0.6 to 2.5.3 and I get the following error in fastcgi.crash.log while using FastCGI/Apache2: [10/Aug/2005:20:16:18 :: 6330] Dispatcher failed to catch: (Interrupt) /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each_cgi' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!' /usr/local/www/current/public/dispatch.fcgi:24 killed by this error [Wed Aug 10 20:21:18 CEST 2005] Dispatcher failed to catch: exit (SystemExit) /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:10:in `exit' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:10 /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:10:in `call' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each_cgi' /usr/local/www/current/public/dispatch.fcgi:18 FCGI process 6373 killed by this error My setting works flawlessly with 2.0.6, I just swapped the directories. With WEBrick or lighttpd everything works. Any hints? Thanks, Jonathan -- Jonathan Weiss http://blog.innerewut.de From kyle.cooney at gmail.com Wed Aug 10 16:08:00 2005 From: kyle.cooney at gmail.com (Kyle Cooney) Date: Wed Aug 10 16:01:54 2005 Subject: [typo] Simple Workflow + Latest Posts Message-ID: <4ecac8170508101308765f33bf@mail.gmail.com> Hi, all - I'm working out some kinks on my site, still very rough technically, but I'm wondering if anyone has built modules/custom additions to typo that they'd be willing to share. Specically, I'm looking for the following: - Ability to save messages in draft form and come back to publish them later. Better if anyone has built a module to allow for autopublishing on a specific date. - Second, and perhaps more importantly, I'm using a layout on my site that only shows one post at a time. In addition to linking to an archives section, I'm looking for a sidebar module that will show the last X(5-10) number of posts on the site. That's about it. Thanks! Kyle http://www.yesterdaywasdramatic.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050810/9e3eb746/attachment.htm From scott at sigkill.org Wed Aug 10 16:27:09 2005 From: scott at sigkill.org (Scott Laird) Date: Wed Aug 10 16:21:13 2005 Subject: [typo] Simple Workflow + Latest Posts In-Reply-To: <4ecac8170508101308765f33bf@mail.gmail.com> References: <4ecac8170508101308765f33bf@mail.gmail.com> Message-ID: <0AA284F2-B6B9-4BD9-8E39-EB2EF12DD253@sigkill.org> On Aug 10, 2005, at 1:08 PM, Kyle Cooney wrote: > I'm working out some kinks on my site, still very rough > technically, but I'm wondering if anyone has built modules/custom > additions to typo that they'd be willing to share. Specically, I'm > looking for the following: > > - Ability to save messages in draft form and come back to publish > them later. Better if anyone has built a module to allow for > autopublishing on a specific date. In general, you should be able to mark articles as unpublished and have them behave as you'd expect. You'll have to manually publish them though. Post-dating articles and having them automatically appear once their time comes up is on the list for the next release; it's not very difficult, but there's at least a half-dozen places in Typo where we'll have to make sure that we're doing the right thing. > - Second, and perhaps more importantly, I'm using a layout on my > site that only shows one post at a time. In addition to linking to > an archives section, I'm looking for a sidebar module that will > show the last X(5-10) number of posts on the site. That should be pretty easy. Just create a new sidebar and have it display the titles (and links) for some number of articles. Start by making a copy of the category controller (in components/plugins/ sidebars/category*) and calling it 'articles'. Edit the new article_controller.rb and swap all references to 'category to 'article'. Don't forget to change the class name on the first line. You should probably remove the self.default_config and configure methods. Then change the content method to be something like this: def content @articles = Articles.find(:all, :limit => 10, :conditions => ["published == 1"] end Then edit articles/content.rhtml. You can mostly just swap 'articles' for 'categories' wherever they appear. Swap the link_to bit on the middle of the loop for article_link(article.title, article). You should be able to safely remove all of the conditional code. That should be about it. If you're running Typo in production mode, then you'll need to restart it before it notices the new sidebar. If you're in development mode, then it should show up right away. Scott From hammed at gmail.com Wed Aug 10 17:29:49 2005 From: hammed at gmail.com (Hammed Malik) Date: Wed Aug 10 17:23:44 2005 Subject: [typo] 'string not matched' and other problems with Typo 2.5.2 Message-ID: <5440c2a90508101429622ee025@mail.gmail.com> I kept getting a 'string not matched' error yesterday when running Typo 2.5.2 + MySQL on my windows xp. I tried to do a clean install today to isolate the problem. Here's what I did: copy typo 2.5.2 source into typo2 folder create dev, test and prod databases and run db/schema.mysql.sql against each db ruby script/server create account. Changed blog name. clicked 'your blog' link. page shows correctly. refresh page and I get this following error: IndexError in Articles#index string not matched script/server:49 Show framework trace c:/ruby/lib/ruby/1.8/cgi/session/pstore.rb:25:in `[]=' c:/ruby/lib/ruby/1.8/cgi/session/pstore.rb:25:in `[]=' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/flash.rb:133:in `flash' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/flash.rb:146:in `fire_flash' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:317:in `send' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:317:in `call_filters' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:313:in `each' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:313:in `call_filters' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:302:in `before_action' After this point, all pages result in the same error. Once I 'delete from sessions' in the dev database, I'm able to view the blog again. Switching back and forth between the admin and public pages, everything works fine for a bit and then wham! I get the following error: ArgumentError in # undefined class/module User config/routes.rb:1 script/server:49 Show framework trace c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:48:in `dump' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:48:in `marshal' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:104:in `marshal_data!' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/callbacks.rb:333:in `send' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/callbacks.rb:333:in `callback' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/callbacks.rb:330:in `each' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/callbacks.rb:330:in `callback' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/callbacks.rb:248:in `create_or_update' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:965:in `save_without_validation' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/validations.rb:650:in `save_without_transactions' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/transactions.rb:128:in `save' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/transactions.rb:128:in `transaction' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/transactions.rb:93:in `transaction' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/transactions.rb:120:in `transaction' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/transactions.rb:128:in `save' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:261:in `update' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:261:in `silence' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:261:in `update' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:268:in `close' c:/ruby/lib/ruby/1.8/cgi/session.rb:166:in `callback' c:/ruby/lib/ruby/1.8/cgi/session.rb:165:in `call' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/code_generation.rb:40:in `include?' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/code_generation.rb:40:in `method_missing' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:468:in `generation_code_for' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:410:in `write_generation' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:404:in `each' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:404:in `write_generation' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:552:in `draw' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:193:in `load' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:193:in `load' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:530:in `reload' c:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:49:in `prepare_application' c:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:31:in `dispatch' c:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:105:in `handle_dispatch' c:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:71:in `service' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' c:/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread' c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start' c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread' c:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start' c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each' c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start' c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start' c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start' c:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:57:in `dispatch' This error occured while loading the following files: ./script/../config/../config/routes.rb is there a step I'm missing somewhere? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050810/60a4f1e1/attachment.htm From scott at sigkill.org Wed Aug 10 17:40:42 2005 From: scott at sigkill.org (Scott Laird) Date: Wed Aug 10 17:34:41 2005 Subject: [typo] 'string not matched' and other problems with Typo 2.5.2 In-Reply-To: <5440c2a90508101429622ee025@mail.gmail.com> References: <5440c2a90508101429622ee025@mail.gmail.com> Message-ID: On Aug 10, 2005, at 2:29 PM, Hammed Malik wrote: > I kept getting a 'string not matched' error yesterday when running > Typo 2.5.2 + MySQL on my windows xp. I tried to do a clean install > today to isolate the problem. Here's what I did: In general, deleting all sessions from the DB is the only fix that I've seen for this. I've been bitten by it several times, but *only* when using Webrick, and I believe only in development mode. I've never seen it happen on Apache on my production site. I'd love to track this down and fix it, but I can't reproduce it well enough to be able to debug it--it rarely happens more then once per day for me. Scott From hammed at gmail.com Wed Aug 10 17:57:33 2005 From: hammed at gmail.com (Hammed Malik) Date: Wed Aug 10 17:51:27 2005 Subject: [typo] 'string not matched' and other problems with Typo 2.5.2 In-Reply-To: References: <5440c2a90508101429622ee025@mail.gmail.com> Message-ID: <5440c2a9050810145732a41a1f@mail.gmail.com> Thanks Scott. I switched to production mode and so far no problems. On 8/10/05, Scott Laird wrote: > > > On Aug 10, 2005, at 2:29 PM, Hammed Malik wrote: > > > I kept getting a 'string not matched' error yesterday when running > > Typo 2.5.2 + MySQL on my windows xp. I tried to do a clean install > > today to isolate the problem. Here's what I did: > > In general, deleting all sessions from the DB is the only fix that > I've seen for this. I've been bitten by it several times, but *only* > when using Webrick, and I believe only in development mode. I've > never seen it happen on Apache on my production site. > > I'd love to track this down and fix it, but I can't reproduce it well > enough to be able to debug it--it rarely happens more then once per > day for me. > > > Scott > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Hammed Malik -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050810/0da04c8a/attachment-0001.htm From hammed at gmail.com Wed Aug 10 18:05:17 2005 From: hammed at gmail.com (Hammed Malik) Date: Wed Aug 10 17:59:12 2005 Subject: [typo] pages in Typo Message-ID: <5440c2a9050810150539398e2a@mail.gmail.com> Is there no way to get a list of links to all pages in Typo? Creating an 'item' for the sidebar seems simple enough so I'll go ahead and create my own if there isn't something I'm overlooking. Also, it seems that the search only works for article content and doesn't look at the content for pages. Is this intentional? I'm thinking of using Typo as an administrative tool for simple websites and I was thinking of creating a 'menu' using a list of pages. Can someone explain how pages are meant to be used in typo? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050810/00b96fca/attachment.htm From scott at sigkill.org Wed Aug 10 18:17:30 2005 From: scott at sigkill.org (Scott Laird) Date: Wed Aug 10 18:11:30 2005 Subject: [typo] pages in Typo In-Reply-To: <5440c2a9050810150539398e2a@mail.gmail.com> References: <5440c2a9050810150539398e2a@mail.gmail.com> Message-ID: On Aug 10, 2005, at 3:05 PM, Hammed Malik wrote: > Is there no way to get a list of links to all pages in Typo? > Creating an 'item' for the sidebar seems simple enough so I'll go > ahead and create my own if there isn't something I'm overlooking. There isn't a list of pages easily available, except via the admin interface. This wasn't *completely* unintentional--I was thinking that users may have information on some of the pages that they didn't want exactly hidden, but didn't want 100% public, either. That's probably a stupid way to do things, though, and a "all pages" or "recent pages" sidebar wouldn't be a bad way to get at pages. At least that way it'd be optional. > Also, it seems that the search only works for article content and > doesn't look at the content for pages. Is this intentional? Ran out of time. I started to do it once, but that was before pages had titles and there was no way to do it without it being hideously ugly. Now that we've added page titles, this shouldn't be as bad. Feel free to submit a patch :-) > I'm thinking of using Typo as an administrative tool for simple > websites and I was thinking of creating a 'menu' using a list of > pages. Can someone explain how pages are meant to be used in typo? The original goal was for things like "about the author" pages and other relatively static content. Don't let that limit your usage, though. Just don't ask for comments on pages :-). Scott From trejkaz at trypticon.org Wed Aug 10 19:22:43 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Wed Aug 10 19:16:55 2005 Subject: [typo] pages in Typo In-Reply-To: References: <5440c2a9050810150539398e2a@mail.gmail.com> Message-ID: <20050811092243.hvcfcmpc0400css0@home.trypticon.org> Quoting Scott Laird : >> I'm thinking of using Typo as an administrative tool for simple >> websites and I was thinking of creating a 'menu' using a list of >> pages. Can someone explain how pages are meant to be used in typo? > > The original goal was for things like "about the author" pages and > other relatively static content. Don't let that limit your usage, > though. Just don't ask for comments on pages :-). It's funny you should say that. One of the awesome side-effects of using non-published normal posts to simulate semi-static pages was that users could comment on those pages. Although it's good that pages have been separated out (thus making the URLs a lot cleaner) it's a shame that we lost this side-effect in the process. :-) TX ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From kevin at sb.org Wed Aug 10 20:14:58 2005 From: kevin at sb.org (Kevin Ballard) Date: Wed Aug 10 20:10:22 2005 Subject: [typo] 'string not matched' and other problems with Typo 2.5.2 In-Reply-To: References: <5440c2a90508101429622ee025@mail.gmail.com> Message-ID: <28A65383-8CB3-40A5-9096-145B5140E774@sb.org> I *think* I've seen it on my website in production mode, but I'm not certain, it could have been with WEBrick in Development mode. I know I've seen it several times, and I believe at least once was in production. On Aug 10, 2005, at 5:40 PM, Scott Laird wrote: > In general, deleting all sessions from the DB is the only fix that > I've seen for this. I've been bitten by it several times, but > *only* when using Webrick, and I believe only in development mode. > I've never seen it happen on Apache on my production site. -- Kevin Ballard kevin@sb.org http://www.tildesoft.com http://kevin.sb.org -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2378 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050810/b5a1df75/smime.bin From scott at sigkill.org Wed Aug 10 20:26:16 2005 From: scott at sigkill.org (Scott Laird) Date: Wed Aug 10 20:20:32 2005 Subject: [typo] 'string not matched' and other problems with Typo 2.5.2 In-Reply-To: <28A65383-8CB3-40A5-9096-145B5140E774@sb.org> References: <5440c2a90508101429622ee025@mail.gmail.com> <28A65383-8CB3-40A5-9096-145B5140E774@sb.org> Message-ID: <5BEC8032-7FE7-4987-9E19-19E8D0FEEB14@sigkill.org> Is it DB specific? I'm seeing it with Postgres. Personally, I'd guess that it's a Rails issue, but I can't see *any* reference to "string not matched" WRT rails. Scott On Aug 10, 2005, at 5:14 PM, Kevin Ballard wrote: > I *think* I've seen it on my website in production mode, but I'm > not certain, it could have been with WEBrick in Development mode. I > know I've seen it several times, and I believe at least once was in > production. > > On Aug 10, 2005, at 5:40 PM, Scott Laird wrote: > > >> In general, deleting all sessions from the DB is the only fix that >> I've seen for this. I've been bitten by it several times, but >> *only* when using Webrick, and I believe only in development >> mode. I've never seen it happen on Apache on my production site. >> > > -- > Kevin Ballard > kevin@sb.org > http://www.tildesoft.com > http://kevin.sb.org > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From hammed at gmail.com Wed Aug 10 20:29:29 2005 From: hammed at gmail.com (Hammed Malik) Date: Wed Aug 10 20:23:22 2005 Subject: [typo] 'string not matched' and other problems with Typo 2.5.2 In-Reply-To: <5BEC8032-7FE7-4987-9E19-19E8D0FEEB14@sigkill.org> References: <5440c2a90508101429622ee025@mail.gmail.com> <28A65383-8CB3-40A5-9096-145B5140E774@sb.org> <5BEC8032-7FE7-4987-9E19-19E8D0FEEB14@sigkill.org> Message-ID: <5440c2a9050810172947f687c8@mail.gmail.com> I'm using MySQL and am seeing the problem in dev mode. On 8/10/05, Scott Laird wrote: > > Is it DB specific? I'm seeing it with Postgres. > > Personally, I'd guess that it's a Rails issue, but I can't see *any* > reference to "string not matched" WRT rails. > > > Scott > > On Aug 10, 2005, at 5:14 PM, Kevin Ballard wrote: > > > I *think* I've seen it on my website in production mode, but I'm > > not certain, it could have been with WEBrick in Development mode. I > > know I've seen it several times, and I believe at least once was in > > production. > > > > On Aug 10, 2005, at 5:40 PM, Scott Laird wrote: > > > > > >> In general, deleting all sessions from the DB is the only fix that > >> I've seen for this. I've been bitten by it several times, but > >> *only* when using Webrick, and I believe only in development > >> mode. I've never seen it happen on Apache on my production site. > >> > > > > -- > > Kevin Ballard > > kevin@sb.org > > http://www.tildesoft.com > > http://kevin.sb.org > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Hammed Malik -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050810/514ad7ec/attachment.htm From hammed at gmail.com Wed Aug 10 21:19:44 2005 From: hammed at gmail.com (Hammed Malik) Date: Wed Aug 10 21:13:37 2005 Subject: [typo] 'string not matched' and other problems with Typo 2.5.2 In-Reply-To: <5440c2a9050810172947f687c8@mail.gmail.com> References: <5440c2a90508101429622ee025@mail.gmail.com> <28A65383-8CB3-40A5-9096-145B5140E774@sb.org> <5BEC8032-7FE7-4987-9E19-19E8D0FEEB14@sigkill.org> <5440c2a9050810172947f687c8@mail.gmail.com> Message-ID: <5440c2a905081018195745f676@mail.gmail.com> I switched the session store to FileStore and environment to development and haven't seen this error since. On 8/10/05, Hammed Malik wrote: > > I'm using MySQL and am seeing the problem in dev mode. > > On 8/10/05, Scott Laird wrote: > > > > Is it DB specific? I'm seeing it with Postgres. > > > > Personally, I'd guess that it's a Rails issue, but I can't see *any* > > reference to "string not matched" WRT rails. > > > > > > Scott > > > > On Aug 10, 2005, at 5:14 PM, Kevin Ballard wrote: > > > > > I *think* I've seen it on my website in production mode, but I'm > > > not certain, it could have been with WEBrick in Development mode. I > > > know I've seen it several times, and I believe at least once was in > > > production. > > > > > > On Aug 10, 2005, at 5:40 PM, Scott Laird wrote: > > > > > > > > >> In general, deleting all sessions from the DB is the only fix that > > >> I've seen for this. I've been bitten by it several times, but > > >> *only* when using Webrick, and I believe only in development > > >> mode. I've never seen it happen on Apache on my production site. > > >> > > > > > > -- > > > Kevin Ballard > > > kevin@sb.org > > > http://www.tildesoft.com > > > http://kevin.sb.org > > > > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list@rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > -- > Hammed Malik > -- Hammed Malik -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050810/81ed05d3/attachment-0001.htm From hammed at gmail.com Wed Aug 10 21:32:49 2005 From: hammed at gmail.com (Hammed Malik) Date: Wed Aug 10 21:26:43 2005 Subject: [typo] Article > Navigate - what is it supposed to do? Message-ID: <5440c2a905081018322eb71231@mail.gmail.com> Sorry for all the posts today. I'm just trying to get familiarized with Typo. Articles > Navigate - What is this supposed to do? Clicking it makes a tiny blue box appear below the Quick Post link. This happens both on Firefox and IE6. -- Hammed Malik -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050810/df786dff/attachment.htm From justus at ryoohki.net Wed Aug 10 22:28:12 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Wed Aug 10 22:22:10 2005 Subject: [typo] Article > Navigate - what is it supposed to do? In-Reply-To: <5440c2a905081018322eb71231@mail.gmail.com> References: <5440c2a905081018322eb71231@mail.gmail.com> Message-ID: <20050811022811.GA11353@kiyone.ryoohki.net> On Wed, Aug 10, 2005 at 09:32:49PM -0400, Hammed Malik wrote: > Articles > Navigate - What is this supposed to do? Clicking it makes a tiny > blue box appear below the Quick Post link. This happens both on Firefox and > IE6. If you have more articles than fit on that first page you can quickly navigate to them. The same thing is found at the bottom of the page, if you have more than 10-15 posts. From kelan at mac.com Wed Aug 10 23:49:23 2005 From: kelan at mac.com (Kelan Champagne) Date: Wed Aug 10 23:43:27 2005 Subject: [typo] Deploying Typo in sub-directory In-Reply-To: <20050811022811.GA11353@kiyone.ryoohki.net> References: <5440c2a905081018322eb71231@mail.gmail.com> <20050811022811.GA11353@kiyone.ryoohki.net> Message-ID: I am trying to get typo working in a sub-directory of my webserver. I had version 2.0.6 running like this, under apache and fast-cgi, by having the following in my httpd.conf: > Alias /blog /Library/WebServer/typo/public > > Options ExecCGI FollowSymlinks > AllowOverride All > and (for fast cgi) > FastCgiServer /Library/WebServer/typo/public/dispatch.fcgi > -initial-env RAILS_ENV=production Now, when I upgraded to 2.5, tings broke. I have since gotten the newest source from svn (rev 519) and started a fresh database. Everything works under WEBrick, but there are problems under apache. First of all, on the main page I get the html, but not the style sheet. I changed the page source (a neat feature of SafariStand (http://hetima.com/safari/stand-e.html), btw) from: > rel="Stylesheet" type="text/css" /> > rel="Stylesheet" type="text/css" /> to (deleting the leading slash): > rel="Stylesheet" type="text/css" /> > rel="Stylesheet" type="text/css" /> and it works. So, is this something I have to customize in my local copy of typo, or is this a change that can be made in the main version? Another thing is that if i try to go to /blog/admin it redirects me to /blog/accounts/login and gives me an "Application error (Rails)". But the blog is already all set up (via WEBrick), so something werid is going on here, and I'm assuming it has to do with being installed in a sub-dir. In fact, this happens with any sub-page. First of all, for example, the link to an article has the leading slash (so it goes to /articles/2005/etc instead of /blog/articles/2005/etc). And then when i put in the correct url, it gives me the "Application error (Rails)" again. A minor issue (and one that his more likely my fault) is that going to /blog (without the trailing slash) gets a "Bad Request" response. This might be a problem with my aliasing, but it might be related. Obviously a lot changed in typo from v2.0 to v2.5, so, did that make my way of installing in the sub-dir incorrect? Is there something I can do to fix it, or is it a bug? I am running typo on OS X Server v10.3.9, with the most recent version of rails. Thanks! -Kelan From justus at ryoohki.net Thu Aug 11 00:00:55 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Wed Aug 10 23:55:00 2005 Subject: [typo] Simple Workflow + Latest Posts In-Reply-To: <4ecac8170508101308765f33bf@mail.gmail.com> References: <4ecac8170508101308765f33bf@mail.gmail.com> Message-ID: <20050811040055.GA11765@kiyone.ryoohki.net> On Wed, Aug 10, 2005 at 04:08:00PM -0400, Kyle Cooney wrote: > - Second, and perhaps more importantly, I'm using a layout on my site that > only shows one post at a time. In addition to linking to an archives > section, I'm looking for a sidebar module that will show the last X(5-10) > number of posts on the site. I've attached a .tar.gz of the sidebar I use for this. Just untar it into your components/plugings/sidebars directory, add it to your active sidebars, and configure how many posts you want to show. Hope this helps, Justus -------------- next part -------------- A non-text attachment was scrubbed... Name: recent.tar.gz Type: application/octet-stream Size: 774 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050810/8896013d/recent.tar.obj From scott at sigkill.org Thu Aug 11 00:13:54 2005 From: scott at sigkill.org (Scott Laird) Date: Thu Aug 11 00:07:51 2005 Subject: [typo] Deploying Typo in sub-directory In-Reply-To: References: <5440c2a905081018322eb71231@mail.gmail.com> <20050811022811.GA11353@kiyone.ryoohki.net> Message-ID: <1E66338F-ACBB-4534-89FB-6D2AEFE35B6F@sigkill.org> Take a look at http://typo.leetsoft.com/trac/wiki/TypoInSubdirectory -- you need to make a few changes to the .htaccess before this will work right. Scott On Aug 10, 2005, at 8:49 PM, Kelan Champagne wrote: > I am trying to get typo working in a sub-directory of my > webserver. I had version 2.0.6 running like this, under apache and > fast-cgi, by having the following in my httpd.conf: > > >> Alias /blog /Library/WebServer/typo/public >> >> Options ExecCGI FollowSymlinks >> AllowOverride All >> >> > > and (for fast cgi) > > >> FastCgiServer /Library/WebServer/typo/public/dispatch.fcgi - >> initial-env RAILS_ENV=production >> > > > Now, when I upgraded to 2.5, tings broke. I have since gotten the > newest source from svn (rev 519) and started a fresh database. > Everything works under WEBrick, but there are problems under > apache. First of all, on the main page I get the html, but not the > style sheet. I changed the page source (a neat feature of > SafariStand (http://hetima.com/safari/stand-e.html), btw) from: > > >> > rel="Stylesheet" type="text/css" /> >> > rel="Stylesheet" type="text/css" /> >> > > to (deleting the leading slash): > > >> > rel="Stylesheet" type="text/css" /> >> > rel="Stylesheet" type="text/css" /> >> > > and it works. > > So, is this something I have to customize in my local copy of typo, > or is this a change that can be made in the main version? > > Another thing is that if i try to go to /blog/admin it redirects me > to /blog/accounts/login and gives me an "Application error > (Rails)". But the blog is already all set up (via WEBrick), so > something werid is going on here, and I'm assuming it has to do > with being installed in a sub-dir. In fact, this happens with any > sub-page. First of all, for example, the link to an article has > the leading slash (so it goes to /articles/2005/etc instead of / > blog/articles/2005/etc). And then when i put in the correct url, > it gives me the "Application error (Rails)" again. > > A minor issue (and one that his more likely my fault) is that going > to /blog (without the trailing slash) gets a "Bad Request" > response. This might be a problem with my aliasing, but it might > be related. > > Obviously a lot changed in typo from v2.0 to v2.5, so, did that > make my way of installing in the sub-dir incorrect? Is there > something I can do to fix it, or is it a bug? > > I am running typo on OS X Server v10.3.9, with the most recent > version of rails. > > Thanks! > -Kelan > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From kelan at mac.com Thu Aug 11 01:36:25 2005 From: kelan at mac.com (Kelan Champagne) Date: Thu Aug 11 01:30:49 2005 Subject: [typo] Deploying Typo in sub-directory In-Reply-To: <1E66338F-ACBB-4534-89FB-6D2AEFE35B6F@sigkill.org> References: <5440c2a905081018322eb71231@mail.gmail.com> <20050811022811.GA11353@kiyone.ryoohki.net> <1E66338F-ACBB-4534-89FB-6D2AEFE35B6F@sigkill.org> Message-ID: <1906deb68b9796c738aa813a9740f451@mac.com> Well, it looks like I was doing those things except I had a trailing slash on my RewriteBase in my .htaccess file. I fixed that but it didn't seem to change anything. I have also changed the final RewriteRule in my .htaccess to go to dispatch.cgi so as to eliminate fast cgi as a source of problems. I notice i'm getting this error in my apache error_log: > /Library/WebServer/typo/public/../config/..//vendor/bluecloth/lib/ > bluecloth.rb:59:in `require': No such file to load -- logger > (LoadError) > from > /Library/WebServer/typo/public/../config/..//vendor/bluecloth/lib/ > bluecloth.rb:59 > from > /Library/WebServer/typo/public/../config/environment.rb:40:in > `require' > from /Library/WebServer/typo/public/../config/environment.rb:40 > from /Library/WebServer/typo/public/dispatch.cgi:3:in `require' > from /Library/WebServer/typo/public/dispatch.cgi:3 > [Wed Aug 10 22:11:10 2005] [error] [client 192.168.1.1] Premature end > of script headers: /Library/WebServer/typo/public/dispatch.cgi not sure if thats related or not. WEBrick still runs it fine. Also, now when I go to /blog/admin or /blog/article/2005/whatever I get the "Application Error: Typo could not be reached" (from the bottom of the .htaccess file) and not that "Application error (Rails)" I was getting before. Any other ideas? Thanks, -Kelan On Aug 10, 2005, at 9:13 PM, Scott Laird wrote: > Take a look at http://typo.leetsoft.com/trac/wiki/TypoInSubdirectory > -- you need to make a few changes to the .htaccess before this will > work right. > > > Scott > > On Aug 10, 2005, at 8:49 PM, Kelan Champagne wrote: > >> I am trying to get typo working in a sub-directory of my webserver. >> I had version 2.0.6 running like this, under apache and fast-cgi, by >> having the following in my httpd.conf: >> >> >>> Alias /blog /Library/WebServer/typo/public >>> >>> Options ExecCGI FollowSymlinks >>> AllowOverride All >>> >>> >> >> and (for fast cgi) >> >> >>> FastCgiServer /Library/WebServer/typo/public/dispatch.fcgi >>> -initial-env RAILS_ENV=production >>> >> >> >> Now, when I upgraded to 2.5, tings broke. I have since gotten the >> newest source from svn (rev 519) and started a fresh database. >> Everything works under WEBrick, but there are problems under apache. >> First of all, on the main page I get the html, but not the style >> sheet. I changed the page source (a neat feature of SafariStand >> (http://hetima.com/safari/stand-e.html), btw) from: >> >> >>> >> rel="Stylesheet" type="text/css" /> >>> >> rel="Stylesheet" type="text/css" /> >>> >> >> to (deleting the leading slash): >> >> >>> >> rel="Stylesheet" type="text/css" /> >>> >> rel="Stylesheet" type="text/css" /> >>> >> >> and it works. >> >> So, is this something I have to customize in my local copy of typo, >> or is this a change that can be made in the main version? >> >> Another thing is that if i try to go to /blog/admin it redirects me >> to /blog/accounts/login and gives me an "Application error (Rails)". >> But the blog is already all set up (via WEBrick), so something werid >> is going on here, and I'm assuming it has to do with being installed >> in a sub-dir. In fact, this happens with any sub-page. First of >> all, for example, the link to an article has the leading slash (so it >> goes to /articles/2005/etc instead of /blog/articles/2005/etc). And >> then when i put in the correct url, it gives me the "Application >> error (Rails)" again. >> >> A minor issue (and one that his more likely my fault) is that going >> to /blog (without the trailing slash) gets a "Bad Request" response. >> This might be a problem with my aliasing, but it might be related. >> >> Obviously a lot changed in typo from v2.0 to v2.5, so, did that make >> my way of installing in the sub-dir incorrect? Is there something I >> can do to fix it, or is it a bug? >> >> I am running typo on OS X Server v10.3.9, with the most recent >> version of rails. >> >> Thanks! >> -Kelan >> >> _______________________________________________ >> Typo-list mailing list >> Typo-list@rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From rocknroll at bitrocker.com Thu Aug 11 09:06:31 2005 From: rocknroll at bitrocker.com (bitrocker) Date: Thu Aug 11 09:00:28 2005 Subject: [typo] /admin default users, how to login? Message-ID: hi, first of all: i'm new to ruby, new to typo and new to linux :) anyway: hi all. nevertheless i managed to install typo on my root server (even if it's still running on webrick and not on apache) and now i want to login in via /admin ... but i can't the passwords for the default users or a way to create new users. help please. thanks: lars From rasputnik at gmail.com Thu Aug 11 09:30:44 2005 From: rasputnik at gmail.com (Dick Davies) Date: Thu Aug 11 09:24:36 2005 Subject: [typo] 2.5.3 RSS behind a proxy Message-ID: <3f176050811063016545f2d@mail.gmail.com> I've just jumped to 2.5.3 on TextDrive (apache -> lighty proxy) and found that the RSS feed links are pointing to the 'proxied' url i.e. links in RSS feeds on http://number9.hellooperator.net point to http://number9.hellooperator.net:8059 This isn't a showstopper as Textdrive don't appear to filter odd ports, though I guess it would bite anyone with a firewall, or who's proxying to an internal lighttpd instance on a private LAN. Fix I was given on IRC was to patch application.rb --- typo/trunk/app/controllers/application.rb (revision 195) +++ typo/trunk/app/controllers/application.rb (revision 196) @@ -9,5 +9,10 @@ def cache $cache ||= SimpleCache.new 1.hour end + + # set the right host for rss etc. + def default_url_options(options) + { :host => '9.hellooperator.net'} + end which I suspect will be fine. Would anyone object if I made it an option - 'hostname' or something? From typouser at gmail.com Thu Aug 11 09:54:29 2005 From: typouser at gmail.com (Kris Kaido) Date: Thu Aug 11 09:48:22 2005 Subject: [typo] Re: Routing errors In-Reply-To: References: <47b6204005081004145f06678e@mail.gmail.com> <47b62040050810060166a77838@mail.gmail.com> Message-ID: <47b620400508110654258664ee@mail.gmail.com> Fixed. Thanks :) On 8/10/05, Scott Laird wrote: > /stylesheets/administration.css is a real file, and doesn't go > through Rails at all. Look in public/stylesheets/administration.css. > > If it's missing, then something's wrong with your Typo install. I'd > recommend grabbing Typo 2.5.3 and giving it another try--2.5.3 fixes > a couple bugs and re-adds public/.htaccess, which was missing from > the 2.5.2 release. > > > Scott > > On Aug 10, 2005, at 6:01 AM, Kris Kaido wrote: > > > Hi again, > > > > I saw that my routes.rb mentions this : > > > > > > map.connect '/stylesheets/theme/:filename', > > :controller => 'theme', :action => 'stylesheets' > > map.connect '/javascript/theme/:filename', > > :controller => 'theme', :action => 'javascript' > > map.connect '/images/theme/:filename', > > :controller => 'theme', :action => 'images' > > > > > > And errors mention "/stylesheets", "/javascript" and "/images" without > > the "theme" subdirectory. > > > > Do I have to add some static default routes ? Should my hosting > > provider (Dreamhost) be configured for this to work out-of-the-box ? > > > > Thanks, > > > > Kris. > > > > On 8/10/05, Kris Kaido wrote: > > > >> Hi, > >> > >> I just set up a new Typo installation, all seems fine, except that I > >> get a lot of routing errors like these : > >> > >> > >> ActionController::RoutingError (Recognition failed for > >> "/stylesheets/administration.css"): > >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ > >> action_controller/routing.rb:444:in > >> `recognition_failed' > >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ > >> action_controller/routing.rb:434:in > >> `recognize!' > >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb: > >> 32:in `dispatch' > >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: > >> 144:in > >> `process_request' > >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: > >> 64:in > >> `process!' > >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: > >> 55:in > >> `each_cgi' > >> /usr/lib/ruby/1.8/fcgi.rb:597:in `each' > >> /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' > >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: > >> 55:in > >> `process!' > >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: > >> 21:in > >> `process!' > >> dispatch.fcgi:24 > >> > >> > >> > >> > >> Processing Base#index (for 194.7.114.130 at Wed Aug 10 03:57:04 > >> PDT 2005) > >> Parameters: {} > >> > >> > >> ActionController::RoutingError (Recognition failed for > >> "/javascripts/prototype.js"): > >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ > >> action_controller/routing.rb:444:in > >> `recognition_failed' > >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ > >> action_controller/routing.rb:434:in > >> `recognize!' > >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb: > >> 32:in `dispatch' > >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: > >> 144:in > >> `process_request' > >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: > >> 64:in > >> `process!' > >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: > >> 55:in > >> `each_cgi' > >> /usr/lib/ruby/1.8/fcgi.rb:597:in `each' > >> /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' > >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: > >> 55:in > >> `process!' > >> /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: > >> 21:in > >> `process!' > >> dispatch.fcgi:24 > >> > >> > >> And indedd when I'm going to the admin interface, it comes without > >> style and javascripts because it doesn't find it apparently. > >> Do I have to change something in routes.rb ? It's the default from > >> Typo 2.5.2 ... > >> > >> Any help will be greatly appreciated ! > >> > >> Thanks, > >> > >> Kris. > >> > >> > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Thu Aug 11 09:58:42 2005 From: scott at sigkill.org (Scott Laird) Date: Thu Aug 11 09:52:38 2005 Subject: [typo] 2.5.3 RSS behind a proxy In-Reply-To: <3f176050811063016545f2d@mail.gmail.com> References: <3f176050811063016545f2d@mail.gmail.com> Message-ID: On Aug 11, 2005, at 6:30 AM, Dick Davies wrote: > I've just jumped to 2.5.3 on TextDrive (apache -> lighty proxy) and > found that > the RSS feed links are pointing to the 'proxied' url i.e. > > links in RSS feeds on http://number9.hellooperator.net point to > http://number9.hellooperator.net:8059 > > This isn't a showstopper as Textdrive don't appear to filter odd > ports, though I guess it would bite anyone with a firewall, or who's > proxying to an internal lighttpd instance on a private LAN. > > Fix I was given on IRC was to patch application.rb Out of curiosity, does ProxyPreserveHost (http://httpd.apache.org/ docs/2.0/mod/mod_proxy.html#proxypreservehost) on the Apache proxy fix this? Scott From scott at sigkill.org Thu Aug 11 10:00:28 2005 From: scott at sigkill.org (Scott Laird) Date: Thu Aug 11 09:54:23 2005 Subject: [typo] /admin default users, how to login? In-Reply-To: References: Message-ID: On Aug 11, 2005, at 6:06 AM, bitrocker wrote: > hi, first of all: i'm new to ruby, new to typo and new to linux :) > anyway: > hi all. nevertheless i managed to install typo on my root server > (even if > it's still running on webrick and not on apache) and now i want to > login in > via /admin ... but i can't the passwords for the default users or a > way to > create new users. help please. thanks: lars There isn't a default user; it should prompt you for a username and password when you access the website. However, there's a minor bug--the auto-signup doesn't work if you try to access /admin directly. So just go to http://my.blog.whatever/ and see if you get redirected to the signup page. Scott From rocknroll at bitrocker.com Thu Aug 11 10:04:45 2005 From: rocknroll at bitrocker.com (bitrocker) Date: Thu Aug 11 09:58:38 2005 Subject: [typo] /admin default users, how to login? In-Reply-To: Message-ID: i just dropped all the tables and ran the mysql.sql again... now, when i call typo i get a sign up and setup page. do know what was wrong before, i had some users like bob in my db. anyway, works now. thanks Am 11.08.2005 16:00 Uhr schrieb "Scott Laird" unter : > > On Aug 11, 2005, at 6:06 AM, bitrocker wrote: >> hi, first of all: i'm new to ruby, new to typo and new to linux :) >> anyway: >> hi all. nevertheless i managed to install typo on my root server >> (even if >> it's still running on webrick and not on apache) and now i want to >> login in >> via /admin ... but i can't the passwords for the default users or a >> way to >> create new users. help please. thanks: lars > > There isn't a default user; it should prompt you for a username and > password when you access the website. > > However, there's a minor bug--the auto-signup doesn't work if you try > to access /admin directly. So just go to http://my.blog.whatever/ > and see if you get redirected to the signup page. > > > Scott > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From rocknroll at bitrocker.com Thu Aug 11 10:43:46 2005 From: rocknroll at bitrocker.com (bitrocker) Date: Thu Aug 11 10:37:42 2005 Subject: [typo] hosting/config on 1und1 (germany) In-Reply-To: Message-ID: anyone on this list has setup typo at 1und1 (german provider/hosting)? i got a rootserver there and still have some problems switching from webrick to apache2. thanks: lars From rasputnik at gmail.com Thu Aug 11 11:01:43 2005 From: rasputnik at gmail.com (Dick Davies) Date: Thu Aug 11 10:55:35 2005 Subject: [typo] 2.5.3 RSS behind a proxy In-Reply-To: References: <3f176050811063016545f2d@mail.gmail.com> Message-ID: <3f176050811080117a01adc@mail.gmail.com> Hmm, good plan... can't get into webmin on davie to check, but that sounds like a fix to me - thanks. On 11/08/05, Scott Laird wrote: > > On Aug 11, 2005, at 6:30 AM, Dick Davies wrote: > > > I've just jumped to 2.5.3 on TextDrive (apache -> lighty proxy) and > > found that > > the RSS feed links are pointing to the 'proxied' url i.e. > > > > links in RSS feeds on http://number9.hellooperator.net point to > > http://number9.hellooperator.net:8059 > > > > This isn't a showstopper as Textdrive don't appear to filter odd > > ports, though I guess it would bite anyone with a firewall, or who's > > proxying to an internal lighttpd instance on a private LAN. > > > > Fix I was given on IRC was to patch application.rb > > Out of curiosity, does ProxyPreserveHost (http://httpd.apache.org/ > docs/2.0/mod/mod_proxy.html#proxypreservehost) on the Apache proxy > fix this? > > > Scott > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From rasputnik at gmail.com Thu Aug 11 11:03:47 2005 From: rasputnik at gmail.com (Dick Davies) Date: Thu Aug 11 10:57:40 2005 Subject: [typo] /admin default users, how to login? In-Reply-To: References: Message-ID: <3f17605081108032d52909a@mail.gmail.com> Sounds like you were somehow using the test db in production mode. Check your database.yml and change it to two different dbs if that's the case, otherwise the next time you run rake you'll be in trouble. On 11/08/05, bitrocker wrote: > i just dropped all the tables and ran the mysql.sql again... now, when > i call typo i get a sign up and setup page. do know what was wrong before, > i had some users like bob in my db. anyway, works now. thanks > > > Am 11.08.2005 16:00 Uhr schrieb "Scott Laird" unter : > > > > > On Aug 11, 2005, at 6:06 AM, bitrocker wrote: > >> hi, first of all: i'm new to ruby, new to typo and new to linux :) > >> anyway: > >> hi all. nevertheless i managed to install typo on my root server > >> (even if > >> it's still running on webrick and not on apache) and now i want to > >> login in > >> via /admin ... but i can't the passwords for the default users or a > >> way to > >> create new users. help please. thanks: lars > > > > There isn't a default user; it should prompt you for a username and > > password when you access the website. > > > > However, there's a minor bug--the auto-signup doesn't work if you try > > to access /admin directly. So just go to http://my.blog.whatever/ > > and see if you get redirected to the signup page. > > > > > > Scott > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From oneapproved at gmail.com Thu Aug 11 23:04:25 2005 From: oneapproved at gmail.com (K-Lai) Date: Thu Aug 11 22:58:19 2005 Subject: [typo] typo 2.5.3 on Dreamhost Message-ID: <66657cce050811200463b8c35a@mail.gmail.com> Hi, I just installed Typo 2.5.3 on a Dreamhost-hosted web domain. I got everything working on WEBrick, but only the home page seems to work from my web browser. If I want to access the admin panel, I need to start the WEBrick server on the remote server (script/server -e production). I've found that posting comments only works when I'm running it from WEBrick too. I'm fairly new to all of this web-development stuff, so if anyone could help me figure this stuff out (as well as what error messages to find) that would be awesome! I don't even know what messages I need to find to help you all diagnose the problem. Thanks, Kevin From typouser at gmail.com Fri Aug 12 03:37:17 2005 From: typouser at gmail.com (Kris Kaido) Date: Fri Aug 12 03:31:09 2005 Subject: [typo] typo 2.5.3 on Dreamhost In-Reply-To: <66657cce050811200463b8c35a@mail.gmail.com> References: <66657cce050811200463b8c35a@mail.gmail.com> Message-ID: <47b62040050812003738c43e6d@mail.gmail.com> I just installed Typo 2.5.3 on Dreamhost a couple of days ago, and here are the basic steps I did : 1. Create your subdomain, e.g. blog.example.com, in the domain settings, specify the path to the "public" directory of your Typo 2.5.3 installation. Enable FastCGI in the domain settings. 2. Be sure to have the correct settings in database.yml 3. Be sure to have your public dir and contents chmoded to 755. 4. Set RAILS_ENV = 'production' instead of the default "RAILS_ENV = ..." line in the config/environment.rb file Everything should run fine. I had problems with 2.5.2 (as you may see here before) but 2.5.3 just run fine for me on DH. To be sure : 1. connect on DH through ssh 2. start a 'tail -f log/production.log' (production.log is created as soon as you first visit your rails app in production mode) and look for errors 3. visit your site 4. on DH host, do a 'ps axf' to see if you have dispatch.fcgi processes running On 8/12/05, K-Lai wrote: > Hi, > > I just installed Typo 2.5.3 on a Dreamhost-hosted web domain. I got > everything working on WEBrick, but only the home page seems to work > from my web browser. If I want to access the admin panel, I need to > start the WEBrick server on the remote server (script/server -e > production). I've found that posting comments only works when I'm > running it from WEBrick too. > > I'm fairly new to all of this web-development stuff, so if anyone > could help me figure this stuff out (as well as what error messages to > find) that would be awesome! I don't even know what messages I need > to find to help you all diagnose the problem. > > Thanks, > Kevin > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From typouser at gmail.com Fri Aug 12 05:09:48 2005 From: typouser at gmail.com (Kris Kaido) Date: Fri Aug 12 05:03:38 2005 Subject: [typo] Tagging Message-ID: <47b62040050812020926affe81@mail.gmail.com> Hi, I see that tagging is supported in Typo 2.5.3, but I don't find anything in the admin panel about tagging and no "Tags" field in the "create article" page. Is there a simple way to achieve that ? Kris From patrick at lenz.sh Fri Aug 12 06:12:59 2005 From: patrick at lenz.sh (Patrick Lenz) Date: Fri Aug 12 06:06:53 2005 Subject: [typo] Tagging In-Reply-To: <47b62040050812020926affe81@mail.gmail.com> References: <47b62040050812020926affe81@mail.gmail.com> Message-ID: <13C64A05-FA6D-45F0-8F75-B1FA1D9D97FD@lenz.sh> Tagging is not present in any released version of typo. It's available from Typo's Trac instance[1] as an experimental patch. [1] http://typo.leetsoft.com/trac/ticket/282 On Aug 12, 2005, at 11:09 AM, Kris Kaido wrote: > Hi, > > I see that tagging is supported in Typo 2.5.3, but I don't find > anything in the admin panel about tagging and no "Tags" field in the > "create article" page. > Is there a simple way to achieve that ? > > Kris > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > -- Patrick Lenz (scoop) http://poocs.net/ # Personal Weblog http://limited-overload.de/ # Web application development http://freshmeat.net/ # Free software archive http://topmedia.de/ # IT Storage Solutions From typouser at gmail.com Fri Aug 12 08:16:39 2005 From: typouser at gmail.com (Kris Kaido) Date: Fri Aug 12 08:10:32 2005 Subject: [typo] Tagging In-Reply-To: <13C64A05-FA6D-45F0-8F75-B1FA1D9D97FD@lenz.sh> References: <47b62040050812020926affe81@mail.gmail.com> <13C64A05-FA6D-45F0-8F75-B1FA1D9D97FD@lenz.sh> Message-ID: <47b6204005081205164b0e0f01@mail.gmail.com> I'm not used to aplpy patches, how can I do that ? On 8/12/05, Patrick Lenz wrote: > Tagging is not present in any released version of typo. It's > available from Typo's Trac instance[1] as an experimental patch. > > [1] http://typo.leetsoft.com/trac/ticket/282 > > On Aug 12, 2005, at 11:09 AM, Kris Kaido wrote: > > > Hi, > > > > I see that tagging is supported in Typo 2.5.3, but I don't find > > anything in the admin panel about tagging and no "Tags" field in the > > "create article" page. > > Is there a simple way to achieve that ? > > > > Kris > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > -- > Patrick Lenz (scoop) > > http://poocs.net/ # Personal Weblog > http://limited-overload.de/ # Web application development > http://freshmeat.net/ # Free software archive > http://topmedia.de/ # IT Storage Solutions > > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Fri Aug 12 09:53:53 2005 From: scott at sigkill.org (Scott Laird) Date: Fri Aug 12 09:47:50 2005 Subject: [typo] Tagging In-Reply-To: <47b6204005081205164b0e0f01@mail.gmail.com> References: <47b62040050812020926affe81@mail.gmail.com> <13C64A05-FA6D-45F0-8F75-B1FA1D9D97FD@lenz.sh> <47b6204005081205164b0e0f01@mail.gmail.com> Message-ID: <585D6102-D0A3-499C-86F1-CD58F1B2D458@sigkill.org> Download the patch from Trac (use the 'original format' button at the bottom of the patch page, or just use this URL: http://typo.leetsoft.com/trac/attachment/ticket/282/tags-1.patch? format=raw Then cd to the top level of your Typo directory and run 'patch -p0 < FILE', where FILE is wherever you put the patch that you downloaded. Hint: you can combine the two steps like this, if your system has 'curl' installed curl http://typo.leetsoft.com/trac/attachment/ticket/282/ tags-1.patch?format=raw | patch -p0 Once the patch has been applied, run 'rake migrate RAILS_ENV=production', then restart all of your fastcgi proceses. If you have any comments on the tag system, leave a comment on bug #282, and I'll see what I can do . Scott On Aug 12, 2005, at 5:16 AM, Kris Kaido wrote: > I'm not used to aplpy patches, how can I do that ? > > On 8/12/05, Patrick Lenz wrote: > >> Tagging is not present in any released version of typo. It's >> available from Typo's Trac instance[1] as an experimental patch. >> >> [1] http://typo.leetsoft.com/trac/ticket/282 >> >> On Aug 12, 2005, at 11:09 AM, Kris Kaido wrote: >> >> >>> Hi, >>> >>> I see that tagging is supported in Typo 2.5.3, but I don't find >>> anything in the admin panel about tagging and no "Tags" field in the >>> "create article" page. >>> Is there a simple way to achieve that ? >>> >>> Kris >>> >>> _______________________________________________ >>> Typo-list mailing list >>> Typo-list@rubyforge.org >>> http://rubyforge.org/mailman/listinfo/typo-list >>> >>> >>> >> >> >> -- >> Patrick Lenz (scoop) >> >> http://poocs.net/ # Personal Weblog >> http://limited-overload.de/ # Web application development >> http://freshmeat.net/ # Free software archive >> http://topmedia.de/ # IT Storage Solutions >> >> >> _______________________________________________ >> Typo-list mailing list >> Typo-list@rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> >> > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From typouser at gmail.com Fri Aug 12 10:34:02 2005 From: typouser at gmail.com (Kris Kaido) Date: Fri Aug 12 10:27:53 2005 Subject: [typo] Tagging In-Reply-To: <585D6102-D0A3-499C-86F1-CD58F1B2D458@sigkill.org> References: <47b62040050812020926affe81@mail.gmail.com> <13C64A05-FA6D-45F0-8F75-B1FA1D9D97FD@lenz.sh> <47b6204005081205164b0e0f01@mail.gmail.com> <585D6102-D0A3-499C-86F1-CD58F1B2D458@sigkill.org> Message-ID: <47b62040050812073427b1e657@mail.gmail.com> Thanks Scott, it works fine. Hope this will be included by default in the next Typo relase ! On 8/12/05, Scott Laird wrote: > Download the patch from Trac (use the 'original format' button at the > bottom of the patch page, or just use this URL: > > http://typo.leetsoft.com/trac/attachment/ticket/282/tags-1.patch? > format=raw > > Then cd to the top level of your Typo directory and run 'patch -p0 < > FILE', where FILE is wherever you put the patch that you downloaded. > > Hint: you can combine the two steps like this, if your system has > 'curl' installed > > curl http://typo.leetsoft.com/trac/attachment/ticket/282/ > tags-1.patch?format=raw | patch -p0 > > Once the patch has been applied, run 'rake migrate > RAILS_ENV=production', then restart all of your fastcgi proceses. If > you have any comments on the tag system, leave a comment on bug #282, > and I'll see what I can do . > > > Scott > > On Aug 12, 2005, at 5:16 AM, Kris Kaido wrote: > > > I'm not used to aplpy patches, how can I do that ? > > > > On 8/12/05, Patrick Lenz wrote: > > > >> Tagging is not present in any released version of typo. It's > >> available from Typo's Trac instance[1] as an experimental patch. > >> > >> [1] http://typo.leetsoft.com/trac/ticket/282 > >> > >> On Aug 12, 2005, at 11:09 AM, Kris Kaido wrote: > >> > >> > >>> Hi, > >>> > >>> I see that tagging is supported in Typo 2.5.3, but I don't find > >>> anything in the admin panel about tagging and no "Tags" field in the > >>> "create article" page. > >>> Is there a simple way to achieve that ? > >>> > >>> Kris > >>> > >>> _______________________________________________ > >>> Typo-list mailing list > >>> Typo-list@rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/typo-list > >>> > >>> > >>> > >> > >> > >> -- > >> Patrick Lenz (scoop) > >> > >> http://poocs.net/ # Personal Weblog > >> http://limited-overload.de/ # Web application development > >> http://freshmeat.net/ # Free software archive > >> http://topmedia.de/ # IT Storage Solutions > >> > >> > >> _______________________________________________ > >> Typo-list mailing list > >> Typo-list@rubyforge.org > >> http://rubyforge.org/mailman/listinfo/typo-list > >> > >> > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Fri Aug 12 10:42:22 2005 From: scott at sigkill.org (Scott Laird) Date: Fri Aug 12 10:36:16 2005 Subject: [typo] Tagging In-Reply-To: <47b62040050812073427b1e657@mail.gmail.com> References: <47b62040050812020926affe81@mail.gmail.com> <13C64A05-FA6D-45F0-8F75-B1FA1D9D97FD@lenz.sh> <47b6204005081205164b0e0f01@mail.gmail.com> <585D6102-D0A3-499C-86F1-CD58F1B2D458@sigkill.org> <47b62040050812073427b1e657@mail.gmail.com> Message-ID: On Aug 12, 2005, at 7:34 AM, Kris Kaido wrote: > Thanks Scott, it works fine. > Hope this will be included by default in the next Typo relase ! This will probably be in the release after 2.5.x, which will probably end up being called 4.0. There's another open-source project called "Typo3", and we want to skip the confusion between Typo3 and Typo 3.0. Scott From ryanabrams at gmail.com Fri Aug 12 10:59:30 2005 From: ryanabrams at gmail.com (Ryan Abrams) Date: Fri Aug 12 10:53:20 2005 Subject: [typo] Tagging In-Reply-To: References: <47b62040050812020926affe81@mail.gmail.com> <13C64A05-FA6D-45F0-8F75-B1FA1D9D97FD@lenz.sh> <47b6204005081205164b0e0f01@mail.gmail.com> <585D6102-D0A3-499C-86F1-CD58F1B2D458@sigkill.org> <47b62040050812073427b1e657@mail.gmail.com> Message-ID: <35211edb0508120759626b33a3@mail.gmail.com> Will they be based on this patch? i.e. will applying this patch deadend us when Typo 4 comes out? Or should those of us anxious for tags go ahead and apply the patch until they go mainline, without worry of heading into a dead end data wise? Thanks, Ryan On 8/12/05, Scott Laird wrote: > > On Aug 12, 2005, at 7:34 AM, Kris Kaido wrote: > > Thanks Scott, it works fine. > > Hope this will be included by default in the next Typo relase ! > > This will probably be in the release after 2.5.x, which will probably > end up being called 4.0. There's another open-source project called > "Typo3", and we want to skip the confusion between Typo3 and Typo 3.0. > > > Scott > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From trejkaz at trypticon.org Fri Aug 12 11:19:34 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Fri Aug 12 11:12:44 2005 Subject: [typo] Tagging In-Reply-To: <47b62040050812073427b1e657@mail.gmail.com> References: <47b62040050812020926affe81@mail.gmail.com> <585D6102-D0A3-499C-86F1-CD58F1B2D458@sigkill.org> <47b62040050812073427b1e657@mail.gmail.com> Message-ID: <200508130119.40777.trejkaz@trypticon.org> On Sat, 13 Aug 2005 00:34, Kris Kaido wrote: > Thanks Scott, it works fine. > Hope this will be included by default in the next Typo relase ! Hmm... another question: are tags going to make categories obsolete? I always considered the two to be more or less the same thing and was planning to treat categories as tags on my site with the existing release. TX -- Email: Trejkaz Xaoza Web site: http://trypticon.org/ Jabber ID: trejkaz@jabber.zim.net.au GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050813/2fe240a2/attachment.bin From scott at sigkill.org Fri Aug 12 11:51:39 2005 From: scott at sigkill.org (Scott Laird) Date: Fri Aug 12 11:45:33 2005 Subject: [typo] Tagging In-Reply-To: <35211edb0508120759626b33a3@mail.gmail.com> References: <47b62040050812020926affe81@mail.gmail.com> <13C64A05-FA6D-45F0-8F75-B1FA1D9D97FD@lenz.sh> <47b6204005081205164b0e0f01@mail.gmail.com> <585D6102-D0A3-499C-86F1-CD58F1B2D458@sigkill.org> <47b62040050812073427b1e657@mail.gmail.com> <35211edb0508120759626b33a3@mail.gmail.com> Message-ID: On Aug 12, 2005, at 7:59 AM, Ryan Abrams wrote: > Will they be based on this patch? i.e. will applying this patch > deadend us when Typo 4 comes out? Or should those of us anxious for > tags go ahead and apply the patch until they go mainline, without > worry of heading into a dead end data wise? I'm planning on commiting this patch sometime next week, unless there are major objections raised. Since everyone *seems* to like this approach to tagging, I think you're pretty safe. Scott From urban at bettong.net Fri Aug 12 12:12:27 2005 From: urban at bettong.net (Urban Hafner) Date: Fri Aug 12 12:06:21 2005 Subject: [typo] 2.5.3 RSS behind a proxy In-Reply-To: References: <3f176050811063016545f2d@mail.gmail.com> Message-ID: <42FCCA6B.4090800@bettong.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Scott Laird wrote: > Out of curiosity, does ProxyPreserveHost (http://httpd.apache.org/ > docs/2.0/mod/mod_proxy.html#proxypreservehost) on the Apache proxy fix > this? Yes, it does! Though you have to remember to restart Typo. Urban -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC/MppggNuVCIrEyURAqpzAKC6n4QKfR7vE9beb69fcPSDpJ7DogCcC9pu jFvmEUzwZvSFp9COKAERETk= =gANT -----END PGP SIGNATURE----- From rasputnik at gmail.com Fri Aug 12 16:53:47 2005 From: rasputnik at gmail.com (Dick Davies) Date: Fri Aug 12 16:47:37 2005 Subject: [typo] 2.5.3 RSS behind a proxy In-Reply-To: References: <3f176050811063016545f2d@mail.gmail.com> Message-ID: <3f176050812135351aa37ee@mail.gmail.com> Cheers Scott. Worked a treat. On 11/08/05, Scott Laird wrote: > > On Aug 11, 2005, at 6:30 AM, Dick Davies wrote: > > > I've just jumped to 2.5.3 on TextDrive (apache -> lighty proxy) and > > found that > > the RSS feed links are pointing to the 'proxied' url i.e. > > > > links in RSS feeds on http://number9.hellooperator.net point to > > http://number9.hellooperator.net:8059 > > > > This isn't a showstopper as Textdrive don't appear to filter odd > > ports, though I guess it would bite anyone with a firewall, or who's > > proxying to an internal lighttpd instance on a private LAN. > > > > Fix I was given on IRC was to patch application.rb > > Out of curiosity, does ProxyPreserveHost (http://httpd.apache.org/ > docs/2.0/mod/mod_proxy.html#proxypreservehost) on the Apache proxy > fix this? > > > Scott > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From david at mytton.net Fri Aug 12 19:05:24 2005 From: david at mytton.net (David Mytton) Date: Fri Aug 12 18:59:18 2005 Subject: [typo] Dispatch failed to catch packets out of order Message-ID: <42FD2B34.3030408@mytton.net> Hi, I have just got Rails installed on my dedicated server - Fedora Linux, cPanel, Apache 1.3.33, MySQL 4.1.13 mod_fastcgi 2.4.2 and latest Rails/Ruby. I have confirmed rails is working by creating a test application, which gives me the "Congratulations, you've put Ruby on Rails!" message. I then when to install Typo but when I access it via my browser, it hangs. The http error log shows: [Sat Aug 13 00:00:41 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/blog/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sat Aug 13 00:00:38 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/blog/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds and so on My dispatch.fcgi file has this in (ignoring the lines with # proceeding them) require File.dirname(__FILE__) + "/../config/environment" require 'rubygems' require_gem 'fcgi' require 'fcgi_handler' RailsFCGIHandler.process! And my .htaccess is: # General Apache options AddHandler fastcgi-script .fcgi AddHandler cgi-script .cgi Options +FollowSymLinks +ExecCGI # Redirect all requests not available on the filesystem to Rails RewriteEngine On # Uncomment this if you're not running Typo in the root of your # webserver's URL space (i.e. http://www.example.com/blog): # RewriteBase /blog/ # try to suggest current rss subscribers that the url moved permently RewriteRule ^xml/([a-z]+)$ /xml/$1/feed.xml [R=301] RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] # In case Rails experiences terminal errors ErrorDocument 500 "

Application Error

Typo could not be reached I tried running public/dispatch.fcgi whilst tailing log/fastcgi.crash.log: [12/Aug/2005:23:55:37 :: 26559] starting [12/Aug/2005:23:55:37 :: 26559] Dispatcher failed to catch: Packets out of order: 1<>3: SHOW FIELDS FROM sessions (ActiveRecord::StatementInvalid) /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:462:in `log' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/mysql_adapter.rb:130:in `execute' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/mysql_adapter.rb:108:in `columns' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:622:in `columns' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:627:in `columns_hash' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:71:in `setup_sessid_compatibility!' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:44:in `find_by_session_id' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:243:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:243:in `silence' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:243:in `initialize' /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `new' /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/cgi_process.rb:94:in `new' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/cgi_process.rb:94:in `session' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:737:in `assign_shortcuts' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:351:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:20:in `process_with_exception' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:34:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `each_cgi' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!' public/dispatch.fcgi:26 [12/Aug/2005:23:55:37 :: 26559] terminated gracefully So I was wondering if anyone can help me with this problem? -- Regards, David Mytton http://www.olate.co.uk From typo at isolated-designs.net Fri Aug 12 22:23:00 2005 From: typo at isolated-designs.net (Justin Palmer) Date: Fri Aug 12 22:17:03 2005 Subject: [typo] Dispatch failed to catch packets out of order In-Reply-To: <42FD2B34.3030408@mytton.net> References: <42FD2B34.3030408@mytton.net> Message-ID: <144D7FDE-B77F-42C5-AFD0-2BBBDB44C6BD@isolated-designs.net> The 'Hey you've put ruby on rails' message doesn't insure that everything is working. Remove the index.html file inside the public directory for your test app and see if you get any errors. -Justin On Aug 12, 2005, at 6:05 PM, David Mytton wrote: > Hi, > > I have just got Rails installed on my dedicated server - Fedora > Linux, cPanel, Apache 1.3.33, MySQL 4.1.13 mod_fastcgi 2.4.2 and > latest Rails/Ruby. > > I have confirmed rails is working by creating a test application, > which gives me the "Congratulations, you've put Ruby on Rails!" > message. I then when to install Typo but when I access it via my > browser, it hangs. The http error log shows: > > [Sat Aug 13 00:00:41 2005] [warn] FastCGI: (dynamic) server "/home/ > notes/public_html/blog/dispatch.fcgi" has failed to remain running > for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sat Aug 13 00:00:38 2005] [warn] FastCGI: (dynamic) server "/home/ > notes/public_html/blog/dispatch.fcgi" has failed to remain running > for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > > and so on > > My dispatch.fcgi file has this in (ignoring the lines with # > proceeding them) > > require File.dirname(__FILE__) + "/../config/environment" > require 'rubygems' > require_gem 'fcgi' > require 'fcgi_handler' > > RailsFCGIHandler.process! > > And my .htaccess is: > > # General Apache options > AddHandler fastcgi-script .fcgi > AddHandler cgi-script .cgi > Options +FollowSymLinks +ExecCGI > > # Redirect all requests not available on the filesystem to Rails > RewriteEngine On > > # Uncomment this if you're not running Typo in the root of your > # webserver's URL space (i.e. http://www.example.com/blog): > # > RewriteBase /blog/ > > # try to suggest current rss subscribers that the url moved permently > RewriteRule ^xml/([a-z]+)$ /xml/$1/feed.xml [R=301] > RewriteRule ^$ index.html [QSA] > RewriteRule ^([^.]+)$ $1.html [QSA] > RewriteCond %{REQUEST_FILENAME} !-f > RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] > > # In case Rails experiences terminal errors > ErrorDocument 500 "

Application Error

Typo could not be reached > > > I tried running > > public/dispatch.fcgi > > whilst tailing log/fastcgi.crash.log: > > [12/Aug/2005:23:55:37 :: 26559] starting > [12/Aug/2005:23:55:37 :: 26559] Dispatcher failed to catch: Packets > out of order: 1<>3: SHOW FIELDS FROM sessions > (ActiveRecord::StatementInvalid) /usr/local/lib/ruby/gems/1.8/gems/ > activerecord-1.11.1/lib/active_record/connection_adapters/ > abstract_adapter.rb:462:in `log' /usr/local/lib/ruby/gems/1.8/gems/ > activerecord-1.11.1/lib/active_record/connection_adapters/ > mysql_adapter.rb:130:in `execute' /usr/local/lib/ruby/gems/1.8/gems/ > activerecord-1.11.1/lib/active_record/connection_adapters/ > mysql_adapter.rb:108:in `columns' /usr/local/lib/ruby/gems/1.8/gems/ > activerecord-1.11.1/lib/active_record/base.rb:622:in `columns' /usr/ > local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/ > base.rb:627:in `columns_hash' /usr/local/lib/ruby/gems/1.8/gems/ > actionpack-1.9.1/lib/action_controller/session/ > active_record_store.rb:71:in `setup_sessid_compatibility!' /usr/ > local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ > session/active_record_store.rb:44:in `find_by_session_id' /usr/ > local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ > session/active_record_store.rb:243:in `initialize' /usr/local/lib/ > ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/ > active_record_store.rb:243:in `silence' /usr/local/lib/ruby/gems/ > 1.8/gems/actionpack-1.9.1/lib/action_controller/session/ > active_record_store.rb:243:in `initialize' > /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `new' > /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `initialize' /usr/ > local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ > cgi_process.rb:94:in `new' /usr/local/lib/ruby/gems/1.8/gems/ > actionpack-1.9.1/lib/action_controller/cgi_process.rb:94:in > `session' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ > action_controller/base.rb:737:in `assign_shortcuts' /usr/local/lib/ > ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb: > 351:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/ > lib/action_controller/rescue.rb:20:in `process_with_exception' > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb: > 34:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/ > fcgi_handler.rb:144:in `process_request' /usr/local/lib/ruby/gems/ > 1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' /usr/ > local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in > `each_cgi' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/ > fcgi_handler.rb:55:in `process!' /usr/local/lib/ruby/gems/1.8/gems/ > rails-0.13.1/lib/fcgi_handler.rb:21:in `process!' > public/dispatch.fcgi:26 > [12/Aug/2005:23:55:37 :: 26559] terminated gracefully > > So I was wondering if anyone can help me with this problem? > -- > Regards, > > David Mytton > http://www.olate.co.uk > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > From typo at isolated-designs.net Fri Aug 12 22:30:48 2005 From: typo at isolated-designs.net (Justin Palmer) Date: Fri Aug 12 22:24:39 2005 Subject: [typo] Tagging In-Reply-To: <200508130119.40777.trejkaz@trypticon.org> References: <47b62040050812020926affe81@mail.gmail.com> <585D6102-D0A3-499C-86F1-CD58F1B2D458@sigkill.org> <47b62040050812073427b1e657@mail.gmail.com> <200508130119.40777.trejkaz@trypticon.org> Message-ID: Tags are not categories. Tags have a greater granularity than categories. Assume you create a post about NetNewsWire inside a 'tech' category. You could tag this as 'netnewswire', 'rss', 'atom', and 'syndicate'. You wouldn't want a category called 'NetNewsWire' would you? -Justin On Aug 12, 2005, at 10:19 AM, Trejkaz wrote: > On Sat, 13 Aug 2005 00:34, Kris Kaido wrote: > >> Thanks Scott, it works fine. >> Hope this will be included by default in the next Typo relase ! >> > > Hmm... another question: are tags going to make categories > obsolete? I always > considered the two to be more or less the same thing and was > planning to > treat categories as tags on my site with the existing release. > > TX > > -- > Email: Trejkaz Xaoza > Web site: http://trypticon.org/ > Jabber ID: trejkaz@jabber.zim.net.au > GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From trejkaz at trypticon.org Fri Aug 12 22:47:17 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Fri Aug 12 22:41:51 2005 Subject: [typo] Tagging In-Reply-To: References: <47b62040050812020926affe81@mail.gmail.com> <200508130119.40777.trejkaz@trypticon.org> Message-ID: <200508131247.20249.trejkaz@trypticon.org> On Sat, 13 Aug 2005 12:30, Justin Palmer wrote: > Tags are not categories. Tags have a greater granularity than > categories. > > Assume you create a post about NetNewsWire inside a 'tech' category. > You could tag this as 'netnewswire', 'rss', 'atom', and > 'syndicate'. You wouldn't want a > category called 'NetNewsWire' would you? If I made enough posts which had this category, I might. Who's to say that when I make this first post about them, I won't be making more of them... enough to warrant creating a new category? If I realise too late, what am I supposed to do? Create the category and then go hunting for all the posts which I need to update to include the category as well? Why bother, when the tag categorises for me already? Semantically, tags and categories appear to be exactly the same thing. The only difference is purely in the UI: tags are created automatically when you type the words into a tags box, and categories have to be created up-front. The UI for tags is definitely preferable, but I see no solid evidence that the two have different *meanings*. TX -- Email: Trejkaz Xaoza Web site: http://trypticon.org/ Jabber ID: trejkaz@jabber.zim.net.au GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050813/eac43d4f/attachment.bin From oneapproved at gmail.com Sat Aug 13 01:34:03 2005 From: oneapproved at gmail.com (K-Lai) Date: Sat Aug 13 01:27:53 2005 Subject: [typo] typo 2.5.3 on Dreamhost Message-ID: <66657cce050812223438b1ae1f@mail.gmail.com> I followed the same steps to install Typo 2.5.3 on Dreamhost. Something is still acting up, because I get an "Application Error Typo could not be reached" when I try to leave a comment on any of the posts on my blog. When I ran 'tail -f log/production.log' on SSH, I didn't see any errors. I got to the following message: Processing ContentController#index (for 68.97.36.242 at Thu Aug 11 21:38:12 PDT 2005) Parameters: {"action"=>"index", "controller"=>"admin/content"} Rendering within layouts/administration Rendering admin/content/list (200 OK) Completed in 0.43355 (2 reqs/sec) | Rendering: 0.35420 (81%) | DB: 0.01566 (3%) [http://www.domain.com/admin/content] which seemed ok. When I ran 'ps axf', I got the following result: PID TTY STAT TIME COMMAND 2324 pts/4 Ss 0:00 -bash 21442 pts/4 R+ 0:00 \_ ps axf 2411 ? S 0:02 ruby dispatch.fcgi 20353 ? S 0:02 ruby dispatch.fcgi 23931 ? S 0:02 ruby dispatch.fcgi 6555 ? S 0:01 ruby dispatch.fcgi 1913 ? S 0:02 ruby dispatch.fcgi 4131 ? S 0:02 ruby dispatch.fcgi 24495 ? S 0:09 ruby dispatch.fcgi 17779 ? S 0:02 \_ ruby dispatch.fcgi 17529 ? S 1:32 \_ ruby dispatch.fcgi 5112 ? S 0:01 /usr/bin/ruby dispatch.fcgi 22325 ? S 0:03 /usr/bin/ruby dispatch.fcgi 5609 ? S 0:10 \_ /usr/bin/ruby dispatch.fcgi 7637 ? SN 5:29 \_ /usr/bin/ruby dispatch.fcgi Do you have any other ideas? The main page for this typo install works just fine - it loads up super fast with the theme set up the way I want it and everything. It just won't let me leave comments (to the point of not even letting me see a comment page), and it won't let me access the admin page (www.domain.com/admin). Thanks! Kevin I just installed Typo 2.5.3 on Dreamhost a couple of days ago, and here are the basic steps I did : 1. Create your subdomain, e.g. blog.example.com, in the domain settings, specify the path to the "public" directory of your Typo 2.5.3 installation. Enable FastCGI in the domain settings. 2. Be sure to have the correct settings in database.yml 3. Be sure to have your public dir and contents chmoded to 755. 4. Set RAILS_ENV = 'production' instead of the default "RAILS_ENV = ..." line in the config/environment.rb file Everything should run fine. I had problems with 2.5.2 (as you may see here before) but 2.5.3 just run fine for me on DH. To be sure : 1. connect on DH through ssh 2. start a 'tail -f log/production.log' (production.log is created as soon as you first visit your rails app in production mode) and look for errors 3. visit your site 4. on DH host, do a 'ps axf' to see if you have dispatch.fcgi processes running On 8/12/05, K-Lai wrote: > Hi, > > I just installed Typo 2.5.3 on a Dreamhost-hosted web domain. I got > everything working on WEBrick, but only the home page seems to work > from my web browser. If I want to access the admin panel, I need to > start the WEBrick server on the remote server (script/server -e > production). I've found that posting comments only works when I'm > running it from WEBrick too. > > I'm fairly new to all of this web-development stuff, so if anyone > could help me figure this stuff out (as well as what error messages to > find) that would be awesome! I don't even know what messages I need > to find to help you all diagnose the problem. > > Thanks, > Kevin > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From kyle.cooney at gmail.com Sat Aug 13 01:37:11 2005 From: kyle.cooney at gmail.com (Kyle Cooney) Date: Sat Aug 13 01:31:01 2005 Subject: [typo] application error (rails) issue, also, lighttpd vs apache Message-ID: <4ecac81705081222374657b962@mail.gmail.com> Hi, all - I know this application error issue has come up multiple times, at least once here on the mailing list, and at least once on the textdrive forums. I'm having an issue where the majority of my typo installing seems to be running fine(both index page, and complete admin section), but where when I attempt to go to individual article pages, there seems to be problem accessing it. This is also apparent in the recent articles sidebar that was given to me through the list. I running the trunk build 478(about a week prior to 2.5.3). It sounds like it's a routing erroring to me somewhere in the controller, but I can't be certain; I'm still new to the whole rails thing. Any ideas? I've modified the pages slightly so that the default index view includes the extended body, so I'm not sure if that's causing a problem(I can't see why it would), or if it's something else. At this point, I've somewhat lost track of which files Typo utilizes to piece together an archive page, maybe that the's the problem. The second issue I have, and of much less importance(I think!), is that I went through the whole configuration process for setting up lighttpd on Textdrive, and when I do the curl command to ensure that I'm running on Lighttpd, it tells me I'm on Apache(!). Is this just a byproduct of being a shared server where the default server is apache? Or did I do something wrong? From the looks of the wiki documentation, I've done something wrong. Thanks, Kyle -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050813/46927cbe/attachment.htm From jason at jasonhoffman.org Sat Aug 13 01:59:55 2005 From: jason at jasonhoffman.org (Jason Hoffman) Date: Sat Aug 13 01:53:40 2005 Subject: [typo] application error (rails) issue, also, lighttpd vs apache In-Reply-To: <4ecac81705081222374657b962@mail.gmail.com> References: <4ecac81705081222374657b962@mail.gmail.com> Message-ID: <54F2D4D4-0E85-4593-BF5E-17612DAF77A1@jasonhoffman.org> On Aug 12, 2005, at 10:37 PM, Kyle Cooney wrote: > The second issue I have, and of much less importance(I think!), is > that I went through the whole configuration process for setting up > lighttpd on Textdrive, and when I do the curl command to ensure > that I'm running on Lighttpd, it tells me I'm on Apache(!). You should see both. - Jason From david at mytton.net Sat Aug 13 04:53:15 2005 From: david at mytton.net (David Mytton) Date: Sat Aug 13 04:47:14 2005 Subject: [typo] Dispatch failed to catch packets out of order In-Reply-To: <144D7FDE-B77F-42C5-AFD0-2BBBDB44C6BD@isolated-designs.net> References: <42FD2B34.3030408@mytton.net> <144D7FDE-B77F-42C5-AFD0-2BBBDB44C6BD@isolated-designs.net> Message-ID: <42FDB4FB.2080709@mytton.net> Indeed. I get the same problem as with Typo - just hangs. In the http error log I get: [Sat Aug 13 09:52:49 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sat Aug 13 09:51:44 2005] [warn] FastCGI: (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Sat Aug 13 09:51:44 2005] [error] [client 212.159.106.74] FastCGI: incomplete headers (0 bytes) received from server "/home/notes/public_html/rails/dispatch.fcgi" [Sat Aug 13 09:51:44 2005] [error] [client 212.159.106.74] FastCGI: comm with (dynamic) server "/home/notes/public_html/rails/dispatch.fcgi" aborted: (first read) idle timeout (30 sec) Regards, David Mytton http://www.olate.co.uk Justin Palmer wrote: > The 'Hey you've put ruby on rails' message doesn't insure that > everything is working. Remove the index.html file inside the public > directory for your > test app and see if you get any errors. > > -Justin > > On Aug 12, 2005, at 6:05 PM, David Mytton wrote: > >> Hi, >> >> I have just got Rails installed on my dedicated server - Fedora >> Linux, cPanel, Apache 1.3.33, MySQL 4.1.13 mod_fastcgi 2.4.2 and >> latest Rails/Ruby. >> >> I have confirmed rails is working by creating a test application, >> which gives me the "Congratulations, you've put Ruby on Rails!" >> message. I then when to install Typo but when I access it via my >> browser, it hangs. The http error log shows: >> >> [Sat Aug 13 00:00:41 2005] [warn] FastCGI: (dynamic) server "/home/ >> notes/public_html/blog/dispatch.fcgi" has failed to remain running >> for 30 seconds given 3 attempts, its restart interval has been backed >> off to 600 seconds >> [Sat Aug 13 00:00:38 2005] [warn] FastCGI: (dynamic) server "/home/ >> notes/public_html/blog/dispatch.fcgi" has failed to remain running >> for 30 seconds given 3 attempts, its restart interval has been backed >> off to 600 seconds >> >> and so on >> >> My dispatch.fcgi file has this in (ignoring the lines with # >> proceeding them) >> >> require File.dirname(__FILE__) + "/../config/environment" >> require 'rubygems' >> require_gem 'fcgi' >> require 'fcgi_handler' >> >> RailsFCGIHandler.process! >> >> And my .htaccess is: >> >> # General Apache options >> AddHandler fastcgi-script .fcgi >> AddHandler cgi-script .cgi >> Options +FollowSymLinks +ExecCGI >> >> # Redirect all requests not available on the filesystem to Rails >> RewriteEngine On >> >> # Uncomment this if you're not running Typo in the root of your >> # webserver's URL space (i.e. http://www.example.com/blog): >> # >> RewriteBase /blog/ >> >> # try to suggest current rss subscribers that the url moved permently >> RewriteRule ^xml/([a-z]+)$ /xml/$1/feed.xml [R=301] >> RewriteRule ^$ index.html [QSA] >> RewriteRule ^([^.]+)$ $1.html [QSA] >> RewriteCond %{REQUEST_FILENAME} !-f >> RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] >> >> # In case Rails experiences terminal errors >> ErrorDocument 500 "

Application Error

Typo could not be reached >> >> >> I tried running >> >> public/dispatch.fcgi >> >> whilst tailing log/fastcgi.crash.log: >> >> [12/Aug/2005:23:55:37 :: 26559] starting >> [12/Aug/2005:23:55:37 :: 26559] Dispatcher failed to catch: Packets >> out of order: 1<>3: SHOW FIELDS FROM sessions >> (ActiveRecord::StatementInvalid) /usr/local/lib/ruby/gems/1.8/gems/ >> activerecord-1.11.1/lib/active_record/connection_adapters/ >> abstract_adapter.rb:462:in `log' /usr/local/lib/ruby/gems/1.8/gems/ >> activerecord-1.11.1/lib/active_record/connection_adapters/ >> mysql_adapter.rb:130:in `execute' /usr/local/lib/ruby/gems/1.8/gems/ >> activerecord-1.11.1/lib/active_record/connection_adapters/ >> mysql_adapter.rb:108:in `columns' /usr/local/lib/ruby/gems/1.8/gems/ >> activerecord-1.11.1/lib/active_record/base.rb:622:in `columns' /usr/ >> local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/ >> base.rb:627:in `columns_hash' /usr/local/lib/ruby/gems/1.8/gems/ >> actionpack-1.9.1/lib/action_controller/session/ >> active_record_store.rb:71:in `setup_sessid_compatibility!' /usr/ >> local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ >> session/active_record_store.rb:44:in `find_by_session_id' /usr/ >> local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ >> session/active_record_store.rb:243:in `initialize' /usr/local/lib/ >> ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/ >> active_record_store.rb:243:in `silence' /usr/local/lib/ruby/gems/ >> 1.8/gems/actionpack-1.9.1/lib/action_controller/session/ >> active_record_store.rb:243:in `initialize' >> /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `new' >> /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `initialize' /usr/ >> local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ >> cgi_process.rb:94:in `new' /usr/local/lib/ruby/gems/1.8/gems/ >> actionpack-1.9.1/lib/action_controller/cgi_process.rb:94:in `session' >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ >> action_controller/base.rb:737:in `assign_shortcuts' /usr/local/lib/ >> ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb: >> 351:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/ >> lib/action_controller/rescue.rb:20:in `process_with_exception' >> >> /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb: >> 34:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/ >> fcgi_handler.rb:144:in `process_request' /usr/local/lib/ruby/gems/ >> 1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' /usr/ >> local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in >> `each_cgi' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/ >> fcgi_handler.rb:55:in `process!' /usr/local/lib/ruby/gems/1.8/gems/ >> rails-0.13.1/lib/fcgi_handler.rb:21:in `process!' >> public/dispatch.fcgi:26 >> [12/Aug/2005:23:55:37 :: 26559] terminated gracefully >> >> So I was wondering if anyone can help me with this problem? >> -- >> Regards, >> >> David Mytton >> http://www.olate.co.uk >> _______________________________________________ >> Typo-list mailing list >> Typo-list@rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> >> >> > From patrick at lenz.sh Sat Aug 13 05:11:01 2005 From: patrick at lenz.sh (Patrick Lenz) Date: Sat Aug 13 05:04:54 2005 Subject: [typo] Dispatch failed to catch packets out of order In-Reply-To: <42FDB4FB.2080709@mytton.net> References: <42FD2B34.3030408@mytton.net> <144D7FDE-B77F-42C5-AFD0-2BBBDB44C6BD@isolated-designs.net> <42FDB4FB.2080709@mytton.net> Message-ID: Anything in log/fastcgi.crash.log in your Rails app directory? Are the database settings correct for whatever mode you're in (development/production)? On 13.08.2005, at 10:53, David Mytton wrote: > Indeed. I get the same problem as with Typo - just hangs. In the > http error log I get: > > [Sat Aug 13 09:52:49 2005] [warn] FastCGI: (dynamic) server "/home/ > notes/public_html/rails/dispatch.fcgi" has failed to remain running > for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sat Aug 13 09:51:44 2005] [warn] FastCGI: (dynamic) server "/home/ > notes/public_html/rails/dispatch.fcgi" has failed to remain running > for 30 seconds given 3 attempts, its restart interval has been > backed off to 600 seconds > [Sat Aug 13 09:51:44 2005] [error] [client 212.159.106.74] FastCGI: > incomplete headers (0 bytes) received from server "/home/notes/ > public_html/rails/dispatch.fcgi" > [Sat Aug 13 09:51:44 2005] [error] [client 212.159.106.74] FastCGI: > comm with (dynamic) server "/home/notes/public_html/rails/ > dispatch.fcgi" aborted: (first read) idle timeout (30 sec) > > > Regards, > > David Mytton > http://www.olate.co.uk > > > > Justin Palmer wrote: > >> The 'Hey you've put ruby on rails' message doesn't insure that >> everything is working. Remove the index.html file inside the >> public directory for your >> test app and see if you get any errors. >> -Justin >> On Aug 12, 2005, at 6:05 PM, David Mytton wrote: >> >>> Hi, >>> >>> I have just got Rails installed on my dedicated server - Fedora >>> Linux, cPanel, Apache 1.3.33, MySQL 4.1.13 mod_fastcgi 2.4.2 and >>> latest Rails/Ruby. >>> >>> I have confirmed rails is working by creating a test >>> application, which gives me the "Congratulations, you've put >>> Ruby on Rails!" message. I then when to install Typo but when I >>> access it via my browser, it hangs. The http error log shows: >>> >>> [Sat Aug 13 00:00:41 2005] [warn] FastCGI: (dynamic) server "/ >>> home/ notes/public_html/blog/dispatch.fcgi" has failed to remain >>> running for 30 seconds given 3 attempts, its restart interval >>> has been backed off to 600 seconds >>> [Sat Aug 13 00:00:38 2005] [warn] FastCGI: (dynamic) server "/ >>> home/ notes/public_html/blog/dispatch.fcgi" has failed to remain >>> running for 30 seconds given 3 attempts, its restart interval >>> has been backed off to 600 seconds >>> >>> and so on >>> >>> My dispatch.fcgi file has this in (ignoring the lines with # >>> proceeding them) >>> >>> require File.dirname(__FILE__) + "/../config/environment" >>> require 'rubygems' >>> require_gem 'fcgi' >>> require 'fcgi_handler' >>> >>> RailsFCGIHandler.process! >>> >>> And my .htaccess is: >>> >>> # General Apache options >>> AddHandler fastcgi-script .fcgi >>> AddHandler cgi-script .cgi >>> Options +FollowSymLinks +ExecCGI >>> >>> # Redirect all requests not available on the filesystem to Rails >>> RewriteEngine On >>> >>> # Uncomment this if you're not running Typo in the root of your >>> # webserver's URL space (i.e. http://www.example.com/blog): >>> # >>> RewriteBase /blog/ >>> >>> # try to suggest current rss subscribers that the url moved >>> permently >>> RewriteRule ^xml/([a-z]+)$ /xml/$1/feed.xml [R=301] >>> RewriteRule ^$ index.html [QSA] >>> RewriteRule ^([^.]+)$ $1.html [QSA] >>> RewriteCond %{REQUEST_FILENAME} !-f >>> RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] >>> >>> # In case Rails experiences terminal errors >>> ErrorDocument 500 "

Application Error

Typo could not be >>> reached >>> >>> >>> I tried running >>> >>> public/dispatch.fcgi >>> >>> whilst tailing log/fastcgi.crash.log: >>> >>> [12/Aug/2005:23:55:37 :: 26559] starting >>> [12/Aug/2005:23:55:37 :: 26559] Dispatcher failed to catch: >>> Packets out of order: 1<>3: SHOW FIELDS FROM sessions >>> (ActiveRecord::StatementInvalid) /usr/local/lib/ruby/gems/1.8/ >>> gems/ activerecord-1.11.1/lib/active_record/connection_adapters/ >>> abstract_adapter.rb:462:in `log' /usr/local/lib/ruby/gems/1.8/ >>> gems/ activerecord-1.11.1/lib/active_record/connection_adapters/ >>> mysql_adapter.rb:130:in `execute' /usr/local/lib/ruby/gems/1.8/ >>> gems/ activerecord-1.11.1/lib/active_record/connection_adapters/ >>> mysql_adapter.rb:108:in `columns' /usr/local/lib/ruby/gems/1.8/ >>> gems/ activerecord-1.11.1/lib/active_record/base.rb:622:in >>> `columns' /usr/ local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/ >>> lib/active_record/ base.rb:627:in `columns_hash' /usr/local/lib/ >>> ruby/gems/1.8/gems/ actionpack-1.9.1/lib/action_controller/ >>> session/ active_record_store.rb:71:in >>> `setup_sessid_compatibility!' /usr/ local/lib/ruby/gems/1.8/gems/ >>> actionpack-1.9.1/lib/action_controller/ session/ >>> active_record_store.rb:44:in `find_by_session_id' /usr/ local/lib/ >>> ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ >>> session/active_record_store.rb:243:in `initialize' /usr/local/ >>> lib/ ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ >>> session/ active_record_store.rb:243:in `silence' /usr/local/lib/ >>> ruby/gems/ 1.8/gems/actionpack-1.9.1/lib/action_controller/ >>> session/ active_record_store.rb:243:in `initialize' >>> /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `new' >>> /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `initialize' / >>> usr/ local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ >>> action_controller/ cgi_process.rb:94:in `new' /usr/local/lib/ruby/ >>> gems/1.8/gems/ actionpack-1.9.1/lib/action_controller/ >>> cgi_process.rb:94:in `session' /usr/local/lib/ruby/gems/1.8/gems/ >>> actionpack-1.9.1/lib/ action_controller/base.rb:737:in >>> `assign_shortcuts' /usr/local/lib/ ruby/gems/1.8/gems/ >>> actionpack-1.9.1/lib/action_controller/base.rb: 351:in `process' / >>> usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/ lib/ >>> action_controller/rescue.rb:20:in `process_with_exception' >>> >>> /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb: >>> 34:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/ >>> lib/ fcgi_handler.rb:144:in `process_request' /usr/local/lib/ruby/ >>> gems/ 1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' / >>> usr/ local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/ >>> fcgi_handler.rb:55:in `each_cgi' /usr/local/lib/ruby/gems/1.8/ >>> gems/rails-0.13.1/lib/ fcgi_handler.rb:55:in `process!' /usr/ >>> local/lib/ruby/gems/1.8/gems/ rails-0.13.1/lib/fcgi_handler.rb: >>> 21:in `process!' >>> public/dispatch.fcgi:26 >>> [12/Aug/2005:23:55:37 :: 26559] terminated gracefully >>> >>> So I was wondering if anyone can help me with this problem? >>> -- >>> Regards, >>> >>> David Mytton >>> http://www.olate.co.uk >>> _______________________________________________ >>> Typo-list mailing list >>> Typo-list@rubyforge.org >>> http://rubyforge.org/mailman/listinfo/typo-list >>> >>> >>> >>> > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > -- Patrick Lenz (scoop) http://poocs.net/ # Personal Weblog http://limited-overload.de/ # Web application development http://freshmeat.net/ # Free software archive http://topmedia.de/ # IT Storage Solutions From david at mytton.net Sat Aug 13 05:16:52 2005 From: david at mytton.net (David Mytton) Date: Sat Aug 13 05:10:45 2005 Subject: [typo] Dispatch failed to catch packets out of order In-Reply-To: References: <42FD2B34.3030408@mytton.net> <144D7FDE-B77F-42C5-AFD0-2BBBDB44C6BD@isolated-designs.net> <42FDB4FB.2080709@mytton.net> Message-ID: <42FDBA84.3010604@mytton.net> Hi, There is no log/fastcgi.crash.log file: root@server1 [/home/notes/testapp]# ls log ./ ../ development.log* production.log* server.log* test.log* The database.yml file was set to default because I'm not using a database. But I have changed the production values to the correct ones. I assume that it runs in production by default? Now that I updated the database details, I get in my browser: Bad Request Your browser sent a request that this server could not understand. And only this in my http log: [Sat Aug 13 10:16:16 2005] [error] [client 212.159.106.74] File does not exist: /home/notes/public_html/404.shtml [Sat Aug 13 10:16:16 2005] [error] [client 212.159.106.74] File does not exist: /home/notes/public_html/favicon.ico [Sat Aug 13 10:16:16 2005] [error] [client 212.159.106.74] File does not exist: /home/notes/public_html/400.shtml Regards, David Mytton http://www.olate.co.uk Patrick Lenz wrote: > Anything in log/fastcgi.crash.log in your Rails app directory? Are the > database settings correct for whatever mode you're in > (development/production)? > > On 13.08.2005, at 10:53, David Mytton wrote: > >> Indeed. I get the same problem as with Typo - just hangs. In the http >> error log I get: >> >> [Sat Aug 13 09:52:49 2005] [warn] FastCGI: (dynamic) server "/home/ >> notes/public_html/rails/dispatch.fcgi" has failed to remain running >> for 30 seconds given 3 attempts, its restart interval has been backed >> off to 600 seconds >> [Sat Aug 13 09:51:44 2005] [warn] FastCGI: (dynamic) server "/home/ >> notes/public_html/rails/dispatch.fcgi" has failed to remain running >> for 30 seconds given 3 attempts, its restart interval has been backed >> off to 600 seconds >> [Sat Aug 13 09:51:44 2005] [error] [client 212.159.106.74] FastCGI: >> incomplete headers (0 bytes) received from server "/home/notes/ >> public_html/rails/dispatch.fcgi" >> [Sat Aug 13 09:51:44 2005] [error] [client 212.159.106.74] FastCGI: >> comm with (dynamic) server "/home/notes/public_html/rails/ >> dispatch.fcgi" aborted: (first read) idle timeout (30 sec) >> >> >> Regards, >> >> David Mytton >> http://www.olate.co.uk >> >> >> >> Justin Palmer wrote: >> >>> The 'Hey you've put ruby on rails' message doesn't insure that >>> everything is working. Remove the index.html file inside the >>> public directory for your >>> test app and see if you get any errors. >>> -Justin >>> On Aug 12, 2005, at 6:05 PM, David Mytton wrote: >>> >>>> Hi, >>>> >>>> I have just got Rails installed on my dedicated server - Fedora >>>> Linux, cPanel, Apache 1.3.33, MySQL 4.1.13 mod_fastcgi 2.4.2 and >>>> latest Rails/Ruby. >>>> >>>> I have confirmed rails is working by creating a test application, >>>> which gives me the "Congratulations, you've put Ruby on Rails!" >>>> message. I then when to install Typo but when I access it via my >>>> browser, it hangs. The http error log shows: >>>> >>>> [Sat Aug 13 00:00:41 2005] [warn] FastCGI: (dynamic) server "/ home/ >>>> notes/public_html/blog/dispatch.fcgi" has failed to remain running >>>> for 30 seconds given 3 attempts, its restart interval has been >>>> backed off to 600 seconds >>>> [Sat Aug 13 00:00:38 2005] [warn] FastCGI: (dynamic) server "/ home/ >>>> notes/public_html/blog/dispatch.fcgi" has failed to remain running >>>> for 30 seconds given 3 attempts, its restart interval has been >>>> backed off to 600 seconds >>>> >>>> and so on >>>> >>>> My dispatch.fcgi file has this in (ignoring the lines with # >>>> proceeding them) >>>> >>>> require File.dirname(__FILE__) + "/../config/environment" >>>> require 'rubygems' >>>> require_gem 'fcgi' >>>> require 'fcgi_handler' >>>> >>>> RailsFCGIHandler.process! >>>> >>>> And my .htaccess is: >>>> >>>> # General Apache options >>>> AddHandler fastcgi-script .fcgi >>>> AddHandler cgi-script .cgi >>>> Options +FollowSymLinks +ExecCGI >>>> >>>> # Redirect all requests not available on the filesystem to Rails >>>> RewriteEngine On >>>> >>>> # Uncomment this if you're not running Typo in the root of your >>>> # webserver's URL space (i.e. http://www.example.com/blog): >>>> # >>>> RewriteBase /blog/ >>>> >>>> # try to suggest current rss subscribers that the url moved permently >>>> RewriteRule ^xml/([a-z]+)$ /xml/$1/feed.xml [R=301] >>>> RewriteRule ^$ index.html [QSA] >>>> RewriteRule ^([^.]+)$ $1.html [QSA] >>>> RewriteCond %{REQUEST_FILENAME} !-f >>>> RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] >>>> >>>> # In case Rails experiences terminal errors >>>> ErrorDocument 500 "

Application Error

Typo could not be reached >>>> >>>> >>>> I tried running >>>> >>>> public/dispatch.fcgi >>>> >>>> whilst tailing log/fastcgi.crash.log: >>>> >>>> [12/Aug/2005:23:55:37 :: 26559] starting >>>> [12/Aug/2005:23:55:37 :: 26559] Dispatcher failed to catch: >>>> Packets out of order: 1<>3: SHOW FIELDS FROM sessions >>>> (ActiveRecord::StatementInvalid) /usr/local/lib/ruby/gems/1.8/ gems/ >>>> activerecord-1.11.1/lib/active_record/connection_adapters/ >>>> abstract_adapter.rb:462:in `log' /usr/local/lib/ruby/gems/1.8/ gems/ >>>> activerecord-1.11.1/lib/active_record/connection_adapters/ >>>> mysql_adapter.rb:130:in `execute' /usr/local/lib/ruby/gems/1.8/ >>>> gems/ activerecord-1.11.1/lib/active_record/connection_adapters/ >>>> mysql_adapter.rb:108:in `columns' /usr/local/lib/ruby/gems/1.8/ >>>> gems/ activerecord-1.11.1/lib/active_record/base.rb:622:in >>>> `columns' /usr/ local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/ >>>> lib/active_record/ base.rb:627:in `columns_hash' /usr/local/lib/ >>>> ruby/gems/1.8/gems/ actionpack-1.9.1/lib/action_controller/ session/ >>>> active_record_store.rb:71:in `setup_sessid_compatibility!' /usr/ >>>> local/lib/ruby/gems/1.8/gems/ >>>> actionpack-1.9.1/lib/action_controller/ session/ >>>> active_record_store.rb:44:in `find_by_session_id' /usr/ local/lib/ >>>> ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ >>>> session/active_record_store.rb:243:in `initialize' /usr/local/ lib/ >>>> ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ session/ >>>> active_record_store.rb:243:in `silence' /usr/local/lib/ ruby/gems/ >>>> 1.8/gems/actionpack-1.9.1/lib/action_controller/ session/ >>>> active_record_store.rb:243:in `initialize' >>>> /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `new' >>>> /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `initialize' / usr/ >>>> local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ >>>> action_controller/ cgi_process.rb:94:in `new' /usr/local/lib/ruby/ >>>> gems/1.8/gems/ actionpack-1.9.1/lib/action_controller/ >>>> cgi_process.rb:94:in `session' /usr/local/lib/ruby/gems/1.8/gems/ >>>> actionpack-1.9.1/lib/ action_controller/base.rb:737:in >>>> `assign_shortcuts' /usr/local/lib/ ruby/gems/1.8/gems/ >>>> actionpack-1.9.1/lib/action_controller/base.rb: 351:in `process' / >>>> usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/ lib/ >>>> action_controller/rescue.rb:20:in `process_with_exception' >>>> >>>> /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb: >>>> 34:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/ >>>> lib/ fcgi_handler.rb:144:in `process_request' /usr/local/lib/ruby/ >>>> gems/ 1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' / >>>> usr/ local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/ >>>> fcgi_handler.rb:55:in `each_cgi' /usr/local/lib/ruby/gems/1.8/ >>>> gems/rails-0.13.1/lib/ fcgi_handler.rb:55:in `process!' /usr/ >>>> local/lib/ruby/gems/1.8/gems/ rails-0.13.1/lib/fcgi_handler.rb: >>>> 21:in `process!' >>>> public/dispatch.fcgi:26 >>>> [12/Aug/2005:23:55:37 :: 26559] terminated gracefully >>>> >>>> So I was wondering if anyone can help me with this problem? >>>> -- >>>> Regards, >>>> >>>> David Mytton >>>> http://www.olate.co.uk >>>> _______________________________________________ >>>> Typo-list mailing list >>>> Typo-list@rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/typo-list >>>> >>>> >>>> >>>> >> _______________________________________________ >> Typo-list mailing list >> Typo-list@rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> >> > > From ryanabrams at gmail.com Sat Aug 13 09:50:47 2005 From: ryanabrams at gmail.com (Ryan Abrams) Date: Sat Aug 13 09:44:40 2005 Subject: [typo] Tagging In-Reply-To: References: <47b62040050812020926affe81@mail.gmail.com> <13C64A05-FA6D-45F0-8F75-B1FA1D9D97FD@lenz.sh> <47b6204005081205164b0e0f01@mail.gmail.com> <585D6102-D0A3-499C-86F1-CD58F1B2D458@sigkill.org> <47b62040050812073427b1e657@mail.gmail.com> <35211edb0508120759626b33a3@mail.gmail.com> Message-ID: <7712CB20-DB57-49FF-B77D-16C94978AB87@gmail.com> Hmm.. I pulled the latest trunk, and applied the patch for tags, following your instructions from earlier. I'm finding some weirdness. I see the "tags" sidebar and the keywords field. It is saving keywords with the articles as i enter them. But having created two test articles with several tags each, I still have an empty articles_tags and tags tables. As such, the cloud doesn't show up. Any ideas? I also don't have the "tags: " in my article template (but i may need to manually add that) -R On Aug 12, 2005, at 10:51 AM, Scott Laird wrote: > > On Aug 12, 2005, at 7:59 AM, Ryan Abrams wrote: > >> Will they be based on this patch? i.e. will applying this patch >> deadend us when Typo 4 comes out? Or should those of us anxious for >> tags go ahead and apply the patch until they go mainline, without >> worry of heading into a dead end data wise? >> > > I'm planning on commiting this patch sometime next week, unless > there are major objections raised. Since everyone *seems* to like > this approach to tagging, I think you're pretty safe. > > > Scott > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Sat Aug 13 11:25:08 2005 From: scott at sigkill.org (Scott Laird) Date: Sat Aug 13 11:19:05 2005 Subject: [typo] Tagging In-Reply-To: <7712CB20-DB57-49FF-B77D-16C94978AB87@gmail.com> References: <47b62040050812020926affe81@mail.gmail.com> <13C64A05-FA6D-45F0-8F75-B1FA1D9D97FD@lenz.sh> <47b6204005081205164b0e0f01@mail.gmail.com> <585D6102-D0A3-499C-86F1-CD58F1B2D458@sigkill.org> <47b62040050812073427b1e657@mail.gmail.com> <35211edb0508120759626b33a3@mail.gmail.com> <7712CB20-DB57-49FF-B77D-16C94978AB87@gmail.com> Message-ID: On Aug 13, 2005, at 6:50 AM, Ryan Abrams wrote: > Hmm.. > > I pulled the latest trunk, and applied the patch for tags, > following your instructions from earlier. I'm finding some weirdness. > > I see the "tags" sidebar and the keywords field. It is saving > keywords with the articles as i enter them. But having created two > test articles with several tags each, I still have an empty > articles_tags and tags tables. As such, the cloud doesn't show up. > > Any ideas? > > I also don't have the "tags: " in my article template (but i may > need to manually add that) The code that displays the entire tags/categories/comments/trackbacks line is in article_helper, not views/. I just updated the tags patch to 2.5.3; that might help you a bit. I just ran a quick sanity-check, and editing the keywords field in the article editing page absolutely adds new tags to the article itself. Can you try applying the new patch and giving things another go? Scott From scott at sigkill.org Sat Aug 13 11:27:12 2005 From: scott at sigkill.org (Scott Laird) Date: Sat Aug 13 11:21:06 2005 Subject: [typo] Dispatch failed to catch packets out of order In-Reply-To: <42FDBA84.3010604@mytton.net> References: <42FD2B34.3030408@mytton.net> <144D7FDE-B77F-42C5-AFD0-2BBBDB44C6BD@isolated-designs.net> <42FDB4FB.2080709@mytton.net> <42FDBA84.3010604@mytton.net> Message-ID: <70E55DFE-DB81-4B31-A431-457E74994681@sigkill.org> Is production.log growing? Is there anything useful in there? Typo (and all Rails apps, really) runs in *development* mode by default. You have to explicitly ask for production mode. Scott On Aug 13, 2005, at 2:16 AM, David Mytton wrote: > Hi, > > There is no log/fastcgi.crash.log file: > > root@server1 [/home/notes/testapp]# ls log > ./ ../ development.log* production.log* server.log* test.log* > > The database.yml file was set to default because I'm not using a > database. But I have changed the production values to the correct > ones. I assume that it runs in production by default? > > Now that I updated the database details, I get in my browser: > > Bad Request > Your browser sent a request that this server could not understand. > > And only this in my http log: > > [Sat Aug 13 10:16:16 2005] [error] [client 212.159.106.74] File > does not exist: /home/notes/public_html/404.shtml > [Sat Aug 13 10:16:16 2005] [error] [client 212.159.106.74] File > does not exist: /home/notes/public_html/favicon.ico > [Sat Aug 13 10:16:16 2005] [error] [client 212.159.106.74] File > does not exist: /home/notes/public_html/400.shtml > > Regards, > > David Mytton > http://www.olate.co.uk > > > > Patrick Lenz wrote: > >> Anything in log/fastcgi.crash.log in your Rails app directory? >> Are the database settings correct for whatever mode you're in >> (development/production)? >> On 13.08.2005, at 10:53, David Mytton wrote: >> >>> Indeed. I get the same problem as with Typo - just hangs. In the >>> http error log I get: >>> >>> [Sat Aug 13 09:52:49 2005] [warn] FastCGI: (dynamic) server "/ >>> home/ notes/public_html/rails/dispatch.fcgi" has failed to remain >>> running for 30 seconds given 3 attempts, its restart interval >>> has been backed off to 600 seconds >>> [Sat Aug 13 09:51:44 2005] [warn] FastCGI: (dynamic) server "/ >>> home/ notes/public_html/rails/dispatch.fcgi" has failed to remain >>> running for 30 seconds given 3 attempts, its restart interval >>> has been backed off to 600 seconds >>> [Sat Aug 13 09:51:44 2005] [error] [client 212.159.106.74] >>> FastCGI: incomplete headers (0 bytes) received from server "/ >>> home/notes/ public_html/rails/dispatch.fcgi" >>> [Sat Aug 13 09:51:44 2005] [error] [client 212.159.106.74] >>> FastCGI: comm with (dynamic) server "/home/notes/public_html/ >>> rails/ dispatch.fcgi" aborted: (first read) idle timeout (30 sec) >>> >>> >>> Regards, >>> >>> David Mytton >>> http://www.olate.co.uk >>> >>> >>> >>> Justin Palmer wrote: >>> >>> >>>> The 'Hey you've put ruby on rails' message doesn't insure that >>>> everything is working. Remove the index.html file inside the >>>> public directory for your >>>> test app and see if you get any errors. >>>> -Justin >>>> On Aug 12, 2005, at 6:05 PM, David Mytton wrote: >>>> >>>> >>>>> Hi, >>>>> >>>>> I have just got Rails installed on my dedicated server - >>>>> Fedora Linux, cPanel, Apache 1.3.33, MySQL 4.1.13 mod_fastcgi >>>>> 2.4.2 and latest Rails/Ruby. >>>>> >>>>> I have confirmed rails is working by creating a test >>>>> application, which gives me the "Congratulations, you've put >>>>> Ruby on Rails!" message. I then when to install Typo but when >>>>> I access it via my browser, it hangs. The http error log shows: >>>>> >>>>> [Sat Aug 13 00:00:41 2005] [warn] FastCGI: (dynamic) server "/ >>>>> home/ notes/public_html/blog/dispatch.fcgi" has failed to >>>>> remain running for 30 seconds given 3 attempts, its restart >>>>> interval has been backed off to 600 seconds >>>>> [Sat Aug 13 00:00:38 2005] [warn] FastCGI: (dynamic) server "/ >>>>> home/ notes/public_html/blog/dispatch.fcgi" has failed to >>>>> remain running for 30 seconds given 3 attempts, its restart >>>>> interval has been backed off to 600 seconds >>>>> >>>>> and so on >>>>> >>>>> My dispatch.fcgi file has this in (ignoring the lines with # >>>>> proceeding them) >>>>> >>>>> require File.dirname(__FILE__) + "/../config/environment" >>>>> require 'rubygems' >>>>> require_gem 'fcgi' >>>>> require 'fcgi_handler' >>>>> >>>>> RailsFCGIHandler.process! >>>>> >>>>> And my .htaccess is: >>>>> >>>>> # General Apache options >>>>> AddHandler fastcgi-script .fcgi >>>>> AddHandler cgi-script .cgi >>>>> Options +FollowSymLinks +ExecCGI >>>>> >>>>> # Redirect all requests not available on the filesystem to Rails >>>>> RewriteEngine On >>>>> >>>>> # Uncomment this if you're not running Typo in the root of your >>>>> # webserver's URL space (i.e. http://www.example.com/blog): >>>>> # >>>>> RewriteBase /blog/ >>>>> >>>>> # try to suggest current rss subscribers that the url moved >>>>> permently >>>>> RewriteRule ^xml/([a-z]+)$ /xml/$1/feed.xml [R=301] >>>>> RewriteRule ^$ index.html [QSA] >>>>> RewriteRule ^([^.]+)$ $1.html [QSA] >>>>> RewriteCond %{REQUEST_FILENAME} !-f >>>>> RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] >>>>> >>>>> # In case Rails experiences terminal errors >>>>> ErrorDocument 500 "

Application Error

Typo could not be >>>>> reached >>>>> >>>>> >>>>> I tried running >>>>> >>>>> public/dispatch.fcgi >>>>> >>>>> whilst tailing log/fastcgi.crash.log: >>>>> >>>>> [12/Aug/2005:23:55:37 :: 26559] starting >>>>> [12/Aug/2005:23:55:37 :: 26559] Dispatcher failed to catch: >>>>> Packets out of order: 1<>3: SHOW FIELDS FROM sessions >>>>> (ActiveRecord::StatementInvalid) /usr/local/lib/ruby/gems/1.8/ >>>>> gems/ activerecord-1.11.1/lib/active_record/ >>>>> connection_adapters/ abstract_adapter.rb:462:in `log' /usr/ >>>>> local/lib/ruby/gems/1.8/ gems/ activerecord-1.11.1/lib/ >>>>> active_record/connection_adapters/ mysql_adapter.rb:130:in >>>>> `execute' /usr/local/lib/ruby/gems/1.8/ gems/ >>>>> activerecord-1.11.1/lib/active_record/connection_adapters/ >>>>> mysql_adapter.rb:108:in `columns' /usr/local/lib/ruby/gems/1.8/ >>>>> gems/ activerecord-1.11.1/lib/active_record/base.rb:622:in >>>>> `columns' /usr/ local/lib/ruby/gems/1.8/gems/ >>>>> activerecord-1.11.1/ lib/active_record/ base.rb:627:in >>>>> `columns_hash' /usr/local/lib/ ruby/gems/1.8/gems/ >>>>> actionpack-1.9.1/lib/action_controller/ session/ >>>>> active_record_store.rb:71:in `setup_sessid_compatibility!' / >>>>> usr/ local/lib/ruby/gems/1.8/gems/ actionpack-1.9.1/lib/ >>>>> action_controller/ session/ active_record_store.rb:44:in >>>>> `find_by_session_id' /usr/ local/lib/ ruby/gems/1.8/gems/ >>>>> actionpack-1.9.1/lib/action_controller/ session/ >>>>> active_record_store.rb:243:in `initialize' /usr/local/ lib/ >>>>> ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ >>>>> session/ active_record_store.rb:243:in `silence' /usr/local/ >>>>> lib/ ruby/gems/ 1.8/gems/actionpack-1.9.1/lib/ >>>>> action_controller/ session/ active_record_store.rb:243:in >>>>> `initialize' >>>>> /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `new' >>>>> /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `initialize' / >>>>> usr/ local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ >>>>> action_controller/ cgi_process.rb:94:in `new' /usr/local/lib/ >>>>> ruby/ gems/1.8/gems/ actionpack-1.9.1/lib/action_controller/ >>>>> cgi_process.rb:94:in `session' /usr/local/lib/ruby/gems/1.8/ >>>>> gems/ actionpack-1.9.1/lib/ action_controller/base.rb:737:in >>>>> `assign_shortcuts' /usr/local/lib/ ruby/gems/1.8/gems/ >>>>> actionpack-1.9.1/lib/action_controller/base.rb: 351:in >>>>> `process' / usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/ >>>>> lib/ action_controller/rescue.rb:20:in `process_with_exception' >>>>> >>>>> /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/ >>>>> dispatcher.rb: 34:in `dispatch' /usr/local/lib/ruby/gems/1.8/ >>>>> gems/rails-0.13.1/ lib/ fcgi_handler.rb:144:in >>>>> `process_request' /usr/local/lib/ruby/ gems/ 1.8/gems/ >>>>> rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' / usr/ local/ >>>>> lib/ruby/gems/1.8/gems/rails-0.13.1/lib/ fcgi_handler.rb:55:in >>>>> `each_cgi' /usr/local/lib/ruby/gems/1.8/ gems/rails-0.13.1/lib/ >>>>> fcgi_handler.rb:55:in `process!' /usr/ local/lib/ruby/gems/1.8/ >>>>> gems/ rails-0.13.1/lib/fcgi_handler.rb: 21:in `process!' >>>>> public/dispatch.fcgi:26 >>>>> [12/Aug/2005:23:55:37 :: 26559] terminated gracefully >>>>> >>>>> So I was wondering if anyone can help me with this problem? >>>>> -- >>>>> Regards, >>>>> >>>>> David Mytton >>>>> http://www.olate.co.uk >>>>> _______________________________________________ >>>>> Typo-list mailing list >>>>> Typo-list@rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/typo-list >>>>> >>>>> >>>>> >>>>> >>>>> >>> _______________________________________________ >>> Typo-list mailing list >>> Typo-list@rubyforge.org >>> http://rubyforge.org/mailman/listinfo/typo-list >>> >>> >>> > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Sat Aug 13 11:32:07 2005 From: scott at sigkill.org (Scott Laird) Date: Sat Aug 13 11:26:07 2005 Subject: [typo] application error (rails) issue, also, lighttpd vs apache In-Reply-To: <4ecac81705081222374657b962@mail.gmail.com> References: <4ecac81705081222374657b962@mail.gmail.com> Message-ID: <5A308997-C3AA-48BB-9FC8-A281478569F8@sigkill.org> On Aug 12, 2005, at 10:37 PM, Kyle Cooney wrote: > Hi, all - > > I know this application error issue has come up multiple times, at > least once here on the mailing list, and at least once on the > textdrive forums. I'm having an issue where the majority of my > typo installing seems to be running fine(both index page, and > complete admin section), but where when I attempt to go to > individual article pages, there seems to be problem accessing it. > This is also apparent in the recent articles sidebar that was given > to me through the list. I running the trunk build 478(about a week > prior to 2.5.3). Look in logs/production.log. If Rails is working most of the time, but failing on some pages, then there will almost certainly be an explanation in the logfiles. > It sounds like it's a routing erroring to me somewhere in the > controller, but I can't be certain; I'm still new to the whole > rails thing. Any ideas? I've modified the pages slightly so that > the default index view includes the extended body, so I'm not sure > if that's causing a problem(I can't see why it would), or if it's > something else. At this point, I've somewhat lost track of which > files Typo utilizes to piece together an archive page, maybe that > the's the problem. I'm not really sure what the point of adding extended_html to the main index view is--the point of extended_html is a place to put stuff that you don't want to clutter up the main page. That's pretty much all it's used for. But I can't see why that'd break anything. > The second issue I have, and of much less importance(I think!), is > that I went through the whole configuration process for setting up > lighttpd on Textdrive, and when I do the curl command to ensure > that I'm running on Lighttpd, it tells me I'm on Apache(!). Is > this just a byproduct of being a shared server where the default > server is apache? Or did I do something wrong? From the looks of > the wiki documentation, I've done something wrong. No idea. Scott From david at mytton.net Sat Aug 13 11:34:02 2005 From: david at mytton.net (David Mytton) Date: Sat Aug 13 11:27:55 2005 Subject: [typo] Dispatch failed to catch packets out of order In-Reply-To: <70E55DFE-DB81-4B31-A431-457E74994681@sigkill.org> References: <42FD2B34.3030408@mytton.net> <144D7FDE-B77F-42C5-AFD0-2BBBDB44C6BD@isolated-designs.net> <42FDB4FB.2080709@mytton.net> <42FDBA84.3010604@mytton.net> <70E55DFE-DB81-4B31-A431-457E74994681@sigkill.org> Message-ID: <42FE12EA.3020204@mytton.net> > Is production.log growing? Is there anything useful in there? Unfortunately not - it just says nil. Regards, David Mytton http://www.olate.co.uk Scott Laird wrote: > Is production.log growing? Is there anything useful in there? > > Typo (and all Rails apps, really) runs in *development* mode by > default. You have to explicitly ask for production mode. > > > Scott > > On Aug 13, 2005, at 2:16 AM, David Mytton wrote: > >> Hi, >> >> There is no log/fastcgi.crash.log file: >> >> root@server1 [/home/notes/testapp]# ls log >> ./ ../ development.log* production.log* server.log* test.log* >> >> The database.yml file was set to default because I'm not using a >> database. But I have changed the production values to the correct >> ones. I assume that it runs in production by default? >> >> Now that I updated the database details, I get in my browser: >> >> Bad Request >> Your browser sent a request that this server could not understand. >> >> And only this in my http log: >> >> [Sat Aug 13 10:16:16 2005] [error] [client 212.159.106.74] File does >> not exist: /home/notes/public_html/404.shtml >> [Sat Aug 13 10:16:16 2005] [error] [client 212.159.106.74] File does >> not exist: /home/notes/public_html/favicon.ico >> [Sat Aug 13 10:16:16 2005] [error] [client 212.159.106.74] File does >> not exist: /home/notes/public_html/400.shtml >> >> Regards, >> >> David Mytton >> http://www.olate.co.uk >> >> >> >> Patrick Lenz wrote: >> >>> Anything in log/fastcgi.crash.log in your Rails app directory? Are >>> the database settings correct for whatever mode you're in >>> (development/production)? >>> On 13.08.2005, at 10:53, David Mytton wrote: >>> >>>> Indeed. I get the same problem as with Typo - just hangs. In the >>>> http error log I get: >>>> >>>> [Sat Aug 13 09:52:49 2005] [warn] FastCGI: (dynamic) server "/ home/ >>>> notes/public_html/rails/dispatch.fcgi" has failed to remain >>>> running for 30 seconds given 3 attempts, its restart interval has >>>> been backed off to 600 seconds >>>> [Sat Aug 13 09:51:44 2005] [warn] FastCGI: (dynamic) server "/ home/ >>>> notes/public_html/rails/dispatch.fcgi" has failed to remain >>>> running for 30 seconds given 3 attempts, its restart interval has >>>> been backed off to 600 seconds >>>> [Sat Aug 13 09:51:44 2005] [error] [client 212.159.106.74] >>>> FastCGI: incomplete headers (0 bytes) received from server "/ >>>> home/notes/ public_html/rails/dispatch.fcgi" >>>> [Sat Aug 13 09:51:44 2005] [error] [client 212.159.106.74] >>>> FastCGI: comm with (dynamic) server "/home/notes/public_html/ >>>> rails/ dispatch.fcgi" aborted: (first read) idle timeout (30 sec) >>>> >>>> >>>> Regards, >>>> >>>> David Mytton >>>> http://www.olate.co.uk >>>> >>>> >>>> >>>> Justin Palmer wrote: >>>> >>>> >>>>> The 'Hey you've put ruby on rails' message doesn't insure that >>>>> everything is working. Remove the index.html file inside the >>>>> public directory for your >>>>> test app and see if you get any errors. >>>>> -Justin >>>>> On Aug 12, 2005, at 6:05 PM, David Mytton wrote: >>>>> >>>>> >>>>>> Hi, >>>>>> >>>>>> I have just got Rails installed on my dedicated server - Fedora >>>>>> Linux, cPanel, Apache 1.3.33, MySQL 4.1.13 mod_fastcgi 2.4.2 >>>>>> and latest Rails/Ruby. >>>>>> >>>>>> I have confirmed rails is working by creating a test >>>>>> application, which gives me the "Congratulations, you've put >>>>>> Ruby on Rails!" message. I then when to install Typo but when I >>>>>> access it via my browser, it hangs. The http error log shows: >>>>>> >>>>>> [Sat Aug 13 00:00:41 2005] [warn] FastCGI: (dynamic) server "/ >>>>>> home/ notes/public_html/blog/dispatch.fcgi" has failed to remain >>>>>> running for 30 seconds given 3 attempts, its restart interval >>>>>> has been backed off to 600 seconds >>>>>> [Sat Aug 13 00:00:38 2005] [warn] FastCGI: (dynamic) server "/ >>>>>> home/ notes/public_html/blog/dispatch.fcgi" has failed to remain >>>>>> running for 30 seconds given 3 attempts, its restart interval >>>>>> has been backed off to 600 seconds >>>>>> >>>>>> and so on >>>>>> >>>>>> My dispatch.fcgi file has this in (ignoring the lines with # >>>>>> proceeding them) >>>>>> >>>>>> require File.dirname(__FILE__) + "/../config/environment" >>>>>> require 'rubygems' >>>>>> require_gem 'fcgi' >>>>>> require 'fcgi_handler' >>>>>> >>>>>> RailsFCGIHandler.process! >>>>>> >>>>>> And my .htaccess is: >>>>>> >>>>>> # General Apache options >>>>>> AddHandler fastcgi-script .fcgi >>>>>> AddHandler cgi-script .cgi >>>>>> Options +FollowSymLinks +ExecCGI >>>>>> >>>>>> # Redirect all requests not available on the filesystem to Rails >>>>>> RewriteEngine On >>>>>> >>>>>> # Uncomment this if you're not running Typo in the root of your >>>>>> # webserver's URL space (i.e. http://www.example.com/blog): >>>>>> # >>>>>> RewriteBase /blog/ >>>>>> >>>>>> # try to suggest current rss subscribers that the url moved >>>>>> permently >>>>>> RewriteRule ^xml/([a-z]+)$ /xml/$1/feed.xml [R=301] >>>>>> RewriteRule ^$ index.html [QSA] >>>>>> RewriteRule ^([^.]+)$ $1.html [QSA] >>>>>> RewriteCond %{REQUEST_FILENAME} !-f >>>>>> RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] >>>>>> >>>>>> # In case Rails experiences terminal errors >>>>>> ErrorDocument 500 "

Application Error

Typo could not be >>>>>> reached >>>>>> >>>>>> >>>>>> I tried running >>>>>> >>>>>> public/dispatch.fcgi >>>>>> >>>>>> whilst tailing log/fastcgi.crash.log: >>>>>> >>>>>> [12/Aug/2005:23:55:37 :: 26559] starting >>>>>> [12/Aug/2005:23:55:37 :: 26559] Dispatcher failed to catch: >>>>>> Packets out of order: 1<>3: SHOW FIELDS FROM sessions >>>>>> (ActiveRecord::StatementInvalid) /usr/local/lib/ruby/gems/1.8/ >>>>>> gems/ activerecord-1.11.1/lib/active_record/ connection_adapters/ >>>>>> abstract_adapter.rb:462:in `log' /usr/ local/lib/ruby/gems/1.8/ >>>>>> gems/ activerecord-1.11.1/lib/ active_record/connection_adapters/ >>>>>> mysql_adapter.rb:130:in `execute' /usr/local/lib/ruby/gems/1.8/ >>>>>> gems/ >>>>>> activerecord-1.11.1/lib/active_record/connection_adapters/ >>>>>> mysql_adapter.rb:108:in `columns' /usr/local/lib/ruby/gems/1.8/ >>>>>> gems/ activerecord-1.11.1/lib/active_record/base.rb:622:in >>>>>> `columns' /usr/ local/lib/ruby/gems/1.8/gems/ activerecord-1.11.1/ >>>>>> lib/active_record/ base.rb:627:in `columns_hash' /usr/local/lib/ >>>>>> ruby/gems/1.8/gems/ actionpack-1.9.1/lib/action_controller/ >>>>>> session/ active_record_store.rb:71:in >>>>>> `setup_sessid_compatibility!' / usr/ local/lib/ruby/gems/1.8/gems/ >>>>>> actionpack-1.9.1/lib/ action_controller/ session/ >>>>>> active_record_store.rb:44:in `find_by_session_id' /usr/ >>>>>> local/lib/ ruby/gems/1.8/gems/ >>>>>> actionpack-1.9.1/lib/action_controller/ session/ >>>>>> active_record_store.rb:243:in `initialize' /usr/local/ lib/ >>>>>> ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ >>>>>> session/ active_record_store.rb:243:in `silence' /usr/local/ lib/ >>>>>> ruby/gems/ 1.8/gems/actionpack-1.9.1/lib/ action_controller/ >>>>>> session/ active_record_store.rb:243:in `initialize' >>>>>> /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `new' >>>>>> /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `initialize' / >>>>>> usr/ local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ >>>>>> action_controller/ cgi_process.rb:94:in `new' /usr/local/lib/ >>>>>> ruby/ gems/1.8/gems/ actionpack-1.9.1/lib/action_controller/ >>>>>> cgi_process.rb:94:in `session' /usr/local/lib/ruby/gems/1.8/ >>>>>> gems/ actionpack-1.9.1/lib/ action_controller/base.rb:737:in >>>>>> `assign_shortcuts' /usr/local/lib/ ruby/gems/1.8/gems/ >>>>>> actionpack-1.9.1/lib/action_controller/base.rb: 351:in `process' >>>>>> / usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/ lib/ >>>>>> action_controller/rescue.rb:20:in `process_with_exception' >>>>>> >>>>>> /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/ >>>>>> dispatcher.rb: 34:in `dispatch' /usr/local/lib/ruby/gems/1.8/ >>>>>> gems/rails-0.13.1/ lib/ fcgi_handler.rb:144:in `process_request' >>>>>> /usr/local/lib/ruby/ gems/ 1.8/gems/ >>>>>> rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' / usr/ local/ >>>>>> lib/ruby/gems/1.8/gems/rails-0.13.1/lib/ fcgi_handler.rb:55:in >>>>>> `each_cgi' /usr/local/lib/ruby/gems/1.8/ gems/rails-0.13.1/lib/ >>>>>> fcgi_handler.rb:55:in `process!' /usr/ local/lib/ruby/gems/1.8/ >>>>>> gems/ rails-0.13.1/lib/fcgi_handler.rb: 21:in `process!' >>>>>> public/dispatch.fcgi:26 >>>>>> [12/Aug/2005:23:55:37 :: 26559] terminated gracefully >>>>>> >>>>>> So I was wondering if anyone can help me with this problem? >>>>>> -- >>>>>> Regards, >>>>>> >>>>>> David Mytton >>>>>> http://www.olate.co.uk >>>>>> _______________________________________________ >>>>>> Typo-list mailing list >>>>>> Typo-list@rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/typo-list >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>> _______________________________________________ >>>> Typo-list mailing list >>>> Typo-list@rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/typo-list >>>> >>>> >>>> >> _______________________________________________ >> Typo-list mailing list >> Typo-list@rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> > From scott at sigkill.org Sat Aug 13 11:38:08 2005 From: scott at sigkill.org (Scott Laird) Date: Sat Aug 13 11:32:09 2005 Subject: [typo] typo 2.5.3 on Dreamhost In-Reply-To: <66657cce050812223438b1ae1f@mail.gmail.com> References: <66657cce050812223438b1ae1f@mail.gmail.com> Message-ID: On Aug 12, 2005, at 10:34 PM, K-Lai wrote: > I followed the same steps to install Typo 2.5.3 on Dreamhost. > Something is still acting up, because I get an "Application Error > Typo could not be reached" when I try to leave a comment on any of the > posts on my blog. > > When I ran 'tail -f log/production.log' on SSH, I didn't see any > errors. I got to the following message: > > Processing ContentController#index (for 68.97.36.242 at Thu Aug 11 > 21:38:12 PDT 2005) > Parameters: {"action"=>"index", "controller"=>"admin/content"} > Rendering within layouts/administration > Rendering admin/content/list (200 OK) > Completed in 0.43355 (2 reqs/sec) | Rendering: 0.35420 (81%) | DB: > 0.01566 (3%) > [http://www.domain.com/admin/content] > Do you have any other ideas? The main page for this typo install > works just fine - it loads up super fast with the theme set up the way > I want it and everything. It just won't let me leave comments (to the > point of not even letting me see a comment page), and it won't let me > access the admin page (www.domain.com/admin). My personal guess is that you did something setting up Apache and fastcgi, and it's not running at all. The index page works because it's left in the cache from when you ran ./script/server -e production. Try running 'rake sweep_cache'; that should make it a lot easier to see when things are working or not working. Keep an eye on production.log--*EVERY* uncached hit on your Typo site should generate an entry on there. If it doesn't, then Apache (or Lightttp, or whatever) isn't actually calling Rails. Try looking at the Typo troubleshooting page (http:// typo.leetsoft.com/trac/wiki/TroubleShooting) and following some of the steps. This should help identify were things are broken. Scott From scott at sigkill.org Sat Aug 13 11:39:43 2005 From: scott at sigkill.org (Scott Laird) Date: Sat Aug 13 11:33:36 2005 Subject: [typo] Dispatch failed to catch packets out of order In-Reply-To: <42FE12EA.3020204@mytton.net> References: <42FD2B34.3030408@mytton.net> <144D7FDE-B77F-42C5-AFD0-2BBBDB44C6BD@isolated-designs.net> <42FDB4FB.2080709@mytton.net> <42FDBA84.3010604@mytton.net> <70E55DFE-DB81-4B31-A431-457E74994681@sigkill.org> <42FE12EA.3020204@mytton.net> Message-ID: <5B8EC481-4020-4412-8A58-209B70ABF9CF@sigkill.org> On Aug 13, 2005, at 8:34 AM, David Mytton wrote: > > Is production.log growing? Is there anything useful in there? > > Unfortunately not - it just says nil. Then Typo either isn't running at all, or it's running in development mode. You're using fastcgi, right? How is it configured? Scott From ryanabrams at gmail.com Sat Aug 13 11:48:07 2005 From: ryanabrams at gmail.com (Ryan Abrams) Date: Sat Aug 13 11:42:00 2005 Subject: [typo] Tagging In-Reply-To: References: <47b62040050812020926affe81@mail.gmail.com> <13C64A05-FA6D-45F0-8F75-B1FA1D9D97FD@lenz.sh> <47b6204005081205164b0e0f01@mail.gmail.com> <585D6102-D0A3-499C-86F1-CD58F1B2D458@sigkill.org> <47b62040050812073427b1e657@mail.gmail.com> <35211edb0508120759626b33a3@mail.gmail.com> <7712CB20-DB57-49FF-B77D-16C94978AB87@gmail.com> Message-ID: Ok, I have reverted to a working install of the latest trunk. I already made one change (hacked del.icio.us to show descriptions also - using the del.icio.us aggregator and the content in the sidebar plugin) - The patch doesn't touch those files, so I don't intend to revert them to trunk. In fact, I think i'll make a patch and offer it (if i can figure out how to do that). If you think i should revert them anyway, let me know, and I will. In any case, I'll apply the patch later today and let you know how it goes. I just need to back everything up first. -Ryan On Aug 13, 2005, at 10:25 AM, Scott Laird wrote: > > On Aug 13, 2005, at 6:50 AM, Ryan Abrams wrote: > > >> Hmm.. >> >> I pulled the latest trunk, and applied the patch for tags, >> following your instructions from earlier. I'm finding some weirdness. >> >> I see the "tags" sidebar and the keywords field. It is saving >> keywords with the articles as i enter them. But having created two >> test articles with several tags each, I still have an empty >> articles_tags and tags tables. As such, the cloud doesn't show up. >> >> Any ideas? >> >> I also don't have the "tags: " in my article template (but i may >> need to manually add that) >> > > The code that displays the entire tags/categories/comments/ > trackbacks line is in article_helper, not views/. I just updated > the tags patch to 2.5.3; that might help you a bit. > > I just ran a quick sanity-check, and editing the keywords field in > the article editing page absolutely adds new tags to the article > itself. Can you try applying the new patch and giving things > another go? > > > Scott > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From david at mytton.net Sat Aug 13 11:52:23 2005 From: david at mytton.net (David Mytton) Date: Sat Aug 13 11:46:16 2005 Subject: [typo] Dispatch failed to catch packets out of order In-Reply-To: <5B8EC481-4020-4412-8A58-209B70ABF9CF@sigkill.org> References: <42FD2B34.3030408@mytton.net> <144D7FDE-B77F-42C5-AFD0-2BBBDB44C6BD@isolated-designs.net> <42FDB4FB.2080709@mytton.net> <42FDBA84.3010604@mytton.net> <70E55DFE-DB81-4B31-A431-457E74994681@sigkill.org> <42FE12EA.3020204@mytton.net> <5B8EC481-4020-4412-8A58-209B70ABF9CF@sigkill.org> Message-ID: <42FE1737.9060509@mytton.net> Ahh, I forgot this was the typo list - I have mailed the Rails list too because it seems that Rails itself isn't running. http://article.gmane.org/gmane.comp.lang.ruby.rails/18315 is my post as it has a bit more information. Regards, David Mytton http://www.olate.co.uk Scott Laird wrote: > > On Aug 13, 2005, at 8:34 AM, David Mytton wrote: > >> > Is production.log growing? Is there anything useful in there? >> >> Unfortunately not - it just says nil. > > > Then Typo either isn't running at all, or it's running in development > mode. You're using fastcgi, right? How is it configured? > > > Scott From scott at sigkill.org Sat Aug 13 12:07:28 2005 From: scott at sigkill.org (Scott Laird) Date: Sat Aug 13 12:01:23 2005 Subject: [typo] Dispatch failed to catch packets out of order In-Reply-To: <42FE1737.9060509@mytton.net> References: <42FD2B34.3030408@mytton.net> <144D7FDE-B77F-42C5-AFD0-2BBBDB44C6BD@isolated-designs.net> <42FDB4FB.2080709@mytton.net> <42FDBA84.3010604@mytton.net> <70E55DFE-DB81-4B31-A431-457E74994681@sigkill.org> <42FE12EA.3020204@mytton.net> <5B8EC481-4020-4412-8A58-209B70ABF9CF@sigkill.org> <42FE1737.9060509@mytton.net> Message-ID: <7A2DB52D-9453-43CA-B40D-3A32184175D6@sigkill.org> I don't quite understand why you commented out "require 'fcgi_handler'". Also, the error message that you posted refers to line 21 of dispatch.fcgi, but you only show 4 lines from the file. Which line was causing the error, and what happens if you put the fcgi_handler line back in? Scott On Aug 13, 2005, at 8:52 AM, David Mytton wrote: > Ahh, I forgot this was the typo list - I have mailed the Rails list > too because it seems that Rails itself isn't running. http:// > article.gmane.org/gmane.comp.lang.ruby.rails/18315 is my post as it > has a bit more information. > > Regards, > > David Mytton > http://www.olate.co.uk > > > Scott Laird wrote: > >> On Aug 13, 2005, at 8:34 AM, David Mytton wrote: >> >>> > Is production.log growing? Is there anything useful in there? >>> >>> Unfortunately not - it just says nil. >>> >> Then Typo either isn't running at all, or it's running in >> development mode. You're using fastcgi, right? How is it >> configured? >> Scott > From david at mytton.net Sat Aug 13 12:14:44 2005 From: david at mytton.net (David Mytton) Date: Sat Aug 13 12:08:42 2005 Subject: [typo] Dispatch failed to catch packets out of order In-Reply-To: <7A2DB52D-9453-43CA-B40D-3A32184175D6@sigkill.org> References: <42FD2B34.3030408@mytton.net> <144D7FDE-B77F-42C5-AFD0-2BBBDB44C6BD@isolated-designs.net> <42FDB4FB.2080709@mytton.net> <42FDBA84.3010604@mytton.net> <70E55DFE-DB81-4B31-A431-457E74994681@sigkill.org> <42FE12EA.3020204@mytton.net> <5B8EC481-4020-4412-8A58-209B70ABF9CF@sigkill.org> <42FE1737.9060509@mytton.net> <7A2DB52D-9453-43CA-B40D-3A32184175D6@sigkill.org> Message-ID: <42FE1C74.5020901@mytton.net> I commented it out as explained on http://wiki.rubyonrails.com/rails/show/HowtoInstallAndRunRubyOnRailsOnCpanel but then I got the dispatch.fcgi:21 error. That line is require 'rubygems'. If it isn't commented, then there aren't any code errors, just the timeout. Regards, David Mytton http://www.olate.co.uk Scott Laird wrote: > I don't quite understand why you commented out "require > 'fcgi_handler'". Also, the error message that you posted refers to > line 21 of dispatch.fcgi, but you only show 4 lines from the file. > Which line was causing the error, and what happens if you put the > fcgi_handler line back in? > > > Scott > > On Aug 13, 2005, at 8:52 AM, David Mytton wrote: > >> Ahh, I forgot this was the typo list - I have mailed the Rails list >> too because it seems that Rails itself isn't running. http:// >> article.gmane.org/gmane.comp.lang.ruby.rails/18315 is my post as it >> has a bit more information. >> >> Regards, >> >> David Mytton >> http://www.olate.co.uk >> >> >> Scott Laird wrote: >> >>> On Aug 13, 2005, at 8:34 AM, David Mytton wrote: >>> >>>> > Is production.log growing? Is there anything useful in there? >>>> >>>> Unfortunately not - it just says nil. >>>> >>> Then Typo either isn't running at all, or it's running in >>> development mode. You're using fastcgi, right? How is it configured? >>> Scott >> >> > From typo at isolated-designs.net Sat Aug 13 17:37:38 2005 From: typo at isolated-designs.net (Justin Palmer) Date: Sat Aug 13 17:31:29 2005 Subject: [typo] Tagging In-Reply-To: <200508131247.20249.trejkaz@trypticon.org> References: <47b62040050812020926affe81@mail.gmail.com> <200508130119.40777.trejkaz@trypticon.org> <200508131247.20249.trejkaz@trypticon.org> Message-ID: <2AAF6AE4-9D1E-43F0-A4B1-694072B98167@isolated-designs.net> > If I made enough posts which had this category, I might. Who's to > say that > when I make this first post about them, I won't be making more of > them... > Thats a generalized assumption, if your running a NNW fan site or frequently blog about NNW then it would warrant a category. > If I realise too late, what am I > supposed to do? Create the category and then go hunting for all > the posts > which I need to update to include the category as well? Why > bother, when the > tag categorises for me already? Most people generally 'know' what there interest are and can determine when they'll be frequently blogging about a subject enough to create a category before hand. This situation is very unlikely to happen unless you have something like kottke.org where you cover all things and can't forsee what's hot and what's not. You as a blogger _know_ your interest, and the likely hood of something sneaking up on you is very slim. > > Semantically, tags and categories appear to be exactly the same > thing. The > only difference is purely in the UI Tags are flat in nature, categories are hierarchal. > The UI for tags is definitely preferable, but I see no solid > evidence that > the two have different *meanings*. Have a read: http://www.shirky.com/writings/ontology_overrated.html Cheers! , -Justin Palmer On Aug 12, 2005, at 9:47 PM, Trejkaz wrote: > On Sat, 13 Aug 2005 12:30, Justin Palmer wrote: > >> Tags are not categories. Tags have a greater granularity than >> categories. >> >> Assume you create a post about NetNewsWire inside a 'tech' category. >> You could tag this as 'netnewswire', 'rss', 'atom', and >> 'syndicate'. You wouldn't want a >> category called 'NetNewsWire' would you? >> > > If I made enough posts which had this category, I might. Who's to > say that > when I make this first post about them, I won't be making more of > them... > enough to warrant creating a new category? If I realise too late, > what am I > supposed to do? Create the category and then go hunting for all > the posts > which I need to update to include the category as well? Why > bother, when the > tag categorises for me already? > > Semantically, tags and categories appear to be exactly the same > thing. The > only difference is purely in the UI: tags are created automatically > when you > type the words into a tags box, and categories have to be created > up-front. > The UI for tags is definitely preferable, but I see no solid > evidence that > the two have different *meanings*. > > TX > > -- > Email: Trejkaz Xaoza > Web site: http://trypticon.org/ > Jabber ID: trejkaz@jabber.zim.net.au > GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From ryanabrams at gmail.com Sat Aug 13 19:09:11 2005 From: ryanabrams at gmail.com (Ryan Abrams) Date: Sat Aug 13 19:03:03 2005 Subject: [typo] Tagging In-Reply-To: References: <47b62040050812020926affe81@mail.gmail.com> <13C64A05-FA6D-45F0-8F75-B1FA1D9D97FD@lenz.sh> <47b6204005081205164b0e0f01@mail.gmail.com> <585D6102-D0A3-499C-86F1-CD58F1B2D458@sigkill.org> <47b62040050812073427b1e657@mail.gmail.com> <35211edb0508120759626b33a3@mail.gmail.com> <7712CB20-DB57-49FF-B77D-16C94978AB87@gmail.com> Message-ID: <6AAE4525-9BBF-45A0-9603-A8EC64CE3B6D@gmail.com> Scott, I just applied the new tags-2.patch and it worked perfectly. Well done! -Ryan On Aug 13, 2005, at 10:25 AM, Scott Laird wrote: > > On Aug 13, 2005, at 6:50 AM, Ryan Abrams wrote: > > >> Hmm.. >> >> I pulled the latest trunk, and applied the patch for tags, >> following your instructions from earlier. I'm finding some weirdness. >> >> I see the "tags" sidebar and the keywords field. It is saving >> keywords with the articles as i enter them. But having created two >> test articles with several tags each, I still have an empty >> articles_tags and tags tables. As such, the cloud doesn't show up. >> >> Any ideas? >> >> I also don't have the "tags: " in my article template (but i may >> need to manually add that) >> > > The code that displays the entire tags/categories/comments/ > trackbacks line is in article_helper, not views/. I just updated > the tags patch to 2.5.3; that might help you a bit. > > I just ran a quick sanity-check, and editing the keywords field in > the article editing page absolutely adds new tags to the article > itself. Can you try applying the new patch and giving things > another go? > > > Scott > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From trejkaz at trypticon.org Sat Aug 13 19:20:31 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Sat Aug 13 19:13:50 2005 Subject: [typo] Running in production mode on FastCGI Message-ID: <200508140920.35498.trejkaz@trypticon.org> FastCGI seems to have worked straight out of the box for development mode. I've been starting to set up the production version on a different vhost so that I can start trying to migrate some older blog content into it. Outside the vhost section (as required), I have: FastCgiServer /path/to/typo/public/dispatch.fcgi -idle-timeout 120 \ -initial-env RAILS_ENV=production -processes 10 (My real directory is obviously there instead of that fake one. :-)) Problem is, I'm getting an error message on starting Apache: FastCgiServer /path/to/typo/public/dispatch.fcgi: User/Group commands must preceed FastCGI server definitions Ignoring that the FastCGI developers can't spell "precede" properly, my User/Group definitions actually *do* precede my FastCGI server definitions. In fact, my User/Group definitions are included extremely early on from apache2.conf, whereas the vhosts are all included *after* all other includes. I've tried adding the User and Group lines in a second time right before the same line, but the same error message comes up. Presumably someone here has it working already, so you might spot something I'm doing something wrong that I can't instantly see. My present workaround is to run Rails under lighttpd and proxy to it from Apache, but I think I'd rather have it running directly under Apache if possible. TX -- Email: Trejkaz Xaoza Web site: http://trypticon.org/ Jabber ID: trejkaz@jabber.zim.net.au GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050814/f8983681/attachment.bin From ryanabrams at gmail.com Sat Aug 13 20:22:10 2005 From: ryanabrams at gmail.com (Ryan Abrams) Date: Sat Aug 13 20:16:01 2005 Subject: [typo] Adding descriptions to del.icio.us sidebar (patch) Message-ID: I mentioned in a post in the tagging thread on this list that I had been hacking around with adding descriptions to the del.icio.us sidebar. Well, i finally cleaned it up a bit and submitted a patch. It's available here: http://typo.leetsoft.com/trac/ticket/306 Basically, it adds a checkbox to the delicious sidebar config. If you check it, your sidebar will show whatever you entered as the description of the link on del.icio.us. This was requested on 8/4 on this list, with no responses. I wasn't a list member at that time, but consider this a response. (i am bcc-ing the requester) I would appreciate any feedback / suggestions/comments, etc. I know this is a small thing, and it seems to work well, but this is my first patch for my first change to typo, which is my first time hacking on rails or in ruby. -Ryan From david at mytton.net Sun Aug 14 20:54:21 2005 From: david at mytton.net (David Mytton) Date: Sun Aug 14 20:48:11 2005 Subject: [typo] Re: Dispatch failed to catch packets out of order In-Reply-To: <42FD2B34.3030408@mytton.net> References: <42FD2B34.3030408@mytton.net> Message-ID: <42FFE7BD.1090701@mytton.net> Hi, I have finally managed to get Rails installed properly on Lighttpd/FastCGI. I believe Rails is working correctly but I still can't get Typo to work. When I try and access it in my browser or by executing public/dispatch.fcgi, I get this error in the fastcgi.crash.log [15/Aug/2005:01:47:36 :: 9416] starting [15/Aug/2005:01:47:37 :: 9416] Dispatcher failed to catch: Packets out of order: 1<>3: SHOW FIELDS FROM sessions ActiveRecord::StatementInvalid) /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:462:in `log' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/mysql_adapter.rb:130:in `execute /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/mysql_adapter.rb:108:in `columns /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:622:in `columns' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:627:in `columns_hash' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:71:in `setup_essid_compatibility! /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:44:in `find_by_session_id /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:243:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:243:in `silence' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:243:in `initialize' /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `new' /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/cgi_process.rb:94:in `new' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/cgi_process.rb:94:in `session' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:737:in `assign_shortcuts' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:351:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:20:in `process_with_exception' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:34:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `each_cgi' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!' public/dispatch.fcgi:25 [15/Aug/2005:01:47:37 :: 9416] terminated gracefully From dev.purkayastha at gmail.com Mon Aug 15 00:21:14 2005 From: dev.purkayastha at gmail.com (Dev Purkayastha) Date: Mon Aug 15 00:15:00 2005 Subject: [typo] typo 2.5.3 on Dreamhost In-Reply-To: <47b62040050812003738c43e6d@mail.gmail.com> References: <66657cce050811200463b8c35a@mail.gmail.com> <47b62040050812003738c43e6d@mail.gmail.com> Message-ID: <9597679d0508142121e8b9e78@mail.gmail.com> > I just installed Typo 2.5.3 on Dreamhost a couple of days ago, and > here are the basic steps I did : > > 1. Create your subdomain, e.g. blog.example.com, in the domain > settings, specify the path to the "public" directory of your Typo > 2.5.3 installation. Enable FastCGI in the domain settings. > 2. Be sure to have the correct settings in database.yml > 3. Be sure to have your public dir and contents chmoded to 755. > 4. Set RAILS_ENV = 'production' instead of the default "RAILS_ENV = > ..." line in the config/environment.rb file You also need to make sure the .htaccess file in your public directory is configured rewrite to dispatch.fcgi. (This just means look for the spot which says "dispatch.cgi" and replace it with "dispatch.fcgi". This also assumes you've turned on FastCGI on your Dreamhost Panel.) ...Actuallly, I *think* that when I unpacked my Typo install into DH, there was no .htaccess file, and I probably copied it over from another Rails installation. From hammed at gmail.com Mon Aug 15 12:07:25 2005 From: hammed at gmail.com (Hammed Malik) Date: Mon Aug 15 12:01:11 2005 Subject: [typo] Re: Dispatch failed to catch packets out of order In-Reply-To: <42FFE7BD.1090701@mytton.net> References: <42FD2B34.3030408@mytton.net> <42FFE7BD.1090701@mytton.net> Message-ID: <5440c2a905081509072efe4d9c@mail.gmail.com> David, I had a similar error (packets out of order). This page had some useful information that helped: http://daryl.learnhouston.com/?p=198 On 8/14/05, David Mytton wrote: > > Hi, > > I have finally managed to get Rails installed properly on > Lighttpd/FastCGI. I believe Rails is working correctly but I still can't > get Typo to work. When I try and access it in my browser or by executing > public/dispatch.fcgi, I get this error in the fastcgi.crash.log > > [15/Aug/2005:01:47:36 :: 9416] starting > [15/Aug/2005:01:47:37 :: 9416] Dispatcher failed to catch: Packets out > of order: 1<>3: SHOW FIELDS FROM sessions ActiveRecord::StatementInvalid) > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1 > /lib/active_record/connection_adapters/abstract_adapter.rb:462:in > `log' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1 > /lib/active_record/connection_adapters/mysql_adapter.rb:130:in > `execute > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1 > /lib/active_record/connection_adapters/mysql_adapter.rb:108:in > `columns > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1 > /lib/active_record/base.rb:622:in > `columns' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1 > /lib/active_record/base.rb:627:in > `columns_hash' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/session/active_record_store.rb:71:in > `setup_essid_compatibility! > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/session/active_record_store.rb:44:in > `find_by_session_id > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/session/active_record_store.rb:243:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/session/active_record_store.rb:243:in > `silence' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/session/active_record_store.rb:243:in > `initialize' > /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `new' > /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `initialize' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/cgi_process.rb:94:in > `new' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/cgi_process.rb:94:in > `session' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/base.rb:737:in > `assign_shortcuts' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/base.rb:351:in > `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1 > /lib/action_controller/rescue.rb:20:in > `process_with_exception' > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:34:in > `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in > `process_request' > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in > `process!' > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in > `each_cgi' > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in > `process!' > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in > `process!' > public/dispatch.fcgi:25 > [15/Aug/2005:01:47:37 :: 9416] terminated gracefully > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Hammed Malik -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050815/03521c47/attachment.htm From david at mytton.net Mon Aug 15 12:09:58 2005 From: david at mytton.net (David Mytton) Date: Mon Aug 15 12:03:47 2005 Subject: [typo] Re: Dispatch failed to catch packets out of order In-Reply-To: <5440c2a905081509072efe4d9c@mail.gmail.com> References: <42FD2B34.3030408@mytton.net> <42FFE7BD.1090701@mytton.net> <5440c2a905081509072efe4d9c@mail.gmail.com> Message-ID: <4300BE56.2050503@mytton.net> Thanks - I upgraded mysql gem and after a lot of tweaking with lighttpd - I have finally got it all working!! Regards, David Mytton Managing Director - Olate Ltd http://www.olate.co.uk T: (646) 257 3714 (USA) T: (020) 7870 9176 (UK) F: (0870) 705 1068 (UK) E: support@olate.co.uk Hammed Malik wrote: > David, > > I had a similar error (packets out of order). This page had some useful > information that helped: http://daryl.learnhouston.com/?p=198 > > On 8/14/05, *David Mytton* < david@mytton.net > > wrote: > > Hi, > > I have finally managed to get Rails installed properly on > Lighttpd/FastCGI. I believe Rails is working correctly but I still can't > get Typo to work. When I try and access it in my browser or by executing > public/dispatch.fcgi, I get this error in the fastcgi.crash.log > > [15/Aug/2005:01:47:36 :: 9416] starting > [15/Aug/2005:01:47:37 :: 9416] Dispatcher failed to catch: Packets out > of order: 1<>3: SHOW FIELDS FROM sessions > ActiveRecord::StatementInvalid) > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > 1.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:462:in > `log' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/mysql_adapter.rb:130:in > `execute > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > 1.11.1/lib/active_record/connection_adapters/mysql_adapter.rb:108:in > `columns > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:622:in > `columns' > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > 1.11.1/lib/active_record/base.rb:627:in > `columns_hash' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:71:in > `setup_essid_compatibility! > /usr/local/lib/ruby/gems/1.8/gems/actionpack- > 1.9.1/lib/action_controller/session/active_record_store.rb:44:in > `find_by_session_id > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:243:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:243:in > `silence' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:243:in > > `initialize' > /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `new' > /usr/local/lib/ruby/1.8/cgi/session.rb:273:in `initialize' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/cgi_process.rb:94:in > > `new' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/cgi_process.rb:94:in > `session' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:737:in > `assign_shortcuts' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:351:in > `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:20:in > `process_with_exception' > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:34:in > `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in > `process_request' > /usr/local/lib/ruby/gems/1.8/gems/rails- > 0.13.1/lib/fcgi_handler.rb:64:in > `process!' > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in > `each_cgi' > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in > `process!' > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in > `process!' > public/dispatch.fcgi:25 > [15/Aug/2005:01:47:37 :: 9416] terminated gracefully > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > > > -- > Hammed Malik From kevin at sb.org Mon Aug 15 14:50:07 2005 From: kevin at sb.org (Kevin Ballard) Date: Mon Aug 15 14:43:56 2005 Subject: [typo] typo 2.5.3 on Dreamhost In-Reply-To: <9597679d0508142121e8b9e78@mail.gmail.com> References: <66657cce050811200463b8c35a@mail.gmail.com> <47b62040050812003738c43e6d@mail.gmail.com> <9597679d0508142121e8b9e78@mail.gmail.com> Message-ID: <078A60D6-8E80-4EEC-ABBB-E4EA88918208@sb.org> I think that was a problem with Typo 2.5.2. If you grab Typo 2.5.3 (or maybe 2.5.4 - that's out now, isn't it?), it should have the right .htaccess file. On Aug 15, 2005, at 12:21 AM, Dev Purkayastha wrote: > ...Actuallly, I *think* that when I unpacked my Typo install into DH, > there was no .htaccess file, and I probably copied it over from > another Rails installation. -- Kevin Ballard kevin@sb.org http://www.tildesoft.com http://kevin.sb.org -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2378 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050815/652887b1/smime.bin From dev.purkayastha at gmail.com Mon Aug 15 16:17:21 2005 From: dev.purkayastha at gmail.com (Dev Purkayastha) Date: Mon Aug 15 16:11:06 2005 Subject: [typo] Upgrading to 2.5.4 In-Reply-To: <078A60D6-8E80-4EEC-ABBB-E4EA88918208@sb.org> References: <66657cce050811200463b8c35a@mail.gmail.com> <47b62040050812003738c43e6d@mail.gmail.com> <9597679d0508142121e8b9e78@mail.gmail.com> <078A60D6-8E80-4EEC-ABBB-E4EA88918208@sb.org> Message-ID: <9597679d05081513177d7e6dd9@mail.gmail.com> Wow, and I was at 2.5.2. The 2.5.4 seems like an important upgrade. Is there any supereasy means of upgrading, other than just unpacking tarball and pointing your web browser to it? - dev From scott at sigkill.org Mon Aug 15 16:27:31 2005 From: scott at sigkill.org (Scott Laird) Date: Mon Aug 15 16:21:24 2005 Subject: [typo] Upgrading to 2.5.4 In-Reply-To: <9597679d05081513177d7e6dd9@mail.gmail.com> References: <66657cce050811200463b8c35a@mail.gmail.com> <47b62040050812003738c43e6d@mail.gmail.com> <9597679d0508142121e8b9e78@mail.gmail.com> <078A60D6-8E80-4EEC-ABBB-E4EA88918208@sb.org> <9597679d05081513177d7e6dd9@mail.gmail.com> Message-ID: <5645803A-9353-4509-B059-FD009385D362@sigkill.org> On Aug 15, 2005, at 1:17 PM, Dev Purkayastha wrote: > Wow, and I was at 2.5.2. The 2.5.4 seems like an important upgrade. Is > there any supereasy means of upgrading, other than just unpacking > tarball and pointing your web browser to it? That's probably easiest. There aren't any major config changes between 2.5.2 and 2.5.4; just unpack the new version, copy your old database.yml over, and let it run. Scott From kyle.cooney at gmail.com Mon Aug 15 20:19:13 2005 From: kyle.cooney at gmail.com (Kyle Cooney) Date: Mon Aug 15 20:12:58 2005 Subject: [typo] revisiting recent articles sidebar (argh!) Message-ID: <4ecac8170508151719716f6459@mail.gmail.com> Hey all - I'm about to pull my hair out on this subject. I have the sidebar that Justus was kind enough to share on this list(and I've also tried making the adjustments Scott recommended). But I keep recieving Application Error(rails) messages. I checked my production.log file and have come up with the following error message: ActiveRecord::StatementInvalid (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '== 1 ORDER BY created_at DESC LIMIT 5' at line 1: SELECT * FROM articles WHERE published == 1 ORDER BY created_at DESC LIMIT 5): For the record, I'm using the recent_controller.rb configured as follows: class Plugins::Sidebars::RecentController < Sidebars::Plugin def self.display_name "Recent Articles" end def self.description "List of recent articles for this blog" end def self.default_config {'count' => 5 } end def content @recent = Article.find(:all, :limit => @sb_config['count'], :conditions => ["published == 1"], :order => 'created_at DESC') end def configure end end and the content.rhtml is configured as follows: <% unless @recent.blank? -%>
Recent Articles
    <% for article in @recent -%>
  • <%= article_link article.title, article %>
  • <% end -%>
<% end %> I've tried various configurations of all of the above. I'm running in production mode, and I've been restarting ruby as well as lighttpd while testing each change. Not sure what's going on. I thouhgt it might be related to way I've built my site with only one article/post on each page, but I'm not sure how to test that since the even the Azure template is using some of my customizations. Thanks for any help. You can probably get a better feel for how my pages are constructed by going to www.yesterdaywasdramatic.com Kyle -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050815/559b5cba/attachment.htm From scott at sigkill.org Mon Aug 15 20:25:09 2005 From: scott at sigkill.org (Scott Laird) Date: Mon Aug 15 20:19:10 2005 Subject: [typo] revisiting recent articles sidebar (argh!) In-Reply-To: <4ecac8170508151719716f6459@mail.gmail.com> References: <4ecac8170508151719716f6459@mail.gmail.com> Message-ID: On Aug 15, 2005, at 5:19 PM, Kyle Cooney wrote: > Hey all - > > I'm about to pull my hair out on this subject. I have the sidebar > that Justus was kind enough to share on this list(and I've also > tried making the adjustments Scott recommended). But I keep > recieving Application Error(rails) messages. I checked my > production.log file and have come up with the following error message: > > ActiveRecord::StatementInvalid (You have an error in your SQL > syntax; check the manual that corresponds to your MySQL server > version for the right syntax to use near '== 1 ORDER BY created_at > DESC LIMIT 5' at line 1: SELECT * FROM articles WHERE published == > 1 ORDER BY created_at DESC LIMIT 5): Try using = not == in SQL. Scott From trejkaz at trypticon.org Mon Aug 15 20:26:48 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Mon Aug 15 20:21:00 2005 Subject: [typo] revisiting recent articles sidebar (argh!) In-Reply-To: <4ecac8170508151719716f6459@mail.gmail.com> References: <4ecac8170508151719716f6459@mail.gmail.com> Message-ID: <20050816102648.09yahyrv48s4g08w@home.trypticon.org> Quoting Kyle Cooney : > def content > @recent = Article.find(:all, :limit => @sb_config['count'], :conditions => > ["published == 1"], :order => 'created_at DESC') > end Replace the "==" with an "=" and that should work, in theory. TX ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From oneapproved at gmail.com Mon Aug 15 23:10:38 2005 From: oneapproved at gmail.com (K-Lai) Date: Mon Aug 15 23:04:22 2005 Subject: [typo] typo 2.5.3 on Dreamhost Message-ID: <66657cce0508152010125f474f@mail.gmail.com> Thanks for your help! It ended up being a permissions issue - I think that the log files didn't have write permissions associated with them. > I just installed Typo 2.5.3 on Dreamhost a couple of days ago, and > here are the basic steps I did : > > 1. Create your subdomain, e.g. blog.example.com, in the domain > settings, specify the path to the "public" directory of your Typo > 2.5.3 installation. Enable FastCGI in the domain settings. > 2. Be sure to have the correct settings in database.yml > 3. Be sure to have your public dir and contents chmoded to 755. > 4. Set RAILS_ENV = 'production' instead of the default "RAILS_ENV = > ..." line in the config/environment.rb file You also need to make sure the .htaccess file in your public directory is configured rewrite to dispatch.fcgi. (This just means look for the spot which says "dispatch.cgi" and replace it with "dispatch.fcgi". This also assumes you've turned on FastCGI on your Dreamhost Panel.) ...Actuallly, I *think* that when I unpacked my Typo install into DH, there was no .htaccess file, and I probably copied it over from another Rails installation. From lists at holsman.net Tue Aug 16 06:33:57 2005 From: lists at holsman.net (Ian Holsman) Date: Tue Aug 16 06:27:43 2005 Subject: [typo] pings and trackbacks Message-ID: <4301C115.2010705@holsman.net> hi. I've been playing with ruby a tiny bit, and have got a command line version of a ping and trackback working... nothing too hard I'd love to be able to ping rpc.pingomatic.com on new posts, and have a field to enter trackbacks. how do I get this integrated into typo? http://holsman.net/ruby/ From scott at sigkill.org Tue Aug 16 10:09:32 2005 From: scott at sigkill.org (Scott Laird) Date: Tue Aug 16 10:03:18 2005 Subject: [typo] pings and trackbacks In-Reply-To: <4301C115.2010705@holsman.net> References: <4301C115.2010705@holsman.net> Message-ID: On Aug 16, 2005, at 3:33 AM, Ian Holsman wrote: > > I've been playing with ruby a tiny bit, and have got a > command line version of a ping and trackback working... nothing too > hard > > I'd love to be able to ping rpc.pingomatic.com on new posts, > and have a field to enter trackbacks. > > > how do I get this integrated into typo? Create a new bug in Trac, mark it as an enhancement, attach a patch, and make sure that the subject line starts with [PATCH]. We're currently being really cautious about what we add to Typo, just in case we need to make a 2.5.5, but most likely we'll kick into full gear on the next version of Typo later this week. Scott From trejkaz at trypticon.org Tue Aug 16 22:32:43 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Tue Aug 16 22:26:51 2005 Subject: [typo] [SOLVED] FastCgiServer - User/Group definitions (was Re: Running in production mode on FastCGI) In-Reply-To: <200508140920.35498.trejkaz@trypticon.org> References: <200508140920.35498.trejkaz@trypticon.org> Message-ID: <20050817123243.xhnb5ozeo0k8cksk@home.trypticon.org> Quoting Trejkaz : > Ignoring that the FastCGI developers can't spell "precede" properly, my > User/Group definitions actually *do* precede my FastCGI server definitions. > In fact, my User/Group definitions are included extremely early on from > apache2.conf, whereas the vhosts are all included *after* all other includes. > > I've tried adding the User and Group lines in a second time right before the > same line, but the same error message comes up. Figured it out. The FastCgiIpcDir line also has to occur after the User/Group lines, but the error message didn't say the right thing. Will be mentioning this to the FastCGI list in a second. TX ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From boss at topfunky.com Wed Aug 17 00:03:54 2005 From: boss at topfunky.com (Geoffrey Grosenbach) Date: Tue Aug 16 23:57:55 2005 Subject: [typo] Themes Tutorial Message-ID: I'm sure all of you are Typo 2.5 theme experts already, but if you aren't, check out my article on creating Typo 2.5 themes: http://nubyonrails.topfunky.com/articles/2005/08/12/typo-2-5-theme- tutorial Geoff ---------- Website Development http://topfunky.com Free Online Notes http://notes.topfunky.com http://GeoffreyGrosenbach.com From pratiknaik at gmail.com Wed Aug 17 07:39:06 2005 From: pratiknaik at gmail.com (Pratik) Date: Wed Aug 17 07:32:47 2005 Subject: [typo] Multiple users Message-ID: <9212531d0508170439650b3556@mail.gmail.com> Hi Everyone, I am interested in modifying typo to allow multiple users with same installation base. I am not very familiar with typo source code and rails. But I am doing my home work everyday. If someone could provide me with basic structural changes details to achieve the goal of allowing multiple users, that would be very helpful. Thanks for your time. Pratik -- http://www.religiontalk.org & http://www.spiritualtalk.org - Enlighten your soul http://typo.in From markc at renta.net Wed Aug 17 08:03:20 2005 From: markc at renta.net (Mark Constable) Date: Wed Aug 17 07:57:12 2005 Subject: [typo] Multiple users In-Reply-To: <9212531d0508170439650b3556@mail.gmail.com> References: <9212531d0508170439650b3556@mail.gmail.com> Message-ID: <200508172203.21014.markc@renta.net> On Wednesday 17 August 2005 21:39, Pratik wrote: > I am interested in modifying typo to allow multiple users with same > installation base. I am not very familiar with typo source code and > rails. But I am doing my home work everyday. If someone could provide > me with basic structural changes details to achieve the goal of > allowing multiple users, that would be very helpful. Sorry to post a "me too" but I seriously would like to have access to a single code base with a potentially unlimited number of user based instances. I'm stuck in a PHP world until this is possible and unfortunately for me I am too much of a ruby/RoR weenie to translate my PHP experience to typo, or RoR. I suspect it's a matter of the RoR base being able to offer this functionality and then typo will automatically also offer the same... so it's a Ruby on Rails issue. Anyone with practical suggestions howto ? --markc From pratiknaik at gmail.com Wed Aug 17 08:33:38 2005 From: pratiknaik at gmail.com (Pratik) Date: Wed Aug 17 08:27:19 2005 Subject: [typo] Multiple users In-Reply-To: <200508172203.21014.markc@renta.net> References: <9212531d0508170439650b3556@mail.gmail.com> <200508172203.21014.markc@renta.net> Message-ID: <9212531d0508170533319f8d7@mail.gmail.com> It has nothing to do with Rails. It's purely typo issue. Thanks, Pratik On 8/17/05, Mark Constable wrote: > On Wednesday 17 August 2005 21:39, Pratik wrote: > > I am interested in modifying typo to allow multiple users with same > > installation base. I am not very familiar with typo source code and > > rails. But I am doing my home work everyday. If someone could provide > > me with basic structural changes details to achieve the goal of > > allowing multiple users, that would be very helpful. > > Sorry to post a "me too" but I seriously would like to have > access to a single code base with a potentially unlimited > number of user based instances. I'm stuck in a PHP world > until this is possible and unfortunately for me I am too > much of a ruby/RoR weenie to translate my PHP experience > to typo, or RoR. > > I suspect it's a matter of the RoR base being able to offer > this functionality and then typo will automatically also > offer the same... so it's a Ruby on Rails issue. Anyone > with practical suggestions howto ? > > --markc > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- http://www.religiontalk.org & http://www.spiritualtalk.org - Enlighten your soul From markc at renta.net Wed Aug 17 09:14:51 2005 From: markc at renta.net (Mark Constable) Date: Wed Aug 17 09:08:39 2005 Subject: [typo] Multiple users In-Reply-To: <9212531d0508170533319f8d7@mail.gmail.com> References: <9212531d0508170439650b3556@mail.gmail.com> <200508172203.21014.markc@renta.net> <9212531d0508170533319f8d7@mail.gmail.com> Message-ID: <200508172314.51230.markc@renta.net> On Wednesday 17 August 2005 22:33, Pratik wrote: > It has nothing to do with Rails. It's purely typo issue. Sorry, perhaps I misunderstood your need and thought it was similar to or overlapped with my requirement. I want a single core of typo (which I presume means a single instance of RoR as well) but be able to activate a unique instance of that codebase for... ah... any virtual host with it's own database, including an independent set of users for that site. "multi hosting" might be different to "multiple users". I'll go sit in the back row again. > On 8/17/05, Mark Constable wrote: > > On Wednesday 17 August 2005 21:39, Pratik wrote: > > > I am interested in modifying typo to allow multiple users with same > > > installation base. I am not very familiar with typo source code and > > > rails. But I am doing my home work everyday. If someone could provide > > > me with basic structural changes details to achieve the goal of > > > allowing multiple users, that would be very helpful. > > > > Sorry to post a "me too" but I seriously would like to have > > access to a single code base with a potentially unlimited > > number of user based instances. I'm stuck in a PHP world > > until this is possible and unfortunately for me I am too > > much of a ruby/RoR weenie to translate my PHP experience > > to typo, or RoR. > > > > I suspect it's a matter of the RoR base being able to offer > > this functionality and then typo will automatically also > > offer the same... so it's a Ruby on Rails issue. Anyone > > with practical suggestions howto ? --markc From scott at sigkill.org Wed Aug 17 09:18:21 2005 From: scott at sigkill.org (Scott Laird) Date: Wed Aug 17 09:12:05 2005 Subject: [typo] Multiple users In-Reply-To: <9212531d0508170533319f8d7@mail.gmail.com> References: <9212531d0508170439650b3556@mail.gmail.com> <200508172203.21014.markc@renta.net> <9212531d0508170533319f8d7@mail.gmail.com> Message-ID: <4F39C84A-1C91-4B2B-8853-4A991970F60F@sigkill.org> On Aug 17, 2005, at 5:33 AM, Pratik wrote: > It has nothing to do with Rails. It's purely typo issue. If you simply want multiple users on the same blog, that's easy--go to /admin/users and create more users. They'll all be able to post articles and do anything that the first user can do. If you want each user to have their own distinct blog, then that's going to be a bit more difficult. Scott From pratiknaik at gmail.com Wed Aug 17 09:41:35 2005 From: pratiknaik at gmail.com (Pratik) Date: Wed Aug 17 09:35:17 2005 Subject: [typo] Multiple users In-Reply-To: <4F39C84A-1C91-4B2B-8853-4A991970F60F@sigkill.org> References: <9212531d0508170439650b3556@mail.gmail.com> <200508172203.21014.markc@renta.net> <9212531d0508170533319f8d7@mail.gmail.com> <4F39C84A-1C91-4B2B-8853-4A991970F60F@sigkill.org> Message-ID: <9212531d0508170641443300bc@mail.gmail.com> There is already an enhancement ticket logged for this at http://typo.leetsoft.com/trac/ticket/94 I was looking for some sort of guideline you can provide me with in order to implement multiple blogs ( each user having their blog ). One basic thing I can think of is to have a 'blogs' table which would have (id, user_id). Also, each category, articles, etc. would need to be associated with the blog_id. May be somewhere in beginning of the request flow, blog_id can be derived and used in subsequent phases. This is the rough idea I have. Any details at implementation level would be awesome. Thanks for your time. -Pratik On 8/17/05, Scott Laird wrote: > > On Aug 17, 2005, at 5:33 AM, Pratik wrote: > > > It has nothing to do with Rails. It's purely typo issue. > > If you simply want multiple users on the same blog, that's easy--go > to /admin/users and create more users. They'll all be able to post > articles and do anything that the first user can do. > > If you want each user to have their own distinct blog, then that's > going to be a bit more difficult. > > > Scott > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- http://www.religiontalk.org & http://www.spiritualtalk.org - Enlighten your soul From scott at sigkill.org Wed Aug 17 10:31:21 2005 From: scott at sigkill.org (Scott Laird) Date: Wed Aug 17 10:25:12 2005 Subject: [typo] Multiple users In-Reply-To: <9212531d0508170641443300bc@mail.gmail.com> References: <9212531d0508170439650b3556@mail.gmail.com> <200508172203.21014.markc@renta.net> <9212531d0508170533319f8d7@mail.gmail.com> <4F39C84A-1C91-4B2B-8853-4A991970F60F@sigkill.org> <9212531d0508170641443300bc@mail.gmail.com> Message-ID: <2CE28514-256A-4929-B5BA-2D471D6E9D23@sigkill.org> On Aug 17, 2005, at 6:41 AM, Pratik wrote: > There is already an enhancement ticket logged for this at > http://typo.leetsoft.com/trac/ticket/94 > > I was looking for some sort of guideline you can provide me with in > order to implement multiple blogs ( each user having their blog ). One > basic thing I can think of is to have a 'blogs' table which would have > (id, user_id). Also, each category, articles, etc. would need to be > associated with the blog_id. May be somewhere in beginning of the > request flow, blog_id can be derived and used in subsequent phases. > > This is the rough idea I have. Any details at implementation level > would be awesome. That sounds about right. Most tables will end up requiring a blog_id field, and we'll have to tweak a lot of API calls to figure out which blog_id we're using. Figuring our which blog_id we're using for any given page hit will be a pain--we'll have to do some sort of matching on the URL. We can't easily use the left-most domain name component because that'll break people's ability to use Typo to create http:// www.example.com/blog -style blogs with Typo. The page cache will need to be totally reworked, too. It's a big project. It's not very high on my list of things to do right now, but other developers have expressed an interest, so we'll *probably* end up with some multi-blog support in the next major release of Typo. Scott From pratiknaik at gmail.com Wed Aug 17 10:41:15 2005 From: pratiknaik at gmail.com (Pratik) Date: Wed Aug 17 10:34:56 2005 Subject: [typo] Multiple users In-Reply-To: <2CE28514-256A-4929-B5BA-2D471D6E9D23@sigkill.org> References: <9212531d0508170439650b3556@mail.gmail.com> <200508172203.21014.markc@renta.net> <9212531d0508170533319f8d7@mail.gmail.com> <4F39C84A-1C91-4B2B-8853-4A991970F60F@sigkill.org> <9212531d0508170641443300bc@mail.gmail.com> <2CE28514-256A-4929-B5BA-2D471D6E9D23@sigkill.org> Message-ID: <9212531d0508170741201f9863@mail.gmail.com> > That sounds about right. Most tables will end up requiring a blog_id > field, and we'll have to tweak a lot of API calls to figure out which > blog_id we're using. Figuring our which blog_id we're using for any > given page hit will be a pain--we'll have to do some sort of matching > on the URL. We can't easily use the left-most domain name component > because that'll break people's ability to use Typo to create http:// > www.example.com/blog -style blogs with Typo. Probably, there can be a 'base_url' or 'url_format' parameter in configuration file to derive that. > > The page cache will need to be totally reworked, too. > I have no clue about caching yet. > It's a big project. It's not very high on my list of things to do > right now, but other developers have expressed an interest, so we'll > *probably* end up with some multi-blog support in the next major > release of Typo. > I believe it's better idea for typo multiuser to be an independant sister project of typo. As multi-user blog doesn't really sound like typo's main goal. Plus, I think there are many more better things for lead typo developers to implement. > > Scott > Thanks, Pratik -- http://www.religiontalk.org & http://www.spiritualtalk.org - Enlighten your soul From scott at sigkill.org Wed Aug 17 11:00:54 2005 From: scott at sigkill.org (Scott Laird) Date: Wed Aug 17 10:54:36 2005 Subject: [typo] Multiple users In-Reply-To: <9212531d0508170741201f9863@mail.gmail.com> References: <9212531d0508170439650b3556@mail.gmail.com> <200508172203.21014.markc@renta.net> <9212531d0508170533319f8d7@mail.gmail.com> <4F39C84A-1C91-4B2B-8853-4A991970F60F@sigkill.org> <9212531d0508170641443300bc@mail.gmail.com> <2CE28514-256A-4929-B5BA-2D471D6E9D23@sigkill.org> <9212531d0508170741201f9863@mail.gmail.com> Message-ID: On Aug 17, 2005, at 7:41 AM, Pratik wrote: > > Probably, there can be a 'base_url' or 'url_format' parameter in > configuration file to derive that. No configuration files! The logical thing to do would be to have a base_url in the blogs table, and then default to blog_id 1 when the incoming URL fails to match any of the base_urls. > I believe it's better idea for typo multiuser to be an independant > sister project of typo. As multi-user blog doesn't really sound like > typo's main goal. Plus, I think there are many more better things for > lead typo developers to implement. The problem with this is that multi-blog patches will be *really* invasive. That means that it'll be very hard to maintain an out-of- tree multiblog patch. Either the patch will rot and need major work to get it to apply to each new Typo release, or the multi-blog version will fork off and become its own project. Given this, we'd almost certainly be best off having multi-blog support in the main Typo tree, if we're going to do it at all. Scott From typo at isolated-designs.net Wed Aug 17 17:29:04 2005 From: typo at isolated-designs.net (Justin Palmer) Date: Wed Aug 17 17:24:03 2005 Subject: [typo] Multiple users In-Reply-To: References: <9212531d0508170439650b3556@mail.gmail.com> <200508172203.21014.markc@renta.net> <9212531d0508170533319f8d7@mail.gmail.com> <4F39C84A-1C91-4B2B-8853-4A991970F60F@sigkill.org> <9212531d0508170641443300bc@mail.gmail.com> <2CE28514-256A-4929-B5BA-2D471D6E9D23@sigkill.org> <9212531d0508170741201f9863@mail.gmail.com> Message-ID: <4303AC20.1030000@isolated-designs.net> Gonna chime in here. I find multi-blog support for the core Typo project to be feature bloat myself. 9.5 times out of 10 there will be 1 blogger or one blog with many bloggers blogging on the same blog (say that 5 times fast!). Don't you think the multi-blog feature would only be useful to a small minority of our users and not the 95% majority? Cheers, -Justin Scott Laird wrote: > > On Aug 17, 2005, at 7:41 AM, Pratik wrote: > >> >> Probably, there can be a 'base_url' or 'url_format' parameter in >> configuration file to derive that. > > > No configuration files! > > The logical thing to do would be to have a base_url in the blogs > table, and then default to blog_id 1 when the incoming URL fails to > match any of the base_urls. > >> I believe it's better idea for typo multiuser to be an independant >> sister project of typo. As multi-user blog doesn't really sound like >> typo's main goal. Plus, I think there are many more better things for >> lead typo developers to implement. > > > The problem with this is that multi-blog patches will be *really* > invasive. That means that it'll be very hard to maintain an out-of- > tree multiblog patch. Either the patch will rot and need major work > to get it to apply to each new Typo release, or the multi-blog > version will fork off and become its own project. > > Given this, we'd almost certainly be best off having multi-blog > support in the main Typo tree, if we're going to do it at all. > > > Scott > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > From trejkaz at trypticon.org Wed Aug 17 21:18:00 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Wed Aug 17 21:12:09 2005 Subject: [typo] Finding posts without a category Message-ID: <20050818111800.48nbiwy1okk4ksck@home.trypticon.org> This is probably a silly question, but is there a way I can easily find all posts without a category assigned? I want to make sure everything has at least one category, but at the moment it's a bit tedious to go hunting for them. TX ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From dev.purkayastha at gmail.com Wed Aug 17 22:02:23 2005 From: dev.purkayastha at gmail.com (Dev Purkayastha) Date: Wed Aug 17 21:56:03 2005 Subject: [typo] Category Feeds: Is this in Typo? Message-ID: <9597679d050817190283900c6@mail.gmail.com> Is there a built-in feature to Typo allowing for by-category feeds? Is someone thinking of trying out such a patch? -d From justus at ryoohki.net Thu Aug 18 02:01:12 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Thu Aug 18 01:54:59 2005 Subject: [typo] Category Feeds: Is this in Typo? In-Reply-To: <9597679d050817190283900c6@mail.gmail.com> References: <9597679d050817190283900c6@mail.gmail.com> Message-ID: <43042428.2060108@ryoohki.net> Dev Purkayastha wrote: > Is there a built-in feature to Typo allowing for by-category feeds? > Is someone thinking of trying out such a patch? I've attached a patch for what I use. URLs are in the form of /xml/categoryrss/CATEGORYNAME/feed.xml You'll probably want to edit your theme to add a link to that in somewhere. -------------- next part -------------- Index: app/controllers/xml_controller.rb =================================================================== --- app/controllers/xml_controller.rb (revision 530) +++ app/controllers/xml_controller.rb (working copy) @@ -1,10 +1,20 @@ class XmlController < ApplicationController - caches_page :rss, :atom, :articlerss, :commentrss, :rsd, :trackbackrss + caches_page :rss, :atom, :articlerss, :commentrss, :rsd, :trackbackrss, :categoryrss def articlerss @article = Article.find(params[:id]) @comments = @article.comments.find(:all, :order => 'created_at DESC', :limit => 25) end + + def categoryrss + category = Category.find_by_name(params[:id]) + @articles = Article.find(:all, :conditions => [%{ published != 0 + AND articles.id = articles_categories.article_id + AND articles_categories.category_id = ? }, category.id], + :joins => ', articles_categories', + :order => "created_at DESC", + :limit => config[:limit_rss_display]) + end def commentrss @comments = Comment.find(:all, :order => 'created_at DESC', :limit => config[:limit_rss_display]) Index: config/routes.rb =================================================================== --- config/routes.rb (revision 530) +++ config/routes.rb (working copy) @@ -16,6 +16,7 @@ # cached feeds with the correct xml mime type. map.xml 'xml/:action/feed.xml', :controller => 'xml' map.xml 'xml/articlerss/:id/feed.xml', :controller => 'xml', :action => 'articlerss' + map.xml 'xml/categoryrss/:id/feed.xml', :controller => 'xml', :action => 'categoryrss' # allow neat perma urls map.connect 'articles', From kevin at sb.org Thu Aug 18 02:04:35 2005 From: kevin at sb.org (Kevin Ballard) Date: Thu Aug 18 01:58:20 2005 Subject: [typo] Finding posts without a category In-Reply-To: <20050818111800.48nbiwy1okk4ksck@home.trypticon.org> References: <20050818111800.48nbiwy1okk4ksck@home.trypticon.org> Message-ID: <8D3B4F08-0A14-4175-B149-4B8D25DCF72E@sb.org> On Aug 17, 2005, at 9:18 PM, Trejkaz wrote: > This is probably a silly question, but is there a way I can easily > find all > posts without a category assigned? I want to make sure everything > has at least > one category, but at the moment it's a bit tedious to go hunting > for them. I'd imagine the following would work: ./script/runner 'Article.find(:all, :include => [:categories]).reject { |a| a.has_categories? }.each { |a| p a }' Of course, I don't know for certain because all my articles have categories, so it prints nothing for me. If you want to run this on production, add --environment=production as a second argument. -- Kevin Ballard kevin@sb.org http://www.tildesoft.com http://kevin.sb.org -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2378 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050818/94640113/smime.bin From cd_wine at yahoo.com Thu Aug 18 09:08:50 2005 From: cd_wine at yahoo.com (Chris Wine) Date: Thu Aug 18 09:02:30 2005 Subject: [typo] Pages and Sidebars Message-ID: <20050818130851.65139.qmail@web52108.mail.yahoo.com> I would like to use my typo blog as "My Home Page" for Firefox. To make it effective, I would like to emulate some of what I use most frequently in My Yahoo. To do this effectively would require the ability to change one page to have a different sidebar than the other pages. That way in the sidebar I can have links to sites that I frequent, but are unlikely to be of interest most of my readers (e.g. Yahoo Mail, Typo login, RSS.) Is there a way to do this in Typo? CW From spiros at souljerky.com Thu Aug 18 09:26:50 2005 From: spiros at souljerky.com (Spiros Antonopoulos) Date: Thu Aug 18 09:19:40 2005 Subject: [typo] Logs / Statistics Message-ID: Greetings folks, Perhaps this is obvious but I've searched through the list archives and tried parsing the lighttpd logs using some free OS X tools to no avail... Is there an easy way to get basic site statistics for a Typo blog (running apache/lighttpd/fcgi at Textdrive) like referring urls, hits/visits & bandwidth information? Thanks! -[s] From ryanabrams at gmail.com Thu Aug 18 09:37:11 2005 From: ryanabrams at gmail.com (Ryan Abrams) Date: Thu Aug 18 09:30:57 2005 Subject: [typo] Logs / Statistics In-Reply-To: References: Message-ID: I used this: http://forum.textdrive.com/viewtopic.php?id=3259 It's not completely painless, as it's a pretty intricate setup, but it seems to work very well. -R On Aug 18, 2005, at 8:26 AM, Spiros Antonopoulos wrote: > > > Greetings folks, > > Perhaps this is obvious but I've searched through the list archives > and tried parsing the lighttpd logs using some free OS X tools to > no avail... Is there an easy way to get basic site statistics for a > Typo blog (running apache/lighttpd/fcgi at Textdrive) like > referring urls, hits/visits & bandwidth information? > > Thanks! > > -[s] > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Thu Aug 18 09:43:09 2005 From: scott at sigkill.org (Scott Laird) Date: Thu Aug 18 09:36:56 2005 Subject: [typo] Pages and Sidebars In-Reply-To: <20050818130851.65139.qmail@web52108.mail.yahoo.com> References: <20050818130851.65139.qmail@web52108.mail.yahoo.com> Message-ID: On Aug 18, 2005, at 6:08 AM, Chris Wine wrote: > I would like to use my typo blog as "My Home Page" for > Firefox. To make it effective, I would like to > emulate some of what I use most frequently in My > Yahoo. > > To do this effectively would require the ability to > change one page to have a different sidebar than the > other pages. That way in the sidebar I can have > links to sites that I frequent, but are unlikely to be > of interest most of my readers (e.g. Yahoo Mail, Typo > login, RSS.) > > Is there a way to do this in Typo? There's no simple way to do it, but you could add your own action that produces the page that you want. If you want to change the sidebar, then you'll have to override the default layout as well, but you should be able to manually call sidebar components with render_sidebar. Scott From ntalbott at gmail.com Thu Aug 18 09:46:29 2005 From: ntalbott at gmail.com (Nathaniel Talbott) Date: Thu Aug 18 09:40:11 2005 Subject: [typo] Logs / Statistics In-Reply-To: References: Message-ID: On 8/18/05, Ryan Abrams wrote: > I used this: http://forum.textdrive.com/viewtopic.php?id=3259 > > It's not completely painless, as it's a pretty intricate setup, but > it seems to work very well. I'm using AWStats, too, but this looks intriguing: http://www.railstat.com/ I'd love to see it packaged up with Typo. -- Nathaniel Talbott <:((>< From scott at sigkill.org Thu Aug 18 09:52:23 2005 From: scott at sigkill.org (Scott Laird) Date: Thu Aug 18 09:46:06 2005 Subject: [typo] Logs / Statistics In-Reply-To: References: Message-ID: On Aug 18, 2005, at 6:46 AM, Nathaniel Talbott wrote: > On 8/18/05, Ryan Abrams wrote: > >> I used this: http://forum.textdrive.com/viewtopic.php?id=3259 >> >> It's not completely painless, as it's a pretty intricate setup, but >> it seems to work very well. >> > > I'm using AWStats, too, but this looks intriguing: > > http://www.railstat.com/ > > I'd love to see it packaged up with Typo. Personally, I think we can do better then that :-). Scott From ryanabrams at gmail.com Thu Aug 18 09:52:34 2005 From: ryanabrams at gmail.com (Ryan Abrams) Date: Thu Aug 18 09:46:21 2005 Subject: [typo] Logs / Statistics In-Reply-To: References: Message-ID: Doesn't look like it would be very hard to add that to a typo install, but I don't think it makes sense to package it /with/ Typo. I mean, it would be neat to see it integrated and all that... but that would change their project from being a real time stat tracker for rails, to a real time stat tracker for typo. Why not just follow the install instructions for your existing typo install? http://www.railstat.com/wiki/InstallGuide -R p.s. according to a note on that installguide page, 8/21/05 is the date of some major next release. could be worth waiting through the weekend before you get started. Then again, maybe not. On Aug 18, 2005, at 8:46 AM, Nathaniel Talbott wrote: > On 8/18/05, Ryan Abrams wrote: > >> I used this: http://forum.textdrive.com/viewtopic.php?id=3259 >> >> It's not completely painless, as it's a pretty intricate setup, but >> it seems to work very well. >> > > I'm using AWStats, too, but this looks intriguing: > > http://www.railstat.com/ > > I'd love to see it packaged up with Typo. > > > -- > Nathaniel Talbott > > <:((>< > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From justus at ryoohki.net Thu Aug 18 10:23:16 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Thu Aug 18 10:16:54 2005 Subject: [typo] Category Feeds: Is this in Typo? In-Reply-To: <43042428.2060108@ryoohki.net> References: <9597679d050817190283900c6@mail.gmail.com> <43042428.2060108@ryoohki.net> Message-ID: <430499D4.500@ryoohki.net> Justus Pendleton wrote: > Dev Purkayastha wrote: > >> Is there a built-in feature to Typo allowing for by-category feeds? > > > Is someone thinking of trying out such a patch? > > I've attached a patch for what I use. URLs are in the form of > /xml/categoryrss/CATEGORYNAME/feed.xml Hm...I should have paid more attention to the diff before I sent it out; it was missing something. You'll also need a view for the categoryrss. Just copy app/views/xml/rss.rxml to app/views/xml/categoryrss.rxml so Typo knows how to actually render the rss feed. From kevin at sb.org Thu Aug 18 13:26:20 2005 From: kevin at sb.org (Kevin Ballard) Date: Thu Aug 18 13:20:04 2005 Subject: [typo] Pages and Sidebars In-Reply-To: <20050818130851.65139.qmail@web52108.mail.yahoo.com> References: <20050818130851.65139.qmail@web52108.mail.yahoo.com> Message-ID: <806799FF-E080-44D1-9686-B51564E972BA@sb.org> Well, you could always use the Pages feature to create a page with all the info you want. It would have a normal sidebar, but the page would contain any static text you want, and the normal readership of your blog wouldn't know it's there. On Aug 18, 2005, at 9:08 AM, Chris Wine wrote: > I would like to use my typo blog as "My Home Page" for > Firefox. To make it effective, I would like to > emulate some of what I use most frequently in My > Yahoo. > > To do this effectively would require the ability to > change one page to have a different sidebar than the > other pages. That way in the sidebar I can have > links to sites that I frequent, but are unlikely to be > of interest most of my readers (e.g. Yahoo Mail, Typo > login, RSS.) > > Is there a way to do this in Typo? -- Kevin Ballard kevin@sb.org http://www.tildesoft.com http://kevin.sb.org -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2378 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050818/6d4462c4/smime.bin From corey.donohoe at gmail.com Thu Aug 18 14:33:05 2005 From: corey.donohoe at gmail.com (Corey Donohoe) Date: Thu Aug 18 14:26:51 2005 Subject: [typo] Category Feeds: Is this in Typo? In-Reply-To: <430499D4.500@ryoohki.net> References: <9597679d050817190283900c6@mail.gmail.com> <43042428.2060108@ryoohki.net> <430499D4.500@ryoohki.net> Message-ID: <1a9e786f050818113356adbf8e@mail.gmail.com> I added this as a patch a little while back, I think scott's going to merge it in relatively soon. On 8/18/05, Justus Pendleton wrote: > Justus Pendleton wrote: > > Dev Purkayastha wrote: > > > >> Is there a built-in feature to Typo allowing for by-category feeds? > > > > > Is someone thinking of trying out such a patch? > > > > I've attached a patch for what I use. URLs are in the form of > > /xml/categoryrss/CATEGORYNAME/feed.xml > > Hm...I should have paid more attention to the diff before I sent it out; > it was missing something. You'll also need a view for the categoryrss. > Just copy app/views/xml/rss.rxml to app/views/xml/categoryrss.rxml so > Typo knows how to actually render the rss feed. > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Corey Donohoe http://www.atmos.org/ corey.donohoe@gmail.com From corey.donohoe at gmail.com Thu Aug 18 14:33:30 2005 From: corey.donohoe at gmail.com (Corey Donohoe) Date: Thu Aug 18 14:27:12 2005 Subject: [typo] Category Feeds: Is this in Typo? In-Reply-To: <1a9e786f050818113356adbf8e@mail.gmail.com> References: <9597679d050817190283900c6@mail.gmail.com> <43042428.2060108@ryoohki.net> <430499D4.500@ryoohki.net> <1a9e786f050818113356adbf8e@mail.gmail.com> Message-ID: <1a9e786f050818113323b2f277@mail.gmail.com> I guess it helps if I put the url in, http://typo.leetsoft.com/trac/ticket/271 On 8/18/05, Corey Donohoe wrote: > I added this as a patch a little while back, I think scott's going to > merge it in relatively soon. > > On 8/18/05, Justus Pendleton wrote: > > Justus Pendleton wrote: > > > Dev Purkayastha wrote: > > > > > >> Is there a built-in feature to Typo allowing for by-category feeds? > > > > > > > Is someone thinking of trying out such a patch? > > > > > > I've attached a patch for what I use. URLs are in the form of > > > /xml/categoryrss/CATEGORYNAME/feed.xml > > > > Hm...I should have paid more attention to the diff before I sent it out; > > it was missing something. You'll also need a view for the categoryrss. > > Just copy app/views/xml/rss.rxml to app/views/xml/categoryrss.rxml so > > Typo knows how to actually render the rss feed. > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > -- > Corey Donohoe > http://www.atmos.org/ > corey.donohoe@gmail.com > -- Corey Donohoe http://www.atmos.org/ corey.donohoe@gmail.com From jeff at commontext.com Fri Aug 19 19:01:16 2005 From: jeff at commontext.com (Jeff Casimir) Date: Fri Aug 19 18:59:30 2005 Subject: [typo] Logs / Statistics In-Reply-To: References: Message-ID: <430664BC.6060200@commontext.com> Hi guys, I've been working with Luben, the guy who started railstat, to make it...ummm...better. It needs a lot of work before I would call it ready for widespread deployment. Since his 0.1 gem creation I have done a lot of work on the code to... - Support Windows - Support PostgreSQL (aka anything not-MySQL) - Support a server running as local host - Optimizing some of the SQL queries - Refactoring. Refactoring. Refactoring. I took a day off to go to the beach, but I should be back to work on it tonight or tomorrow. Expect release(s) next week. Thanks, Jeff Casimir Ryan Abrams wrote: > Doesn't look like it would be very hard to add that to a typo > install, but I don't think it makes sense to package it /with/ Typo. > I mean, it would be neat to see it integrated and all that... but > that would change their project from being a real time stat tracker > for rails, to a real time stat tracker for typo. > > Why not just follow the install instructions for your existing typo > install? http://www.railstat.com/wiki/InstallGuide > > -R > > p.s. according to a note on that installguide page, 8/21/05 is the > date of some major next release. could be worth waiting through the > weekend before you get started. Then again, maybe not. > > > On Aug 18, 2005, at 8:46 AM, Nathaniel Talbott wrote: > >> On 8/18/05, Ryan Abrams wrote: >> >>> I used this: http://forum.textdrive.com/viewtopic.php?id=3259 >>> >>> It's not completely painless, as it's a pretty intricate setup, but >>> it seems to work very well. >>> >> >> I'm using AWStats, too, but this looks intriguing: >> >> http://www.railstat.com/ >> >> I'd love to see it packaged up with Typo. >> >> >> -- >> Nathaniel Talbott >> >> <:((>< >> >> _______________________________________________ >> Typo-list mailing list >> Typo-list@rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From cd_wine at yahoo.com Fri Aug 19 19:44:13 2005 From: cd_wine at yahoo.com (Chris Wine) Date: Fri Aug 19 19:37:49 2005 Subject: [typo] Logs / Statistics In-Reply-To: <430664BC.6060200@commontext.com> Message-ID: <20050819234413.92991.qmail@web52115.mail.yahoo.com> Hey - Just to build on what Jeff emailed earlier, below is a note from Luben regarding RailStat and Typo integration. As Jeff indicated, it sounds like he is all for using RailStat with Typo. CW *** Hi Chris, Chris Wine wrote: > I think your stats package with Typo would be a good > feature. And I think it should have UI accessablity > from Typo. Yes. I think that it will be great to integrate RailStat with Typo. In fact I already have working prototype of such integration. It is a lot bigger - the system has modules for Blog, Forum, Photo Gallery, Webmail, basic CMS, etc. I am planning to release it as an open source project in the next couple of weeks. Best regards, Luben --- Jeff Casimir wrote: > Hi guys, > > I've been working with Luben, the guy who started > railstat, to make > it...ummm...better. It needs a lot of work before I > would call it ready > for widespread deployment. Since his 0.1 gem > creation I have done a lot > of work on the code to... > - Support Windows > - Support PostgreSQL (aka anything not-MySQL) > - Support a server running as local host > - Optimizing some of the SQL queries > - Refactoring. Refactoring. Refactoring. > > I took a day off to go to the beach, but I should be > back to work on it > tonight or tomorrow. Expect release(s) next week. > > Thanks, > Jeff Casimir > > Ryan Abrams wrote: > > > Doesn't look like it would be very hard to add > that to a typo > > install, but I don't think it makes sense to > package it /with/ Typo. > > I mean, it would be neat to see it integrated and > all that... but > > that would change their project from being a real > time stat tracker > > for rails, to a real time stat tracker for typo. > > > > Why not just follow the install instructions for > your existing typo > > install? http://www.railstat.com/wiki/InstallGuide > > > > -R > > > > p.s. according to a note on that installguide > page, 8/21/05 is the > > date of some major next release. could be worth > waiting through the > > weekend before you get started. Then again, maybe > not. > > > > > > On Aug 18, 2005, at 8:46 AM, Nathaniel Talbott > wrote: > > > >> On 8/18/05, Ryan Abrams > wrote: > >> > >>> I used this: > http://forum.textdrive.com/viewtopic.php?id=3259 > >>> > >>> It's not completely painless, as it's a pretty > intricate setup, but > >>> it seems to work very well. > >>> > >> > >> I'm using AWStats, too, but this looks > intriguing: > >> > >> http://www.railstat.com/ > >> > >> I'd love to see it packaged up with Typo. > >> > >> > >> -- > >> Nathaniel Talbott > >> > >> <:((>< > >> > >> _______________________________________________ > >> Typo-list mailing list > >> Typo-list@rubyforge.org > >> http://rubyforge.org/mailman/listinfo/typo-list > >> > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > Chris Wine P: 720.496.4050 | M: 303.912.9463 cd_wine@yahoo.com | www.christopherwine.com From trejkaz at trypticon.org Sun Aug 21 20:17:57 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Sun Aug 21 20:12:15 2005 Subject: [typo] Finding posts without a category In-Reply-To: <8D3B4F08-0A14-4175-B149-4B8D25DCF72E@sb.org> References: <20050818111800.48nbiwy1okk4ksck@home.trypticon.org> <8D3B4F08-0A14-4175-B149-4B8D25DCF72E@sb.org> Message-ID: <20050822101757.0382ovfrdwcg0c0w@home.trypticon.org> Quoting Kevin Ballard : > On Aug 17, 2005, at 9:18 PM, Trejkaz wrote: > >> This is probably a silly question, but is there a way I can easily find all >> posts without a category assigned? I want to make sure everything >> has at least >> one category, but at the moment it's a bit tedious to go hunting for them. > > I'd imagine the following would work: > > ./script/runner 'Article.find(:all, :include => [:categories]).reject > { |a| a.has_categories? }.each { |a| p a }' > > Of course, I don't know for certain because all my articles have > categories, so it prints nothing for me. It works well. Thanks for that. Do you think there's room for a "no category" item in the category list sidebar? It doesn't matter for my own site anymore, as I now have a category where I put everything that has no other category, but maybe it makes sense to put there so that people notice when they've forgotten to assign a category to a post. TX ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From kevin at sb.org Sun Aug 21 22:51:20 2005 From: kevin at sb.org (Kevin Ballard) Date: Sun Aug 21 22:44:57 2005 Subject: [typo] Logs / Statistics In-Reply-To: <430664BC.6060200@commontext.com> References: <430664BC.6060200@commontext.com> Message-ID: RailStat sounds cool, but since it works by having the browser load a resource (either JS or image), it seems to me it can't track RSS feeds. Do you have any sort of solution for that? On Aug 19, 2005, at 7:01 PM, Jeff Casimir wrote: > I've been working with Luben, the guy who started railstat, to make > it...ummm...better. It needs a lot of work before I would call it > ready for widespread deployment. Since his 0.1 gem creation I have > done a lot of work on the code to... > - Support Windows > - Support PostgreSQL (aka anything not-MySQL) > - Support a server running as local host > - Optimizing some of the SQL queries > - Refactoring. Refactoring. Refactoring. > > I took a day off to go to the beach, but I should be back to work > on it tonight or tomorrow. Expect release(s) next week. -- Kevin Ballard kevin@sb.org http://www.tildesoft.com http://kevin.sb.org -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2378 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050821/ebe0e87d/smime-0001.bin From jeff at commontext.com Sun Aug 21 23:08:23 2005 From: jeff at commontext.com (Jeff Casimir) Date: Sun Aug 21 23:06:46 2005 Subject: [typo] Logs / Statistics In-Reply-To: References: <430664BC.6060200@commontext.com> Message-ID: <430941A7.7010003@commontext.com> Kevin, Are you saying that you want to track when users access your RSS feed? That sounds like an interesting challenge. I think the tracking would have to come from the controller that renders the XML. For Typo applications, this would mean adding a method call within the controller if you want to use railstat. Of course first I'll have to figure out the railstat side of things. It shouldn't be hard, but I haven't had much dev time in the last week. I will keep it at the forefront of my to-do list this week. Thanks for the idea, Jeff Kevin Ballard wrote: > RailStat sounds cool, but since it works by having the browser load a > resource (either JS or image), it seems to me it can't track RSS > feeds. Do you have any sort of solution for that? > > On Aug 19, 2005, at 7:01 PM, Jeff Casimir wrote: > >> I've been working with Luben, the guy who started railstat, to make >> it...ummm...better. It needs a lot of work before I would call it >> ready for widespread deployment. Since his 0.1 gem creation I have >> done a lot of work on the code to... >> - Support Windows >> - Support PostgreSQL (aka anything not-MySQL) >> - Support a server running as local host >> - Optimizing some of the SQL queries >> - Refactoring. Refactoring. Refactoring. >> >> I took a day off to go to the beach, but I should be back to work on >> it tonight or tomorrow. Expect release(s) next week. > > >------------------------------------------------------------------------ > >_______________________________________________ >Typo-list mailing list >Typo-list@rubyforge.org >http://rubyforge.org/mailman/listinfo/typo-list > > From wac+typo at carrel.org Sun Aug 21 23:22:12 2005 From: wac+typo at carrel.org (William A. Carrel) Date: Sun Aug 21 23:15:46 2005 Subject: [typo] Logs / Statistics In-Reply-To: <430941A7.7010003@commontext.com> References: <430664BC.6060200@commontext.com> <430941A7.7010003@commontext.com> Message-ID: I imagine you'd achieve this by fitting some magic javascript or image into the article in the RSS feed. Really this would track the same way as article views and probably could be implemented fairly easily (and non-invasively) using the filter framework that Scott Laird has been working on. On Aug 21, 2005, at 8:08 PM, Jeff Casimir wrote: > Are you saying that you want to track when users access your RSS > feed? That sounds like an interesting challenge. I think the > tracking would have to come from the controller that renders the > XML. For Typo applications, this would mean adding a method call > within the controller if you want to use railstat. Of course first > I'll have to figure out the railstat side of things. It shouldn't > be hard, but I haven't had much dev time in the last week. I will > keep it at the forefront of my to-do list this week. > > Kevin Ballard wrote: > > >> RailStat sounds cool, but since it works by having the browser >> load a resource (either JS or image), it seems to me it can't >> track RSS feeds. Do you have any sort of solution for that? >> >> On Aug 19, 2005, at 7:01 PM, Jeff Casimir wrote: >> >> >>> I've been working with Luben, the guy who started railstat, to >>> make it...ummm...better. It needs a lot of work before I would >>> call it ready for widespread deployment. Since his 0.1 gem >>> creation I have done a lot of work on the code to... >>> - Support Windows >>> - Support PostgreSQL (aka anything not-MySQL) >>> - Support a server running as local host >>> - Optimizing some of the SQL queries >>> - Refactoring. Refactoring. Refactoring. >>> >>> I took a day off to go to the beach, but I should be back to >>> work on it tonight or tomorrow. Expect release(s) next week. >>> >> >> >> --------------------------------------------------------------------- >> --- >> >> _______________________________________________ >> Typo-list mailing list >> Typo-list@rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> >> > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From jeff at commontext.com Sun Aug 21 23:48:51 2005 From: jeff at commontext.com (Jeff Casimir) Date: Sun Aug 21 23:47:11 2005 Subject: [typo] Logs / Statistics In-Reply-To: References: <430664BC.6060200@commontext.com> <430941A7.7010003@commontext.com> Message-ID: <43094B23.20906@commontext.com> William, That is true. It seems there are about a dozen ways to implement it. I would be hesitant to inject JS into the RSS. I am not an expert on the spec, but I would suspect many RSS readers don't implement JS. In this case the trigger, it seems, should be server side. In the controller directly (by adding code) or indirectly (by using a before or after filter) seems the most logical. -Jeff William A. Carrel wrote: > I imagine you'd achieve this by fitting some magic javascript or > image into the article in the RSS feed. Really this would track the > same way as article views and probably could be implemented fairly > easily (and non-invasively) using the filter framework that Scott > Laird has been working on. > From william.a at carrel.org Mon Aug 22 00:31:19 2005 From: william.a at carrel.org (William A. Carrel) Date: Mon Aug 22 00:24:59 2005 Subject: [typo] Logs / Statistics In-Reply-To: <43094B23.20906@commontext.com> References: <430664BC.6060200@commontext.com> <430941A7.7010003@commontext.com> <43094B23.20906@commontext.com> Message-ID: <85B9171D-D4DD-4D70-B1CC-43F9DD23752C@carrel.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Aug 21, 2005, at 8:48 PM, Jeff Casimir wrote: > William A. Carrel wrote: > >> I imagine you'd achieve this by fitting some magic javascript or >> image into the article in the RSS feed. Really this would track >> the same way as article views and probably could be implemented >> fairly easily (and non-invasively) using the filter framework >> that Scott Laird has been working on. > That is true. It seems there are about a dozen ways to implement > it. I would be hesitant to inject JS into the RSS. I am not an > expert on the spec, but I would suspect many RSS readers don't > implement JS. In this case the trigger, it seems, should be server > side. In the controller directly (by adding code) or indirectly > (by using a before or after filter) seems the most logical. My line of reasoning was trying to work around the fact that a lot of people view their RSS feeds from intermediate RSS aggregators (such as feedster, technorati, et al.). Without some "phone home" method like JavaScript or an image, those views are going to be lost. Presumably the JS would live in a segment that was reasonably polite for unsupported RSS readers. Most OS X RSS readers that I've seen use WebCore so presumably could support JS with a minimal amount of effort. This doesn't necessarily hold true for other platforms though. In any case, the RSS feeds are really a part of Typo that benefits the most from the on-disk caching. Those same RSS aggregators can be pretty aggressive about their polling and forcing a run through the controller for every access is not the best strategy overall. Having those XML feeds cache to disk for lighttpd and Apache has been a definite performance win. I'd hate to see us give that performance win up for statistics. - -- wac -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iEYEARECAAYFAkMJVRsACgkQyWl2oUGFZkwlbgCfcdOCsDvMH1bN+k9hHxSfZSDK 8OYAoJM0++/reOfSWyZpWqX30RnJyn34 =9Fk6 -----END PGP SIGNATURE----- From vacindak at gmail.com Mon Aug 22 00:39:39 2005 From: vacindak at gmail.com (Bob Aman) Date: Mon Aug 22 00:33:11 2005 Subject: [typo] Logs / Statistics In-Reply-To: <85B9171D-D4DD-4D70-B1CC-43F9DD23752C@carrel.org> References: <430664BC.6060200@commontext.com> <430941A7.7010003@commontext.com> <43094B23.20906@commontext.com> <85B9171D-D4DD-4D70-B1CC-43F9DD23752C@carrel.org> Message-ID: <599af4e2050821213926895d32@mail.gmail.com> > My line of reasoning was trying to work around the fact that a lot of > people view their RSS feeds from intermediate RSS aggregators (such > as feedster, technorati, et al.). Without some "phone home" method > like JavaScript or an image, those views are going to be lost. > Presumably the JS would live in a segment that was reasonably polite > for unsupported RSS readers. Most OS X RSS readers that I've seen > use WebCore so presumably could support JS with a minimal amount of > effort. This doesn't necessarily hold true for other platforms though. Here's the thing. If you actually have a feed reader that lets Javascript through, or worse, actually executes it, it should probably be considered to be dangerous and a reader to avoid. Every good feed reader/parser out there (my FeedTools library included) sanitizes all Javascript without exception. So this should not really be considered a valid option. -- Bob Aman From kevin at sb.org Mon Aug 22 00:43:35 2005 From: kevin at sb.org (Kevin Ballard) Date: Mon Aug 22 00:37:12 2005 Subject: [typo] Logs / Statistics In-Reply-To: <430941A7.7010003@commontext.com> References: <430664BC.6060200@commontext.com> <430941A7.7010003@commontext.com> Message-ID: <2988D428-1EF3-43A0-8CC8-35DADD1F0256@sb.org> On Aug 21, 2005, at 11:08 PM, Jeff Casimir wrote: > Are you saying that you want to track when users access your RSS > feed? That sounds like an interesting challenge. I think the > tracking would have to come from the controller that renders the > XML. For Typo applications, this would mean adding a method call > within the controller if you want to use railstat. Of course first > I'll have to figure out the railstat side of things. It shouldn't > be hard, but I haven't had much dev time in the last week. I will > keep it at the forefront of my to-do list this week. The problem with this is that Typo has caching (as long as you're running under production), so you'd only track the first hit to the feed after each change, and any subsequent hits would find the cache and not trigger railstat. On Aug 21, 2005, at 11:22 PM, William A. Carrel wrote: > I imagine you'd achieve this by fitting some magic javascript or > image into the article in the RSS feed. Really this would track > the same way as article views and probably could be implemented > fairly easily (and non-invasively) using the filter framework that > Scott Laird has been working on. That wouldn't work. That would track each time the user views that article in their newsreader (assuming it supports JS), not each time the feed is fetched. What I'm really most interested in, though, is not each individual access of the feed (although it would be good to know that for server load purposes), but rather who's reading my feed, which really means tracking each time a unique IP hits my feed. Perhaps railstat could do some minimal logfile parsing for this sort of thing? -- Kevin Ballard kevin@sb.org http://www.tildesoft.com http://kevin.sb.org -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2378 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050822/9c5fe2c1/smime.bin From william.a at carrel.org Mon Aug 22 01:26:37 2005 From: william.a at carrel.org (William A. Carrel) Date: Mon Aug 22 01:20:13 2005 Subject: [typo] Logs / Statistics In-Reply-To: <2988D428-1EF3-43A0-8CC8-35DADD1F0256@sb.org> References: <430664BC.6060200@commontext.com> <430941A7.7010003@commontext.com> <2988D428-1EF3-43A0-8CC8-35DADD1F0256@sb.org> Message-ID: <8B0780DA-BE92-427B-9109-7498DC6E72DC@carrel.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Aug 21, 2005, at 9:43 PM, Kevin Ballard wrote: > On Aug 21, 2005, at 11:22 PM, William A. Carrel wrote: > >> I imagine you'd achieve this by fitting some magic javascript or >> image into the article in the RSS feed. Really this would track >> the same way as article views and probably could be implemented >> fairly easily (and non-invasively) using the filter framework that >> Scott Laird has been working on. >> > > That wouldn't work. That would track each time the user views that > article in their newsreader (assuming it supports JS), not each > time the feed is fetched. Who's to say that seeing who views the article in their newsreader and how often isn't a statistic worth tracking? (Bob is right about JS in the newsreaders, so we'll presume it's a 1x1 image bug, which may also not be terribly reliable.) We're going to wind up encountering that same kind of trouble with the normal pages too. Robot visitors that don't get images or javascript aren't necessarily going to be tracked. Whether or not they should is an opinion that differs depending on what you're trying to get out of the statistics. (i.e. Are you measuring server load or human viewership.) > What I'm really most interested in, though, is not each individual > access of the feed (although it would be good to know that for > server load purposes), but rather who's reading my feed, which > really means tracking each time a unique IP hits my feed. As you said, this will require reading the server logs. A lot of the people hitting your feed are going to be feed aggregators (and various Google spider machines looking for changes to the site it should pick up). Any sort of JS/Image/etc. sleight of hand tricks aren't going to show anything for those. We could probably have a well-reasoned debate about whether or not either the "web server served a resource" or the "some browser/reader just pulled the magic image" stats are going to be of more value. In the end, it depends on the user. As a result, gathering both would probably be advisable if we're going to go to the trouble of integrating it, people will end up demanding which ever one isn't there as a feature anyway. In the end, even with both, there will still be some audience that finds built-in stats inadequate for some reason. Maybe because it doesn't aggregate by IP location data, maybe because it doesn't show whether the page came from cache, or maybe because it doesn't aggregate their werewolf blog views by moon phase. These sorts of complications are why perhaps this would be best left as a separate item that just has a content filter that inserts magic 1x1 image bugs for tracking but doesn't otherwise require mucking around in the rest of the Typo code. There are lies, damned lies and... ;-) - -- wac -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iEYEARECAAYFAkMJYg8ACgkQyWl2oUGFZkxfmQCfegYXIktU9MbwAIHCFu2k9dgH AHAAn3VMEY9PU9Hc71md2v0Nyo4qHn0d =d3ma -----END PGP SIGNATURE----- From justus at ryoohki.net Mon Aug 22 02:00:57 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Mon Aug 22 01:53:20 2005 Subject: [typo] live comment preview patch Message-ID: <43096A19.6060702@ryoohki.net> In case anyone is interested, I've created a ticket[1] and attached a small patch that adds live previews of comments are users type them. Typo didn't seem to have any kind of preview for comments and this seemed a pretty easy way to add them. If anyone has any feedback on the patch I'd be happy to (try to) incorporate it. [1]: http://typo.leetsoft.com/trac/ticket/331 From socialmoth.blog at gmail.com Mon Aug 22 11:26:46 2005 From: socialmoth.blog at gmail.com (Paul McKellar) Date: Mon Aug 22 11:20:19 2005 Subject: [typo] code in comments Message-ID: <328687de05082208263e382be4@mail.gmail.com> i hope this is an appropriate list for this type of question. i sent a friend my blog and she tried to add a comment. she claimed that she got code in her response and was capable of telling me that she was using IE someversion. complete non tech so the idea of getting any sort of remote access was pretty intimidating. is there any known breakage with a version of IE? or for that matter any other browsers? she tends to have lots of computer problems, so i think it is on her end. does typo fail gracefully without java and/or cookies enabled? is there a known issues list somewhere? thanks Paul From scott at sigkill.org Mon Aug 22 11:34:58 2005 From: scott at sigkill.org (Scott Laird) Date: Mon Aug 22 11:28:32 2005 Subject: [typo] code in comments In-Reply-To: <328687de05082208263e382be4@mail.gmail.com> References: <328687de05082208263e382be4@mail.gmail.com> Message-ID: <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> On Aug 22, 2005, at 8:26 AM, Paul McKellar wrote: > i hope this is an appropriate list for this type of question. > > i sent a friend my blog and she tried to add a comment. she claimed > that she got code in her response and was capable of telling me that > she was using IE someversion. complete non tech so the idea of > getting any sort of remote access was pretty intimidating. > > is there any known breakage with a version of IE? or for that matter > any other browsers? > > she tends to have lots of computer problems, so i think it is on her > end. does typo fail gracefully without java and/or cookies enabled? > > is there a known issues list somewhere? I'm not quite sure what she was saying. There have been issues with Typo and IE, largely because none of the Typo developers use Windows, so we don't have an easy way to test things. Feel free to submit bug reports via typo.leetsoft.com, and include screenshots as applicable. Patches that fix problems are even better. Typo doesn't use Java at all, but it requires JavaScript. If JS is disabled, then comments won't work. We might want to look at fixing that at some point in the future, but it's not a high priority for any of us. Again, we'll take patches :-) Scott From socialmoth.blog at gmail.com Mon Aug 22 11:46:39 2005 From: socialmoth.blog at gmail.com (Paul McKellar) Date: Mon Aug 22 11:40:28 2005 Subject: [typo] code in comments In-Reply-To: <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> Message-ID: <328687de0508220846109f9ca3@mail.gmail.com> thanks. yeah i meant javascript : ) well i'll see how motivated i am. i really like typo and i think i have a windows box around my house, unplugged and unloved. the blog was intended for family and nontech friends so i might do some more footwork. is there anything i should post besides, screenshot, the tail of the log and description? i have rails experience but it is limited to the first 200 pages of the agile and two personal applications. for now... when you go to my blog in IE it autoshows the "your blog and your email" addition. but null is placed in to yoru name and your blog. this caused some confusion with my 13 yr old cousin. who thought my website was telling her my name was null. IE 6.0.29900.2180 xp sp2 the leave url/email link works fin to hide and show after that, it is just open by default. the java (prototype library i assume) worked fine for me at work. don't have the log file handy Paul On 8/22/05, Scott Laird wrote: > > On Aug 22, 2005, at 8:26 AM, Paul McKellar wrote: > > i hope this is an appropriate list for this type of question. > > > > i sent a friend my blog and she tried to add a comment. she claimed > > that she got code in her response and was capable of telling me that > > she was using IE someversion. complete non tech so the idea of > > getting any sort of remote access was pretty intimidating. > > > > is there any known breakage with a version of IE? or for that matter > > any other browsers? > > > > she tends to have lots of computer problems, so i think it is on her > > end. does typo fail gracefully without java and/or cookies enabled? > > > > is there a known issues list somewhere? > > I'm not quite sure what she was saying. There have been issues with > Typo and IE, largely because none of the Typo developers use Windows, > so we don't have an easy way to test things. Feel free to submit bug > reports via typo.leetsoft.com, and include screenshots as > applicable. Patches that fix problems are even better. > > Typo doesn't use Java at all, but it requires JavaScript. If JS is > disabled, then comments won't work. We might want to look at fixing > that at some point in the future, but it's not a high priority for > any of us. Again, we'll take patches :-) > > > Scott > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- A non-text attachment was scrubbed... Name: null.JPG Type: image/jpeg Size: 10061 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050822/c9b23082/null.jpg From kevin at sb.org Mon Aug 22 19:58:31 2005 From: kevin at sb.org (Kevin Ballard) Date: Mon Aug 22 19:52:06 2005 Subject: [typo] Logs / Statistics In-Reply-To: <8B0780DA-BE92-427B-9109-7498DC6E72DC@carrel.org> References: <430664BC.6060200@commontext.com> <430941A7.7010003@commontext.com> <2988D428-1EF3-43A0-8CC8-35DADD1F0256@sb.org> <8B0780DA-BE92-427B-9109-7498DC6E72DC@carrel.org> Message-ID: On Aug 22, 2005, at 1:26 AM, William A. Carrel wrote: > Who's to say that seeing who views the article in their newsreader > and how often isn't a statistic worth tracking? (Bob is right > about JS in the newsreaders, so we'll presume it's a 1x1 image bug, > which may also not be terribly reliable.) We're going to wind up > encountering that same kind of trouble with the normal pages too. > Robot visitors that don't get images or javascript aren't > necessarily going to be tracked. Whether or not they should is an > opinion that differs depending on what you're trying to get out of > the statistics. (i.e. Are you measuring server load or human > viewership.) Heh, that's actually the biggest problem with my current stats package. It treats robot visitors just like everybody else, so the top slots of most of the stats it gives me are robots, which is something I really don't care about. I want to know my human readership and what parts of my blog they're reading and such, and I just can't get a good reading with my current stats package. -- Kevin Ballard kevin@sb.org http://www.tildesoft.com http://kevin.sb.org -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2378 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050822/f29b27f6/smime.bin From kevin at sb.org Mon Aug 22 20:00:32 2005 From: kevin at sb.org (Kevin Ballard) Date: Mon Aug 22 19:54:05 2005 Subject: [typo] live comment preview patch In-Reply-To: <43096A19.6060702@ryoohki.net> References: <43096A19.6060702@ryoohki.net> Message-ID: <07C395C0-67CE-4ACA-BEB4-C154DA27A758@sb.org> I don't know if live previews of comments are really very useful. Comments are usually just quick messages you type and send, not something you really have to care too much about the formatting for. Maybe a better approach would be a Preview button that gives you a once-off preview of the current comment? That way you don't get distracted by the page changing constantly, and you're not constantly sending queries off to the server. On Aug 22, 2005, at 2:00 AM, Justus Pendleton wrote: > In case anyone is interested, I've created a ticket[1] and attached > a small patch that adds live previews of comments are users type > them. Typo didn't seem to have any kind of preview for comments and > this seemed a pretty easy way to add them. If anyone has any > feedback on the patch I'd be happy to (try to) incorporate it. -- Kevin Ballard kevin@sb.org http://www.tildesoft.com http://kevin.sb.org -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2378 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050822/2abc9095/smime-0001.bin From ben at incomumdesign.com Mon Aug 22 20:48:20 2005 From: ben at incomumdesign.com (Benjamin Jackson) Date: Mon Aug 22 20:41:53 2005 Subject: [typo] Multiple users In-Reply-To: <4303AC20.1030000@isolated-designs.net> References: <9212531d0508170439650b3556@mail.gmail.com> <200508172203.21014.markc@renta.net> <9212531d0508170533319f8d7@mail.gmail.com> <4F39C84A-1C91-4B2B-8853-4A991970F60F@sigkill.org> <9212531d0508170641443300bc@mail.gmail.com> <2CE28514-256A-4929-B5BA-2D471D6E9D23@sigkill.org> <9212531d0508170741201f9863@mail.gmail.com> <4303AC20.1030000@isolated-designs.net> Message-ID: <173710975a22a890deb3e37136a07aeb@incomumdesign.com> > I find multi-blog support for the core Typo project to be feature > bloat myself. 9.5 times out of 10 there will be 1 blogger or one blog > with many bloggers blogging on the same > blog (say that 5 times fast!). Don't you think the multi-blog feature > would only be useful to a small minority of our users and not the 95% > majority? Depends. I can think of a lot of NGO's that could use a good open-source blog to manage blogs for the organization, including an English school that I'm working with right now that wants to do student blogs. We're looking at MT but I would love to be able to use typo instead :) ___________________ Ben Jackson Diretor de Desenvolvimento ben@incomumdesign.com http://www.incomumdesign.com From jeff at commontext.com Mon Aug 22 20:58:50 2005 From: jeff at commontext.com (Jeff Casimir) Date: Mon Aug 22 20:57:02 2005 Subject: [typo] Multiple users In-Reply-To: <173710975a22a890deb3e37136a07aeb@incomumdesign.com> References: <9212531d0508170439650b3556@mail.gmail.com> <200508172203.21014.markc@renta.net> <9212531d0508170533319f8d7@mail.gmail.com> <4F39C84A-1C91-4B2B-8853-4A991970F60F@sigkill.org> <9212531d0508170641443300bc@mail.gmail.com> <2CE28514-256A-4929-B5BA-2D471D6E9D23@sigkill.org> <9212531d0508170741201f9863@mail.gmail.com> <4303AC20.1030000@isolated-designs.net> <173710975a22a890deb3e37136a07aeb@incomumdesign.com> Message-ID: <430A74CA.90002@commontext.com> Not to mention the possibilities of revenue generation. Offer hosted Typo blogs for some paltry fee ($3/month?) and raise money for the project, developers, whatever. -Jeff Benjamin Jackson wrote: >> I find multi-blog support for the core Typo project to be feature >> bloat myself. 9.5 times out of 10 there will be 1 blogger or one >> blog with many bloggers blogging on the same >> blog (say that 5 times fast!). Don't you think the multi-blog >> feature would only be useful to a small minority of our users and not >> the 95% majority? > > > Depends. I can think of a lot of NGO's that could use a good > open-source blog to manage blogs for the organization, including an > English school that I'm working with right now that wants to do > student blogs. We're looking at MT but I would love to be able to use > typo instead :) From markc at renta.net Mon Aug 22 23:53:04 2005 From: markc at renta.net (Mark Constable) Date: Mon Aug 22 23:46:46 2005 Subject: [typo] Multiple users In-Reply-To: <430A74CA.90002@commontext.com> References: <9212531d0508170439650b3556@mail.gmail.com> <173710975a22a890deb3e37136a07aeb@incomumdesign.com> <430A74CA.90002@commontext.com> Message-ID: <200508231353.04666.markc@renta.net> On Tuesday 23 August 2005 10:58, Jeff Casimir wrote: > Not to mention the possibilities of revenue generation. Offer hosted > Typo blogs for some paltry fee ($3/month?) and raise money for the > project, developers, whatever. Yep, I've got 4000 dialup ISP clients who I would love to offer a blog system to and there is simply no way I am going to plonk a complete RoR/typo setup in every users web dir. It's simple, what happens in 6 months when I want to upgrade to the latest version, apply a security patch, or add extra modules or functionality. The PHP5 system I am building requires a simple index.php of in each user dir and that pulls up a complete system. Until I can do something similar with typo I am stuck in PHP land. Then there is an issue of some kind of PHP open_basedir safe mode but that is a separate issue. > Benjamin Jackson wrote: > >> I find multi-blog support for the core Typo project to be feature > >> bloat myself. 9.5 times out of 10 there will be 1 blogger or one > >> blog with many bloggers blogging on the same > >> blog (say that 5 times fast!). Don't you think the multi-blog > >> feature would only be useful to a small minority of our users and not > >> the 95% majority? > > > > Depends. I can think of a lot of NGO's that could use a good > > open-source blog to manage blogs for the organization, including an > > English school that I'm working with right now that wants to do > > student blogs. We're looking at MT but I would love to be able to use > > typo instead :) --markc From pratiknaik at gmail.com Tue Aug 23 01:44:00 2005 From: pratiknaik at gmail.com (Pratik) Date: Tue Aug 23 01:37:30 2005 Subject: [typo] Multiple users In-Reply-To: <200508231353.04666.markc@renta.net> References: <9212531d0508170439650b3556@mail.gmail.com> <173710975a22a890deb3e37136a07aeb@incomumdesign.com> <430A74CA.90002@commontext.com> <200508231353.04666.markc@renta.net> Message-ID: <9212531d05082222441bc33052@mail.gmail.com> I think it's a great feture for people who want it ( maybe less that 2% ? ). But it can really divert the typo direction as there will be many if-else conditions due to multi-user nature. IMHO. -Pratik On 8/23/05, Mark Constable wrote: > On Tuesday 23 August 2005 10:58, Jeff Casimir wrote: > > Not to mention the possibilities of revenue generation. Offer hosted > > Typo blogs for some paltry fee ($3/month?) and raise money for the > > project, developers, whatever. > > Yep, I've got 4000 dialup ISP clients who I would love to > offer a blog system to and there is simply no way I am going > to plonk a complete RoR/typo setup in every users web dir. > It's simple, what happens in 6 months when I want to upgrade > to the latest version, apply a security patch, or add extra > modules or functionality. > > The PHP5 system I am building requires a simple index.php of > > > > in each user dir and that pulls up a complete system. Until > I can do something similar with typo I am stuck in PHP land. > Then there is an issue of some kind of PHP open_basedir safe > mode but that is a separate issue. > > > Benjamin Jackson wrote: > > >> I find multi-blog support for the core Typo project to be feature > > >> bloat myself. 9.5 times out of 10 there will be 1 blogger or one > > >> blog with many bloggers blogging on the same > > >> blog (say that 5 times fast!). Don't you think the multi-blog > > >> feature would only be useful to a small minority of our users and not > > >> the 95% majority? > > > > > > Depends. I can think of a lot of NGO's that could use a good > > > open-source blog to manage blogs for the organization, including an > > > English school that I'm working with right now that wants to do > > > student blogs. We're looking at MT but I would love to be able to use > > > typo instead :) > > --markc > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- http://www.religiontalk.org & http://www.spiritualtalk.org - Enlighten your soul From typouser at gmail.com Tue Aug 23 08:43:28 2005 From: typouser at gmail.com (Kris Kaido) Date: Tue Aug 23 08:36:59 2005 Subject: [typo] How to avoid cache Message-ID: <47b6204005082305436eaac58@mail.gmail.com> Hi, I'm currently redesigning my Typo powered blog and I'd like not to have to do an "Empty Page Cache" from admin panel each time I change something in my CSS or code. Is it possible to disable it ? k. From ryanabrams at gmail.com Tue Aug 23 08:47:31 2005 From: ryanabrams at gmail.com (Ryan Abrams) Date: Tue Aug 23 08:41:16 2005 Subject: [typo] How to avoid cache In-Reply-To: <47b6204005082305436eaac58@mail.gmail.com> References: <47b6204005082305436eaac58@mail.gmail.com> Message-ID: In a related query, what is the default timeout on the cache (i.e. does it wait for a manual change on the page to rebuild, thus rendering the sidebar feeds pointless, or does it expire every hour?) - Is it possible to change the timeout? -R On Aug 23, 2005, at 7:43 AM, Kris Kaido wrote: > Hi, > > I'm currently redesigning my Typo powered blog and I'd like not to > have to do an "Empty Page Cache" from admin panel each time I change > something in my CSS or code. > Is it possible to disable it ? > > k. > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Tue Aug 23 09:00:00 2005 From: scott at sigkill.org (Scott Laird) Date: Tue Aug 23 08:53:42 2005 Subject: [typo] How to avoid cache In-Reply-To: References: <47b6204005082305436eaac58@mail.gmail.com> Message-ID: <068457CC-09DB-4DAF-8C08-C17043A3912B@sigkill.org> To disable the cache, run Typo in development mode. Make sure that you sweep the cache first. Typo's cache doesn't currently expire, and there's no easy way to change this using the current caching system. Pages are swept from the cache when something happens that requires a new page build, like article or comment posting. Yes, we know that this can be an issue with sidebars. Scott On Aug 23, 2005, at 5:47 AM, Ryan Abrams wrote: > In a related query, what is the default timeout on the cache (i.e. > does it wait for a manual change on the page to rebuild, thus > rendering the sidebar feeds pointless, or does it expire every > hour?) - Is it possible to change the timeout? > > -R > > On Aug 23, 2005, at 7:43 AM, Kris Kaido wrote: > > >> Hi, >> >> I'm currently redesigning my Typo powered blog and I'd like not to >> have to do an "Empty Page Cache" from admin panel each time I change >> something in my CSS or code. >> Is it possible to disable it ? >> >> k. >> >> _______________________________________________ >> Typo-list mailing list >> Typo-list@rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> >> > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From edavis10 at gmail.com Tue Aug 23 09:05:19 2005 From: edavis10 at gmail.com (Eric Davis) Date: Tue Aug 23 08:58:51 2005 Subject: [typo] How to avoid cache In-Reply-To: <47b6204005082305436eaac58@mail.gmail.com> References: <47b6204005082305436eaac58@mail.gmail.com> Message-ID: <2C787B47-A76E-454C-A4EB-C4EB46652E47@gmail.com> On Aug 23, 2005, at 5:43 AM, Kris Kaido wrote: > Hi, > > I'm currently redesigning my Typo powered blog and I'd like not to > have to do an "Empty Page Cache" from admin panel each time I change > something in my CSS or code. > Is it possible to disable it ? One way I found was to have the "public" directory not writable by the webserver; i.e. folder owned by eric, chmod 755, webserver user www-data. Found this after wondering why my Typo wasn't caching at all. Eric Davis edavis10@gmail.com =-=-= v2sw5Yhw5ln3pr6Ock4ma3u6MLw3m7l6DiJe6t3b8Oen5g5Ma21s5Mr2p6 hackerkey.com From ryanabrams at gmail.com Tue Aug 23 09:05:46 2005 From: ryanabrams at gmail.com (Ryan Abrams) Date: Tue Aug 23 08:59:24 2005 Subject: [typo] How to avoid cache In-Reply-To: <068457CC-09DB-4DAF-8C08-C17043A3912B@sigkill.org> References: <47b6204005082305436eaac58@mail.gmail.com> <068457CC-09DB-4DAF-8C08-C17043A3912B@sigkill.org> Message-ID: Scott, I suspected as much. Running in dev mode seems like it will create too much of a load on my host, so I'll have to pass on that. Is there an easy way to sweep the cache from the command line, or from a URL that I don't have to log-in to? I could setup a cron job to ping something or run something every hour or so. Would deleting just index.html if it exists cause the sidebars to refresh on ALL pages, or just on the index? Also, Typo inherits caching from Rails, right? It would seem a check of the timestamp against some "time elapsed" parameter when accessing the cache would be relatively straightforward at that level, and would allow for expiration. Of course, I'm not about to dive into the actual rails codebase to figure that out, so this paragraph is pretty much pointless. Lazy Web. :-/ Anyway, thanks for the quick response. I'm sure I'll find a way to get around it until a more elegant solution can be found. -Ryan On Aug 23, 2005, at 8:00 AM, Scott Laird wrote: > To disable the cache, run Typo in development mode. Make sure that > you sweep the cache first. > > Typo's cache doesn't currently expire, and there's no easy way to > change this using the current caching system. Pages are swept from > the cache when something happens that requires a new page build, > like article or comment posting. Yes, we know that this can be an > issue with sidebars. > > > Scott > > On Aug 23, 2005, at 5:47 AM, Ryan Abrams wrote: > > >> In a related query, what is the default timeout on the cache (i.e. >> does it wait for a manual change on the page to rebuild, thus >> rendering the sidebar feeds pointless, or does it expire every >> hour?) - Is it possible to change the timeout? >> >> -R >> >> On Aug 23, 2005, at 7:43 AM, Kris Kaido wrote: >> >> >> >>> Hi, >>> >>> I'm currently redesigning my Typo powered blog and I'd like not to >>> have to do an "Empty Page Cache" from admin panel each time I change >>> something in my CSS or code. >>> Is it possible to disable it ? >>> >>> k. >>> >>> _______________________________________________ >>> Typo-list mailing list >>> Typo-list@rubyforge.org >>> http://rubyforge.org/mailman/listinfo/typo-list >>> >>> >>> >> >> _______________________________________________ >> Typo-list mailing list >> Typo-list@rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> >> > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From ryanabrams at gmail.com Tue Aug 23 09:45:25 2005 From: ryanabrams at gmail.com (Ryan Abrams) Date: Tue Aug 23 09:38:54 2005 Subject: [typo] Article Types / Templates Message-ID: <35211edb0508230645246b04a1@mail.gmail.com> I'm looking to have various article types render differently. For example, a "review" could render the "extended" field as part of an image tag, thus allowing me to have a star based ranking and different layout on the review. That sort of thing. To do this, I think i'll need to implement two things: 1) a "type" attribute on articles. Is this as simple as creating a types table with a has_one :type kinda structure on the article? I guess I can muck through this. 2) a way to evaluate the type and call a different render partial by type. I imagine i can just call render partial with the types name, and expect that the appropriate rhtml file will exist. At least for a first go... longer term it would be expected that creating a type would duplicate the default rhtml file to avoid errors. Is this the right approach to take? Is there an easier way to do this already, or to implement it? Is this something others would want, or should I just have a go at it for my personal site only? Thanks, Ryan From scott at sigkill.org Tue Aug 23 09:52:45 2005 From: scott at sigkill.org (Scott Laird) Date: Tue Aug 23 09:46:21 2005 Subject: [typo] How to avoid cache In-Reply-To: <2C787B47-A76E-454C-A4EB-C4EB46652E47@gmail.com> References: <47b6204005082305436eaac58@mail.gmail.com> <2C787B47-A76E-454C-A4EB-C4EB46652E47@gmail.com> Message-ID: <48454C44-48BD-4044-B389-7888C55AEB2D@sigkill.org> On Aug 23, 2005, at 6:05 AM, Eric Davis wrote: > One way I found was to have the "public" directory not writable by > the webserver; i.e. folder owned by eric, chmod 755, webserver user > www-data. Found this after wondering why my Typo wasn't caching at > all. > This works too. If you're doing theme development, and you can't run in dev mode for some reason, then sweeping and then changing the permissions on a few directories in public/ might be an easy way to get what you want. Scott From scott at sigkill.org Tue Aug 23 10:02:08 2005 From: scott at sigkill.org (Scott Laird) Date: Tue Aug 23 09:55:42 2005 Subject: [typo] How to avoid cache In-Reply-To: References: <47b6204005082305436eaac58@mail.gmail.com> <068457CC-09DB-4DAF-8C08-C17043A3912B@sigkill.org> Message-ID: On Aug 23, 2005, at 6:05 AM, Ryan Abrams wrote: > Scott, > > I suspected as much. Running in dev mode seems like it will create > too much of a load on my host, so I'll have to pass on that. > > Is there an easy way to sweep the cache from the command line, or > from a URL that I don't have to log-in to? I could setup a cron job > to ping something or run something every hour or so. Would deleting > just index.html if it exists cause the sidebars to refresh on ALL > pages, or just on the index? > > You can sweep the cache with 'rake sweep_cache'. If you're in production mode, then you'll need to use 'rake sweep_cache RAILS_ENV=production' > Also, Typo inherits caching from Rails, right? It would seem a > check of the timestamp against some "time elapsed" parameter when > accessing the cache would be relatively straightforward at that > level, and would allow for expiration. Of course, I'm not about to > dive into the actual rails codebase to figure that out, so this > paragraph is pretty much pointless. Lazy Web. :-/ > > Nope. Doesn't work that way--go look at http://scottstuff.net/blog/ articles/2005/08/08/problems-with-rails-and-page-caching Scott From ryanabrams at gmail.com Tue Aug 23 11:43:19 2005 From: ryanabrams at gmail.com (Ryan Abrams) Date: Tue Aug 23 11:36:49 2005 Subject: [typo] How to avoid cache In-Reply-To: References: <47b6204005082305436eaac58@mail.gmail.com> <068457CC-09DB-4DAF-8C08-C17043A3912B@sigkill.org> Message-ID: <35211edb05082308436b2dad94@mail.gmail.com> Ah. Interesting post. I guess I'm gonna be going with the cron job then, which will work just fine for my purposes. Thanks, Ryan On 8/23/05, Scott Laird wrote: > > Nope. Doesn't work that way--go look at http://scottstuff.net/blog/ > articles/2005/08/08/problems-with-rails-and-page-caching From william.a at carrel.org Tue Aug 23 12:32:00 2005 From: william.a at carrel.org (William A. Carrel) Date: Tue Aug 23 12:25:35 2005 Subject: [typo] Sidebars and caching Message-ID: <20050823163203.785D3C118@mx.carrel.org> Thinking about what various people have been saying about giving sidebars different caching properties. We could explore implementing the whole sidebar or its constituent modules as an AJAX load (or SSI if we're feeling lowtech ;) so that it could be swept separately from the articles. I'm not sure what implication this would have for things like Google AdSense in the sidebar. Anyway, just a thought. Other thoughts welcome. -- wac From scott at sigkill.org Tue Aug 23 13:22:49 2005 From: scott at sigkill.org (Scott Laird) Date: Tue Aug 23 13:16:30 2005 Subject: [typo] Sidebars and caching In-Reply-To: <20050823163203.785D3C118@mx.carrel.org> References: <20050823163203.785D3C118@mx.carrel.org> Message-ID: <4EB8CF0D-C1B5-4F41-8B42-F377092E6689@sigkill.org> On Aug 23, 2005, at 9:32 AM, William A. Carrel wrote: > Thinking about what various people have been saying about giving > sidebars different caching properties. We could explore > implementing the whole sidebar or its constituent modules as an > AJAX load (or SSI if we're feeling lowtech ;) so that it could be > swept separately from the articles. I'm not sure what implication > this would have for things like Google AdSense in the sidebar. Right now, there's no way for sidebar plugins to export a publicly- visible controller action. I have code for this in my filter patch that would apply cleanly to sidebars, but it's not there yet. I think there are probably better approaches to this problem then adding a dozen ajax loads per page, though :-). Scott From william.a at carrel.org Tue Aug 23 13:47:08 2005 From: william.a at carrel.org (William A. Carrel) Date: Tue Aug 23 13:40:42 2005 Subject: [typo] Sidebars and caching In-Reply-To: <4EB8CF0D-C1B5-4F41-8B42-F377092E6689@sigkill.org> References: <20050823163203.785D3C118@mx.carrel.org> <4EB8CF0D-C1B5-4F41-8B42-F377092E6689@sigkill.org> Message-ID: <924C085D-E57A-401F-961C-3136F0F3E46B@carrel.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Aug 23, 2005, at 10:22 AM, Scott Laird wrote: > > On Aug 23, 2005, at 9:32 AM, William A. Carrel wrote: > > >> Thinking about what various people have been saying about giving >> sidebars different caching properties. We could explore >> implementing the whole sidebar or its constituent modules as an >> AJAX load (or SSI if we're feeling lowtech ;) so that it could be >> swept separately from the articles. I'm not sure what implication >> this would have for things like Google AdSense in the sidebar. >> > > Right now, there's no way for sidebar plugins to export a publicly- > visible controller action. I have code for this in my filter patch > that would apply cleanly to sidebars, but it's not there yet. For individual sidebar plugins sure, but for the whole sidebar, we already have code for that... http://blog/sidebars/sidebar/ display_plugins And this could be added to the cached pages easily enough. > I think there are probably better approaches to this problem then > adding a dozen ajax loads per page, though :-). Well a dozen ajax loads doesn't sound like much fun, but one for the whole sidebar isn't quite so bad and certainly helps resolve the problem that sidebar plugins are going to want shorter cache timeouts than article content. It seems silly to sweep the whole article cache to update sidebar content when breaking that content out would be fairly trivial. This looks straight forward enough that I'll work on a patch today... - -- wac -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iEYEARECAAYFAkMLYR4ACgkQyWl2oUGFZky3oACbBbC8u9J/K37FkOz9H5LzIDId D2EAn1UhTVe43OP3XdwITawVmpuIdlBY =ZQY0 -----END PGP SIGNATURE----- From kevin at sb.org Tue Aug 23 14:08:53 2005 From: kevin at sb.org (Kevin Ballard) Date: Tue Aug 23 14:02:27 2005 Subject: [typo] Sidebars and caching In-Reply-To: <924C085D-E57A-401F-961C-3136F0F3E46B@carrel.org> References: <20050823163203.785D3C118@mx.carrel.org> <4EB8CF0D-C1B5-4F41-8B42-F377092E6689@sigkill.org> <924C085D-E57A-401F-961C-3136F0F3E46B@carrel.org> Message-ID: <4172F9DE-BAD6-4864-97E7-E07426F39A98@sb.org> Do you really want to introduce a visual delay before the sidebar shows up each time you load a new page? Perhaps the better solution would be to switch from static page caching to action caching. On Aug 23, 2005, at 1:47 PM, William A. Carrel wrote: > Well a dozen ajax loads doesn't sound like much fun, but one for > the whole sidebar isn't quite so bad and certainly helps resolve > the problem that sidebar plugins are going to want shorter cache > timeouts than article content. It seems silly to sweep the whole > article cache to update sidebar content when breaking that content > out would be fairly trivial. > > This looks straight forward enough that I'll work on a patch today... -- Kevin Ballard kevin@sb.org http://www.tildesoft.com http://kevin.sb.org -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2378 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050823/5e324373/smime.bin From scott at sigkill.org Tue Aug 23 14:13:36 2005 From: scott at sigkill.org (Scott Laird) Date: Tue Aug 23 14:07:09 2005 Subject: [typo] Sidebars and caching In-Reply-To: <4172F9DE-BAD6-4864-97E7-E07426F39A98@sb.org> References: <20050823163203.785D3C118@mx.carrel.org> <4EB8CF0D-C1B5-4F41-8B42-F377092E6689@sigkill.org> <924C085D-E57A-401F-961C-3136F0F3E46B@carrel.org> <4172F9DE-BAD6-4864-97E7-E07426F39A98@sb.org> Message-ID: <01925F9B-CA3D-43E8-8311-7562D87CF1E7@sigkill.org> On Aug 23, 2005, at 11:08 AM, Kevin Ballard wrote: > Do you really want to introduce a visual delay before the sidebar > shows up each time you load a new page? > > Perhaps the better solution would be to switch from static page > caching to action caching. I'd really like to do some performance testing with action caching. I'm using it for one thing with my filter code right now, and it looks nice and simple. Scott From william.a at carrel.org Tue Aug 23 15:34:31 2005 From: william.a at carrel.org (William A. Carrel) Date: Tue Aug 23 15:28:11 2005 Subject: [typo] Sidebars and caching In-Reply-To: <01925F9B-CA3D-43E8-8311-7562D87CF1E7@sigkill.org> References: <20050823163203.785D3C118@mx.carrel.org> <4EB8CF0D-C1B5-4F41-8B42-F377092E6689@sigkill.org> <924C085D-E57A-401F-961C-3136F0F3E46B@carrel.org> <4172F9DE-BAD6-4864-97E7-E07426F39A98@sb.org> <01925F9B-CA3D-43E8-8311-7562D87CF1E7@sigkill.org> Message-ID: <0491ED6A-4065-441C-A4BC-DDD50AA0C860@carrel.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Aug 23, 2005, at 11:13 AM, Scott Laird wrote: > > On Aug 23, 2005, at 11:08 AM, Kevin Ballard wrote: > >> Do you really want to introduce a visual delay before the sidebar >> shows up each time you load a new page? >> >> Perhaps the better solution would be to switch from static page >> caching to action caching. > > I'd really like to do some performance testing with action > caching. I'm using it for one thing with my filter code right now, > and it looks nice and simple. In the meantime, I've submitted #345. The sidebar content is written into each page but it has a call to Ajax.Update to run out and try to fetch newer sidebar content from the server. If the person running the blog wants to update the sidebar content every 15 minutes all they have to do is have a cronjob delete .../ public/sidebars/sidebar/display_plugins.html every 15 minutes so it will be regenerated at the next request. Alternatively if they set permissions so that file could not be generated, users will always get the most recent sidebar content. There is a slight delay to when the updated content appears over the old stuff, but it's while images are still loading on my browser and not too distracting. - -- wac -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iEYEARECAAYFAkMLekkACgkQyWl2oUGFZkzf8QCgpM+Y3JgH5uPCtw8gEdf42h4d +VYAoKGYefelHQKPM6M22ZymZT3VBISE =n0yI -----END PGP SIGNATURE----- From lists at holsman.net Wed Aug 24 00:20:55 2005 From: lists at holsman.net (Ian Holsman) Date: Wed Aug 24 00:14:36 2005 Subject: [typo] Logs / Statistics In-Reply-To: References: <430664BC.6060200@commontext.com> <430941A7.7010003@commontext.com> Message-ID: <430BF5A7.4000002@holsman.net> William A. Carrel wrote: > I imagine you'd achieve this by fitting some magic javascript or image > into the article in the RSS feed. Really this would track the same way > as article views and probably could be implemented fairly easily (and > non-invasively) using the filter framework that Scott Laird has been > working on. there are a couple of issues with RSS feeds. 1. some don't show HTML, they just do text 2. most don't pass cookies, or Referrers. 3. most are on a periodic schedule so your not actually tracking people viewing 4. people's IP numbers change 5. multiple people may be viewing your RSS feed (bloglines for example) 6. some/most of them don't run javascript (intentionally) so in order to start tracking things you can't just use the typical webbug/1x1 gif you would normally. my only suggestion is that you change the URL you offer to include the cookie of the viewer so the URL displayed in the HTML/page would change from http://feh.holsman.net/xml/rss/feed.xml to http://feh.holsman.net/xml/rss/A1231BC01231.xml would (via a rewrite rule ) would get mapped to feed.xml and aritcles in the actual RSS feed would have similar encodings. (meaning they would be dynamic) this would help with 2,4 and 6. your Stat generator would need to also look at people's useragents, as they have subscriber numbers in them as well. > > On Aug 21, 2005, at 8:08 PM, Jeff Casimir wrote: > >> Are you saying that you want to track when users access your RSS >> feed? That sounds like an interesting challenge. I think the >> tracking would have to come from the controller that renders the XML. >> For Typo applications, this would mean adding a method call within the >> controller if you want to use railstat. Of course first I'll have to >> figure out the railstat side of things. It shouldn't be hard, but I >> haven't had much dev time in the last week. I will keep it at the >> forefront of my to-do list this week. >> > >> Kevin Ballard wrote: >> >> >>> RailStat sounds cool, but since it works by having the browser load >>> a resource (either JS or image), it seems to me it can't track RSS >>> feeds. Do you have any sort of solution for that? >>> >>> On Aug 19, 2005, at 7:01 PM, Jeff Casimir wrote: >>> >>> >>>> I've been working with Luben, the guy who started railstat, to make >>>> it...ummm...better. It needs a lot of work before I would call it >>>> ready for widespread deployment. Since his 0.1 gem creation I have >>>> done a lot of work on the code to... >>>> - Support Windows >>>> - Support PostgreSQL (aka anything not-MySQL) >>>> - Support a server running as local host >>>> - Optimizing some of the SQL queries >>>> - Refactoring. Refactoring. Refactoring. >>>> >>>> I took a day off to go to the beach, but I should be back to work >>>> on it tonight or tomorrow. Expect release(s) next week. >>>> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Typo-list mailing list >>> Typo-list@rubyforge.org >>> http://rubyforge.org/mailman/listinfo/typo-list >>> >>> >> >> _______________________________________________ >> Typo-list mailing list >> Typo-list@rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From lists at holsman.net Wed Aug 24 00:31:31 2005 From: lists at holsman.net (Ian Holsman) Date: Wed Aug 24 00:25:10 2005 Subject: [typo] Sidebars and caching In-Reply-To: <0491ED6A-4065-441C-A4BC-DDD50AA0C860@carrel.org> References: <20050823163203.785D3C118@mx.carrel.org> <4EB8CF0D-C1B5-4F41-8B42-F377092E6689@sigkill.org> <924C085D-E57A-401F-961C-3136F0F3E46B@carrel.org> <4172F9DE-BAD6-4864-97E7-E07426F39A98@sb.org> <01925F9B-CA3D-43E8-8311-7562D87CF1E7@sigkill.org> <0491ED6A-4065-441C-A4BC-DDD50AA0C860@carrel.org> Message-ID: <430BF823.3080606@holsman.net> William A. Carrel wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Aug 23, 2005, at 11:13 AM, Scott Laird wrote: >> >> On Aug 23, 2005, at 11:08 AM, Kevin Ballard wrote: >> >>> Do you really want to introduce a visual delay before the sidebar >>> shows up each time you load a new page? >>> >>> Perhaps the better solution would be to switch from static page >>> caching to action caching. >> >> I'd really like to do some performance testing with action caching. >> I'm using it for one thing with my filter code right now, and it looks >> nice and simple. > > In the meantime, I've submitted #345. The sidebar content is written > into each page but it has a call to Ajax.Update to run out and try to > fetch newer sidebar content from the server. > > If the person running the blog wants to update the sidebar content every > 15 minutes all they have to do is have a cronjob delete > .../public/sidebars/sidebar/display_plugins.html every 15 minutes so it > will be regenerated at the next request. Alternatively if they set > permissions so that file could not be generated, users will always get > the most recent sidebar content. > hi. just a quick question. if there is some dynamic content on your sidebar, why not make that into a dynamic sidebar component, or just add it via the current static component. ie put something like or just use a Iframe in there... no need to regenerate the entire page I would think. > There is a slight delay to when the updated content appears over the old > stuff, but it's while images are still loading on my browser and not too > distracting. > > - -- > wac > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (Darwin) > > iEYEARECAAYFAkMLekkACgkQyWl2oUGFZkzf8QCgpM+Y3JgH5uPCtw8gEdf42h4d > +VYAoKGYefelHQKPM6M22ZymZT3VBISE > =n0yI > -----END PGP SIGNATURE----- > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From william.a at carrel.org Wed Aug 24 01:34:48 2005 From: william.a at carrel.org (William A. Carrel) Date: Wed Aug 24 01:28:19 2005 Subject: [typo] Sidebars and caching In-Reply-To: <430BF823.3080606@holsman.net> References: <20050823163203.785D3C118@mx.carrel.org> <4EB8CF0D-C1B5-4F41-8B42-F377092E6689@sigkill.org> <924C085D-E57A-401F-961C-3136F0F3E46B@carrel.org> <4172F9DE-BAD6-4864-97E7-E07426F39A98@sb.org> <01925F9B-CA3D-43E8-8311-7562D87CF1E7@sigkill.org> <0491ED6A-4065-441C-A4BC-DDD50AA0C860@carrel.org> <430BF823.3080606@holsman.net> Message-ID: <76AEBC4F-2CC2-40F5-9475-57ACE0EF715C@carrel.org> On Aug 23, 2005, at 9:31 PM, Ian Holsman wrote: >> In the meantime, I've submitted #345. The sidebar content is >> written into each page but it has a call to Ajax.Update to run out >> and try to fetch newer sidebar content from the server. >> If the person running the blog wants to update the sidebar content >> every 15 minutes all they have to do is have a cronjob delete .../ >> public/sidebars/sidebar/display_plugins.html every 15 minutes so >> it will be regenerated at the next request. Alternatively if they >> set permissions so that file could not be generated, users will >> always get the most recent sidebar content. >> > > hi. > just a quick question. > if there is some dynamic content on your sidebar, why not make that > into a dynamic sidebar component, or just add it via the current > static component. > > ie put something like > > > > or just use a Iframe in there... > no need to regenerate the entire page I would think. There is some desire update the existing del.icio.us and flickr feed sidebar plugins every 15 or 30 or 60 minutes. Right now, the only way to do this is expire out the whole cache and regenerate all the pages. Pulling an HTML fragment for each individual updateable plugin, as you are suggesting, is an option to accomplish this, but requires a lot more requests for the needed HTML fragments and, as a result, may not be as smooth to load. Iframes are deprecated as part of XHTML. Apparently object-tags are the new hotness, although you wouldn't be able to tell from MSIE's rendering behavior. -- wac From scaudill at gmail.com Wed Aug 24 22:56:34 2005 From: scaudill at gmail.com (Stephen Caudill) Date: Wed Aug 24 22:50:03 2005 Subject: [typo] FCGI Weirdness... Message-ID: Hi :) First time caller, long time listener. I've got a typo blog (SVN trunk) running at: http://lizandsteve.com/ (wedding blog on Rails... how geeky is that?) It runs reliably (if a bit slowly) under CGI and not at all under FCGI. It's in production mode, specified by RAILS_ENV in its Vhost in httpd.conf, running on Fedora, Apache 1.3 and MySQL. The thing that confuses me is that I've got two other rails apps running on the box under FCGI with no hiccups and great performance. Here's the error I receive in server.log: [Mon Aug 22 01:27:15 2005] [error] [client 207.30.7.74] FastCGI: incomplete headers (0 bytes) received from server "/home/caudills/public_html/public/dispatch.fcgi" [Wed Aug 24 22:05:33 2005] [error] [client 207.30.7.74] FastCGI: comm with (dynamic) server "/home/caudills/public_html/public/dispatch.fcgi" aborted: (first read) idle timeout (30 sec) [Wed Aug 24 22:05:33 2005] [error] [client 207.30.7.74] FastCGI: incomplete headers (0 bytes) received from server "/home/caudills/public_html/public/dispatch.fcgi" I think this is a fairly generic error message, but when I've seen this before, it's been because FCGI didn't have proper permissions set for it's temp directory (or is it a file...), but that's obviously not the case here, as the other sites run just fine. Also, when I was developing locally, I could only get typo to run under WeBRick and I have several Rails apps running happilly under FCGI. This is true of a virgin install as well... Local environment is OSX 10.3, Apache 1.3 and MySQL. I'm thoroughly stumped on this one... Any ideas? Thanks, Stephen p.s. Thanks to Tobias and the rest of the team for a great piece of software!! I enjoy it and pick it apart on a daily basis. In fact, outside of the Pickaxe and AWDWR, it's been my greatest learning tool :) From socialmoth.blog at gmail.com Thu Aug 25 10:35:55 2005 From: socialmoth.blog at gmail.com (Paul McKellar) Date: Thu Aug 25 10:29:22 2005 Subject: [typo] null in your name (IE) In-Reply-To: <328687de0508220846109f9ca3@mail.gmail.com> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> Message-ID: <328687de050825073571253d0d@mail.gmail.com> is anyone else experiencing this problem? the log file was not useful On 8/22/05, Paul McKellar wrote: > thanks. yeah i meant javascript : ) > > well i'll see how motivated i am. i really like typo and i think i > have a windows box around my house, unplugged and unloved. the blog > was intended for family and nontech friends so i might do some more > footwork. > > is there anything i should post besides, screenshot, the tail of the > log and description? > > i have rails experience but it is limited to the first 200 pages of > the agile and two personal applications. > > for now... when you go to my blog in IE it autoshows the "your blog > and your email" addition. but null is placed in to yoru name and your > blog. this caused some confusion with my 13 yr old cousin. who > thought my website was telling her my name was null. > > IE 6.0.29900.2180 xp sp2 > > the leave url/email link works fin to hide and show after that, it is > just open by default. the java (prototype library i assume) worked > fine for me at work. > > don't have the log file handy > > Paul > > On 8/22/05, Scott Laird wrote: > > > > On Aug 22, 2005, at 8:26 AM, Paul McKellar wrote: > > > i hope this is an appropriate list for this type of question. > > > > > > i sent a friend my blog and she tried to add a comment. she claimed > > > that she got code in her response and was capable of telling me that > > > she was using IE someversion. complete non tech so the idea of > > > getting any sort of remote access was pretty intimidating. > > > > > > is there any known breakage with a version of IE? or for that matter > > > any other browsers? > > > > > > she tends to have lots of computer problems, so i think it is on her > > > end. does typo fail gracefully without java and/or cookies enabled? > > > > > > is there a known issues list somewhere? > > > > I'm not quite sure what she was saying. There have been issues with > > Typo and IE, largely because none of the Typo developers use Windows, > > so we don't have an easy way to test things. Feel free to submit bug > > reports via typo.leetsoft.com, and include screenshots as > > applicable. Patches that fix problems are even better. > > > > Typo doesn't use Java at all, but it requires JavaScript. If JS is > > disabled, then comments won't work. We might want to look at fixing > > that at some point in the future, but it's not a high priority for > > any of us. Again, we'll take patches :-) > > > > > > Scott > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > From justus at ryoohki.net Thu Aug 25 11:46:09 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Thu Aug 25 11:35:32 2005 Subject: [typo] null in your name (IE) In-Reply-To: <328687de050825073571253d0d@mail.gmail.com> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> Message-ID: <430DE7C1.2010506@ryoohki.net> Paul McKellar wrote: > is anyone else experiencing this problem? It happens with every IE I've tried. > the log file was not useful > > On 8/22/05, Paul McKellar wrote: > >>thanks. yeah i meant javascript : ) >> >>well i'll see how motivated i am. i really like typo and i think i >>have a windows box around my house, unplugged and unloved. the blog >>was intended for family and nontech friends so i might do some more >>footwork. >> >>is there anything i should post besides, screenshot, the tail of the >>log and description? >> >>i have rails experience but it is limited to the first 200 pages of >>the agile and two personal applications. >> >>for now... when you go to my blog in IE it autoshows the "your blog >>and your email" addition. but null is placed in to yoru name and your >>blog. this caused some confusion with my 13 yr old cousin. who >>thought my website was telling her my name was null. >> >>IE 6.0.29900.2180 xp sp2 >> >>the leave url/email link works fin to hide and show after that, it is >>just open by default. the java (prototype library i assume) worked >>fine for me at work. >> >>don't have the log file handy >> >>Paul >> >>On 8/22/05, Scott Laird wrote: >> >>>On Aug 22, 2005, at 8:26 AM, Paul McKellar wrote: >>> >>>>i hope this is an appropriate list for this type of question. >>>> >>>>i sent a friend my blog and she tried to add a comment. she claimed >>>>that she got code in her response and was capable of telling me that >>>>she was using IE someversion. complete non tech so the idea of >>>>getting any sort of remote access was pretty intimidating. >>>> >>>>is there any known breakage with a version of IE? or for that matter >>>>any other browsers? >>>> >>>>she tends to have lots of computer problems, so i think it is on her >>>>end. does typo fail gracefully without java and/or cookies enabled? >>>> >>>>is there a known issues list somewhere? >>> >>>I'm not quite sure what she was saying. There have been issues with >>>Typo and IE, largely because none of the Typo developers use Windows, >>>so we don't have an easy way to test things. Feel free to submit bug >>>reports via typo.leetsoft.com, and include screenshots as >>>applicable. Patches that fix problems are even better. >>> >>>Typo doesn't use Java at all, but it requires JavaScript. If JS is >>>disabled, then comments won't work. We might want to look at fixing >>>that at some point in the future, but it's not a high priority for >>>any of us. Again, we'll take patches :-) From socialmoth.blog at gmail.com Thu Aug 25 11:57:33 2005 From: socialmoth.blog at gmail.com (Paul McKellar) Date: Thu Aug 25 11:51:03 2005 Subject: [typo] null in your name (IE) In-Reply-To: <430DE7C1.2010506@ryoohki.net> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> <430DE7C1.2010506@ryoohki.net> Message-ID: <328687de05082508575f9517a3@mail.gmail.com> why doesn't it happen on blogs like the official rails weblog? are they not pulling cookies up of your username or somethign? is there nto a check for null cookie load or whatever? On 8/25/05, Justus Pendleton wrote: > Paul McKellar wrote: > > is anyone else experiencing this problem? > > It happens with every IE I've tried. > > > the log file was not useful > > > > On 8/22/05, Paul McKellar wrote: > > > >>thanks. yeah i meant javascript : ) > >> > >>well i'll see how motivated i am. i really like typo and i think i > >>have a windows box around my house, unplugged and unloved. the blog > >>was intended for family and nontech friends so i might do some more > >>footwork. > >> > >>is there anything i should post besides, screenshot, the tail of the > >>log and description? > >> > >>i have rails experience but it is limited to the first 200 pages of > >>the agile and two personal applications. > >> > >>for now... when you go to my blog in IE it autoshows the "your blog > >>and your email" addition. but null is placed in to yoru name and your > >>blog. this caused some confusion with my 13 yr old cousin. who > >>thought my website was telling her my name was null. > >> > >>IE 6.0.29900.2180 xp sp2 > >> > >>the leave url/email link works fin to hide and show after that, it is > >>just open by default. the java (prototype library i assume) worked > >>fine for me at work. > >> > >>don't have the log file handy > >> > >>Paul > >> > >>On 8/22/05, Scott Laird wrote: > >> > >>>On Aug 22, 2005, at 8:26 AM, Paul McKellar wrote: > >>> > >>>>i hope this is an appropriate list for this type of question. > >>>> > >>>>i sent a friend my blog and she tried to add a comment. she claimed > >>>>that she got code in her response and was capable of telling me that > >>>>she was using IE someversion. complete non tech so the idea of > >>>>getting any sort of remote access was pretty intimidating. > >>>> > >>>>is there any known breakage with a version of IE? or for that matter > >>>>any other browsers? > >>>> > >>>>she tends to have lots of computer problems, so i think it is on her > >>>>end. does typo fail gracefully without java and/or cookies enabled? > >>>> > >>>>is there a known issues list somewhere? > >>> > >>>I'm not quite sure what she was saying. There have been issues with > >>>Typo and IE, largely because none of the Typo developers use Windows, > >>>so we don't have an easy way to test things. Feel free to submit bug > >>>reports via typo.leetsoft.com, and include screenshots as > >>>applicable. Patches that fix problems are even better. > >>> > >>>Typo doesn't use Java at all, but it requires JavaScript. If JS is > >>>disabled, then comments won't work. We might want to look at fixing > >>>that at some point in the future, but it's not a high priority for > >>>any of us. Again, we'll take patches :-) > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From chris at codeintensity.com Thu Aug 25 16:09:34 2005 From: chris at codeintensity.com (Christopher Bailey) Date: Thu Aug 25 16:04:12 2005 Subject: [typo] Help with sidebar content method Message-ID: I'm working on a sidebar for BlogMap. I have the basics working, but can't seem to get my content method working, and I'm honestly just not sure what the check_cache stuff does, how to properly write that call, etc. I've got: def content @blogmap=check_cache(Blogmap, @sb_config['city']) rescue nil end I've also tried putting "feed" in instead of "city", but the only configuration parameters I have are city, state, and country, so I didn't think feed would make sense (nor does it fix the problem). The result is that in my content.rhtml, @blogmap is not defined, i.e. The following is false: <% if @blogmap -%> Can someone enlighten me as to how this method should be written, or what I'm doing wrong (and what other code you'd need to see to know)? -- Chris Bailey Code Intensity mailto: chris@codeintensity.com From shughes_list at globalreset.org Thu Aug 25 16:11:03 2005 From: shughes_list at globalreset.org (Scott Hughes (List)) Date: Thu Aug 25 16:04:32 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <328687de050825073571253d0d@mail.gmail.com> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> Message-ID: <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> Hi all... I'm new to the Typo mailing list and to RubyOnRails development (my agile book is in the mail). I'm having a bit of an annoying experience with Typo on Dreamhost. I'm running out of SVN (from approximately 7 days ago) and I'm getting frequent lockups/ timeouts. I looked through my apache error log and I don't see anything particularly illuminating... Just a few errors where dispatch.fcgi returned 0 bytes. Doesn't give much else for info. The production log looks fine, except for an occasional missing image (which btw, is not referenced by my stylesheet or my default.rhtml, so I don't know where this image is being requested and how it got lost). Whenever Typo is not responding, a 'ps ax' shows a dozen or so dispatch.fcgi processes running (some defunct). I've tried running in developer mode, and watching the output, but I can't reproduce a timeout condition when doing so. My blog probably gets 10-30 real hits a day, and over 300 hits by robots. I don't know if the robots are what's causing the problem. After a while of waiting for it to "fix itself", I end up doing a "killall -9 dispatch.fcgi; rake sweep_cache" and wait about 15-20 minutes for it to start working again. I don't know if that's the best procedure for reseting it or not... And I'm really curious as to why it takes 15-20 minutes to start working again. I looked at the rails troubleshooting tips on the Rails wiki, but nothing helped. Does anyone have any tips (which I could add to the wiki) that could help me debug this? Or is anyone aware of any gotchas for Dreamhost installation? All I did to install was ftp the files over (that I had svn'ed to my local Mac), setup my database, import my wordpress articles, and point a subdomain at the path to Typo (with fcgi enabled). I had to "chmod +x public/* script/*"... And I've modified my own copy of the default theme. But that's it.. It's a fairly vanilla installation. Thanks for any help. Scott Hughes http://blog.globalreset.org/ From mbjones at ou.edu Thu Aug 25 16:18:40 2005 From: mbjones at ou.edu (Brandon Jones) Date: Thu Aug 25 16:12:08 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> Message-ID: <79AD287A-4815-43B7-AE9E-5836F3B08D98@ou.edu> I had to update my version of Rails on dreamhost to do the trick, but that was the only gotcha for me. This was back when they first setup rails though so I don't know if they have the latest version installed on their servers now or not... Brandon On Aug 25, 2005, at 3:11 PM, Scott Hughes ((List)) wrote: > > Hi all... I'm new to the Typo mailing list and to RubyOnRails > development (my agile book is in the mail). I'm having a bit of an > annoying experience with Typo on Dreamhost. I'm running out of SVN > (from approximately 7 days ago) and I'm getting frequent lockups/ > timeouts. > > I looked through my apache error log and I don't see anything > particularly illuminating... Just a few errors where dispatch.fcgi > returned 0 bytes. Doesn't give much else for info. The production > log looks fine, except for an occasional missing image (which btw, is > not referenced by my stylesheet or my default.rhtml, so I don't know > where this image is being requested and how it got lost). Whenever > Typo is not responding, a 'ps ax' shows a dozen or so dispatch.fcgi > processes running (some defunct). > > I've tried running in developer mode, and watching the output, but I > can't reproduce a timeout condition when doing so. My blog probably > gets 10-30 real hits a day, and over 300 hits by robots. I don't > know if the robots are what's causing the problem. > > After a while of waiting for it to "fix itself", I end up doing a > "killall -9 dispatch.fcgi; rake sweep_cache" and wait about 15-20 > minutes for it to start working again. I don't know if that's the > best procedure for reseting it or not... And I'm really curious as > to why it takes 15-20 minutes to start working again. > > I looked at the rails troubleshooting tips on the Rails wiki, but > nothing helped. Does anyone have any tips (which I could add to the > wiki) that could help me debug this? Or is anyone aware of any > gotchas for Dreamhost installation? All I did to install was ftp the > files over (that I had svn'ed to my local Mac), setup my database, > import my wordpress articles, and point a subdomain at the path to > Typo (with fcgi enabled). I had to "chmod +x public/* script/*"... > And I've modified my own copy of the default theme. But that's it.. > It's a fairly vanilla installation. > > Thanks for any help. > > Scott Hughes > http://blog.globalreset.org/ > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050825/695356c9/attachment-0001.htm From chris at codeintensity.com Thu Aug 25 16:17:47 2005 From: chris at codeintensity.com (Christopher Bailey) Date: Thu Aug 25 16:12:35 2005 Subject: [typo] Help with sidebar content method In-Reply-To: Message-ID: Ok, my apologies, I've of course now figured this out. Ugh, sorry for wasting bandwidth. On 8/25/05 1:09 PM, "Christopher Bailey" wrote: > I'm working on a sidebar for BlogMap. I have the basics working, but can't > seem to get my content method working, and I'm honestly just not sure what > the check_cache stuff does, how to properly write that call, etc. I've got: > > def content > @blogmap=check_cache(Blogmap, @sb_config['city']) rescue nil > end > > I've also tried putting "feed" in instead of "city", but the only > configuration parameters I have are city, state, and country, so I didn't > think feed would make sense (nor does it fix the problem). > > The result is that in my content.rhtml, @blogmap is not defined, i.e. The > following is false: > > <% if @blogmap -%> > > Can someone enlighten me as to how this method should be written, or what > I'm doing wrong (and what other code you'd need to see to know)? From scott at sigkill.org Thu Aug 25 16:23:01 2005 From: scott at sigkill.org (Scott Laird) Date: Thu Aug 25 16:16:37 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> Message-ID: <57F11ABE-E34B-497C-9C53-42165438A3A0@sigkill.org> On Aug 25, 2005, at 1:11 PM, Scott Hughes (List) wrote: > After a while of waiting for it to "fix itself", I end up doing a > "killall -9 dispatch.fcgi; rake sweep_cache" and wait about 15-20 > minutes for it to start working again. I don't know if that's the > best procedure for reseting it or not... And I'm really curious as > to why it takes 15-20 minutes to start working again. *15 minutes*. That's really slow--my home system (Athlon 700, so not very fast) is ready to start serving pages within a couple seconds. I'd start by figuring out what's happening here. Try running dispatch.fcgi by hand and see if it spits out any errors or anything else weird happens. I don't use dreamhost, so I don't have any concrete suggestions, but this seems really strange. Scott From gpsnospam at gmail.com Thu Aug 25 16:28:46 2005 From: gpsnospam at gmail.com (gpshewan) Date: Thu Aug 25 16:24:59 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> Message-ID: <430e2a04.3846afa8.440f.ffff9169@mx.gmail.com> I had the same issues when I first switched Scott. Everything seems fine now though. DH just switched to production for rails, so are you forcing that in config/environments? RAILS_ENV = ENV['RAILS_ENV'] || 'production' I know you said you tried running in 'developer' mode, but just double checking. This was the last thing I remember doing to my install. I know what you are experiencing though. I found the timeouts very annoying. Gary Shewan -----Original Message----- From: typo-list-bounces@rubyforge.org [mailto:typo-list-bounces@rubyforge.org] On Behalf Of Scott Hughes (List) Sent: 25 August 2005 21:11 To: typo-list@rubyforge.org Subject: [typo] Frustrating Dreamhost/Typo experience Hi all... I'm new to the Typo mailing list and to RubyOnRails development (my agile book is in the mail). I'm having a bit of an annoying experience with Typo on Dreamhost. I'm running out of SVN (from approximately 7 days ago) and I'm getting frequent lockups/ timeouts. I looked through my apache error log and I don't see anything particularly illuminating... Just a few errors where dispatch.fcgi returned 0 bytes. Doesn't give much else for info. The production log looks fine, except for an occasional missing image (which btw, is not referenced by my stylesheet or my default.rhtml, so I don't know where this image is being requested and how it got lost). Whenever Typo is not responding, a 'ps ax' shows a dozen or so dispatch.fcgi processes running (some defunct). I've tried running in developer mode, and watching the output, but I can't reproduce a timeout condition when doing so. My blog probably gets 10-30 real hits a day, and over 300 hits by robots. I don't know if the robots are what's causing the problem. After a while of waiting for it to "fix itself", I end up doing a "killall -9 dispatch.fcgi; rake sweep_cache" and wait about 15-20 minutes for it to start working again. I don't know if that's the best procedure for reseting it or not... And I'm really curious as to why it takes 15-20 minutes to start working again. I looked at the rails troubleshooting tips on the Rails wiki, but nothing helped. Does anyone have any tips (which I could add to the wiki) that could help me debug this? Or is anyone aware of any gotchas for Dreamhost installation? All I did to install was ftp the files over (that I had svn'ed to my local Mac), setup my database, import my wordpress articles, and point a subdomain at the path to Typo (with fcgi enabled). I had to "chmod +x public/* script/*"... And I've modified my own copy of the default theme. But that's it.. It's a fairly vanilla installation. Thanks for any help. Scott Hughes http://blog.globalreset.org/ _______________________________________________ Typo-list mailing list Typo-list@rubyforge.org http://rubyforge.org/mailman/listinfo/typo-list From shughes_list at globalreset.org Thu Aug 25 16:53:58 2005 From: shughes_list at globalreset.org (Scott Hughes (List)) Date: Thu Aug 25 16:47:40 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <430e2a04.3846afa8.440f.ffff9169@mx.gmail.com> References: <430e2a04.3846afa8.440f.ffff9169@mx.gmail.com> Message-ID: <41AC1163-DFCB-4870-96DA-F0190D5A1769@globalreset.org> On Aug 25, 2005, at 3:28 PM, gpshewan wrote: > I had the same issues when I first switched Scott. Everything > seems fine > now though. DH just switched to production for rails, so are you > forcing > that in config/environments? > > RAILS_ENV = ENV['RAILS_ENV'] || 'production' > > I know you said you tried running in 'developer' mode, but just double > checking. This was the last thing I remember doing to my install. > > I know what you are experiencing though. I found the timeouts very > annoying. > > Gary Shewan Gary, My environments file had the following line: RAILS_ENV = ENV['RAILS_ENV'] || 'development' I was assuming that when DH said it switched to production, that meant ENV['RAILS_ENV']='production'. To be on the safe side, I've changed this line to: RAILS_ENV = 'production' After I made that change, I did another "killall -9 dispatch.fcgi; rake sweep_cache" (even though it wasn't locked up) and I noticed that it started responding again immediately. I don't know if this is because it wasn't locked up before I killed it or if it is because of the environment change. I will report back tomorrow if I experience any more lockups after this change. Also, when I said that I tried running in 'developer' mode, I meant with "script/server -e development" and using port 3000. I guess this means I used WeBrick (but I'm still learning the lingo). Scott From boss at topfunky.com Thu Aug 25 16:57:29 2005 From: boss at topfunky.com (Geoffrey Grosenbach) Date: Thu Aug 25 16:51:25 2005 Subject: [typo] Frustrating Dreamhost/Typo experience Message-ID: I've also had frustrations with getting FCGI (and plain CGI) to work consistently on Dreamhost. This guy has written a lot of great articles about Dreamhost FCGI that might help you: http://convergentarts.com/ Geoff ---------- Website Development http://topfunky.com Ruby on Rails Technical Articles http://nubyonrails.topfunky.com Free Online Notes http://notes.topfunky.com http://GeoffreyGrosenbach.com From gpsnospam at gmail.com Thu Aug 25 17:18:09 2005 From: gpsnospam at gmail.com (gpshewan) Date: Thu Aug 25 17:11:43 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <41AC1163-DFCB-4870-96DA-F0190D5A1769@globalreset.org> Message-ID: <430e3596.14f8c9d3.77d8.ffff89f3@mx.gmail.com> > After I made that change, I did another "killall -9 dispatch.fcgi; > rake sweep_cache" (even though it wasn't locked up) and I noticed > that it started responding again immediately. I don't know if this > is because it wasn't locked up before I killed it or if it is because > of the environment change. I will report back tomorrow if I > experience any more lockups after this change. Be good to hear the feedback on that. Let it run a couple of days and see how responses are. If it's what worked for me you should see snappy responses now - must make a mental note to write more things down as I try them myself :) Gary Shewan From chris at codeintensity.com Thu Aug 25 18:41:25 2005 From: chris at codeintensity.com (Christopher Bailey) Date: Thu Aug 25 18:36:06 2005 Subject: [typo] BlogMap sidebar addition Message-ID: I've made a quick BlogMap sidebar addition in case anyone is interested. You must of course have geocoding on your blog and have added it to the feedmap (http://www.feedmap/BlogMap). You can preview it on my site: http://codeintensity.com/ It has configuration options to show the map (what my site shows), and/or the neighbors/events text only, and/or the Local OPML only (with config settings for this). If interesting, I can submit this as a patch or whatever the appropriate process is for getting it into the main code base. I do not have a set of tests for it, so if that's necessary in order to go into the official code base, let me know and I'll add something. -- Chris Bailey Code Intensity mailto: chris@codeintensity.com From shughes_list at globalreset.org Thu Aug 25 19:25:32 2005 From: shughes_list at globalreset.org (Scott Hughes (list)) Date: Thu Aug 25 19:20:26 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <57F11ABE-E34B-497C-9C53-42165438A3A0@sigkill.org> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> <57F11ABE-E34B-497C-9C53-42165438A3A0@sigkill.org> Message-ID: <430E536C.4070405@globalreset.org> Scott Laird wrote: > On Aug 25, 2005, at 1:11 PM, Scott Hughes (List) wrote: > >> After a while of waiting for it to "fix itself", I end up doing a >> "killall -9 dispatch.fcgi; rake sweep_cache" and wait about 15-20 >> minutes for it to start working again. I don't know if that's the >> best procedure for reseting it or not... And I'm really curious as >> to why it takes 15-20 minutes to start working again. > > > *15 minutes*. That's really slow--my home system (Athlon 700, so not > very fast) is ready to start serving pages within a couple seconds. > I'd start by figuring out what's happening here. Try running > dispatch.fcgi by hand and see if it spits out any errors or anything > else weird happens. I don't use dreamhost, so I don't have any > concrete suggestions, but this seems really strange. > Scott, Thanks for your response. Oddly enough, I saw a ton of errors when I ran "dispatch.fcgi" right after reading your email. When I switched terminals to compose this response, I couldn't get it to display an error. I remember that the error message (which was repeated a lot) had something to do with a string conversion on a Nil type, and the bottom of the stack referenced line 24 of dispatch.fcgi. The last time it locked up on me, I tried running dispatch.fcgi from the cmd-line (but, honestly, I had no expectation of how well this should work) and noticed it generating these same errors for a Nil type, but I saw that it was being generated when rendering the content in my default.rhtml, specifically when it tried to credit the "EditURI" at the top and (after I commented the EditURI out) the validateCSS link at the bottom. After commenting that second link out, I got another error in a location other than my default.rhtml, so I didn't track it down anymore. Also, after generating an error, the process would hang. I had to use Ctrl-C to end it. I noticed just now that when I ran through without errors, it exits normally. Again, I had no expectation about whether or not these processes should be "hanging around" or not... So, is it a problem that I see anywhere from 5-15 processes running at a given time? Keeping in mind that my site is low-volume, so it isn't likely to have 15 simultaneous visitors. Thanks... Scott Hughes From scott at sigkill.org Thu Aug 25 19:56:22 2005 From: scott at sigkill.org (Scott Laird) Date: Thu Aug 25 19:49:54 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <430E536C.4070405@globalreset.org> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> <57F11ABE-E34B-497C-9C53-42165438A3A0@sigkill.org> <430E536C.4070405@globalreset.org> Message-ID: <3E253BC1-347C-4D10-88F3-689EBF4439BE@sigkill.org> On Aug 25, 2005, at 4:25 PM, Scott Hughes (list) wrote: > > Thanks for your response. Oddly enough, I saw a ton of errors when > I ran "dispatch.fcgi" right after reading your email. When I > switched terminals to compose this response, I couldn't get it to > display an error. I remember that the error message (which was > repeated a lot) had something to do with a string conversion on a > Nil type, and the bottom of the stack referenced line 24 of > dispatch.fcgi. > > The last time it locked up on me, I tried running dispatch.fcgi > from the cmd-line (but, honestly, I had no expectation of how well > this should work) and noticed it generating these same errors for a > Nil type, but I saw that it was being generated when rendering the > content in my default.rhtml, specifically when it tried to credit > the "EditURI" at the top and (after I commented the EditURI out) > the validateCSS link at the bottom. After commenting that second > link out, I got another error in a location other than my > default.rhtml, so I didn't track it down anymore. > > Also, after generating an error, the process would hang. I had to > use Ctrl-C to end it. I noticed just now that when I ran through > without errors, it exits normally. Again, I had no expectation > about whether or not these processes should be "hanging around" or > not... So, is it a problem that I see anywhere from 5-15 processes > running at a given time? Keeping in mind that my site is low- > volume, so it isn't likely to have 15 simultaneous visitors. One thing to look at is if Dreamhost will let you use static fcgi instead of dynamic fcgi (which is usually the default). Dynamic fcgi starts and stops dispatch.fcgi depending on the load. Static fcgi leaves displatch.fcgi running the whole time. Surprisingly enough, static fcgi is vastly more efficient, because with dynamic fcgi the server usually ends up stopping and restarting batches of dispatch proceses every time there's a hit or two on the website. Since starting Typo takes a lot of work, that means that dynamic fcgi ends up being a bit of a resource hog. The only downside to static fcgi is that it usually needs to be configured with the web server, and I don't know if dreamhost lets you do that on your own. The other thing you can do is turn down the number of dispatch processes that are running. You should be fine with 2-3 processes; 5-15 is too many, and a sure sign that dynamic fcgi is trying to kill your server for you :-). Scott From kevin at sb.org Thu Aug 25 20:01:12 2005 From: kevin at sb.org (Kevin Ballard) Date: Thu Aug 25 19:54:41 2005 Subject: [typo] BlogMap sidebar addition In-Reply-To: References: Message-ID: <57FACBE1-EEEA-44A9-AEC5-52D61BE0B241@sb.org> Sounds interesting. I would suggest making a patch out of it and submitting it as a new ticket on http://typo.leetsoft.com. Be sure to prefix the subject with [PATCH]. And if you're not familiar with creating tests, I'm sure someone can create tests for you. On Aug 25, 2005, at 6:41 PM, Christopher Bailey wrote: > I've made a quick BlogMap sidebar addition in case anyone is > interested. > You must of course have geocoding on your blog and have added it to > the > feedmap (http://www.feedmap/BlogMap). You can preview it on my site: > http://codeintensity.com/ > > It has configuration options to show the map (what my site shows), > and/or > the neighbors/events text only, and/or the Local OPML only (with > config > settings for this). > > If interesting, I can submit this as a patch or whatever the > appropriate > process is for getting it into the main code base. I do not have a > set of > tests for it, so if that's necessary in order to go into the > official code > base, let me know and I'll add something. -- Kevin Ballard kevin@sb.org http://www.tildesoft.com http://kevin.sb.org -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2378 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050825/7d0cb5a6/smime-0001.bin From inselsbacher at gmail.com Fri Aug 26 04:14:03 2005 From: inselsbacher at gmail.com (Ralph Inselsbacher) Date: Fri Aug 26 04:07:32 2005 Subject: [typo] Application Error Typo could not be reached Message-ID: Hi there, as much as i try i can't get typo to run on a shared server hosted with site5. I followed all the instructions, but i still get that error message. Now i looked into my error logs and get the following with each try to contact typo: "Premature end of script headers: /home/rainonli/public_html/typo/public/dispatch.cgi" Can someone tell me, what that means? -- Cheers, Ralph From dlamotte at bamboo.lu Fri Aug 26 04:26:21 2005 From: dlamotte at bamboo.lu (Denis Lamotte) Date: Fri Aug 26 04:19:57 2005 Subject: [typo] Application Error Typo could not be reached In-Reply-To: References: Message-ID: <430ED22D.7020905@bamboo.lu> Ralph Inselsbacher wrote: > Hi there, > > as much as i try i can't get typo to run on a shared server hosted > with site5. I followed all the instructions, but i still get that > error message. > > Now i looked into my error logs and get the following with each try to > contact typo: "Premature end of script headers: > /home/rainonli/public_html/typo/public/dispatch.cgi" > > Can someone tell me, what that means? > the shebang line of the script did not find ruby maybe your platform doesn't support #!/usr/bin/env ruby run the following adapted script in the root folder of the rails app ruby -i -pe 'gsub!("#!/usr/bin/env ruby", "#!/your/path/to/ruby")' public/dispatch.* script/* find more info on http://wiki.rubyonrails.com/rails/show/HowtosInstallation Lanfeust From inselsbacher at gmail.com Fri Aug 26 05:01:59 2005 From: inselsbacher at gmail.com (Ralph Inselsbacher) Date: Fri Aug 26 04:55:24 2005 Subject: [typo] Application Error Typo could not be reached (again) Message-ID: Hello list, i tried everything by now, but i still get that error message, when trying to browse my typo installation on shared hosting with site5. Now i looked into my error logs and found the following error: "Premature end of script headers: /home/rainonli/public_html/typo/public/dispatch.cgi" - i get this error in the log, whenever i try browse typol Can somebody help me with this error message? -- Cheers, Ralph From shughes_list at globalreset.org Fri Aug 26 09:16:09 2005 From: shughes_list at globalreset.org (Scott Hughes (List)) Date: Fri Aug 26 09:09:37 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <430E536C.4070405@globalreset.org> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> <57F11ABE-E34B-497C-9C53-42165438A3A0@sigkill.org> <430E536C.4070405@globalreset.org> Message-ID: <0C268D3A-5ED2-46E3-8675-FA00EA140959@globalreset.org> On Aug 25, 2005, at 6:25 PM, Scott Hughes (list) wrote: > Scott Laird wrote: > > >> On Aug 25, 2005, at 1:11 PM, Scott Hughes (List) wrote: >> >> >>> After a while of waiting for it to "fix itself", I end up doing >>> a "killall -9 dispatch.fcgi; rake sweep_cache" and wait about >>> 15-20 minutes for it to start working again. I don't know if >>> that's the best procedure for reseting it or not... And I'm >>> really curious as to why it takes 15-20 minutes to start working >>> again. >>> >> >> >> *15 minutes*. That's really slow--my home system (Athlon 700, so >> not very fast) is ready to start serving pages within a couple >> seconds. I'd start by figuring out what's happening here. Try >> running dispatch.fcgi by hand and see if it spits out any errors >> or anything else weird happens. I don't use dreamhost, so I >> don't have any concrete suggestions, but this seems really strange. >> >> > Scott, > > Thanks for your response. Oddly enough, I saw a ton of errors when > I ran "dispatch.fcgi" right after reading your email. When I > switched terminals to compose this response, I couldn't get it to > display an error. I remember that the error message (which was > repeated a lot) had something to do with a string conversion on a > Nil type, and the bottom of the stack referenced line 24 of > dispatch.fcgi. > So, as it turns out, my error/non-error evaluation was wrong. When I said (above) that I couldn't get it to display an error, I was fooled by seeing the full html of my default.rhtml file. Had I read that html, I would see that it displayed an Application Error (versus when I saw a ton of errors, the process hang, and I saw no html in the output). Above the application error I get the following:

undefined method `downcase' for nil:NilClass

Which is the same message I saw repeated numerous times when it was locking up on me. Scott From scott at sigkill.org Fri Aug 26 10:43:24 2005 From: scott at sigkill.org (Scott Laird) Date: Fri Aug 26 10:36:51 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <0C268D3A-5ED2-46E3-8675-FA00EA140959@globalreset.org> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> <57F11ABE-E34B-497C-9C53-42165438A3A0@sigkill.org> <430E536C.4070405@globalreset.org> <0C268D3A-5ED2-46E3-8675-FA00EA140959@globalreset.org> Message-ID: <8A61CA03-8F81-44D4-B3C9-C574D923F47E@sigkill.org> On Aug 26, 2005, at 6:16 AM, Scott Hughes (List) wrote: > So, as it turns out, my error/non-error evaluation was wrong. When > I said (above) that I couldn't get it to display an error, I was > fooled by seeing the full html of my default.rhtml file. Had I > read that html, I would see that it displayed an Application Error > (versus when I saw a ton of errors, the process hang, and I saw no > html in the output). Above the application error I get the following: > >

undefined method `downcase' for nil:NilClass

> > Which is the same message I saw repeated numerous times when it was > locking up on me. Now look in log/production.log and find a matching exception, then mail us back the stack backtrace showing where the error occurred. This should be enough detail to let us fix it. Scott From shughes_list at globalreset.org Fri Aug 26 11:04:23 2005 From: shughes_list at globalreset.org (Scott Hughes (list)) Date: Fri Aug 26 10:59:07 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <8A61CA03-8F81-44D4-B3C9-C574D923F47E@sigkill.org> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> <57F11ABE-E34B-497C-9C53-42165438A3A0@sigkill.org> <430E536C.4070405@globalreset.org> <0C268D3A-5ED2-46E3-8675-FA00EA140959@globalreset.org> <8A61CA03-8F81-44D4-B3C9-C574D923F47E@sigkill.org> Message-ID: <430F2F77.9000605@globalreset.org> Scott Laird wrote: > > On Aug 26, 2005, at 6:16 AM, Scott Hughes (List) wrote: > >> So, as it turns out, my error/non-error evaluation was wrong. When >> I said (above) that I couldn't get it to display an error, I was >> fooled by seeing the full html of my default.rhtml file. Had I read >> that html, I would see that it displayed an Application Error >> (versus when I saw a ton of errors, the process hang, and I saw no >> html in the output). Above the application error I get the following: >> >>

undefined method `downcase' for nil:NilClass

>> >> Which is the same message I saw repeated numerous times when it was >> locking up on me. > > > Now look in log/production.log and find a matching exception, then > mail us back the stack backtrace showing where the error occurred. > This should be enough detail to let us fix it. > Thanks for helping me explore this... I found the error with 2 different traces. Here is the shortest one: TypeError (can't convert nil into String): /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:807:in `+' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:807:in `complete_request_uri' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:45:in `perform_action_without_res cue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:80:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:288:in `process' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:46:in `component_response' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:41:in `render_component_as_string' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:41:in `component_logging' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:41:in `render_component_as_string' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:28:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:28:in `render_component' (erb):37:in `evaluate_locals' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:272:in `evaluate_locals' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:283:in `rhtml_render' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `render_template' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:173:in `render_file' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:214:in `render_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' app/controllers/articles_controller.rb:59:in `error' app/controllers/articles_controller.rb:192:in `rescue_action_in_public' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:33:in `rescue_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:106:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!' ./dispatch.fcgi:24 This one is a good bit longer... TypeError (can't convert nil into String): /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:807:in `+' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:807:in `complete_request_uri' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:45:in `perform_action_without_res cue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:80:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:288:in `process' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:46:in `component_response' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:41:in `render_component_as_string' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:41:in `component_logging' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:41:in `render_component_as_string' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:28:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:28:in `render_component' /app/helpers/application_helper.rb:125:in `render_sidebar' (erb):2:in `evaluate_locals' (erb):1:in `each' (erb):1:in `evaluate_locals' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:272:in `evaluate_locals' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:283:in `rhtml_render' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `render_template' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:173:in `render_file' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:588:in `render_with_no_layout' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in `render_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:591:in `render_with_no_layout' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in `render_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:604:in `render_with_no_layout' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in `render_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:627:in `render_with_no_layout' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:216:in `render_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /components/sidebars/sidebar_controller.rb:84:in `display_plugins' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:756:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:756:in `perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:295:in `perform_action_without_benchma rk' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `perform_action_without_res cue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `perform_action_without_res cue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:80:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:288:in `process' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:46:in `component_response' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:41:in `render_component_as_string' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:41:in `component_logging' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:41:in `render_component_as_string' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:28:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/components.rb:28:in `render_component' (erb):37:in `evaluate_locals' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:272:in `evaluate_locals' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:283:in `rhtml_render' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `render_template' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/base.rb:173:in `render_file' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/layout.rb:214:in `render_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' app/controllers/articles_controller.rb:59:in `error' app/controllers/articles_controller.rb:192:in `rescue_action_in_public' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:33:in `rescue_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:106:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!' ./dispatch.fcgi:24 From patrick at lenz.sh Fri Aug 26 14:23:27 2005 From: patrick at lenz.sh (Patrick Lenz) Date: Fri Aug 26 14:16:57 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <430F2F77.9000605@globalreset.org> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> <57F11ABE-E34B-497C-9C53-42165438A3A0@sigkill.org> <430E536C.4070405@globalreset.org> <0C268D3A-5ED2-46E3-8675-FA00EA140959@globalreset.org> <8A61CA03-8F81-44D4-B3C9-C574D923F47E@sigkill.org> <430F2F77.9000605@globalreset.org> Message-ID: On 26.08.2005, at 17:04, Scott Hughes (list) wrote: > Thanks for helping me explore this... I found the error with 2 > different traces. Which sidebar plugins did you enable? You might want to try disabling them one by one, I'm sure it'll work at one point. Either find that point or mail back with the list of plugins you enabled with their configured parameters. That'll help debugging it. Regards, -- Patrick Lenz (scoop) http://poocs.net/ # Personal Weblog http://limited-overload.de/ # Web application development http://freshmeat.net/ # Free software archive http://topmedia.de/ # IT Storage Solutions From shughes_list at globalreset.org Fri Aug 26 15:55:27 2005 From: shughes_list at globalreset.org (Scott Hughes (list)) Date: Fri Aug 26 15:50:13 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> <57F11ABE-E34B-497C-9C53-42165438A3A0@sigkill.org> <430E536C.4070405@globalreset.org> <0C268D3A-5ED2-46E3-8675-FA00EA140959@globalreset.org> <8A61CA03-8F81-44D4-B3C9-C574D923F47E@sigkill.org> <430F2F77.9000605@globalreset.org> Message-ID: <430F73AF.1000606@globalreset.org> Patrick Lenz wrote: > On 26.08.2005, at 17:04, Scott Hughes (list) wrote: > >> Thanks for helping me explore this... I found the error with 2 >> different traces. > > > Which sidebar plugins did you enable? You might want to try disabling > them one by one, I'm sure it'll work at one point. Either find that > point or mail back with the list of plugins you enabled with their > configured parameters. That'll help debugging it. I use lots of plugins... Delicious, 43 Things, Categories, Archives, and 5 or so static content. I removed all of the sidebar plugins and I get a slightly different error in production.log. NoMethodError (undefined method `downcase' for nil:NilClass): /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/request.rb:13:in `method' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/request.rb:23:in `post?' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/caching.rb:134:in `caching_allowed' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/caching.rb:128:in `cache_page' (eval):1:in `class_eval' (eval):1:in `call' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:319:in `call_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:313:in `each' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:313:in `call_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:308:in `after_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:296:in `perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `perform_action_without_rescue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `perform_action_without_rescue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:80:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!' public/dispatch.fcgi:24 Scott From ryanabrams at gmail.com Fri Aug 26 16:17:20 2005 From: ryanabrams at gmail.com (Ryan Abrams) Date: Fri Aug 26 16:10:43 2005 Subject: [typo] TextFilters: Post Processors vs. Macros Message-ID: <35211edb0508261317776ddbc1@mail.gmail.com> How is the new text filter plugins thing architected? As far as I can tell, there are three types of plugins: Macros, Markup, and Post Processors. Macros have a tag like and accept parameters via the tag. This is useful for things like flickr and sparklines. These apply across ALL filters, and cannot be disabled short of removing them from the app itself. Markup plugins are things like Markdown and Textile. You choose ONE and only one of these when creating a filter. Post Processors are tags that are enabled or disabled by filter. Things like SmartyPants and Amazon. Some of them accept parameters in the filter config (i.e. Amazon referral ID) and in the tag (i.e. Amazon item ID). My main question is how Macros and Post Processors differ enough to be treated differently... why is there a distinction? Why can't i disable flickr parsing for one filter type but not another? Why is it ok that the amazon plugin uses an tag instead of ISSN? What is the concept there? The reason I ask is that I am working on a "review" plugin. I want to be able to write something like and have it parse that out into a nice, well laid out summary box that goes wherever that tag is. I've already created a plugin that works like the amazon one, and replaces with an image of four stars. That was straight forward. But now that I want to get more complex, I think maybe it should be a Macro instead. But I don't really understand why the two are separate in the first place. -Ryan From justus at ryoohki.net Fri Aug 26 17:27:15 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Fri Aug 26 17:21:23 2005 Subject: [typo] TextFilters: Post Processors vs. Macros In-Reply-To: <35211edb0508261317776ddbc1@mail.gmail.com> References: <35211edb0508261317776ddbc1@mail.gmail.com> Message-ID: <430F8933.8050600@ryoohki.net> Ryan Abrams wrote: > My main question is how Macros and Post Processors differ enough to be > treated differently... why is there a distinction? From Scott's page about filters[1] post-processing filters transform valid HTML to valid HTML. Since tags like and aren't valid HTML they don't fit that description. An earlier post[2] talks a little bit about why he made the dinstinctions he did. [1]: http://scottstuff.net/blog/articles/2005/08/23/introduction-to-typo-filters [2]: http://scottstuff.net/blog/articles/2005/08/13/questions-about-typo-filters > Why can't i disable flickr parsing for one filter type but not another? From the second link I gave, "As long as the Typo macro tags fit into a clean namespace and they don?t have side-effects when they aren?t used, there?s no reason to ever turn them off. If a macro tag filter is installed, then it should be used on all articles." > Why is it ok that the amazon plugin uses an tag instead > of ISSN? What is the concept there? I haven't used it but the documentation for the amazon filter suggests you use the form: foo This is valid HTML (although somewhat nonsensical given the target of the HREF) and the post-filter will turn it into other, valid, HTML. > I think maybe it should be a Macro instead. FWIW, it sounds to me like you want a macro, too. From ryanabrams at gmail.com Fri Aug 26 17:57:32 2005 From: ryanabrams at gmail.com (Ryan Abrams) Date: Fri Aug 26 17:57:50 2005 Subject: [typo] TextFilters: Post Processors vs. Macros In-Reply-To: <430F8933.8050600@ryoohki.net> References: <35211edb0508261317776ddbc1@mail.gmail.com> <430F8933.8050600@ryoohki.net> Message-ID: Thanks Justus, I always check the wiki, but forget the blogs. That's some good reading, and it makes more sense now.. -Ryan On Aug 26, 2005, at 4:27 PM, Justus Pendleton wrote: > Ryan Abrams wrote: > >> My main question is how Macros and Post Processors differ enough >> to be >> treated differently... why is there a distinction? >> > > From Scott's page about filters[1] post-processing filters > transform valid HTML to valid HTML. Since tags like and > aren't valid HTML they don't fit that description. An > earlier post[2] talks a little bit about why he made the > dinstinctions he did. > > [1]: http://scottstuff.net/blog/articles/2005/08/23/introduction-to- > typo-filters > [2]: http://scottstuff.net/blog/articles/2005/08/13/questions-about- > typo-filters > > > >> Why can't i disable flickr parsing for one filter type but not >> another? >> > > From the second link I gave, "As long as the Typo macro tags fit > into a clean namespace and they don?t have side-effects when they > aren?t used, there?s no reason to ever turn them off. If a macro > tag filter is installed, then it should be used on all articles." > > >> Why is it ok that the amazon plugin uses an tag instead >> of ISSN? What is the concept there? >> > > I haven't used it but the documentation for the amazon filter > suggests you use the form: > > foo > > This is valid HTML (although somewhat nonsensical given the target > of the HREF) and the post-filter will turn it into other, valid, HTML. > > >> I think maybe it should be a Macro instead. >> > > FWIW, it sounds to me like you want a macro, too. > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From kevin at sb.org Fri Aug 26 19:59:47 2005 From: kevin at sb.org (Kevin Ballard) Date: Fri Aug 26 19:53:14 2005 Subject: [typo] TextFilters: Post Processors vs. Macros In-Reply-To: <35211edb0508261317776ddbc1@mail.gmail.com> References: <35211edb0508261317776ddbc1@mail.gmail.com> Message-ID: On Aug 26, 2005, at 4:17 PM, Ryan Abrams wrote: > My main question is how Macros and Post Processors differ enough to > be treated differently... why is there a distinction? For a good example, look at SmartyPants. That is definite a post- processor; it cannot be implemented as a macro. However, is a macro - it should not be implemented as a post-processor. Justus's comment about post processors translating valid HTML to valid HTML is right on the money - that's what a post-processor is for. Whereas a macro is for inserting a bit of extra functionality, like syntax highlighting for code. > Why can't i disable flickr parsing for one filter type but not > another? Because is in its own namespace, so it doesn't hurt to leave it on all the time, and giving the ability to disable macros would unnecessarily complicate the admin UI. > Why is it ok that the amazon plugin uses an tag > instead of ISSN? What is the concept there? It's actually References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> <57F11ABE-E34B-497C-9C53-42165438A3A0@sigkill.org> <430E536C.4070405@globalreset.org> <0C268D3A-5ED2-46E3-8675-FA00EA140959@globalreset.org> <8A61CA03-8F81-44D4-B3C9-C574D923F47E@sigkill.org> <430F2F77.9000605@globalreset.org> <430F73AF.1000606@globalreset.org> Message-ID: <1988BB1A-509F-4FFE-99CA-2AF818B725F1@lenz.sh> On 26.08.2005, at 21:55, Scott Hughes (list) wrote: > I use lots of plugins... Delicious, 43 Things, Categories, > Archives, and 5 or so static content. I removed all of the sidebar > plugins and I get a slightly different error in production.log. > > NoMethodError (undefined method `downcase' for nil:NilClass): > /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ > action_controller/request.rb:13:in `method' That's truly weird. That line is as follows: env['REQUEST_METHOD'].downcase.to_sym What it boils down to is probably a proper CGI environment, something I've never encountered before. As I didn't follow this thread from the beginning, I don't know whether you already mentioned your versions of Typo, Rails, your webserver, etc. -- Patrick Lenz (scoop) http://poocs.net/ # Personal Weblog http://limited-overload.de/ # Web application development http://freshmeat.net/ # Free software archive http://topmedia.de/ # IT Storage Solutions From damien.pollet at gmail.com Sat Aug 27 18:29:34 2005 From: damien.pollet at gmail.com (Damien Pollet) Date: Sat Aug 27 18:22:57 2005 Subject: [typo] How to avoid cache In-Reply-To: <35211edb05082308436b2dad94@mail.gmail.com> References: <47b6204005082305436eaac58@mail.gmail.com> <068457CC-09DB-4DAF-8C08-C17043A3912B@sigkill.org> <35211edb05082308436b2dad94@mail.gmail.com> Message-ID: <34b4844b0508271529251f34bd@mail.gmail.com> you can disable caching in production mode by setting ActionController::Base.perform_caching = false in config/environments/production.rb -- D From shughes_list at globalreset.org Sun Aug 28 14:00:09 2005 From: shughes_list at globalreset.org (Scott Hughes (List)) Date: Sun Aug 28 13:53:33 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <1988BB1A-509F-4FFE-99CA-2AF818B725F1@lenz.sh> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> <57F11ABE-E34B-497C-9C53-42165438A3A0@sigkill.org> <430E536C.4070405@globalreset.org> <0C268D3A-5ED2-46E3-8675-FA00EA140959@globalreset.org> <8A61CA03-8F81-44D4-B3C9-C574D923F47E@sigkill.org> <430F2F77.9000605@globalreset.org> <430F73AF.1000606@globalreset.org> <1988BB1A-509F-4FFE-99CA-2AF818B725F1@lenz.sh> Message-ID: <815B8851-9DD9-47FC-94B9-F8CF7E42AE92@globalreset.org> On Aug 27, 2005, at 2:58 AM, Patrick Lenz wrote: > On 26.08.2005, at 21:55, Scott Hughes (list) wrote: > > >> I use lots of plugins... Delicious, 43 Things, Categories, >> Archives, and 5 or so static content. I removed all of the >> sidebar plugins and I get a slightly different error in >> production.log. >> >> NoMethodError (undefined method `downcase' for nil:NilClass): >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ >> action_controller/request.rb:13:in `method' >> > > That's truly weird. That line is as follows: > > env['REQUEST_METHOD'].downcase.to_sym > > What it boils down to is probably a proper CGI environment, > something I've never encountered before. As I didn't follow this > thread from the beginning, I don't know whether you already > mentioned your versions of Typo, Rails, your webserver, etc. > Patrick, I guess that exception is coming from the fact that I am running dispatch.fcgi from the command-line. Scott Laird suggested I try this to see what exceptions could be hanging the dispatch.fcgi process. I'm on a shared host (DreamHost) and haven't been able to figure out what version of apache they are using. My Typo version comes from SVN, from about 8-9 days ago. Scott From chris at heartsong.biz Sun Aug 28 18:49:05 2005 From: chris at heartsong.biz (Chris Clark) Date: Sun Aug 28 18:42:30 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <815B8851-9DD9-47FC-94B9-F8CF7E42AE92@globalreset.org> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> <57F11ABE-E34B-497C-9C53-42165438A3A0@sigkill.org> <430E536C.4070405@globalreset.org> <0C268D3A-5ED2-46E3-8675-FA00EA140959@globalreset.org> <8A61CA03-8F81-44D4-B3C9-C574D923F47E@sigkill.org> <430F2F77.9000605@globalreset.org> <430F73AF.1000606@globalreset.org> <1988BB1A-509F-4FFE-99CA-2AF818B725F1@lenz.sh> <815B8851-9DD9-47FC-94B9-F8CF7E42AE92@globalreset.org> Message-ID: <68beea6ebb61ef3a4b4e3619dbd96149@heartsong.biz> Not having dreamhost, I dont know what apache version they are using, but on my hosted server I ran a php page with php_info() so thay I could figure out all the goodies they are offering On Aug 28, 2005, at 11:00 AM, Scott Hughes (List) wrote: > > On Aug 27, 2005, at 2:58 AM, Patrick Lenz wrote: > >> On 26.08.2005, at 21:55, Scott Hughes (list) wrote: >> >> >>> I use lots of plugins... Delicious, 43 Things, Categories, >>> Archives, and 5 or so static content. I removed all of the sidebar >>> plugins and I get a slightly different error in production.log. >>> >>> NoMethodError (undefined method `downcase' for nil:NilClass): >>> >>> /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/ >>> request.rb:13:in `method' >>> >> >> That's truly weird. That line is as follows: >> >> env['REQUEST_METHOD'].downcase.to_sym >> >> What it boils down to is probably a proper CGI environment, something >> I've never encountered before. As I didn't follow this thread from >> the beginning, I don't know whether you already mentioned your >> versions of Typo, Rails, your webserver, etc. >> > > Patrick, > > I guess that exception is coming from the fact that I am running > dispatch.fcgi from the command-line. Scott Laird suggested I try this > to see what exceptions could be hanging the dispatch.fcgi process. > > I'm on a shared host (DreamHost) and haven't been able to figure out > what version of apache they are using. My Typo version comes from > SVN, from about 8-9 days ago. > > Scott > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From kevin at sb.org Sun Aug 28 21:22:00 2005 From: kevin at sb.org (Kevin Ballard) Date: Sun Aug 28 21:15:26 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <815B8851-9DD9-47FC-94B9-F8CF7E42AE92@globalreset.org> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> <57F11ABE-E34B-497C-9C53-42165438A3A0@sigkill.org> <430E536C.4070405@globalreset.org> <0C268D3A-5ED2-46E3-8675-FA00EA140959@globalreset.org> <8A61CA03-8F81-44D4-B3C9-C574D923F47E@sigkill.org> <430F2F77.9000605@globalreset.org> <430F73AF.1000606@globalreset.org> <1988BB1A-509F-4FFE-99CA-2AF818B725F1@lenz.sh> <815B8851-9DD9-47FC-94B9-F8CF7E42AE92@globalreset.org> Message-ID: <814F2099-2E0D-4633-BD64-9E60A39C06EC@sb.org> I use Dreamhost and I haven't had any problems with Typo aside from the very occasional timeout when starting a new fcgi process (still not sure the cause), which I simply ignore and try again a couple minutes later (of course, this is only a problem right after I've killed off my existing processes to get it to reload - yes, I know I can send it a HUP or USR1 signal, but it seems like dreamhost prefers to spawn more and more dispatch.fcgi processes over time, so every week or two when updating I usually simply send them all a KILL and start over with a single process). On Aug 28, 2005, at 2:00 PM, Scott Hughes (List) wrote: > I guess that exception is coming from the fact that I am running > dispatch.fcgi from the command-line. Scott Laird suggested I try > this to see what exceptions could be hanging the dispatch.fcgi > process. > > I'm on a shared host (DreamHost) and haven't been able to figure > out what version of apache they are using. My Typo version comes > from SVN, from about 8-9 days ago. -- Kevin Ballard kevin@sb.org http://www.tildesoft.com http://kevin.sb.org -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2378 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050828/68d4ce6d/smime.bin From trejkaz at trypticon.org Mon Aug 29 07:18:06 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Mon Aug 29 07:11:08 2005 Subject: [typo] Sparklines requirements Message-ID: <200508292118.11229.trejkaz@trypticon.org> I have RMagick version 1.9.0 installed, and Sparklines seems to be included in Typo for the time being, but I'm getting the following error loading the image: NameError (uninitialized constant Sparklines): /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:186:in `const_missing' What else am I missing? Or is this feature still too experimental? :-) TX -- Email: Trejkaz Xaoza Web site: http://trypticon.org/ Jabber ID: trejkaz@jabber.zim.net.au GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050829/5d783115/attachment.bin From shughes_list at globalreset.org Mon Aug 29 09:05:04 2005 From: shughes_list at globalreset.org (Scott Hughes (List)) Date: Mon Aug 29 08:58:25 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <815B8851-9DD9-47FC-94B9-F8CF7E42AE92@globalreset.org> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> <57F11ABE-E34B-497C-9C53-42165438A3A0@sigkill.org> <430E536C.4070405@globalreset.org> <0C268D3A-5ED2-46E3-8675-FA00EA140959@globalreset.org> <8A61CA03-8F81-44D4-B3C9-C574D923F47E@sigkill.org> <430F2F77.9000605@globalreset.org> <430F73AF.1000606@globalreset.org> <1988BB1A-509F-4FFE-99CA-2AF818B725F1@lenz.sh> <815B8851-9DD9-47FC-94B9-F8CF7E42AE92@globalreset.org> Message-ID: <1DAA2EA1-8B59-4849-B4E2-B68075A07F13@globalreset.org> > I'm on a shared host (DreamHost) and haven't been able to figure > out what version of apache they are using. My Typo version comes > from SVN, from about 8-9 days ago. I went ahead and updated to the latest SVN (rev 586) yesterday, and it looks like my production.log is error free so far. I still get an occasional "Typo app cannot be reached" error, but it always goes away if I retry the same operation. Scott Hughes http://blog.globalreset.org/ From waylan at gmail.com Mon Aug 29 10:52:36 2005 From: waylan at gmail.com (Waylan Limberg) Date: Mon Aug 29 10:45:53 2005 Subject: [typo] Logs / Statistics In-Reply-To: <430BF5A7.4000002@holsman.net> References: <430664BC.6060200@commontext.com> <430941A7.7010003@commontext.com> <430BF5A7.4000002@holsman.net> Message-ID: I've been reading this list for a couple weeks now, and found the stats on rss reeds dicussion interesting. Then this morning I was reading something elsewhere and it hit me. Perhaps the best sotution is to not create a half-working product but suggest that those who really want to track stats on feeds use feedburner. Have typo generate the feed as normal, but only let the feedburner bot through, redirecting everyone else to the feedburner feed. Then check into your feedburner account and get the stats whenever you want. Just a thought. On 8/24/05, Ian Holsman wrote: > William A. Carrel wrote: > > I imagine you'd achieve this by fitting some magic javascript or image > > into the article in the RSS feed. Really this would track the same way > > as article views and probably could be implemented fairly easily (and > > non-invasively) using the filter framework that Scott Laird has been > > working on. > > there are a couple of issues with RSS feeds. > > 1. some don't show HTML, they just do text > 2. most don't pass cookies, or Referrers. > 3. most are on a periodic schedule so your not actually tracking people > viewing > 4. people's IP numbers change > 5. multiple people may be viewing your RSS feed (bloglines for example) > 6. some/most of them don't run javascript (intentionally) > > so in order to start tracking things you can't just use the typical > webbug/1x1 gif you would normally. > > > my only suggestion is that you change the URL you offer to include the > cookie of the viewer > so the URL displayed in the HTML/page would change from > http://feh.holsman.net/xml/rss/feed.xml > > to > http://feh.holsman.net/xml/rss/A1231BC01231.xml > > would (via a rewrite rule ) would get mapped to feed.xml > and aritcles in the actual RSS feed would have similar encodings. > (meaning they would be dynamic) > this would help with 2,4 and 6. > > your Stat generator would need to also look at people's useragents, as > they have subscriber numbers in them as well. > > > > > On Aug 21, 2005, at 8:08 PM, Jeff Casimir wrote: > > > >> Are you saying that you want to track when users access your RSS > >> feed? That sounds like an interesting challenge. I think the > >> tracking would have to come from the controller that renders the XML. > >> For Typo applications, this would mean adding a method call within the > >> controller if you want to use railstat. Of course first I'll have to > >> figure out the railstat side of things. It shouldn't be hard, but I > >> haven't had much dev time in the last week. I will keep it at the > >> forefront of my to-do list this week. > >> > > > >> Kevin Ballard wrote: > >> > >> > >>> RailStat sounds cool, but since it works by having the browser load > >>> a resource (either JS or image), it seems to me it can't track RSS > >>> feeds. Do you have any sort of solution for that? > >>> > >>> On Aug 19, 2005, at 7:01 PM, Jeff Casimir wrote: > >>> > >>> > >>>> I've been working with Luben, the guy who started railstat, to make > >>>> it...ummm...better. It needs a lot of work before I would call it > >>>> ready for widespread deployment. Since his 0.1 gem creation I have > >>>> done a lot of work on the code to... > >>>> - Support Windows > >>>> - Support PostgreSQL (aka anything not-MySQL) > >>>> - Support a server running as local host > >>>> - Optimizing some of the SQL queries > >>>> - Refactoring. Refactoring. Refactoring. > >>>> > >>>> I took a day off to go to the beach, but I should be back to work > >>>> on it tonight or tomorrow. Expect release(s) next week. > >>>> > >>> > >>> > >>> ------------------------------------------------------------------------ > >>> > >>> _______________________________________________ > >>> Typo-list mailing list > >>> Typo-list@rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/typo-list > >>> > >>> > >> > >> _______________________________________________ > >> Typo-list mailing list > >> Typo-list@rubyforge.org > >> http://rubyforge.org/mailman/listinfo/typo-list > >> > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- ---- Waylan Limberg waylan@gmail.com From scaudill at gmail.com Mon Aug 29 11:02:44 2005 From: scaudill at gmail.com (Stephen Caudill) Date: Mon Aug 29 10:56:04 2005 Subject: [typo] Fwd: FCGI Weirdness... In-Reply-To: References: Message-ID: Just wanted to bump this. Don't know if the first one just didn't come through or what... Is anyone else experiencing a situation where Typo runs happily under WeBRick and CGI, but not FCGI in an environment where FCGI is confirmed to be working? The details are below, if anyone has any advice. Thanks! - Stephen ---------- Forwarded message ---------- From: Stephen Caudill Date: Aug 24, 2005 10:56 PM Subject: FCGI Weirdness... To: Typo-list@rubyforge.org Hi :) First time caller, long time listener. I've got a typo blog (SVN trunk) running at: http://lizandsteve.com/ (wedding blog on Rails... how geeky is that?) It runs reliably (if a bit slowly) under CGI and not at all under FCGI. It's in production mode, specified by RAILS_ENV in its Vhost in httpd.conf, running on Fedora, Apache 1.3 and MySQL. The thing that confuses me is that I've got two other rails apps running on the box under FCGI with no hiccups and great performance. Here's the error I receive in server.log: [Mon Aug 22 01:27:15 2005] [error] [client 207.30.7.74] FastCGI: incomplete headers (0 bytes) received from server "/home/caudills/public_html/public/dispatch.fcgi" [Wed Aug 24 22:05:33 2005] [error] [client 207.30.7.74] FastCGI: comm with (dynamic) server "/home/caudills/public_html/public/dispatch.fcgi" aborted: (first read) idle timeout (30 sec) [Wed Aug 24 22:05:33 2005] [error] [client 207.30.7.74] FastCGI: incomplete headers (0 bytes) received from server "/home/caudills/public_html/public/dispatch.fcgi" I think this is a fairly generic error message, but when I've seen this before, it's been because FCGI didn't have proper permissions set for it's temp directory (or is it a file...), but that's obviously not the case here, as the other sites run just fine. Also, when I was developing locally, I could only get typo to run under WeBRick and I have several Rails apps running happilly under FCGI. This is true of a virgin install as well... Local environment is OSX 10.3, Apache 1.3 and MySQL. I'm thoroughly stumped on this one... Any ideas? Thanks, Stephen p.s. Thanks to Tobias and the rest of the team for a great piece of software!! I enjoy it and pick it apart on a daily basis. In fact, outside of the Pickaxe and AWDWR, it's been my greatest learning tool :) From ryanabrams at gmail.com Mon Aug 29 11:12:45 2005 From: ryanabrams at gmail.com (Ryan Abrams) Date: Mon Aug 29 11:06:04 2005 Subject: [typo] Logs / Statistics In-Reply-To: References: <430664BC.6060200@commontext.com> <430941A7.7010003@commontext.com> <430BF5A7.4000002@holsman.net> Message-ID: <35211edb05082908129bb5848@mail.gmail.com> How does feedburner track RSS stats any differently than typo could? Don't they still have the issues of knowing who is actually reading, dealing with counting automated pulls from feedreaders, etc? If feedburner has solved the problem, it may be the way to go (instead of reinventing the wheel). But I don't know that they have. -Ryan On 8/29/05, Waylan Limberg wrote: > > I've been reading this list for a couple weeks now, and found the > stats on rss reeds dicussion interesting. Then this morning I was > reading something elsewhere and it hit me. Perhaps the best sotution > is to not create a half-working product but suggest that those who > really want to track stats on feeds use feedburner. Have typo generate > the feed as normal, but only let the feedburner bot through, > redirecting everyone else to the feedburner feed. Then check into your > feedburner account and get the stats whenever you want. > > Just a thought. > > On 8/24/05, Ian Holsman wrote: > > William A. Carrel wrote: > > > I imagine you'd achieve this by fitting some magic javascript or image > > > into the article in the RSS feed. Really this would track the same way > > > as article views and probably could be implemented fairly easily (and > > > non-invasively) using the filter framework that Scott Laird has been > > > working on. > > > > there are a couple of issues with RSS feeds. > > > > 1. some don't show HTML, they just do text > > 2. most don't pass cookies, or Referrers. > > 3. most are on a periodic schedule so your not actually tracking people > > viewing > > 4. people's IP numbers change > > 5. multiple people may be viewing your RSS feed (bloglines for example) > > 6. some/most of them don't run javascript (intentionally) > > > > so in order to start tracking things you can't just use the typical > > webbug/1x1 gif you would normally. > > > > > > my only suggestion is that you change the URL you offer to include the > > cookie of the viewer > > so the URL displayed in the HTML/page would change from > > http://feh.holsman.net/xml/rss/feed.xml > > > > to > > http://feh.holsman.net/xml/rss/A1231BC01231.xml > > > > would (via a rewrite rule ) would get mapped to feed.xml > > and aritcles in the actual RSS feed would have similar encodings. > > (meaning they would be dynamic) > > this would help with 2,4 and 6. > > > > your Stat generator would need to also look at people's useragents, as > > they have subscriber numbers in them as well. > > > > > > > > On Aug 21, 2005, at 8:08 PM, Jeff Casimir wrote: > > > > > >> Are you saying that you want to track when users access your RSS > > >> feed? That sounds like an interesting challenge. I think the > > >> tracking would have to come from the controller that renders the XML. > > >> For Typo applications, this would mean adding a method call within > the > > >> controller if you want to use railstat. Of course first I'll have to > > >> figure out the railstat side of things. It shouldn't be hard, but I > > >> haven't had much dev time in the last week. I will keep it at the > > >> forefront of my to-do list this week. > > >> > > > > > >> Kevin Ballard wrote: > > >> > > >> > > >>> RailStat sounds cool, but since it works by having the browser load > > >>> a resource (either JS or image), it seems to me it can't track RSS > > >>> feeds. Do you have any sort of solution for that? > > >>> > > >>> On Aug 19, 2005, at 7:01 PM, Jeff Casimir wrote: > > >>> > > >>> > > >>>> I've been working with Luben, the guy who started railstat, to make > > >>>> it...ummm...better. It needs a lot of work before I would call it > > >>>> ready for widespread deployment. Since his 0.1 gem creation I have > > >>>> done a lot of work on the code to... > > >>>> - Support Windows > > >>>> - Support PostgreSQL (aka anything not-MySQL) > > >>>> - Support a server running as local host > > >>>> - Optimizing some of the SQL queries > > >>>> - Refactoring. Refactoring. Refactoring. > > >>>> > > >>>> I took a day off to go to the beach, but I should be back to work > > >>>> on it tonight or tomorrow. Expect release(s) next week. > > >>>> > > >>> > > >>> > > >>> > ------------------------------------------------------------------------ > > >>> > > >>> _______________________________________________ > > >>> Typo-list mailing list > > >>> Typo-list@rubyforge.org > > >>> http://rubyforge.org/mailman/listinfo/typo-list > > >>> > > >>> > > >> > > >> _______________________________________________ > > >> Typo-list mailing list > > >> Typo-list@rubyforge.org > > >> http://rubyforge.org/mailman/listinfo/typo-list > > >> > > > > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list@rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > -- > ---- > Waylan Limberg > waylan@gmail.com > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050829/ef47cd0b/attachment-0001.htm From shughes_list at globalreset.org Mon Aug 29 11:36:09 2005 From: shughes_list at globalreset.org (Scott Hughes (list)) Date: Mon Aug 29 11:30:58 2005 Subject: [typo] Logs / Statistics In-Reply-To: <35211edb05082908129bb5848@mail.gmail.com> References: <430664BC.6060200@commontext.com> <430941A7.7010003@commontext.com> <430BF5A7.4000002@holsman.net> <35211edb05082908129bb5848@mail.gmail.com> Message-ID: <43132B69.7070008@globalreset.org> Ryan Abrams wrote: >How does feedburner track RSS stats any differently than typo could? Don't >they still have the issues of knowing who is actually reading, dealing with >counting automated pulls from feedreaders, etc? > >If feedburner has solved the problem, it may be the way to go (instead of >reinventing the wheel). But I don't know that they have. > > > Feedburner does a really good job of tracking individual reader statistics from all the various aggregators. I get several hundred hits from aggregators every day, but Feedburner narrows it down to about 20 or so unique readers. I assume there is some fuzzy logic involved, if the aggregator is a meta-aggregator and is not reporting how many of it's readers are reading the feed... Though I believe most aggregators (Bloglines and Newsgator, for example) transmit the number of readers in the request headers. But why not let Feedburner's staff continue working on that problem? I ended up replacing the Typo Syndicate sidebar with my own static box that duplicate's Syndicate's content, except I link to Feedburner. I also had to replace the link in my theme's default.rhtml which let users "auto-discover" my feed. If support for Feedburner were more integrated into Typo, it would be a lot easier for new users. Also, if you're going to build a "total stats" package, Feedburner publishes an API for their stats. So, you can integrate the stats they are collecting along with your own web stats. Scott Hughes http://blog.globalreset.org/ From ryanabrams at gmail.com Mon Aug 29 11:45:37 2005 From: ryanabrams at gmail.com (Ryan Abrams) Date: Mon Aug 29 11:38:55 2005 Subject: [typo] Logs / Statistics In-Reply-To: <43132B69.7070008@globalreset.org> References: <430664BC.6060200@commontext.com> <430941A7.7010003@commontext.com> <430BF5A7.4000002@holsman.net> <35211edb05082908129bb5848@mail.gmail.com> <43132B69.7070008@globalreset.org> Message-ID: <35211edb0508290845bd59d4a@mail.gmail.com> Good answers. I vote for feedburner. I can probably whip up a version of the sidebar that lets users choose whether to use feedburner or just a straight up feed. I'll put it on my (short) list, and file a patch. As far as the integrated stats package and the API, i'm not going anywhere near that. -Ryan On 8/29/05, Scott Hughes (list) wrote: > > Ryan Abrams wrote: > > >How does feedburner track RSS stats any differently than typo could? > Don't > >they still have the issues of knowing who is actually reading, dealing > with > >counting automated pulls from feedreaders, etc? > > > >If feedburner has solved the problem, it may be the way to go (instead of > >reinventing the wheel). But I don't know that they have. > > > > > > > Feedburner does a really good job of tracking individual reader > statistics from all the various aggregators. I get several hundred hits > from aggregators every day, but Feedburner narrows it down to about 20 > or so unique readers. I assume there is some fuzzy logic involved, if > the aggregator is a meta-aggregator and is not reporting how many of > it's readers are reading the feed... Though I believe most aggregators > (Bloglines and Newsgator, for example) transmit the number of readers in > the request headers. But why not let Feedburner's staff continue > working on that problem? > > I ended up replacing the Typo Syndicate sidebar with my own static box > that duplicate's Syndicate's content, except I link to Feedburner. I > also had to replace the link in my theme's default.rhtml which let users > "auto-discover" my feed. If support for Feedburner were more integrated > into Typo, it would be a lot easier for new users. > > Also, if you're going to build a "total stats" package, Feedburner > publishes an API for their stats. So, you can integrate the stats they > are collecting along with your own web stats. > > Scott Hughes > http://blog.globalreset.org/ > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050829/8822778a/attachment.htm From boss at topfunky.com Mon Aug 29 11:51:57 2005 From: boss at topfunky.com (Geoffrey Grosenbach) Date: Mon Aug 29 11:45:51 2005 Subject: [typo] Sparklines requirements Message-ID: Some people have experienced the same problem with Sparklines, and I'm trying to reproduce the bug. In the meantime, you can copy 'sparklines.rb' into Typo's 'lib' folder and everything should work fine. Thanks, Geoffrey Grosenbach p.s.+shameless plug: If you haven't already, listen to the interview with our fearless leader on the recent RoR podcast: http:// www.odeo.com/channel/5297/view ---------- Website Development http://topfunky.com Ruby on Rails Technical Articles http://nubyonrails.topfunky.com Free Online Notes http://notes.topfunky.com http://GeoffreyGrosenbach.com From shughes_list at globalreset.org Mon Aug 29 18:53:46 2005 From: shughes_list at globalreset.org (Scott Hughes (list)) Date: Mon Aug 29 18:48:21 2005 Subject: [typo] Frustrating Dreamhost/Typo experience In-Reply-To: <1DAA2EA1-8B59-4849-B4E2-B68075A07F13@globalreset.org> References: <328687de05082208263e382be4@mail.gmail.com> <24ADA4C5-DFAF-4D68-A2AE-D663563EBD43@sigkill.org> <328687de0508220846109f9ca3@mail.gmail.com> <328687de050825073571253d0d@mail.gmail.com> <75223922-EEB4-458E-8451-B27410FFF9D2@globalreset.org> <57F11ABE-E34B-497C-9C53-42165438A3A0@sigkill.org> <430E536C.4070405@globalreset.org> <0C268D3A-5ED2-46E3-8675-FA00EA140959@globalreset.org> <8A61CA03-8F81-44D4-B3C9-C574D923F47E@sigkill.org> <430F2F77.9000605@globalreset.org> <430F73AF.1000606@globalreset.org> <1988BB1A-509F-4FFE-99CA-2AF818B725F1@lenz.sh> <815B8851-9DD9-47FC-94B9-F8CF7E42AE92@globalreset.org> <1DAA2EA1-8B59-4849-B4E2-B68075A07F13@globalreset.org> Message-ID: <431391FA.8070704@globalreset.org> > I went ahead and updated to the latest SVN (rev 586) yesterday, and > it looks like my production.log is error free so far. I still get an > occasional "Typo app cannot be reached" error, but it always goes > away if I retry the same operation. > So, it was smooth sailing for a while, but it did crash on me again. I noticed that Typo was completely non-responsive, so I watched production.log to see if any errors popped up while I tried to reach it with my browser. There were none. The browser would eventually time out. Further, and this is strange, whenever the browser timed out, Dreamhost would boot me from my ssh session as well. I saw 32 "ruby dispatch.fcgi" processes running, and 10 of those were labeled "defunct". I tried running dispatch.fcgi (as Scott Laird suggested earlier), and I got this output (much shorter than previous attempts): Content-Type: text/html Set-Cookie: _session_id=70751c8222487ea446e08a626e92f86a; path=/ Status: 200 OK Cache-Control: no-cache

Application error (Rails)

I was watching production.log as well, and the following trace was appended: ActionView::TemplateError (undefined method `+' for nil:NilClass) on line #7 of /../../themes/globalreset/layouts/default.rhtml: 4: <%= page_title %> 5: 6: <%= meta_tag 'ICBM', config_value(:geourl_location) %> 7: 8: 9: 10: <%= stylesheet_link_tag "/stylesheets/theme/globalreset" %> /gems/actionpack-1.9.1/lib/action_controller/request.rb:183:in `host_with_port' /gems/actionpack-1.9.1/lib/action_controller/url_rewriter.rb:24:in `rewrite_url' /gems/actionpack-1.9.1/lib/action_controller/url_rewriter.rb:11:in `rewrite' /gems/actionpack-1.9.1/lib/action_controller/base.rb:440:in `url_for' /gems/actionpack-1.9.1/lib/action_view/helpers/url_helper.rb:12:in `send' /gems/actionpack-1.9.1/lib/action_view/helpers/url_helper.rb:12:in `url_for' ./blog/typoconfig/..//app/helpers/application_helper.rb:7:in `server_url_for' (erb):7:in `evaluate_locals' /gems/actionpack-1.9.1/lib/action_view/base.rb:272:in `evaluate_locals' /gems/actionpack-1.9.1/lib/action_view/base.rb:283:in `rhtml_render' /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `send' /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `render_template' ./blog/typoconfig/..//lib/renderfix.rb:23:in `render_file' /gems/actionpack-1.9.1/lib/action_controller/layout.rb:214:in `render_without_benchmark' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' ./blog/typoconfig/../app/controllers/articles_controller.rb:72:in `error' ./blog/typoconfig/../app/controllers/articles_controller.rb:207:in `rescue_action_in_public' /gems/actionpack-1.9.1/lib/action_controller/rescue.rb:33:in `rescue_action' /gems/actionpack-1.9.1/lib/action_controller/rescue.rb:106:in `perform_action' /gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send' /gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process' /gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch' /gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request' /gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' /gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `each_cgi' /gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!' /gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!' blog/typo/public/dispatch.fcgi:24 Any ideas? As I said, I updated to the latest SVN and I thought it was working better. It definitely went longer than it ever had without crashing. Thanks, Scott Hughes http://blog.globalreset.org/ From scott.walter at vivare.com Tue Aug 30 15:09:39 2005 From: scott.walter at vivare.com (Scott F. Walter) Date: Tue Aug 30 15:04:14 2005 Subject: [typo] Getting Involved Message-ID: <4314AEF3.6080400@vivare.com> Greetings, My name is Scott Walter and I would like to get involved with the Typo project and was wondering whats the best way? I was thinking of writing my own blog engine because there are some features I would like that Typo doesn't support. Instead I decided it would be better to get involved with Type and make it the best blogging platform, period. Is there anyone I should contact. I see the list of 4.0 features but don't really know who is working on what or who is assigned to what? Thanks in advance, scott. -- Scott F. Walter Scott F. Walter Principal Consultant Vivare, Inc. E: scott.walter@vivare.com E: scott@scottwalter.com Visit scottwalter.com --Point. Click. Explore! From patrick at lenz.sh Tue Aug 30 15:35:37 2005 From: patrick at lenz.sh (Patrick Lenz) Date: Tue Aug 30 15:28:56 2005 Subject: [typo] Getting Involved In-Reply-To: <4314AEF3.6080400@vivare.com> References: <4314AEF3.6080400@vivare.com> Message-ID: Hi Scott! Actually, I feel kinda overwhelmed by the amount of Scotts working on Typo, but you're welcome to jump aboard as well :) Basically you've visited the right place to look for features people (and us core developers) would like to see implemented: Typo's Trac. A few rules: - Tickets are by default assigned to 'tobi', that doesn't necessarily mean he's working on all of those - Tickets that have [PATCH] in their title usually resemble ready-to- merge state patches more or less to the current trunk - Tickets that have [XPATCH] in their title represent work in progress patches or patches we're not happy applying just yet, check the comments on those to find out what's missing - Tickets that have neither [PATCH] or [XPATCH] or [THEME] in their title are plain feature requests without any code backing yet and we're happy to see anyone volunteer for a first step of implementing those - Tickets that are assigned have an asterisk ('*') next to the assignee, which usually means that person is actively working on it. If there's no asterisk, responsibility has been assigned, but work hasn't actively begun The best way to get involved is by trying to attack a feature that you or anybody else feels is missing from typo. This lets you get familiar with the infrastructure, our coding style, and the general 'way of things'. Hope this helps. Regards, Patrick On 30.08.2005, at 21:09, Scott F. Walter wrote: > Greetings, > > My name is Scott Walter and I would like to get involved with the > Typo project and was wondering whats the best way? I was thinking > of writing my own blog engine because there are some features I > would like that Typo doesn't support. Instead I decided it would > be better to get involved with Type and make it the best blogging > platform, period. > > Is there anyone I should contact. I see the list of 4.0 features > but don't really know who is working on what or who is assigned to > what? > > Thanks in advance, scott. > > > -- > > Scott F. Walter Scott F. Walter > Principal Consultant > Vivare, Inc. > > E: scott.walter@vivare.com > E: scott@scottwalter.com > Visit scottwalter.com --Point. Click. > Explore! > > > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > -- Patrick Lenz (scoop) http://poocs.net/ # Personal Weblog http://limited-overload.de/ # Web application development http://freshmeat.net/ # Free software archive http://topmedia.de/ # IT Storage Solutions From scott.walter at vivare.com Tue Aug 30 15:45:00 2005 From: scott.walter at vivare.com (Scott F. Walter) Date: Tue Aug 30 15:39:35 2005 Subject: [typo] Getting Involved In-Reply-To: References: <4314AEF3.6080400@vivare.com> Message-ID: <4314B73C.5090704@vivare.com> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050830/77bf02f0/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: scottwalter.jpg Type: image/jpeg Size: 5629 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050830/77bf02f0/scottwalter-0001.jpg From patrick at lenz.sh Tue Aug 30 15:58:53 2005 From: patrick at lenz.sh (Patrick Lenz) Date: Tue Aug 30 15:52:11 2005 Subject: [typo] Getting Involved In-Reply-To: <4314B73C.5090704@vivare.com> References: <4314AEF3.6080400@vivare.com> <4314B73C.5090704@vivare.com> Message-ID: <306F8FAE-F78F-45D4-BCC4-D742C7A9288E@lenz.sh> On 30.08.2005, at 21:45, Scott F. Walter wrote: > Never worked on a project with trac before. Is there some place I > need to go to create an account? Trac doesn't need accounts for everyone. You can look at and comment tickets anonymously or by leaving an email address (which is obviously the preferred way to get back to the contributor). -- Patrick Lenz (scoop) http://poocs.net/ # Personal Weblog http://limited-overload.de/ # Web application development http://freshmeat.net/ # Free software archive http://topmedia.de/ # IT Storage Solutions From ralbarazi at gmail.com Wed Aug 31 19:22:18 2005 From: ralbarazi at gmail.com (Rida Al Barazi) Date: Wed Aug 31 19:15:33 2005 Subject: [typo] ActionView::TemplateError References: <430664BC.6060200@commontext.com><430941A7.7010003@commontext.com><430BF5A7.4000002@holsman.net><35211edb05082908129bb5848@mail.gmail.com><43132B69.7070008@globalreset.org> <35211edb0508290845bd59d4a@mail.gmail.com> Message-ID: <046e01c5ae82$d7512cd0$8d50a4d9@redshift> Hi I installed typo in a subdomain, and it's working fine with WEBrick and cgi, but once I change into FastCGI it's not working, I checked fastcgi crash log and it says nothin but: I cheched the production log and here is the error it shows: Processing Base#index (for at Thu Sep 01 03:00:29 GST 2005) Parameters: {"action"=>"index", "controller"=>"articles", "page"=>nil} ActionView?::TemplateError? (undefined method `+' for nil:NilClass?) on line #7 of /../../$ 4: <%= page_title %> 5: 6: <%= meta_tag 'ICBM', config_value(:geourl_location) %> 7: 10: <%= stylesheet_link_tag "/stylesheets/theme/local" %> /gems/actionpack-1.9.1/lib/action_controller/request.rb:183:in `host_with_port' /gems/actionpack-1.9.1/lib/action_controller/url_rewriter.rb:24:in `rewrite_url' /gems/actionpack-1.9.1/lib/action_controller/url_rewriter.rb:11:in `rewrite' /gems/actionpack-1.9.1/lib/action_controller/base.rb:440:in `url_for' /gems/actionpack-1.9.1/lib/action_view/helpers/url_helper.rb:12:in `send' /gems/actionpack-1.9.1/lib/action_view/helpers/url_helper.rb:12:in `url_for' .config/..//app/helpers/application_helper.rb:47:in `server_url_for' (erb):7:in `evaluate_locals' /gems/actionpack-1.9.1/lib/action_view/base.rb:272:in `evaluate_locals' /gems/actionpack-1.9.1/lib/action_view/base.rb:283:in `rhtml_render' /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `send' /gems/actionpack-1.9.1/lib/action_view/base.rb:208:in `render_template' /gems/actionpack-1.9.1/lib/action_view/base.rb:173:in `render_file' /gems/actionpack-1.9.1/lib/action_controller/layout.rb:214:in `render_without_bench$ /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `measure' /gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:25:in `render' .config/../app/controllers/articles_controller.rb:59:in `error' .config/../app/controllers/articles_controller.rb:175:in `rescue_action_in_public' /gems/actionpack-1.9.1/lib/action_controller/rescue.rb:33:in `rescue_action' /gems/actionpack-1.9.1/lib/action_controller/rescue.rb:106:in `perform_action' /gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send' /gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process' /gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch' /gems/rails-0.13.1/lib/fcgi_handler.rb:144:in `process_request' /gems/rails-0.13.1/lib/fcgi_handler.rb:64:in `process!' /gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `each_cgi' /gems/rails-0.13.1/lib/fcgi_handler.rb:55:in `process!' /gems/rails-0.13.1/lib/fcgi_handler.rb:21:in `process!' public/dispatch.fcgi:26 Any Ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050901/6c28279a/attachment.htm