From joehumanist at gmail.com Sun Sep 4 12:21:48 2005 From: joehumanist at gmail.com (Joe Humanist) Date: Sun Sep 4 12:15:02 2005 Subject: [typo] NameError installing from SVN trunk? Message-ID: <000f01c5b16c$c0a350c0$6500a8c0@joehumanist> Hi, I'm brand new to ruby & typo, so I could be missing something very simple. I'm doing a clean install, and after checking out from svn, I'm getting a NameError under both lighttpd and WebBrick. (This is on TextDrive, in case that makes a difference.) Here's the stacktrace from my production.log under lighttpd: Processing Base#index (for 208.58.3.212 at Sun Sep 04 13:48:24 GMT 2005) Parameters: {} NameError (uninitialized constant ArticlesController): /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support /dependencies.rb:186:in `const_missing' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support /dependencies.rb:71:in `const_missing' generated/routing/recognition.rb:4:in `recognize_path' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller /routing.rb:433:in `recognize!' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:i n `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/fcgi-0.8.6.1/./fcgi.rb:597:in `each' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./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!' /home/joehumanist/sites/typo/public/dispatch.fcgi:24 And here it is under WebBrick: Processing Base#index (for 208.58.3.212 at Sun Sep 04 13:55:28 GMT 2005) Parameters: {} NameError (uninitialized constant ArticlesController): /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support /dependencies.rb:186:in `const_missing' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support /dependencies.rb:71:in `const_missing' generated/routing/recognition.rb:4:in `recognize_path' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller /routing.rb:433:in `recognize!' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:105 :in `handle_dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:71: in `service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /usr/local/lib/ruby/1.8/webrick/server.rb:155:in `start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:144:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:144:in `start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:94:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:89:in `each' /usr/local/lib/ruby/1.8/webrick/server.rb:89:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:79:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:79:in `start' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:57: in `dispatch' ./server:49 I've looked at all the obvious things (my database exists, the database.yml file is correct, I've run db/schema.mysql.sql, and I've changed the path to /usr/local/bin/ruby in public/dispatch.rb and in public/dispatch.fcgi) Any ideas? thanks! Patrick From scott at sigkill.org Sun Sep 4 20:55:11 2005 From: scott at sigkill.org (Scott Laird) Date: Sun Sep 4 20:48:29 2005 Subject: [typo] NameError installing from SVN trunk? In-Reply-To: <000f01c5b16c$c0a350c0$6500a8c0@joehumanist> References: <000f01c5b16c$c0a350c0$6500a8c0@joehumanist> Message-ID: <2B92A409-8EDF-4947-9617-C0DEC85ECC5C@sigkill.org> Is there any chance that app/controllers/articles_controller.rb is missing? Scott On Sep 4, 2005, at 9:21 AM, Joe Humanist wrote: > Hi, > > I'm brand new to ruby & typo, so I could be missing something very > simple. > > I'm doing a clean install, and after checking out from svn, I'm > getting > a NameError under both lighttpd and WebBrick. (This is on > TextDrive, in > case that makes a difference.) > > Here's the stacktrace from my production.log under lighttpd: > > Processing Base#index (for 208.58.3.212 at Sun Sep 04 13:48:24 GMT > 2005) > Parameters: {} > > NameError (uninitialized constant ArticlesController): > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/ > active_support > /dependencies.rb:186:in `const_missing' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/ > active_support > /dependencies.rb:71:in `const_missing' > generated/routing/recognition.rb:4:in `recognize_path' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ > action_controller > /routing.rb:433:in `recognize!' > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in > `dispatch' > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb: > 144:i > n `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/fcgi-0.8.6.1/./fcgi.rb:597:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./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!' > /home/joehumanist/sites/typo/public/dispatch.fcgi:24 > > And here it is under WebBrick: > > Processing Base#index (for 208.58.3.212 at Sun Sep 04 13:55:28 GMT > 2005) > Parameters: {} > > NameError (uninitialized constant ArticlesController): > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/ > active_support > /dependencies.rb:186:in `const_missing' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/ > active_support > /dependencies.rb:71:in `const_missing' > generated/routing/recognition.rb:4:in `recognize_path' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/ > action_controller > /routing.rb:433:in `recognize!' > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in > `dispatch' > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/ > webrick_server.rb:105 > :in `handle_dispatch' > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/ > webrick_server.rb:71: > in `service' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' > /usr/local/lib/ruby/1.8/webrick/server.rb:155:in `start_thread' > /usr/local/lib/ruby/1.8/webrick/server.rb:144:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:144:in `start_thread' > /usr/local/lib/ruby/1.8/webrick/server.rb:94:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:89:in `each' > /usr/local/lib/ruby/1.8/webrick/server.rb:89:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:79:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:79:in `start' > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/ > webrick_server.rb:57: > in `dispatch' > ./server:49 > > I've looked at all the obvious things (my database exists, the > database.yml file is correct, I've run db/schema.mysql.sql, and I've > changed the path to /usr/local/bin/ruby in public/dispatch.rb and in > public/dispatch.fcgi) > > Any ideas? > > thanks! > Patrick > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From joehumanist at gmail.com Sun Sep 4 23:17:51 2005 From: joehumanist at gmail.com (Joe Humanist) Date: Sun Sep 4 23:11:05 2005 Subject: [typo] NameError installing from SVN trunk? In-Reply-To: <2B92A409-8EDF-4947-9617-C0DEC85ECC5C@sigkill.org> Message-ID: <000501c5b1c8$6654dba0$6500a8c0@joehumanist> > Is there any chance that app/controllers/articles_controller.rb is > missing? Hi Scott, I checked that after noticing in the archives that that was a problem with an earlier version, but it was there. It turns out that the likely culprit was a hash mark in my db password. After I changed my password, it's working fine using webbrick (at least the signup page is coming up). I'm still having difficulties with lighttpd, but I'm trying to work with the TXD folks to resolve that. thanks, Patrick From aitor.garcia at gmail.com Mon Sep 5 09:04:05 2005 From: aitor.garcia at gmail.com (Aitor Garcia Rey) Date: Mon Sep 5 08:57:09 2005 Subject: [typo] Fixing category & tag feeds Message-ID: <381894f305090506044303bbb5@mail.gmail.com> Browsing the app/controllers/xml_controller.rb for integrate my blog on a planet-like site ( http://weblogs.javahispano.org/planet.do?rmik=tabbedmenu.planet) , I've found the by category & by tag feeds are working on ascendant order, while - as the by article/tracback/comments feeds- the logic order is DESC. I'm real nuby XD and since I can't figure out the existence of a ".sort_by_desc" method I've simply patched the source as : -- --- app/controllers/xml_controller.rb (revision 629) +++ app/controllers/xml_controller.rb (working copy) @@ -40,6 +40,7 @@ category = Category.find_by_permalink(params[:id]) @items = category.articles.sort_by {|a| a.created_at}. reject {|a| a.published != 1 }. + reverse!. slice(0,config[:limit_rss_display]) @feed_title = "#{config[:blog_name]}: Category #{category.name }" @link = url_for({:controller => "articles", :action => "category", :id => category.permalink}, ...and the same stuff for by tag feed. If someone could confirm that this is the best way to do it -surely not :-D -, I would submit the [PATCH] ticket with the test etc. Anyways it would be great to listen to others more experienced ruby hackers a better way to patch this. Un saludo, Aitor Garcia http://fco.textdriven.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050905/e10c693b/attachment-0001.htm From scott at sigkill.org Mon Sep 5 09:13:58 2005 From: scott at sigkill.org (Scott Laird) Date: Mon Sep 5 09:07:15 2005 Subject: [typo] Fixing category & tag feeds In-Reply-To: <381894f305090506044303bbb5@mail.gmail.com> References: <381894f305090506044303bbb5@mail.gmail.com> Message-ID: <3D533CE4-9FD7-48C8-91CB-FE6DA900627B@sigkill.org> On Sep 5, 2005, at 6:04 AM, Aitor Garcia Rey wrote: > Browsing the app/controllers/xml_controller.rb for integrate my > blog on a planet-like site (http://weblogs.javahispano.org/ > planet.do?rmik=tabbedmenu.planet) , I've found the by category & by > tag feeds are working on ascendant order, while - as the by article/ > tracback/comments feeds- the logic order is DESC. > > I'm real nuby XD and since I can't figure out the existence of a > ".sort_by_desc" method I've simply patched the source as : > > -- --- app/controllers/xml_controller.rb (revision 629) > +++ app/controllers/xml_controller.rb (working copy) > @@ -40,6 +40,7 @@ > category = Category.find_by_permalink(params[:id]) > @items = category.articles.sort_by {|a| a.created_at}. > reject {|a| a.published != 1 }. > + reverse!. > slice(0,config[:limit_rss_display]) > @feed_title = "#{config[:blog_name]}: Category # > {category.name}" > @link = url_for({:controller => "articles", :action => > "category", :id => category.permalink}, > > ...and the same stuff for by tag feed. > > If someone could confirm that this is the best way to do it -surely > not :-D -, I would submit the [PATCH] ticket with the test etc. > Anyways it would be great to listen to others more experienced ruby > hackers a better way to patch this. Thanks for catching this. There are two other ways to change the order, and either one would probably be slightly better. First, instead of 'reverse!' we could use 'reverse' (without the !)-- since we're relying on the output of reverse to pass on to slice, we don't need the '!' form of reverse. Second, we could include a :order => 'created_at DESC' clause in the find_by_permalink method. I *think* the find_by_* methods will take :order flags. We should add a :limit clause at the same time. Anyway, looking at the code, we're going to need to do a bit more, because this will leak unpublished articles; I'll probably create a class method in Category (and Tag) to handle all of this, so we can reuse it elsewhere. Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050905/d60c0e62/attachment.htm From scott at sigkill.org Mon Sep 5 09:42:21 2005 From: scott at sigkill.org (Scott Laird) Date: Mon Sep 5 09:35:37 2005 Subject: [typo] Fixing category & tag feeds In-Reply-To: <3D533CE4-9FD7-48C8-91CB-FE6DA900627B@sigkill.org> References: <381894f305090506044303bbb5@mail.gmail.com> <3D533CE4-9FD7-48C8-91CB-FE6DA900627B@sigkill.org> Message-ID: <3B1CEFFB-7F52-4EA4-9CAE-053EBCCD03FB@sigkill.org> On Sep 5, 2005, at 6:13 AM, Scott Laird wrote: > > Second, we could include a :order => 'created_at DESC' clause in > the find_by_permalink method. I *think* the find_by_* methods will > take :order flags. We should add a :limit clause at the same time. Er, ignore this -- I think I was still mostly asleep :-). Ordering the Category provided by creation date won't help much. I'm going to add Article.find_published_by_category_permalink and swap all of the places that use this basic search over to it. Scott From aitor.garcia at gmail.com Mon Sep 5 10:21:01 2005 From: aitor.garcia at gmail.com (Aitor Garcia Rey) Date: Mon Sep 5 10:14:07 2005 Subject: [typo] Fixing category & tag feeds In-Reply-To: <3B1CEFFB-7F52-4EA4-9CAE-053EBCCD03FB@sigkill.org> References: <381894f305090506044303bbb5@mail.gmail.com> <3D533CE4-9FD7-48C8-91CB-FE6DA900627B@sigkill.org> <3B1CEFFB-7F52-4EA4-9CAE-053EBCCD03FB@sigkill.org> Message-ID: <381894f3050905072117f5d0d0@mail.gmail.com> 2005/9/5, Scott Laird : > Er, ignore this -- I think I was still mostly asleep :-). Ordering > the Category provided by creation date won't help much. I'm going to > add Article.find_published_by_category_permalink and swap all of the > places that use this basic search over to it. XD. I know that feeling. Ok with method idea. About the reverse<->reverse! use, I knew about the difference between the "!" marked methods and the plain ones, but I suspected -apparently wrong- that create another Array object would be more a more memory consuming way of do the same thing. Anyways... thanks for the points Scott!. -- Un saludo, Aitor Garcia http://fco.textdriven.com From scott at sigkill.org Mon Sep 5 10:59:55 2005 From: scott at sigkill.org (Scott Laird) Date: Mon Sep 5 10:53:06 2005 Subject: [typo] Fixing category & tag feeds In-Reply-To: <381894f3050905072117f5d0d0@mail.gmail.com> References: <381894f305090506044303bbb5@mail.gmail.com> <3D533CE4-9FD7-48C8-91CB-FE6DA900627B@sigkill.org> <3B1CEFFB-7F52-4EA4-9CAE-053EBCCD03FB@sigkill.org> <381894f3050905072117f5d0d0@mail.gmail.com> Message-ID: On Sep 5, 2005, at 7:21 AM, Aitor Garcia Rey wrote: > 2005/9/5, Scott Laird : > >> Er, ignore this -- I think I was still mostly asleep :-). Ordering >> the Category provided by creation date won't help much. I'm going to >> add Article.find_published_by_category_permalink and swap all of the >> places that use this basic search over to it. >> > > XD. I know that feeling. Ok with method idea. > > About the reverse<->reverse! use, I knew about the difference between > the "!" marked methods and the plain ones, but I suspected -apparently > wrong- that create another Array object would be more a more memory > consuming way of do the same thing. > > Anyways... thanks for the points Scott!. I just committed a fix to the Typo tree. Does everything look good now? Scott From aitor.garcia at gmail.com Tue Sep 6 04:46:49 2005 From: aitor.garcia at gmail.com (Aitor Garcia Rey) Date: Tue Sep 6 04:39:53 2005 Subject: [typo] Fixing category & tag feeds In-Reply-To: References: <381894f305090506044303bbb5@mail.gmail.com> <3D533CE4-9FD7-48C8-91CB-FE6DA900627B@sigkill.org> <3B1CEFFB-7F52-4EA4-9CAE-053EBCCD03FB@sigkill.org> <381894f3050905072117f5d0d0@mail.gmail.com> Message-ID: <381894f305090601466ed280d2@mail.gmail.com> Works great now Scott !. Since the other blog engine (java-made roller weblogger) is skipping my source due to the ausence of the tag I'm comparing different feeds and revising the spec. I think Typo is creating *all* the required tags and is compliant with the spec and that this problem is a bug on the Rome (java-made) syndication library and on the Roller codebase because suppose the existence of these non-required tags and control its cache based on these points. But, anyways, I think that typo is working _strictly_ right now on this subject. I'll keep revising this for the convenience (or not) of create these secondaries, non-required tags. Thanks for your patch Scott. -- Regards, Aitor Garcia http://fco.textdriven.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050906/723cdc04/attachment.htm From mike at uwmike.com Tue Sep 6 17:17:19 2005 From: mike at uwmike.com (Mike Purvis) Date: Tue Sep 6 17:12:45 2005 Subject: [typo] Another Frustrating Dreamhost/Rails/Typo experience Message-ID: <431E075F.2060206@uwmike.com> Greetings List, I'm new to Rails and Ruby, but a reasonably experienced PHP/MySQL hacker. I seem to be have some problems similar to those discussed here a few weeks ago. My Typo installation (http://mikepurvis.com) works when set to dispatch.cgi, but it's Ruby on Snails. When I point to the fcgi dispatcher, it's nice and brisk until it seizes up and then I get 500s (represented by the "Typo Not Available" error...) At the moment of writing, it seems to be running, although "ps ax" on the server shows 15 running dispatch.fcgi processes. I'm running Typo from SVN (about 24 hours ago), and it's Ruby 1.8.2. The version of rails I'm not sure about. Okay, now it's going slow as molasses and the server is showing 8 running processes including one that's "defunct". Any suggestions? Mike From scott at sigkill.org Tue Sep 6 17:28:19 2005 From: scott at sigkill.org (Scott Laird) Date: Tue Sep 6 17:21:40 2005 Subject: [typo] Another Frustrating Dreamhost/Rails/Typo experience In-Reply-To: <431E075F.2060206@uwmike.com> References: <431E075F.2060206@uwmike.com> Message-ID: <8BC54F60-0D78-4E9D-AB4E-91DC49293D73@sigkill.org> On Sep 6, 2005, at 2:17 PM, Mike Purvis wrote: > Greetings List, > > I'm new to Rails and Ruby, but a reasonably experienced PHP/MySQL > hacker. I seem to be have some problems similar to those discussed > here a few weeks ago. > > My Typo installation (http://mikepurvis.com) works when set to > dispatch.cgi, but it's Ruby on Snails. When I point to the fcgi > dispatcher, it's nice and brisk until it seizes up and then I get > 500s (represented by the "Typo Not Available" error...) > > At the moment of writing, it seems to be running, although "ps ax" > on the server shows 15 running dispatch.fcgi processes. > > I'm running Typo from SVN (about 24 hours ago), and it's Ruby > 1.8.2. The version of rails I'm not sure about. > > Okay, now it's going slow as molasses and the server is showing 8 > running processes including one that's "defunct". > > Any suggestions? Try switching from dynamic fcgi to static fcgi. It'll result in a lower load for your hosting provider and faster (and more reliable) performance for you. I'm not sure how you do this with dreamhost, though. I documented what I did at http://scottstuff.net/blog/articles/ 2005/07/19/apache-tuning-for-rails-and-fastcgi. You might want to turn the number of processes down to 1 or 2; with caching enabled, there shouldn't be a big performance difference, and it'll save a lot of memory. Scott From jason at jasonhoffman.org Tue Sep 6 17:43:58 2005 From: jason at jasonhoffman.org (Jason Hoffman) Date: Tue Sep 6 17:37:02 2005 Subject: [typo] Another Frustrating Dreamhost/Rails/Typo experience In-Reply-To: <431E075F.2060206@uwmike.com> References: <431E075F.2060206@uwmike.com> Message-ID: On Sep 6, 2005, at 2:17 PM, Mike Purvis wrote: > I'm running Typo from SVN (about 24 hours ago), and it's Ruby > 1.8.2. The version of rails I'm not sure about. > > Okay, now it's going slow as molasses and the server is showing 8 > running processes including one that's "defunct". > > Any suggestions? There's also an inherent FD_SETSIZE limit in Apache and it sounds like as more people are using mod_fastcgi, so this starts to happen. - Jason From rsimplicio at gmail.com Tue Sep 6 18:36:42 2005 From: rsimplicio at gmail.com (Robert Simplicio) Date: Tue Sep 6 18:29:46 2005 Subject: [typo] Problems migrating from 2.0.6 to svn current Message-ID: <6b06c3d2050906153678fefb8@mail.gmail.com> I've had multiple problems bringing my Typo install current, so I just deleted my entire typo directory and checked out of SVN again. I made the changes necessary to my config/database.yml, public/dispatch.fcgi and public/dispatch.rb (I'm at TextDrive, so the Ruby env paths were wrong). I ran rake migrate RAILS_ENV="production", and that ran successfully. I confirmed all tables converted to InnoDB, etc. The questions I have, are that 1. I do not see the new admin interface at /admin 2. When I attempted to create a new article, I got the following error (from the admin panel, not a client): http://www.textsnippets.com/posts/show/166(snippeted for your convenience) Please let me know what you think! Thanks, Robert Simplicio http://typo.simplicio.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050906/ced16a4e/attachment.htm From scott at sigkill.org Tue Sep 6 18:54:40 2005 From: scott at sigkill.org (Scott Laird) Date: Tue Sep 6 18:47:54 2005 Subject: [typo] Problems migrating from 2.0.6 to svn current In-Reply-To: <6b06c3d2050906153678fefb8@mail.gmail.com> References: <6b06c3d2050906153678fefb8@mail.gmail.com> Message-ID: <767BF075-A8BB-46E9-BF0C-F7E8A8DBBC17@sigkill.org> On Sep 6, 2005, at 3:36 PM, Robert Simplicio wrote: > I've had multiple problems bringing my Typo install current, so I > just deleted my entire typo directory and checked out of SVN again. > I made the changes necessary to my config/database.yml, public/ > dispatch.fcgi and public/dispatch.rb (I'm at TextDrive, so the Ruby > env paths were wrong). I ran rake migrate RAILS_ENV="production", > and that ran successfully. I confirmed all tables converted to > InnoDB, etc. > > The questions I have, are that > 1. I do not see the new admin interface at /admin > 2. When I attempted to create a new article, I got the following > error (from the admin panel, not a client): http:// > www.textsnippets.com/posts/show/166 (snippeted for your convenience) > > Please let me know what you think! I suspect that you still have one or more 2.0.6 FastCGI processes still running. Try hunting them down and killing them, and then you should be able to access the newer version of Typo. The error that you logged really shouldn't appear from a recent Typo code base, and it would be one of the errors that I'd expect to see if you ran Typo 2.0.6 (or even 2.5.5) against a database from the current version of Typo. Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050906/ec513bd8/attachment-0001.htm From rsimplicio at gmail.com Tue Sep 6 19:36:22 2005 From: rsimplicio at gmail.com (Robert Simplicio) Date: Tue Sep 6 19:29:25 2005 Subject: [typo] Problems migrating from 2.0.6 to svn current In-Reply-To: <767BF075-A8BB-46E9-BF0C-F7E8A8DBBC17@sigkill.org> References: <6b06c3d2050906153678fefb8@mail.gmail.com> <767BF075-A8BB-46E9-BF0C-F7E8A8DBBC17@sigkill.org> Message-ID: <6b06c3d20509061636440796f8@mail.gmail.com> Scott, I literally deleted my entire old typo directory, and had Lighttpd stopped while doing it (no FastCGI processes at all). That's when I checked out the latest version, etc. Just for kicks, I've restarted Lighttpd twice, still I get the same error and the old admin panel... On 9/6/05, Scott Laird wrote: > > > On Sep 6, 2005, at 3:36 PM, Robert Simplicio wrote: > > I've had multiple problems bringing my Typo install current, so I just > deleted my entire typo directory and checked out of SVN again. I made the > changes necessary to my config/database.yml, public/dispatch.fcgi and > public/dispatch.rb (I'm at TextDrive, so the Ruby env paths were wrong). I > ran rake migrate RAILS_ENV="production", and that ran successfully. I > confirmed all tables converted to InnoDB, etc. > The questions I have, are that > 1. I do not see the new admin interface at /admin > 2. When I attempted to create a new article, I got the following error > (from the admin panel, not a client): > http://www.textsnippets.com/posts/show/166 (snippeted for your > convenience) > Please let me know what you think! > > > I suspect that you still have one or more 2.0.6 FastCGI processes still > running. Try hunting them down and killing them, and then you should be able > to access the newer version of Typo. The error that you logged really > shouldn't appear from a recent Typo code base, and it would be one of the > errors that I'd expect to see if you ran Typo 2.0.6 (or even 2.5.5) > against a database from the current version of Typo. > > > Scott > > _______________________________________________ > 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/20050906/9cc3eb9e/attachment.htm From scott at sigkill.org Tue Sep 6 19:43:40 2005 From: scott at sigkill.org (Scott Laird) Date: Tue Sep 6 19:36:55 2005 Subject: [typo] Problems migrating from 2.0.6 to svn current In-Reply-To: <6b06c3d20509061636440796f8@mail.gmail.com> References: <6b06c3d2050906153678fefb8@mail.gmail.com> <767BF075-A8BB-46E9-BF0C-F7E8A8DBBC17@sigkill.org> <6b06c3d20509061636440796f8@mail.gmail.com> Message-ID: On Sep 6, 2005, at 4:36 PM, Robert Simplicio wrote: > Scott, > > I literally deleted my entire old typo directory, and had Lighttpd > stopped while doing it (no FastCGI processes at all). That's when I > checked out the latest version, etc. > > Just for kicks, I've restarted Lighttpd twice, still I get the same > error and the old admin panel... The fastcgi server processes can keep running even when the HTTP server is restarted, and the new server will reconnect to existing fastcgi processes. Double-check that you don't have any old dispatch.fcgi processes still hanging around. Scott From rsimplicio at gmail.com Tue Sep 6 20:05:50 2005 From: rsimplicio at gmail.com (Robert Simplicio) Date: Tue Sep 6 19:58:53 2005 Subject: [typo] Problems migrating from 2.0.6 to svn current In-Reply-To: References: <6b06c3d2050906153678fefb8@mail.gmail.com> <767BF075-A8BB-46E9-BF0C-F7E8A8DBBC17@sigkill.org> <6b06c3d20509061636440796f8@mail.gmail.com> Message-ID: <6b06c3d2050906170511099821@mail.gmail.com> Believe me, I did. I checked every .fcgi process on my shared server, and I am certain that it was killed when Lighttpd was killed. On 9/6/05, Scott Laird wrote: > > > On Sep 6, 2005, at 4:36 PM, Robert Simplicio wrote: > > Scott, > > > > I literally deleted my entire old typo directory, and had Lighttpd > > stopped while doing it (no FastCGI processes at all). That's when I > > checked out the latest version, etc. > > > > Just for kicks, I've restarted Lighttpd twice, still I get the same > > error and the old admin panel... > > The fastcgi server processes can keep running even when the HTTP > server is restarted, and the new server will reconnect to existing > fastcgi processes. Double-check that you don't have any old > dispatch.fcgi processes still hanging around. > > > Scott > _______________________________________________ > 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/20050906/2108339f/attachment.htm From scott at sigkill.org Tue Sep 6 20:15:50 2005 From: scott at sigkill.org (Scott Laird) Date: Tue Sep 6 20:09:03 2005 Subject: [typo] Problems migrating from 2.0.6 to svn current In-Reply-To: <6b06c3d2050906170511099821@mail.gmail.com> References: <6b06c3d2050906153678fefb8@mail.gmail.com> <767BF075-A8BB-46E9-BF0C-F7E8A8DBBC17@sigkill.org> <6b06c3d20509061636440796f8@mail.gmail.com> <6b06c3d2050906170511099821@mail.gmail.com> Message-ID: On Sep 6, 2005, at 5:05 PM, Robert Simplicio wrote: > Believe me, I did. I checked every .fcgi process on my shared > server, and I am certain that it was killed when Lighttpd was killed. Okay. This is weird, then because the line number that you referenced earlier in your snippet doesn't seem to match the current Typo code. It pointed to content_controller.rb:24, which is currently: @article.author = session[:user].login The error was complaining about text_filter, which is line 27 right now. Of course, it was line 22 in 2.0.6, so that's not really right, either. I'm going to need to think about this a bit. Scott From shughes_list at globalreset.org Tue Sep 6 21:17:52 2005 From: shughes_list at globalreset.org (Scott Hughes (List)) Date: Tue Sep 6 21:10:57 2005 Subject: [typo] Another Frustrating Dreamhost/Rails/Typo experience In-Reply-To: <431E075F.2060206@uwmike.com> References: <431E075F.2060206@uwmike.com> Message-ID: <66C0C75B-42C3-4D5E-805D-7276622D70F4@globalreset.org> Mike, After I forced my RAILS_ENV to 'production' in config/environment.rb and I downloaded the latest rails fcgi_handler.rb (and installed in my typo/lib folder), I noticed a drastic improvement and much fewer lockups. They do still occur occasionally, but much less so than when I started using Typo. I tried playing with a new rails app of my own today, and I had the most frustrating experience you can imagine with Dreamhost. I couldn't keep the app running and it kept kicking me out of shell access. If you check the forums, you'll see we are not alone. Apparently, Dreamhost is currently migrating all of their shared hosts to the latest debian, but I don't think it's running according to plan. Lots of users are complaining of frequent mysql/shell/ftp/ web dropouts. As an aside, I wonder if Typo is tested in such a harsh environment to see how well it handles it? Could be that rails itself (ActiveRecord) doesn't play well with disappearing mysql servers (i.e. no chance to retry). So, try those first two suggestions and, if they don't get you at least to a 'mostly' usable point, you'll have to wait until Dreamhost is done beating up our shared hosts... Scott Hughes http://blog.globalreset.org/ On Sep 6, 2005, at 4:17 PM, Mike Purvis wrote: > Greetings List, > > I'm new to Rails and Ruby, but a reasonably experienced PHP/MySQL > hacker. I seem to be have some problems similar to those discussed > here a few weeks ago. > > My Typo installation (http://mikepurvis.com) works when set to > dispatch.cgi, but it's Ruby on Snails. When I point to the fcgi > dispatcher, it's nice and brisk until it seizes up and then I get > 500s (represented by the "Typo Not Available" error...) > > At the moment of writing, it seems to be running, although "ps ax" > on the server shows 15 running dispatch.fcgi processes. > > I'm running Typo from SVN (about 24 hours ago), and it's Ruby > 1.8.2. The version of rails I'm not sure about. > > Okay, now it's going slow as molasses and the server is showing 8 > running processes including one that's "defunct". > > Any suggestions? > > Mike > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From kevin at sb.org Tue Sep 6 22:08:57 2005 From: kevin at sb.org (Kevin Ballard) Date: Tue Sep 6 22:02:02 2005 Subject: [typo] Another Frustrating Dreamhost/Rails/Typo experience In-Reply-To: <8BC54F60-0D78-4E9D-AB4E-91DC49293D73@sigkill.org> References: <431E075F.2060206@uwmike.com> <8BC54F60-0D78-4E9D-AB4E-91DC49293D73@sigkill.org> Message-ID: I don't believe you can, with DreamHost. On Sep 6, 2005, at 5:28 PM, Scott Laird wrote: > Try switching from dynamic fcgi to static fcgi. It'll result in a > lower load for your hosting provider and faster (and more reliable) > performance for you. I'm not sure how you do this with dreamhost, > though. -- 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/20050906/7f4e832d/smime.bin From mike at uwmike.com Tue Sep 6 22:18:10 2005 From: mike at uwmike.com (Michael Purvis) Date: Tue Sep 6 22:11:21 2005 Subject: [typo] Another Frustrating Dreamhost/Rails/Typo experience In-Reply-To: <66C0C75B-42C3-4D5E-805D-7276622D70F4@globalreset.org> References: <431E075F.2060206@uwmike.com> <66C0C75B-42C3-4D5E-805D-7276622D70F4@globalreset.org> Message-ID: <431E4DE2.9080406@uwmike.com> I'm glad to hear that it's a DH (and hopefully temporary) issue. I'd been feeling awfully disappointed with Rails... what's the good of kickass dev tools if they can't even keep themselves running? I had actually switched it to production last night, and it seems to have been mostly up today. Frequently very slow, but at least up. Originally I had been using the DH Rails, and then I saw the fcgi_handler suggestion, so I went ahead and installed my own ruby and rails and the modified handler. It didn't seem to make a lot of difference, so I think I'm back running on the DH Rails now, but yeah, I did try that. Okay, here's a different question: Is it possible to configure Typo's permalinks... at all? Ideally, I'd like them to mirror my current setup (archive/slug)... I'm cool with setting up a redirect, but it's that much smoother if it can just handle it. Also, do the "pages" have to be at /pages/mypage, or can they be configured to be at /mypage? Is that even possible under rails, or do need to have the name of the controller there in the URL? Thanks for all the help, Mike Scott Hughes (List) wrote: > Mike, > > After I forced my RAILS_ENV to 'production' in config/environment.rb > and I downloaded the latest rails fcgi_handler.rb (and installed in > my typo/lib folder), I noticed a drastic improvement and much fewer > lockups. They do still occur occasionally, but much less so than > when I started using Typo. > > I tried playing with a new rails app of my own today, and I had the > most frustrating experience you can imagine with Dreamhost. I > couldn't keep the app running and it kept kicking me out of shell > access. If you check the forums, you'll see we are not alone. > Apparently, Dreamhost is currently migrating all of their shared > hosts to the latest debian, but I don't think it's running according > to plan. Lots of users are complaining of frequent mysql/shell/ftp/ > web dropouts. > > As an aside, I wonder if Typo is tested in such a harsh environment > to see how well it handles it? Could be that rails itself > (ActiveRecord) doesn't play well with disappearing mysql servers > (i.e. no chance to retry). > > So, try those first two suggestions and, if they don't get you at > least to a 'mostly' usable point, you'll have to wait until Dreamhost > is done beating up our shared hosts... > > Scott Hughes > http://blog.globalreset.org/ > > > On Sep 6, 2005, at 4:17 PM, Mike Purvis wrote: > >> Greetings List, >> >> I'm new to Rails and Ruby, but a reasonably experienced PHP/MySQL >> hacker. I seem to be have some problems similar to those discussed >> here a few weeks ago. >> >> My Typo installation (http://mikepurvis.com) works when set to >> dispatch.cgi, but it's Ruby on Snails. When I point to the fcgi >> dispatcher, it's nice and brisk until it seizes up and then I get >> 500s (represented by the "Typo Not Available" error...) >> >> At the moment of writing, it seems to be running, although "ps ax" >> on the server shows 15 running dispatch.fcgi processes. >> >> I'm running Typo from SVN (about 24 hours ago), and it's Ruby 1.8.2. >> The version of rails I'm not sure about. >> >> Okay, now it's going slow as molasses and the server is showing 8 >> running processes including one that's "defunct". >> >> Any suggestions? >> >> Mike >> >> _______________________________________________ >> 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 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.18/91 - Release Date: 06/09/2005 From justus at ryoohki.net Tue Sep 6 23:30:11 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Tue Sep 6 23:20:15 2005 Subject: [typo] Another Frustrating Dreamhost/Rails/Typo experience In-Reply-To: <431E4DE2.9080406@uwmike.com> References: <431E075F.2060206@uwmike.com> <66C0C75B-42C3-4D5E-805D-7276622D70F4@globalreset.org> <431E4DE2.9080406@uwmike.com> Message-ID: <431E5EC3.6010909@ryoohki.net> Michael Purvis wrote: > I'm glad to hear that it's a DH (and hopefully temporary) issue. I'd > been feeling awfully disappointed with Rails... what's the good of > kickass dev tools if they can't even keep themselves running? A lot of people have little/no problem running typo. Nearly all of the complaints I've seen on this list have revolved around Dreamhost. I don't know if that means there is something wrong with DH or the people who use it :) > Okay, here's a different question: Is it possible to configure Typo's > permalinks... at all? Ideally, I'd like them to mirror my current setup > (archive/slug)... I'm cool with setting up a redirect, but it's that > much smoother if it can just handle it. You can configure typo's permalinks to a certain extent via routes.rb. Not sure if there are other ways to do it. I think you're probably better off having your webserver give permanent redirects, though. > Also, do the "pages" have to be at /pages/mypage, or can they be > configured to be at /mypage? Is that even possible under rails, or do > need to have the name of the controller there in the URL? You can change it in config/routes.rb. Look for the line: map.connect 'pages/*name',:controller => 'articles', :action => 'view_page' and change it from pages to mypages or whatever you prefer. The name of the controller in this instance is actually "articles". If you ever update your typo install this change'll probably get overwritten. Justus From shughes_list at globalreset.org Tue Sep 6 23:37:04 2005 From: shughes_list at globalreset.org (Scott Hughes (List)) Date: Tue Sep 6 23:30:09 2005 Subject: [typo] Another Frustrating Dreamhost/Rails/Typo experience In-Reply-To: <431E5EC3.6010909@ryoohki.net> References: <431E075F.2060206@uwmike.com> <66C0C75B-42C3-4D5E-805D-7276622D70F4@globalreset.org> <431E4DE2.9080406@uwmike.com> <431E5EC3.6010909@ryoohki.net> Message-ID: On Sep 6, 2005, at 10:30 PM, Justus Pendleton wrote: > > You can change it in config/routes.rb. Look for the line: > map.connect 'pages/*name',:controller => 'articles', :action => > 'view_page' > > and change it from pages to mypages or whatever you prefer. The > name of the controller in this instance is actually "articles". If > you ever update your typo install this change'll probably get > overwritten. Here's a code snippet I happened upon (while searching for something unrelated) which shows how to do this: http://www.bigbold.com/snippets/posts/show/536 Scott Hughes http://blog.globlareset.org/ From kevin at sb.org Wed Sep 7 01:20:13 2005 From: kevin at sb.org (Kevin Ballard) Date: Wed Sep 7 01:13:26 2005 Subject: [typo] Another Frustrating Dreamhost/Rails/Typo experience In-Reply-To: <431E4DE2.9080406@uwmike.com> References: <431E075F.2060206@uwmike.com> <66C0C75B-42C3-4D5E-805D-7276622D70F4@globalreset.org> <431E4DE2.9080406@uwmike.com> Message-ID: <070D08B2-4F4D-48C6-B488-BE96EACA947B@sb.org> Heh, I have some custom code in my install that makes my old MT permalinks (/archives/2003/06/21/some_random_article.html) redirect to the new Typo permalinks, but Tobias (rightfully) didn't want it in the main codebase. However, part of this code involves a port of a perl file taken from MovableType, which means it's covered under the MT license (as a derivative work) and thus I can't distribute it. On Sep 6, 2005, at 10:18 PM, Michael Purvis wrote: > Okay, here's a different question: Is it possible to configure > Typo's permalinks... at all? Ideally, I'd like them to mirror my > current setup (archive/slug)... I'm cool with setting up a > redirect, but it's that much smoother if it can just handle 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/20050907/6e90a4a4/smime.bin From mike at uwmike.com Wed Sep 7 13:15:31 2005 From: mike at uwmike.com (Mike Purvis) Date: Wed Sep 7 13:11:01 2005 Subject: [typo] Redirects In-Reply-To: <070D08B2-4F4D-48C6-B488-BE96EACA947B@sb.org> References: <431E075F.2060206@uwmike.com> <66C0C75B-42C3-4D5E-805D-7276622D70F4@globalreset.org> <431E4DE2.9080406@uwmike.com> <070D08B2-4F4D-48C6-B488-BE96EACA947B@sb.org> Message-ID: <431F2033.4060207@uwmike.com> Okay, so I'm tempted to just dash off a quick PHP to make the redirects, but I might as well start getting used to the Rails Way. I generated a new controller called "forward". And in routes.rb, I added this: # forward old urls map.connect 'archive/:title', :controller => 'forward', :action => 'forward_old' I established it's making it to ForwardController: class ForwardController < ApplicationController def forward_old render_text 'Hello' end end However, I'm unsure how to access the "title" that I've passed in, or indeed how to query the articles table-- one belonging to a different controller. Am I going about this all backwards? Should it be a new action in the Articles controller instead, so that the table I need is just "there"? Thanks, Mike Kevin Ballard wrote: > Heh, I have some custom code in my install that makes my old MT > permalinks (/archives/2003/06/21/some_random_article.html) redirect > to the new Typo permalinks, but Tobias (rightfully) didn't want it in > the main codebase. > > However, part of this code involves a port of a perl file taken from > MovableType, which means it's covered under the MT license (as a > derivative work) and thus I can't distribute it. From scott at sigkill.org Wed Sep 7 14:45:33 2005 From: scott at sigkill.org (Scott Laird) Date: Wed Sep 7 14:38:44 2005 Subject: [typo] Redirects In-Reply-To: <431F2033.4060207@uwmike.com> References: <431E075F.2060206@uwmike.com> <66C0C75B-42C3-4D5E-805D-7276622D70F4@globalreset.org> <431E4DE2.9080406@uwmike.com> <070D08B2-4F4D-48C6-B488-BE96EACA947B@sb.org> <431F2033.4060207@uwmike.com> Message-ID: On Sep 7, 2005, at 10:15 AM, Mike Purvis wrote: > Okay, so I'm tempted to just dash off a quick PHP to make the > redirects, but I might as well start getting used to the Rails Way. > > I generated a new controller called "forward". And in routes.rb, I > added this: > > # forward old urls > map.connect 'archive/:title', > :controller => 'forward', :action => 'forward_old' > > I established it's making it to ForwardController: > > class ForwardController < ApplicationController > def forward_old > render_text 'Hello' > end > end > > However, I'm unsure how to access the "title" that I've passed in, > or indeed how to query the articles table-- one belonging to a > different controller. Am I going about this all backwards? Should > it be a new action in the Articles controller instead, so that the > table I need is just "there"? Title is in params[:title]. The tie between controllers and models is generally explicit (except for scaffolding, but Typo doesn't use it). So you can do something like this: def forward_old article = Article.find_by_name(params[:title]) redirect_to article_url(article) end Scott From mike at uwmike.com Wed Sep 7 15:54:12 2005 From: mike at uwmike.com (Mike Purvis) Date: Wed Sep 7 15:49:37 2005 Subject: [typo] Redirects In-Reply-To: References: <431E075F.2060206@uwmike.com> <66C0C75B-42C3-4D5E-805D-7276622D70F4@globalreset.org> <431E4DE2.9080406@uwmike.com> <070D08B2-4F4D-48C6-B488-BE96EACA947B@sb.org> <431F2033.4060207@uwmike.com> Message-ID: <431F4564.1040106@uwmike.com> Interesting, thanks. However, I've got an error and a question. Firstly, it's not finding "find_by_name". I noticed the the view_page action in the Article controller references "Page.find_by_name", but I don't see a separate Page controller... are pages just handled as Articles? And the question: The article_url() function seems to be defined inside Application.rb file, which just calls url_for. Is url_for a general Rails url construction scheme that takes routing.rb rules into account, or is a part of Typo that's defined somewhere I'm not seeing? Sorry to bombard with questions like this-- All the documentation online seems to be either "use scaffolding to accomplish X" or discussion that's way beyond me... Mike (if this should be taken off-list, just let me know...) Scott Laird wrote: > Title is in params[:title]. The tie between controllers and models > is generally explicit (except for scaffolding, but Typo doesn't use > it). So you can do something like this: > > def forward_old > article = Article.find_by_name(params[:title]) > redirect_to article_url(article) > end From jw at innerewut.de Wed Sep 7 17:10:44 2005 From: jw at innerewut.de (Jonathan Weiss) Date: Wed Sep 7 17:03:49 2005 Subject: [typo] Again problems with 2.5.x In-Reply-To: Message-ID: Cheers, I'm still not able to use Typo 2.5.5 with Apache2/FastCGI, lighttpd and WEBrick are working. The error message is > Application Errror > Typo could not be reached And the production.log does not show anything. Httpd-error is also clean. Any hints? Greets, Jonathan -- Jonathan Weiss http://blog.innerewut.de > 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 > > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From justus at ryoohki.net Wed Sep 7 17:37:13 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Wed Sep 7 17:31:05 2005 Subject: [typo] Redirects In-Reply-To: <431F4564.1040106@uwmike.com> References: <431E075F.2060206@uwmike.com> <66C0C75B-42C3-4D5E-805D-7276622D70F4@globalreset.org> <431E4DE2.9080406@uwmike.com> <070D08B2-4F4D-48C6-B488-BE96EACA947B@sb.org> <431F2033.4060207@uwmike.com> <431F4564.1040106@uwmike.com> Message-ID: <431F5D89.20200@ryoohki.net> Mike Purvis wrote: [I'm a Ruby & Rails neophyte so if I'm wrong below I'm sure someone will correct me :) ] > Firstly, it's not finding "find_by_name". I noticed the the view_page > action in the Article controller references "Page.find_by_name", but I > don't see a separate Page controller... are pages just handled as Articles? There is no separate PageController but "Page.find_by_name" isn't being called on the controller, it is being called on the model, which is handled in app/models/page.rb You'll probably want to call Article.find_by_permalink(year, month, day, title) which is in the model for articles app/models/article.rb. > And the question: The article_url() function seems to be defined inside > Application.rb file, which just calls url_for. Is url_for a general > Rails url construction scheme that takes routing.rb rules into account, > or is a part of Typo that's defined somewhere I'm not seeing? url_for is a rails thing. Justus From trejkaz at trypticon.org Wed Sep 7 22:37:33 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Wed Sep 7 22:31:15 2005 Subject: [typo] Third-party plugins Message-ID: <20050908123733.lx8ufgcje4o4c084@home.trypticon.org> I know that we can drop patches into the bug tracker, but not every plugin we write for ourselves is necessarily worth including in the main repository. I've just made a text filter which simply scrambles IM addresses (because Markdown is only smart enough to scramble email addresses, and doesn't even recognise as a URL, let alone one worth scrambling) but I gather that most people wouldn't find it useful. Some might though, so is there a noteworthy location for dropping new text filters, sidebars and themes? TX ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From socialmoth.blog at gmail.com Thu Sep 8 10:45:49 2005 From: socialmoth.blog at gmail.com (Paul McKellar) Date: Thu Sep 8 10:38:48 2005 Subject: [typo] typo Message-ID: <328687de050908074528101061@mail.gmail.com> so i've been playing with typo and the stopdesign guy's idea http://www.stopdesign.com/ of having photon export iphoto picture directly to typo via MT api. but something seems to be dying when the plug creates a new catagory, (i want a new category based on the album title) so that i can list categories and get albums lists (with image counts) is anyone having trouble with the add category MT api? i can add categories from the website, and select them via the plug in. just not from the plug in. - summery of the idea follows for those interested in the bigger sense - and then i htink it should just be a matter of some css and views controllers tailoring to get a good looking photo album. new post for each image. categories are albums (or maybe keywords in iphoto but i don't like labels as much although that is a better match). makes for easy posting of lots of images (resizing and posting is already built, along with comments syncing between iphoto and blog as of posting time) thanks in advance Paul From scott at sigkill.org Thu Sep 8 10:58:18 2005 From: scott at sigkill.org (Scott Laird) Date: Thu Sep 8 10:51:28 2005 Subject: [typo] typo In-Reply-To: <328687de050908074528101061@mail.gmail.com> References: <328687de050908074528101061@mail.gmail.com> Message-ID: On Sep 8, 2005, at 7:45 AM, Paul McKellar wrote: > so i've been playing with typo and the stopdesign guy's idea > http://www.stopdesign.com/ of having photon export iphoto picture > directly to typo via MT api. but something seems to be dying when > the plug creates a new catagory, (i want a new category based on the > album title) so that i can list categories and get albums lists (with > image counts) is anyone having trouble with the add category MT api? > i can add categories from the website, and select them via the plug > in. just not from the plug in. > > - summery of the idea follows for those interested in the bigger > sense - > > and then i htink it should just be a matter of some css and views > controllers tailoring to get a good looking photo album. > > new post for each image. categories are albums (or maybe keywords in > iphoto but i don't like labels as much although that is a better > match). makes for easy posting of lots of images (resizing and posting > is already built, along with comments syncing between iphoto and blog > as of posting time) We don't currently support any APIs for creating new categories. It's probably easy enough to add them, but I can't see a 'createCategory' or similar API listed in either the MT or MetaWebLog API docs. Can you tell us which API the Photon plugin is trying to use? If you could find an API description, that'd be great, but even name is better then nothing. Scott From justus at ryoohki.net Thu Sep 8 11:36:03 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Thu Sep 8 11:26:06 2005 Subject: [typo] typo In-Reply-To: References: <328687de050908074528101061@mail.gmail.com> Message-ID: <43205A63.1070403@ryoohki.net> > We don't currently support any APIs for creating new categories. It's > probably easy enough to add them, but I can't see a 'createCategory' or > similar API listed in either the MT or MetaWebLog API docs. > > Can you tell us which API the Photon plugin is trying to use? If you > could find an API description, that'd be great, but even name is better > then nothing. After quick glance at the Photon code it doesn't look like it is using any kind of API. It knows about a couple of blog systems -- MT, TypePad, Photopia, Wordpress, and Blojsom -- and hand crafts a URL specific to that system to create a category. It has a hardcoded method when dealing with MT to login and then create a URL of the form: __mode=save_cat&blog_id=XX&category-new=XX&category-new-parent-0=XX If my understanding is correct, Photon won't ever work with Typo unless Photon is changed. (Or, I guess, Typo is changed to accept the above strange URL and do something useful with it.) From justus at ryoohki.net Thu Sep 8 11:39:57 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Thu Sep 8 11:29:56 2005 Subject: [typo] Third-party plugins In-Reply-To: <20050908123733.lx8ufgcje4o4c084@home.trypticon.org> References: <20050908123733.lx8ufgcje4o4c084@home.trypticon.org> Message-ID: <43205B4D.2070501@ryoohki.net> Trejkaz wrote: > Some might though, so is there a noteworthy location for dropping new text > filters, sidebars and themes? It seems like you haven't received any other ideas but my suggestion, at least in the short term, is the wiki. Create a page ThirdPartyPlugins or some such and attach files to it. From mike at uwmike.com Thu Sep 8 11:36:48 2005 From: mike at uwmike.com (Mike Purvis) Date: Thu Sep 8 11:32:19 2005 Subject: [typo] typo In-Reply-To: <328687de050908074528101061@mail.gmail.com> References: <328687de050908074528101061@mail.gmail.com> Message-ID: <43205A90.1010101@uwmike.com> Paul McKellar wrote: >so i've been playing with typo and the stopdesign guy's idea >http://www.stopdesign.com/ of having photon export iphoto picture >directly to typo via MT api. > I'm very interested in this idea, but there isn't currently anything quite like Photon for Picasa. (Once I can afford it, I'll have a powerbook...) In terms of having a separated gallery and blog, are you just installing two instances of Typo? I noticed (#343) is "Multi-blog support." Will this be implemented in a way similar to the way Textpattern does "sections"? That would be an extremely powerful and welcome addition to the software. For the uninitiated, Textpattern lets you break a site into sections, so that permalinks look like "section/article" or "section/y/m/d/article". This makes it super-easy to have multiple "blogs" for a gallery, portfolio, about-pages, etc. I probably would be using Textpattern, except that I caught the Rails-bug, and TxP's database layout is a little bit ludicrous. Mike From socialmoth.blog at gmail.com Thu Sep 8 11:52:05 2005 From: socialmoth.blog at gmail.com (Paul McKellar) Date: Thu Sep 8 11:45:03 2005 Subject: [typo] typo In-Reply-To: <43205A63.1070403@ryoohki.net> References: <328687de050908074528101061@mail.gmail.com> <43205A63.1070403@ryoohki.net> Message-ID: <328687de050908085217feb23b@mail.gmail.com> well it is open sourced, so it is possible, but of course actual code is more impressive i guess. i couldn't find any "add category" api information as scott suggested. which is slightly weird that it is implemented. i'm going to email the guy and see if he can suggest why he choose that format. unless i can find some better api docs for some of these more obscure ones. On 9/8/05, Justus Pendleton wrote: > > We don't currently support any APIs for creating new categories. It's > > probably easy enough to add them, but I can't see a 'createCategory' or > > similar API listed in either the MT or MetaWebLog API docs. > > > > Can you tell us which API the Photon plugin is trying to use? If you > > could find an API description, that'd be great, but even name is better > > then nothing. > > After quick glance at the Photon code it doesn't look like it is using > any kind of API. It knows about a couple of blog systems -- MT, > TypePad, Photopia, Wordpress, and Blojsom -- and hand crafts a URL > specific to that system to create a category. It has a hardcoded method > when dealing with MT to login and then create a URL of the form: > > __mode=save_cat&blog_id=XX&category-new=XX&category-new-parent-0=XX > > If my understanding is correct, Photon won't ever work with Typo unless > Photon is changed. (Or, I guess, Typo is changed to accept the above > strange URL and do something useful with it.) > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From justus at ryoohki.net Thu Sep 8 11:58:54 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Thu Sep 8 11:52:49 2005 Subject: [typo] typo In-Reply-To: <328687de050908085217feb23b@mail.gmail.com> References: <328687de050908074528101061@mail.gmail.com> <43205A63.1070403@ryoohki.net> <328687de050908085217feb23b@mail.gmail.com> Message-ID: <43205FBE.4050100@ryoohki.net> Paul McKellar wrote: > i couldn't find any "add category" api information as scott suggested. > which is slightly weird that it is implemented. i'm going to email > the guy and see if he can suggest why he choose that format. unless i > can find some better api docs for some of these more obscure ones. My guess is he used that format (of hardcoded URLs) because there is no API-approved non-backdoor hack way to create categories with any of the XML-RPC interfaces. I don't know if Atom lets you do it or not. From justus at ryoohki.net Thu Sep 8 12:09:33 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Thu Sep 8 12:03:26 2005 Subject: [typo] typo In-Reply-To: <43205A90.1010101@uwmike.com> References: <328687de050908074528101061@mail.gmail.com> <43205A90.1010101@uwmike.com> Message-ID: <4320623D.2000401@ryoohki.net> Mike Purvis wrote: > In terms of having a separated gallery and blog, are you just > installing two instances of Typo? I noticed (#343) is "Multi-blog > support." My understanding is that multi-blog support requires fairly invasive changes to, well, pretty much everything and there isn't much desire among actual contributors to make it happen as they personally have little use for it. > For the uninitiated, Textpattern lets you break a site into sections, so > that permalinks look like "section/article" or "section/y/m/d/article". > This makes it super-easy to have multiple "blogs" for a gallery, > portfolio, about-pages, etc. How is this different from categories? I don't think it would require more than a few lines of code to allow permalinks in the style you mention. There is a patch on trac (#363) that adds some hooks to let you do per-category formatting. Hopefully that, or something similar, will be committed eventually. Justus From socialmoth.blog at gmail.com Thu Sep 8 12:10:34 2005 From: socialmoth.blog at gmail.com (Paul McKellar) Date: Thu Sep 8 12:03:33 2005 Subject: [typo] typo In-Reply-To: <43205FBE.4050100@ryoohki.net> References: <328687de050908074528101061@mail.gmail.com> <43205A63.1070403@ryoohki.net> <328687de050908085217feb23b@mail.gmail.com> <43205FBE.4050100@ryoohki.net> Message-ID: <328687de05090809104543604e@mail.gmail.com> On 9/8/05, Justus Pendleton wrote: > Paul McKellar wrote: > > i couldn't find any "add category" api information as scott suggested. > > which is slightly weird that it is implemented. i'm going to email > > the guy and see if he can suggest why he choose that format. unless i > > can find some better api docs for some of these more obscure ones. > > My guess is he used that format (of hardcoded URLs) because there is no > API-approved non-backdoor hack way to create categories with any of the > XML-RPC interfaces. I don't know if Atom lets you do it or not. ah, that makes sense. i don't know anything about xmlrpc/atom verse traditional url information passing so i didn't realize hardcoded urls would not be a normal method. From mike at uwmike.com Thu Sep 8 13:14:23 2005 From: mike at uwmike.com (Mike Purvis) Date: Thu Sep 8 13:09:49 2005 Subject: [typo] multiblog, redirects In-Reply-To: <4320623D.2000401@ryoohki.net> References: <328687de050908074528101061@mail.gmail.com> <43205A90.1010101@uwmike.com> <4320623D.2000401@ryoohki.net> Message-ID: <4320716F.7000302@uwmike.com> Justus Pendleton wrote: > My understanding is that multi-blog support requires fairly invasive > changes to, well, pretty much everything... I realise this. It pretty much has to be in the design from the ground-up. > How is this different from categories? I don't think it would require > more than a few lines of code to allow permalinks in the style you > mention. There is a patch on trac (#363) that adds some hooks to let > you do per-category formatting. Hopefully that, or something similar, > will be committed eventually. Interesting. I've already played with routing a bit to give me more control over the locations of the static pages. ("/pages/portfolio_index/" is accessible from "/portfolio/", and "/pages/porfolio_job1/" from "/portfolio/job1/") It would be easy enough to categorize categories... tack an extra field "type" on there, and then have an alternative sidebar widget that can exclude categories of a particular type. I'll experiment with this implementation, thanks... Mike From jonathan at daikini.com Thu Sep 8 16:33:17 2005 From: jonathan at daikini.com (Jonathan Younger) Date: Thu Sep 8 16:26:25 2005 Subject: [typo] typo In-Reply-To: <328687de050908074528101061@mail.gmail.com> References: <328687de050908074528101061@mail.gmail.com> Message-ID: <228D35DF-14D6-4B4B-A52A-5717782D7E7E@daikini.com> Hi, I'm the author of Photon. I too have caught the RoR bug and is ironically part of the reason why I don't have time to work on Photon much any more. :) Unfortunately, there isn't any API standard for creating blog categories. Photon has to have a custom method implemented for each blogging system it wants to support. Basically it just does an HTTP form post mimicking the creation of a category via the same method the blog software creates categories. Really kind of a pain. Not to stray too far from the topic but the APIs created for blogging software are pretty weak and minimal. Everyone seems concerned about doc format, i.e. RSS or Atom, but no one is answering the basic questions of having rich API for managing blog software. To be honest, I'm not entirely sure why people want to use blog software for hosting photo galleries. Sure, it's possible but far from a elegant solution. Doug Bowman has done a great job of creating a photo gallery with Photon and MT but I'd personally like to see a much better system developed. If time permits, I plan to develop a photo gallery in RoR that has a rich API for doing pretty much everything a photo gallery would need to do. Actually, to start with it will probably just be an API as my HTML/CSS interface design skills are severely lacking. Having some kind of interaction between Typo and this new gallery software would be fantastic. I'll also be creating a new iPhoto plugin that is highly focused on the best possible interaction with this new gallery software. Right now everything is pretty much just vaporware but hopefully that will change soon. -Jonathan On Sep 8, 2005, at 7:45 AM, Paul McKellar wrote: > so i've been playing with typo and the stopdesign guy's idea > http://www.stopdesign.com/ of having photon export iphoto picture > directly to typo via MT api. but something seems to be dying when > the plug creates a new catagory, (i want a new category based on the > album title) so that i can list categories and get albums lists (with > image counts) is anyone having trouble with the add category MT api? > i can add categories from the website, and select them via the plug > in. just not from the plug in. > > - summery of the idea follows for those interested in the bigger > sense - > > and then i htink it should just be a matter of some css and views > controllers tailoring to get a good looking photo album. > > new post for each image. categories are albums (or maybe keywords in > iphoto but i don't like labels as much although that is a better > match). makes for easy posting of lots of images (resizing and posting > is already built, along with comments syncing between iphoto and blog > as of posting time) > > thanks in advance > Paul > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From mike at uwmike.com Thu Sep 8 18:16:48 2005 From: mike at uwmike.com (Mike Purvis) Date: Thu Sep 8 18:12:19 2005 Subject: [typo] typo In-Reply-To: <228D35DF-14D6-4B4B-A52A-5717782D7E7E@daikini.com> References: <328687de050908074528101061@mail.gmail.com> <228D35DF-14D6-4B4B-A52A-5717782D7E7E@daikini.com> Message-ID: <4320B850.6050007@uwmike.com> Jonathan Younger wrote: > To be honest, I'm not entirely sure why people want to use blog > software for hosting photo galleries. Sure, it's possible but far > from a elegant solution. Doug Bowman has done a great job of creating > a photo gallery with Photon and MT but I'd personally like to see a > much better system developed. I just think that blog software is more widely used and therefore more mature than most others. WP, Txp, and now Typo are all classy, simple, reliable systems. Coppermine, on the other hand, is so overengineered as to be almost completely unusable. Blog systems already have the basic ingredients for a kickass Flickr-esque gallery: titles, permalinks, comments, customizable templates, and tagging (categories). And besides, it's nice to be able to use an interface one's already familiar with. I'm a believer in reducing a problem to the most basic axioms. > I'll also be creating a new iPhoto plugin that is highly focused on > the best possible interaction with this new gallery software. For me, my woes with online galleries is *definitely* the upload phase. If it's more than one step, it doesn't happen. Yes, I've investigated the Hello/Blogger thing in Picasa, and they seem to have locked it down fairly tight. The one "open" part of the program is the "email these pictures" function. I expect that my next gallery project will be a program that checks a secret email box on a cron and then harvests attached pictures off of incoming emails. That's the only way I can think of that's genuinely easy. (with the possible exception of the flickr bookmarklet...) Mike From boss at topfunky.com Thu Sep 8 20:10:00 2005 From: boss at topfunky.com (Geoffrey Grosenbach) Date: Thu Sep 8 20:03:47 2005 Subject: [typo] Dreamhost and FCGI Working Message-ID: <8C74F1FB-46BA-4B18-849E-0AD03A972AD9@topfunky.com> I finally got FCGI working with Typo (and Rails apps) on Dreamhost. For me, the 0.13.1 fcgi didn't cut it. Brief notes here: http://nubyonrails.topfunky.com/ Geoff ---------- Website Development http://topfunky.com Ruby on Rails Technical Articles http://nubyonrails.topfunky.com http://GeoffreyGrosenbach.com From typo at isolated-designs.net Thu Sep 8 22:23:51 2005 From: typo at isolated-designs.net (Justin Palmer) Date: Thu Sep 8 22:16:55 2005 Subject: [typo] typo In-Reply-To: <228D35DF-14D6-4B4B-A52A-5717782D7E7E@daikini.com> References: <328687de050908074528101061@mail.gmail.com> <228D35DF-14D6-4B4B-A52A-5717782D7E7E@daikini.com> Message-ID: <9AFDDE54-17E1-4007-BFDA-AA32AFF4C8F2@isolated-designs.net> Jonathan, I'm actually open sourcing a gallery/portfolio app much like what Douglas has done with MT. I built it for my basic needs but won't have the time to developer further on it so thats why I'm open sourcing it. It is definitely not the power house type of gallery system your looking for, but perhaps it could be a good start for you. If you want, keep an eye on http://encytemedia.com/blog for the next few days. I'll be releasing it from there as soon as I put a little polish on it and get a repo up. Cheers, -Justin Palmer http://encytemedia.com On Sep 8, 2005, at 3:33 PM, Jonathan Younger wrote: > Hi, > > I'm the author of Photon. I too have caught the RoR bug and is > ironically part of the reason why I don't have time to work on > Photon much any more. :) > > Unfortunately, there isn't any API standard for creating blog > categories. Photon has to have a custom method implemented for each > blogging system it wants to support. Basically it just does an HTTP > form post mimicking the creation of a category via the same method > the blog software creates categories. Really kind of a pain. > > Not to stray too far from the topic but the APIs created for > blogging software are pretty weak and minimal. Everyone seems > concerned about doc format, i.e. RSS or Atom, but no one is > answering the basic questions of having rich API for managing blog > software. > > To be honest, I'm not entirely sure why people want to use blog > software for hosting photo galleries. Sure, it's possible but far > from a elegant solution. Doug Bowman has done a great job of > creating a photo gallery with Photon and MT but I'd personally like > to see a much better system developed. > > If time permits, I plan to develop a photo gallery in RoR that has > a rich API for doing pretty much everything a photo gallery would > need to do. Actually, to start with it will probably just be an API > as my HTML/CSS interface design skills are severely lacking. Having > some kind of interaction between Typo and this new gallery software > would be fantastic. > > I'll also be creating a new iPhoto plugin that is highly focused on > the best possible interaction with this new gallery software. > > Right now everything is pretty much just vaporware but hopefully > that will change soon. > > -Jonathan > > > On Sep 8, 2005, at 7:45 AM, Paul McKellar wrote: > > >> so i've been playing with typo and the stopdesign guy's idea >> http://www.stopdesign.com/ of having photon export iphoto picture >> directly to typo via MT api. but something seems to be dying when >> the plug creates a new catagory, (i want a new category based on the >> album title) so that i can list categories and get albums lists >> (with >> image counts) is anyone having trouble with the add category MT api? >> i can add categories from the website, and select them via the plug >> in. just not from the plug in. >> >> - summery of the idea follows for those interested in the bigger >> sense - >> >> and then i htink it should just be a matter of some css and views >> controllers tailoring to get a good looking photo album. >> >> new post for each image. categories are albums (or maybe keywords in >> iphoto but i don't like labels as much although that is a better >> match). makes for easy posting of lots of images (resizing and >> posting >> is already built, along with comments syncing between iphoto and blog >> as of posting time) >> >> thanks in advance >> Paul >> >> _______________________________________________ >> 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 jonathan at daikini.com Fri Sep 9 01:37:54 2005 From: jonathan at daikini.com (Jonathan Younger) Date: Fri Sep 9 01:30:58 2005 Subject: [typo] typo In-Reply-To: <9AFDDE54-17E1-4007-BFDA-AA32AFF4C8F2@isolated-designs.net> References: <328687de050908074528101061@mail.gmail.com> <228D35DF-14D6-4B4B-A52A-5717782D7E7E@daikini.com> <9AFDDE54-17E1-4007-BFDA-AA32AFF4C8F2@isolated-designs.net> Message-ID: <2C588D8D-79C6-4E9C-A231-8C9F6600035D@daikini.com> Excellent, I'll keep an eye out for it then. -Jonathan On Sep 8, 2005, at 7:23 PM, Justin Palmer wrote: > Jonathan, > > I'm actually open sourcing a gallery/portfolio app much like what > Douglas has done with MT. I built it for my basic needs but won't > have the time to developer further on it so thats why I'm open > sourcing it. It is definitely not the power house type of gallery > system your looking for, but perhaps it could be a good start for you. > > If you want, keep an eye on http://encytemedia.com/blog for the > next few days. I'll be releasing it from there as soon as I put a > little polish on it and get a repo up. > > Cheers, > -Justin Palmer > http://encytemedia.com > > > > On Sep 8, 2005, at 3:33 PM, Jonathan Younger wrote: > > >> Hi, >> >> I'm the author of Photon. I too have caught the RoR bug and is >> ironically part of the reason why I don't have time to work on >> Photon much any more. :) >> >> Unfortunately, there isn't any API standard for creating blog >> categories. Photon has to have a custom method implemented for >> each blogging system it wants to support. Basically it just does >> an HTTP form post mimicking the creation of a category via the >> same method the blog software creates categories. Really kind of a >> pain. >> >> Not to stray too far from the topic but the APIs created for >> blogging software are pretty weak and minimal. Everyone seems >> concerned about doc format, i.e. RSS or Atom, but no one is >> answering the basic questions of having rich API for managing blog >> software. >> >> To be honest, I'm not entirely sure why people want to use blog >> software for hosting photo galleries. Sure, it's possible but far >> from a elegant solution. Doug Bowman has done a great job of >> creating a photo gallery with Photon and MT but I'd personally >> like to see a much better system developed. >> >> If time permits, I plan to develop a photo gallery in RoR that has >> a rich API for doing pretty much everything a photo gallery would >> need to do. Actually, to start with it will probably just be an >> API as my HTML/CSS interface design skills are severely lacking. >> Having some kind of interaction between Typo and this new gallery >> software would be fantastic. >> >> I'll also be creating a new iPhoto plugin that is highly focused >> on the best possible interaction with this new gallery software. >> >> Right now everything is pretty much just vaporware but hopefully >> that will change soon. >> >> -Jonathan >> >> >> On Sep 8, 2005, at 7:45 AM, Paul McKellar wrote: >> >> >> >>> so i've been playing with typo and the stopdesign guy's idea >>> http://www.stopdesign.com/ of having photon export iphoto picture >>> directly to typo via MT api. but something seems to be dying when >>> the plug creates a new catagory, (i want a new category based on the >>> album title) so that i can list categories and get albums lists >>> (with >>> image counts) is anyone having trouble with the add category MT >>> api? >>> i can add categories from the website, and select them via the plug >>> in. just not from the plug in. >>> >>> - summery of the idea follows for those interested in the bigger >>> sense - >>> >>> and then i htink it should just be a matter of some css and views >>> controllers tailoring to get a good looking photo album. >>> >>> new post for each image. categories are albums (or maybe keywords in >>> iphoto but i don't like labels as much although that is a better >>> match). makes for easy posting of lots of images (resizing and >>> posting >>> is already built, along with comments syncing between iphoto and >>> blog >>> as of posting time) >>> >>> thanks in advance >>> Paul >>> >>> _______________________________________________ >>> 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 keith at keithbingman.com Fri Sep 9 06:55:47 2005 From: keith at keithbingman.com (Keith Bingman) Date: Fri Sep 9 06:49:58 2005 Subject: [typo] typo Message-ID: <107684F3-F711-4E52-BA61-8FCC9FE5B575@keithbingman.com> This sounds very interesting. I have been trying to work on such an app and last week with the help of Josh Sierles finally got a bit up and running, but still not ready for prime time. We are hoping to get zipped uploads and some other niceties in it, but have yet to get a real start. Any more info on yours? Keith Bingman www.keithbingman.com On Sep 9, 2005, at 4:23 AM, Justin Palmer wrote: Jonathan, I'm actually open sourcing a gallery/portfolio app much like what Douglas has done with MT. I built it for my basic needs but won't have the time to developer further on it so thats why I'm open sourcing it. It is definitely not the power house type of gallery system your looking for, but perhaps it could be a good start for you. If you want, keep an eye on http://encytemedia.com/blog for the next few days. I'll be releasing it from there as soon as I put a little polish on it and get a repo up. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050909/bbd73b6c/attachment.htm From corey.donohoe at gmail.com Fri Sep 9 08:57:45 2005 From: corey.donohoe at gmail.com (Corey Donohoe) Date: Fri Sep 9 08:50:43 2005 Subject: [typo] typo In-Reply-To: <107684F3-F711-4E52-BA61-8FCC9FE5B575@keithbingman.com> References: <107684F3-F711-4E52-BA61-8FCC9FE5B575@keithbingman.com> Message-ID: <1a9e786f0509090557645686b1@mail.gmail.com> I've got a little gallery project I'd be more than happy to share and get feedback on if anyone is interested. It ties into the admin interface, supports uploads, dnd reordering of tagged files, tag creation/deletion, and there's a simple ajax frontend viewer for it. I'm honestly not really happy with the frontend navigation at the moment, but the backend works quite well. You can checkout the frontend at http://www.atmos.org/exhibits/ and I'll try topost some screenshots or something of how the backend works sometime today. On 9/9/05, Keith Bingman wrote: > > This sounds very interesting. I have been trying to work on such an app > and last week with the help of Josh Sierles finally got a bit up and > running, but still not ready for prime time. We are hoping to get zipped > uploads and some other niceties in it, but have yet to get a real start. > > Any more info on yours? > > Keith Bingman > www.keithbingman.com > > On Sep 9, 2005, at 4:23 AM, Justin Palmer wrote: > Jonathan, > > I'm actually open sourcing a gallery/portfolio app much like what Douglas > has done with MT. I built it for my basic needs but won't have the time to > developer further on it so thats why I'm open sourcing it. It is > definitely not the power house type of gallery system your looking for, but > perhaps it could be a good start for you. > > If you want, keep an eye on http://encytemedia.com/blog for the next few > days. I'll be releasing it from there as soon as I put a little polish on > it and get a repo up. > > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050909/ad403059/attachment.htm From scott at sigkill.org Fri Sep 9 09:41:01 2005 From: scott at sigkill.org (Scott Laird) Date: Fri Sep 9 09:34:09 2005 Subject: [typo] typo In-Reply-To: <1a9e786f0509090557645686b1@mail.gmail.com> References: <107684F3-F711-4E52-BA61-8FCC9FE5B575@keithbingman.com> <1a9e786f0509090557645686b1@mail.gmail.com> Message-ID: <1DEE6104-F9DF-498D-B6B5-874C369A1D82@sigkill.org> On Sep 9, 2005, at 5:57 AM, Corey Donohoe wrote: > I've got a little gallery project I'd be more than happy to share > and get feedback on if anyone is interested. It ties into the > admin interface, supports uploads, dnd reordering of tagged files, > tag creation/deletion, and there's a simple ajax frontend viewer > for it. > > I'm honestly not really happy with the frontend navigation at the > moment, but the backend works quite well. You can checkout the > frontend at http://www.atmos.org/exhibits/ and I'll try topost some > screenshots or something of how the backend works sometime today. Nice. I can see what you mean about the front end, but once you get past the first page it looks pretty good. Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050909/1b62ed89/attachment-0001.htm From kheon at comcast.net Sun Sep 11 21:26:59 2005 From: kheon at comcast.net (Kyle Heon) Date: Sun Sep 11 21:19:54 2005 Subject: [typo] Photo Gallery Addon for Typo Message-ID: <200509120119.j8C1JqcR020811@rubyforge.org> Does anyone know if any photo gallery addons exist yet for Typo? If so I'd love to get some links to these and any tips people might have in integrating them with Typo. Thanks. Kyle Heon kheon@comcast.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050911/6f4948db/attachment.htm From corey.donohoe at gmail.com Mon Sep 12 10:41:06 2005 From: corey.donohoe at gmail.com (Corey Donohoe) Date: Mon Sep 12 10:33:58 2005 Subject: [typo] Photo Gallery Addon for Typo In-Reply-To: <200509120119.j8C1JqcR020811@rubyforge.org> References: <200509120119.j8C1JqcR020811@rubyforge.org> Message-ID: <1a9e786f05091207411d027f7a@mail.gmail.com> I have a little project that's still in its infancy that I'd be willing to share if you're interested. It's still a work in progress, and I'm prolly gonna team up with someone from freenode on enhancing it. You can checkout the typo admin integration via some screenshots, http://www.atmos.org/articles/2005/09/09/get-fly and you can view some example of the frontend stuff http://www.atmos.org/exhibits/ On 9/11/05, Kyle Heon wrote: > > Does anyone know if any photo gallery addons exist yet for Typo? If so I'd > love to get some links to these and any tips people might have in > integrating them with Typo. > > Thanks. > > Kyle Heon > kheon@comcast.net > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050912/f5dd2a77/attachment.htm From scaudill at gmail.com Mon Sep 12 10:58:29 2005 From: scaudill at gmail.com (Stephen Caudill) Date: Mon Sep 12 10:51:20 2005 Subject: [typo] Photo Gallery Addon for Typo In-Reply-To: <1a9e786f05091207411d027f7a@mail.gmail.com> References: <200509120119.j8C1JqcR020811@rubyforge.org> <1a9e786f05091207411d027f7a@mail.gmail.com> Message-ID: Corey, Looks slick! much better than my similar effort at the moment. need any more help with it? I'd be happy to test it and contribute bugfixes and enhancements. Stephen Caudill mechavox.com On 9/12/05, Corey Donohoe wrote: > I have a little project that's still in its infancy that I'd be willing to > share if you're interested. It's still a work in progress, and I'm prolly > gonna team up with someone from freenode on enhancing it. > > You can checkout the typo admin integration via some screenshots, > http://www.atmos.org/articles/2005/09/09/get-fly > > and you can view some example of the frontend stuff > http://www.atmos.org/exhibits/ > > > On 9/11/05, Kyle Heon wrote: > > > > > > > > Does anyone know if any photo gallery addons exist yet for Typo? If so I'd > love to get some links to these and any tips people might have in > integrating them with Typo. > > > > Thanks. > > > > Kyle Heon > > kheon@comcast.net > > > > _______________________________________________ > > 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 > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > From mike at uwmike.com Mon Sep 12 12:23:39 2005 From: mike at uwmike.com (Mike Purvis) Date: Mon Sep 12 12:18:55 2005 Subject: [typo] Photo Gallery Addon for Typo In-Reply-To: <1a9e786f05091207411d027f7a@mail.gmail.com> References: <200509120119.j8C1JqcR020811@rubyforge.org> <1a9e786f05091207411d027f7a@mail.gmail.com> Message-ID: <4325AB8B.3040708@uwmike.com> Corey Donohoe wrote: > I have a little project that's still in its infancy that I'd be > willing to share if you're interested. It's still a work in progress, > and I'm prolly gonna team up with someone from freenode on enhancing it. > > You can checkout the typo admin integration via some screenshots, > http://www.atmos.org/articles/2005/09/09/get-fly > > and you can view some example of the frontend stuff > http://www.atmos.org/exhibits/ Looks classy. I mentioned before about Txp-style sections (multi-blog), but that was before I'd seen Amy Hoy's screenshot of InfoCMS: http://www.infocookie.com/infocms.gif If it's what it looks like, it would be an absolute snap to make a section skin for a gallery for that. I'll ask her at web|works how it's coming along... Aaaand, back to Typo... Mike From tayknight at gmail.com Mon Sep 12 16:49:50 2005 From: tayknight at gmail.com (Will Wyatt) Date: Mon Sep 12 16:42:42 2005 Subject: [typo] Photo Gallery Addon for Typo In-Reply-To: <4325AB8B.3040708@uwmike.com> References: <200509120119.j8C1JqcR020811@rubyforge.org> <1a9e786f05091207411d027f7a@mail.gmail.com> <4325AB8B.3040708@uwmike.com> Message-ID: <9cb677ea050912134973f70414@mail.gmail.com> I'm working on one as well. Still in the planning stages. http://rails.willwyatt.com for a development blog. On 9/12/05, Mike Purvis wrote: > > Corey Donohoe wrote: > > > I have a little project that's still in its infancy that I'd be > > willing to share if you're interested. It's still a work in progress, > > and I'm prolly gonna team up with someone from freenode on enhancing it. > > > > You can checkout the typo admin integration via some screenshots, > > http://www.atmos.org/articles/2005/09/09/get-fly > > > > and you can view some example of the frontend stuff > > http://www.atmos.org/exhibits/ > > Looks classy. > > I mentioned before about Txp-style sections (multi-blog), but that was > before I'd seen Amy Hoy's screenshot of InfoCMS: > http://www.infocookie.com/infocms.gif If it's what it looks like, it > would be an absolute snap to make a section skin for a gallery for that. > I'll ask her at web|works how it's coming along... > > Aaaand, back to Typo... > > Mike > _______________________________________________ > 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/20050912/a0b2d815/attachment.htm From kheon at comcast.net Mon Sep 12 18:47:26 2005 From: kheon at comcast.net (Kyle Heon) Date: Mon Sep 12 18:40:21 2005 Subject: [typo] Photo Gallery Addon for Typo In-Reply-To: <9cb677ea050912134973f70414@mail.gmail.com> Message-ID: <200509122240.j8CMeJcR005502@rubyforge.org> Thanks everyone. I'm certainly interested in anything anyone is willing to offer up. Figure no point in re-inventing the wheel. Will: I wasn't able to get to the link you provided, it timed out. Kyle Heon kheon@comcast.net _____ From: typo-list-bounces@rubyforge.org [mailto:typo-list-bounces@rubyforge.org] On Behalf Of Will Wyatt Sent: Monday, September 12, 2005 4:50 PM To: typo-list@rubyforge.org Subject: Re: [typo] Photo Gallery Addon for Typo I'm working on one as well. Still in the planning stages. http://rails.willwyatt.com for a development blog. On 9/12/05, Mike Purvis wrote: Corey Donohoe wrote: > I have a little project that's still in its infancy that I'd be > willing to share if you're interested. It's still a work in progress, > and I'm prolly gonna team up with someone from freenode on enhancing it. > > You can checkout the typo admin integration via some screenshots, > http://www.atmos.org/articles/2005/09/09/get-fly > > and you can view some example of the frontend stuff > http://www.atmos.org/exhibits/ Looks classy. I mentioned before about Txp-style sections (multi-blog), but that was before I'd seen Amy Hoy's screenshot of InfoCMS: http://www.infocookie.com/infocms.gif If it's what it looks like, it would be an absolute snap to make a section skin for a gallery for that. I'll ask her at web|works how it's coming along... Aaaand, back to Typo... Mike _______________________________________________ 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/20050912/36c73812/attachment.htm From tayknight at gmail.com Mon Sep 12 21:38:07 2005 From: tayknight at gmail.com (Will Wyatt) Date: Mon Sep 12 21:30:57 2005 Subject: [typo] Photo Gallery Addon for Typo In-Reply-To: <43260583.659431ae.57e4.7c61SMTPIN_ADDED@mx.gmail.com> References: <9cb677ea050912134973f70414@mail.gmail.com> <43260583.659431ae.57e4.7c61SMTPIN_ADDED@mx.gmail.com> Message-ID: <9cb677ea05091218382ae63eb0@mail.gmail.com> Yes, Dreamhost was affected by the power outage in Los Angeles. It should be back up now. On 9/12/05, Kyle Heon wrote: > > Thanks everyone. I'm certainly interested in anything anyone is willing to > offer up. Figure no point in re-inventing the wheel. > Will: I wasn't able to get to the link you provided, it timed out. > > Kyle Heon > kheon@comcast.net > > ------------------------------ > *From:* typo-list-bounces@rubyforge.org [mailto: > typo-list-bounces@rubyforge.org] *On Behalf Of *Will Wyatt > *Sent:* Monday, September 12, 2005 4:50 PM > *To:* typo-list@rubyforge.org > *Subject:* Re: [typo] Photo Gallery Addon for Typo > > I'm working on one as well. Still in the planning stages. > http://rails.willwyatt.com for a development blog. > > On 9/12/05, Mike Purvis wrote: > > > > Corey Donohoe wrote: > > > > > I have a little project that's still in its infancy that I'd be > > > willing to share if you're interested. It's still a work in progress, > > > and I'm prolly gonna team up with someone from freenode on enhancing > > it. > > > > > > You can checkout the typo admin integration via some screenshots, > > > http://www.atmos.org/articles/2005/09/09/get-fly > > > > > > and you can view some example of the frontend stuff > > > http://www.atmos.org/exhibits/ > > > > Looks classy. > > > > I mentioned before about Txp-style sections (multi-blog), but that was > > before I'd seen Amy Hoy's screenshot of InfoCMS: > > http://www.infocookie.com/infocms.gif If it's what it looks like, it > > would be an absolute snap to make a section skin for a gallery for that. > > I'll ask her at web|works how it's coming along... > > > > Aaaand, back to Typo... > > > > Mike > > _______________________________________________ > > 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/20050912/81d6322d/attachment-0001.htm From socialmoth.blog at gmail.com Tue Sep 13 13:36:38 2005 From: socialmoth.blog at gmail.com (Paul McKellar) Date: Tue Sep 13 13:29:27 2005 Subject: [typo] Photo Gallery Addon for Typo In-Reply-To: <9cb677ea05091218382ae63eb0@mail.gmail.com> References: <9cb677ea050912134973f70414@mail.gmail.com> <43260583.659431ae.57e4.7c61SMTPIN_ADDED@mx.gmail.com> <9cb677ea05091218382ae63eb0@mail.gmail.com> Message-ID: <328687de05091310367f535582@mail.gmail.com> why don't you guys use flicker+type combinations. i only ask because i'm looking at getting a pro account. From trejkaz at trypticon.org Tue Sep 13 18:23:08 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Tue Sep 13 18:16:07 2005 Subject: [typo] Photo Gallery Addon for Typo In-Reply-To: <328687de05091310367f535582@mail.gmail.com> References: <9cb677ea050912134973f70414@mail.gmail.com> <9cb677ea05091218382ae63eb0@mail.gmail.com> <328687de05091310367f535582@mail.gmail.com> Message-ID: <200509140823.11239.trejkaz@trypticon.org> On Wed, 14 Sep 2005 03:36, Paul McKellar wrote: > why don't you guys use flicker+type combinations. > > i only ask because i'm looking at getting a pro account. Just a stab in the dark, but I guess it's because Flickr charge for what is really quite a simple service. If you're not expecting a slashdotting, most people don't need that kind of hosting. :-) 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/20050914/1a153ce7/attachment.bin From anoop at ranganath.com Tue Sep 13 19:11:11 2005 From: anoop at ranganath.com (Anoop Ranganath) Date: Tue Sep 13 19:04:31 2005 Subject: [typo] Photo Gallery Addon for Typo In-Reply-To: <200509140823.11239.trejkaz@trypticon.org> References: <9cb677ea050912134973f70414@mail.gmail.com> <9cb677ea05091218382ae63eb0@mail.gmail.com> <328687de05091310367f535582@mail.gmail.com> <200509140823.11239.trejkaz@trypticon.org> Message-ID: <43275C8F.4020406@ranganath.com> > Just a stab in the dark, but I guess it's because Flickr charge for what is > really quite a simple service. If you're not expecting a slashdotting, most > people don't need that kind of hosting. :-) Well, I'd say that what the posters are asking for is a pretty small subset of what Flickr does. The community aspect of Flickr is very important to some people, myself included. I think there's a place for both solutions. The Flickr one should be considerably easier, as they provide robust APIs for most things. [sarcasm] Perhaps someone should work on a typo plug-in that calls an abstract API for image storage and organization. Then we can implement Flickr, disk, database, Gmail, and any other type of datastore for the gallery as the need arises. [/sarcasm] Anoop From kheon at comcast.net Tue Sep 13 19:17:11 2005 From: kheon at comcast.net (Kyle Heon) Date: Tue Sep 13 19:10:03 2005 Subject: [typo] Typo Themes? Message-ID: <200509132310.j8DNA1cR023241@rubyforge.org> Does anyone know where one can aquire themes for Typo? Kyle Heon kheon@comcast.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050913/4e3aab2e/attachment.htm From kheon at comcast.net Tue Sep 13 19:18:28 2005 From: kheon at comcast.net (Kyle Heon) Date: Tue Sep 13 19:11:22 2005 Subject: [typo] Photo Gallery Addon for Typo In-Reply-To: <328687de05091310367f535582@mail.gmail.com> Message-ID: <200509132311.j8DNBJcR023348@rubyforge.org> Please forgive my ignorance[1] but what do you mean by Flicker+type combinations? Are you simply referring to a tagging approach? [1] I don't have much familiarization with Flickr. Kyle Heon kheon@comcast.net -----Original Message----- From: typo-list-bounces@rubyforge.org [mailto:typo-list-bounces@rubyforge.org] On Behalf Of Paul McKellar Sent: Tuesday, September 13, 2005 1:37 PM To: tayknight@gmail.com; typo-list@rubyforge.org Subject: Re: [typo] Photo Gallery Addon for Typo why don't you guys use flicker+type combinations. i only ask because i'm looking at getting a pro account. _______________________________________________ Typo-list mailing list Typo-list@rubyforge.org http://rubyforge.org/mailman/listinfo/typo-list From kheon at comcast.net Tue Sep 13 19:19:56 2005 From: kheon at comcast.net (Kyle Heon) Date: Tue Sep 13 19:12:49 2005 Subject: [typo] Photo Gallery Addon for Typo In-Reply-To: <43275C8F.4020406@ranganath.com> Message-ID: <200509132312.j8DNClcR023458@rubyforge.org> [sarcasm] Perhaps someone should work on a typo plug-in that calls an abstract API for image storage and organization. Then we can implement Flickr, disk, database, Gmail, and any other type of datastore for the gallery as the need arises. [/sarcasm] Definetly like that idea. I wouldn't know where to start (just picking up Ruby/Rails now). Kyle Heon kheon@comcast.net From justus at ryoohki.net Tue Sep 13 20:59:58 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Tue Sep 13 20:52:47 2005 Subject: [typo] Typo Themes? In-Reply-To: <200509132310.j8DNA1cR023241@rubyforge.org> References: <200509132310.j8DNA1cR023241@rubyforge.org> Message-ID: <20050914005958.GA7736@kiyone.ryoohki.net> On Tue, Sep 13, 2005 at 07:17:11PM -0400, Kyle Heon wrote: > Does anyone know where one can aquire themes for Typo? Go to Typo's home page http://typo.leetsoft.com. Click on "Theming Guide". Click on "list of additional themes". Right now all user contributed themes are stored as tickets in typo's issue tracker with "[THEME]" in the issue subject to make searching for them easy. -- Justus From mike at uwmike.com Tue Sep 13 22:10:11 2005 From: mike at uwmike.com (mike@uwmike.com) Date: Tue Sep 13 22:02:52 2005 Subject: [typo] Photo Gallery Addon for Typo In-Reply-To: <200509132311.j8DNBJcR023348@rubyforge.org> References: <328687de05091310367f535582@mail.gmail.com> <200509132311.j8DNBJcR023348@rubyforge.org> Message-ID: <1374.24.42.90.211.1126663811.squirrel@uwmike.com> > Please forgive my ignorance[1] but what do you mean by Flicker+type > combinations? Are you simply referring to a tagging approach? I think he's referring to the traditional approach of blog with blog software, host pictures on Flickr, and then pull recent thumbs into a sidebar widget. It's fine for (some) personal sites, but it's typically not an acceptable solution for a client situation. Flickr for Joe's SXSW snaps is one thing, for Ellen's oil on canvases, it's quite something else. Mike From socialmoth.blog at gmail.com Wed Sep 14 09:48:40 2005 From: socialmoth.blog at gmail.com (Paul McKellar) Date: Wed Sep 14 09:41:28 2005 Subject: [typo] Photo Gallery Addon for Typo In-Reply-To: <1374.24.42.90.211.1126663811.squirrel@uwmike.com> References: <328687de05091310367f535582@mail.gmail.com> <200509132311.j8DNBJcR023348@rubyforge.org> <1374.24.42.90.211.1126663811.squirrel@uwmike.com> Message-ID: <328687de0509140648342e2904@mail.gmail.com> ok those answers all made sense. my personal use pattern is post albums and post information on the blog. and i've been having a lot of problems getting a good uploader working on my mac. (http://paulmckellar.com/blog/articles/2005/09/08/pictures problems description of different attempts) i would really love a rotater based on exif that posts an album from a folder using some uploading process (there are so many). and give me boxes that allow me to add comments to each picture and album comments that also get placed in my blog. oh and it has to load from finder, not iphoto. iphoto does all the organization and i can't get all my 40+ gigs of photos in their databases on my laptop. i know everyone has their own work pattern/process so i'm just hoping for something i like. i do like that flickr allows all my photos to be up, all the time. labels are nice but not a must have. but that is my holy grail. there has to be something that fits well (i hope). i hope this isn't too off topic for the blog list, sorry to the devs : ) Paul On 9/13/05, mike@uwmike.com wrote: > > Please forgive my ignorance[1] but what do you mean by Flicker+type > > combinations? Are you simply referring to a tagging approach? > > I think he's referring to the traditional approach of blog with blog > software, host pictures on Flickr, and then pull recent thumbs into a > sidebar widget. > > It's fine for (some) personal sites, but it's typically not an acceptable > solution for a client situation. Flickr for Joe's SXSW snaps is one thing, > for Ellen's oil on canvases, it's quite something else. > > Mike > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From corey.donohoe at gmail.com Wed Sep 14 11:52:56 2005 From: corey.donohoe at gmail.com (Corey Donohoe) Date: Wed Sep 14 11:45:47 2005 Subject: [typo] Photo Gallery Addon for Typo In-Reply-To: <328687de0509140648342e2904@mail.gmail.com> References: <328687de05091310367f535582@mail.gmail.com> <200509132311.j8DNBJcR023348@rubyforge.org> <1374.24.42.90.211.1126663811.squirrel@uwmike.com> <328687de0509140648342e2904@mail.gmail.com> Message-ID: <1a9e786f0509140852389b9bad@mail.gmail.com> On 9/14/05, Paul McKellar wrote: > > ok those answers all made sense. my personal use pattern is post > albums and post information on the blog. and i've been having a lot of > problems getting a good uploader working on my mac. > (http://paulmckellar.com/blog/articles/2005/09/08/pictures problems > description of different attempts) > > i would really love a rotater based on exif exhibits does this natively that posts an album from a folder using some uploading process (there are so > many). and give me > boxes that allow me to add comments to each picture and album comments > that also get placed in my blog. oh and it has to load from finder, these arent instance expectations, i heard flickr has a pretty cool standalone update program for macs. I don't have a mac anymore to test though. :( not iphoto. iphoto does all the organization and i can't get all my > 40+ gigs of photos in their databases on my laptop. i know everyone > has their own work pattern/process so i'm just hoping for something i > like. i do like that flickr allows all my photos to be up, all the > time. labels are nice but not a must have. > > but that is my holy grail. there has to be something that fits well (i > hope). > > i hope this isn't too off topic for the blog list, sorry to the devs : ) > > Paul > > On 9/13/05, mike@uwmike.com wrote: > > > Please forgive my ignorance[1] but what do you mean by Flicker+type > > > combinations? Are you simply referring to a tagging approach? > > > > I think he's referring to the traditional approach of blog with blog > > software, host pictures on Flickr, and then pull recent thumbs into a > > sidebar widget. > > > > It's fine for (some) personal sites, but it's typically not an > acceptable > > solution for a client situation. Flickr for Joe's SXSW snaps is one > thing, > > for Ellen's oil on canvases, it's quite something else. > > > > Mike > > _______________________________________________ > > 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 > -- Corey Donohoe http://www.atmos.org/ corey.donohoe@gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050914/b698a1e9/attachment-0001.htm From corey.donohoe at gmail.com Wed Sep 14 12:00:32 2005 From: corey.donohoe at gmail.com (Corey Donohoe) Date: Wed Sep 14 11:53:25 2005 Subject: [typo] Photo Gallery Addon for Typo In-Reply-To: <200509140823.11239.trejkaz@trypticon.org> References: <9cb677ea050912134973f70414@mail.gmail.com> <9cb677ea05091218382ae63eb0@mail.gmail.com> <328687de05091310367f535582@mail.gmail.com> <200509140823.11239.trejkaz@trypticon.org> Message-ID: <1a9e786f050914090063153005@mail.gmail.com> On 9/13/05, Trejkaz wrote: > > On Wed, 14 Sep 2005 03:36, Paul McKellar wrote: > > why don't you guys use flicker+type combinations. > > > > i only ask because i'm looking at getting a pro account. the pricing is sane, service is pretty good from what I gather, but as its been noted elsewhere it's quickly becoming heavily yahoo influenced. One of my friends got a pro account and loves it, but if you wanna share a bunch of your own photos and already have webspace/server available to you, why not leverage that? I like the idea of tying my photos directly into my blog, more than linking externally. :) Now I did see a pretty cool gallery app for some other blog software(textpattern, wordpress or somethin like that) that can parse your sets and stuff from rss and presented it in a really cool fashion. If I had a flickr account I'd prolly go that route as it's essentially the same kinda thing. You could even use rails caching and make it quite snappy, but for the time being I'll be pursuing this little tangent of development. :) Just a stab in the dark, but I guess it's because Flickr charge for what is > really quite a simple service. If you're not expecting a slashdotting, > most > people don't need that kind of hosting. :-) More or less yeah, plus it's a fun side project. 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 > > > > -- Corey Donohoe http://www.atmos.org/ corey.donohoe@gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050914/73af889d/attachment.htm From vanweerd at gmail.com Thu Sep 15 17:44:23 2005 From: vanweerd at gmail.com (Nicholas Van Weerdenburg) Date: Thu, 15 Sep 2005 17:44:23 -0400 Subject: [typo] Typo as CMS Message-ID: <632154f70509151444111e5cec@mail.gmail.com> Hi All, I'm interested in experiences using Typo as a CMS, and what type of strategy might be taken to extend typo in a manner that supports upgrading (mostly) easily. Thanks, Nick -- Nicholas Van Weerdenburg From trejkaz at trypticon.org Thu Sep 15 22:12:48 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Fri, 16 Sep 2005 12:12:48 +1000 (EST) Subject: [typo] Typo as CMS In-Reply-To: <632154f70509151444111e5cec@mail.gmail.com> References: <632154f70509151444111e5cec@mail.gmail.com> Message-ID: <2918.210.50.55.251.1126836768.squirrel@home.trypticon.org> > Hi All, > > I'm interested in experiences using Typo as a CMS, and what type of > strategy might be taken to extend typo in a manner that supports > upgrading (mostly) easily. Upgrading is already pretty simple, I don't see why you would think of extending it. As you've already seen if you've used it for long enough, when you enter the admin screen, it migrates all your databases up to the current version, with you only having to push a button. You can do the same thing using the traditional rake method as well, if you don't feel like doing it through a web UI. As far as using it as a CMS, it has the "pages" feature now, and you can structure the pages in a kind of fake directory layout if you want. But there's no kind of control over which Typo users can edit which pages AFAIK, which is really the core feature of a CMS. It also can't accept comments on pages, which would be a nice-to-have improvement for a CMS where a lot of non-admin users are viewing the pages. But for simple stuff, it's already fine I would think. TX From boris at bitslapped.nl Fri Sep 16 10:08:06 2005 From: boris at bitslapped.nl (Boris) Date: Fri, 16 Sep 2005 16:08:06 +0200 Subject: [typo] Themes and sidebar Message-ID: <200509161400.j8GE0B05005426@rubyforge.org> Hi, I have two questions. First - is it possible to include / call a sidebar plugin directly from the layout? For example I want my flickr plugin to be displayed to be on a specific location in the page. I'm not sure how to call this code from my default.rhtml layout in my theme. Secondly - is it possible to theme the sidebar plugins, similar to the layout of the page. Or is my only possibility to use a CSS? Thanks for your help! Best regards, Boris -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050916/5db7fcde/attachment.htm From scott at sigkill.org Fri Sep 16 10:25:33 2005 From: scott at sigkill.org (Scott Laird) Date: Fri, 16 Sep 2005 07:25:33 -0700 Subject: [typo] Themes and sidebar In-Reply-To: <200509161400.j8GE0B05005426@rubyforge.org> References: <200509161400.j8GE0B05005426@rubyforge.org> Message-ID: <28AD391C-2265-47DB-A820-9B683559D0D6@sigkill.org> On Sep 16, 2005, at 7:08 AM, Boris wrote: > First - is it possible to include / call a sidebar plugin directly > from the layout? For example I want my flickr plugin to be > displayed to be on a specific location in the page. I'm not sure > how to call this code from my default.rhtml layout in my theme. Sure, just call render_sidebar(). It takes one parameter, a Sidebar object. Something like this should work: flickr = Sidebar.new flickr.controller = 'flickr' flickr.active_config = { 'feed' => 'http:/...', 'count' => 8, 'format' => 'square' } render_sidebar(flickr) You can also pull the flickr object out of the DB, but that might be more trouble then it's worth. > Secondly - is it possible to theme the sidebar plugins, similar to > the layout of the page. Or is my only possibility to use a CSS? That's a really good question. I'm not really sure. Worst-case, just copy the sidebar that you want to theme (look in components/ plugins/sidebars/flickr*) and edit the files that you copied. That should be all that you need to do. The theme view code will probably work with sidebars, but I never tested it, and it's probably easier to just copy the sidebar and modify it to work the way you want. Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050916/0ea67e3c/attachment.htm From akonsu at gmail.com Fri Sep 16 14:54:28 2005 From: akonsu at gmail.com (akonsu) Date: Fri, 16 Sep 2005 11:54:28 -0700 Subject: [typo] errors installin typo Message-ID: hello, after i copied all the typo files and set up the database and changed the config as README says, i got this error when navigating to articles: NameError in Articles#index undefined local variable or method `config' for # /app/controllers/application.rb:33:in `reload_settings' please help! thank you From kheon at comcast.net Fri Sep 16 18:35:01 2005 From: kheon at comcast.net (Kyle Heon) Date: Fri, 16 Sep 2005 18:35:01 -0400 Subject: [typo] Versioning a Typo site Message-ID: <200509162227.j8GMRi05012419@rubyforge.org> Hello! I'm working on a site powered by Typo and currently I pull from the Typo repository to get the latest and greatest. I'm making edits to things as I go to build my site as I want it. Some of these changes are in the core Typo files. I want to break this out and store my site in another repository so that I can track my changes as I go but also want to be able to quickly upgrade to the latest Typo codebase as needed. Any thoughts on the best way to handle this? Kyle Heon kheon at comcast.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050916/3d7fa2c8/attachment.htm From william.a at carrel.org Fri Sep 16 18:39:28 2005 From: william.a at carrel.org (William A. Carrel) Date: Fri, 16 Sep 2005 15:39:28 -0700 Subject: [typo] Versioning a Typo site In-Reply-To: <200509162227.j8GMRi05012419@rubyforge.org> References: <200509162227.j8GMRi05012419@rubyforge.org> Message-ID: <2F4C4AFD-9ABF-4C27-934A-650D7C2E77A8@carrel.org> SVK. ;-) On Sep 16, 2005, at 3:35 PM, Kyle Heon wrote: > Hello! > > I'm working on a site powered by Typo and currently I pull from the > Typo repository to get the latest and greatest. I'm making edits to > things as I go to build my site as I want it. Some of these changes > are in the core Typo files. > > I want to break this out and store my site in another repository so > that I can track my changes as I go but also want to be able to > quickly upgrade to the latest Typo codebase as needed. > > Any thoughts on the best way to handle this? > > Kyle Heon > kheon at comcast.net > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050916/1eb2621d/attachment-0001.htm From timfm at hawaii.rr.com Fri Sep 16 19:59:09 2005 From: timfm at hawaii.rr.com (Tim Martens) Date: Fri, 16 Sep 2005 13:59:09 -1000 Subject: [typo] Help Installing Typo on Tiger Message-ID: <66720C93-5A65-478D-AA84-0BAF5B9205EE@hawaii.rr.com> Hi Typos, I'm a terminal newbie trying to install Typo on Toger (10.4.2). I have Ruby 1.8.2 and Rails, and run Tracks (a GTD web app: http:// dev.rousette.org.uk/wiki, http://www.rousette.org.uk/projects/) on port 3030. This is what I've done: + Downloaded Typo 2.5.5 + Unzipped to Sites Folder + Created a database4 name "typo" in YourSQL + Imported MySQL schema from db/ folder into "typo" database" + changed config/database.yml (added user/pass) for production db named "typo" + ran "ruby server -e production" from script folder iTerm returned: ./../config/../config/routes.rb:4: undefined method `index' for # (NoMethodError) from ./../config/../config/routes.rb:1:in `draw' from ./../config/../config/routes.rb:1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 18:in `requi re__' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 18:in `requi re' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ active_support/ dependencies.rb:197:in `require' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ active_support/ dependencies.rb:38:in `require_or_load' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ active_support/ dependencies.rb:21:in `depend_on' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ active_support/ dependencies.rb:167:in `require_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ active_support/ dependencies.rb:167:in `require_dependency' from /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ action_controller/ routing.rb:317:in `reload' from ./../config/environment.rb:76 from server:42:in `require' from server:42 + tried resolving http://127.0.0.1:3000/ in my browser Safari returned: Safari can?t connect to the server. Safari can?t open the page ?http://127.0.0.1:3000/? because it could not connect to the server ?127.0.0.1?. BUT I know I can connect to 127.0.0.1, because it resolves the index.html file in my sites folder which is a directory of all my sites/projects, etc. Any help would be enormously appreciated. I'm really excited about toying around with Typo. Kinds regards, -tim From vanweerd at gmail.com Fri Sep 16 20:50:25 2005 From: vanweerd at gmail.com (Nicholas Van Weerdenburg) Date: Fri, 16 Sep 2005 20:50:25 -0400 Subject: [typo] Help Installing Typo on Tiger In-Reply-To: <66720C93-5A65-478D-AA84-0BAF5B9205EE@hawaii.rr.com> References: <66720C93-5A65-478D-AA84-0BAF5B9205EE@hawaii.rr.com> Message-ID: <632154f705091617506b889f02@mail.gmail.com> Tim, Your version of rails looks slightly older then the latest. Is that maybe an issue? gem list --local on my windows machine: actionmailer (1.0.1) Service layer for easy email delivery and testing. actionpack (1.9.1) Web-flow and rendering framework putting the VC in MVC. actionwebservice (0.8.1) Web service support for Action Pack. activerecord (1.11.1) Implements the ActiveRecord pattern for ORM. activesupport (1.1.1) Support and utility classes used by the Rails framework. rails (0.13.1) Web-application framework with template engine, control-flow layer, and ORM. Also, you ruby script/server -e production output looks very wrong. Mine: D:\work\typo-2.5.5\script>ruby server -e production => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2005-09-16 20:50:04] INFO WEBrick 1.3.1 [2005-09-16 20:50:04] INFO ruby 1.8.2 (2004-12-25) [i386-mswin32] [2005-09-16 20:50:04] INFO WEBrick::HTTPServer#start: pid=3124 port=3000 Regards, Nick On 9/16/05, Tim Martens wrote: > Hi Typos, > > I'm a terminal newbie trying to install Typo on Toger (10.4.2). > > I have Ruby 1.8.2 and Rails, and run Tracks (a GTD web app: http:// > dev.rousette.org.uk/wiki, http://www.rousette.org.uk/projects/) on > port 3030. > > This is what I've done: > > + Downloaded Typo 2.5.5 > + Unzipped to Sites Folder > + Created a database4 name "typo" in YourSQL > + Imported MySQL schema from db/ folder into "typo" database" > + changed config/database.yml (added user/pass) for production db > named "typo" > + ran "ruby server -e production" from script folder > > iTerm returned: > > ./../config/../config/routes.rb:4: undefined method `index' for > # er::Routing::RouteSet:0x65a898> (NoMethodError) > from ./../config/../config/routes.rb:1:in `draw' > from ./../config/../config/routes.rb:1 > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 18:in `requi > re__' > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 18:in `requi > re' > from /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ > active_support/ > dependencies.rb:197:in `require' > from /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ > active_support/ > dependencies.rb:38:in `require_or_load' > from /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ > active_support/ > dependencies.rb:21:in `depend_on' > from /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ > active_support/ > dependencies.rb:167:in `require_dependency' > from /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ > active_support/ > dependencies.rb:167:in `require_dependency' > from /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ > action_controller/ > routing.rb:317:in `reload' > from ./../config/environment.rb:76 > from server:42:in `require' > from server:42 > > + tried resolving http://127.0.0.1:3000/ in my browser > > Safari returned: > Safari can't connect to the server. > > Safari can't open the page "http://127.0.0.1:3000/" because it could > not connect to the server "127.0.0.1". > > BUT I know I can connect to 127.0.0.1, because it resolves the > index.html file in my sites folder which is a directory of all my > sites/projects, etc. > > Any help would be enormously appreciated. I'm really excited about > toying around with Typo. > > Kinds regards, > > -tim > > > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Nicholas Van Weerdenburg From timfm at hawaii.rr.com Fri Sep 16 21:11:02 2005 From: timfm at hawaii.rr.com (Tim Martens) Date: Fri, 16 Sep 2005 15:11:02 -1000 Subject: [typo] Help Installing Typo on Tiger In-Reply-To: <632154f705091617506b889f02@mail.gmail.com> References: <66720C93-5A65-478D-AA84-0BAF5B9205EE@hawaii.rr.com> <632154f705091617506b889f02@mail.gmail.com> Message-ID: <34076852-1B11-4452-97C9-C700656ED747@hawaii.rr.com> Hi Nick, Here's my gems. Do I need to upgrade? Is there an easy way to do this? gem list --local *** LOCAL GEMS *** actionmailer (0.9.1) Service layer for easy email delivery and testing. actionpack (1.8.1) Web-flow and rendering framework putting the VC in MVC. actionwebservice (0.7.1) Web service support for Action Pack. activerecord (1.10.1) Implements the ActiveRecord pattern for ORM. activesupport (1.0.4) Support and utility classes used by the Rails framework. BlueCloth (1.0.0) BlueCloth is a Ruby implementation of Markdown, a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML). fcgi (0.8.5) FastCGI ruby binding. madeleine (0.7.1) Madeleine is a Ruby implementation of Object Prevalence mysql (2.5.1) MySQL/Ruby provides the same functions for Ruby programs that the MySQL C API provides for C programs. rails (0.12.1) Web-application framework with template engine, control-flow layer, and ORM. rake (0.5.3) Ruby based make-like utility. RedCloth (3.0.3) RedCloth is a module for using Textile and Markdown in Ruby. Textile and Markdown are text formats. A very simple text format. Another stab at making readable text that can be converted to HTML. sources (0.0.1) This package provides download sources for remote gem installation sqlite3-ruby (1.1.0) SQLite3/Ruby is a module to allow Ruby scripts to interface with a SQLite3 database. syntax (0.7.0) Syntax is Ruby library for performing simple syntax highlighting. On Sep 16, 2005, at 2:50 PM, Nicholas Van Weerdenburg wrote: > Tim, > > Your version of rails looks slightly older then the latest. Is that > maybe an issue? > > gem list --local on my windows machine: > actionmailer (1.0.1) > Service layer for easy email delivery and testing. > > actionpack (1.9.1) > Web-flow and rendering framework putting the VC in MVC. > > actionwebservice (0.8.1) > Web service support for Action Pack. > > activerecord (1.11.1) > Implements the ActiveRecord pattern for ORM. > > activesupport (1.1.1) > Support and utility classes used by the Rails framework. > > rails (0.13.1) > Web-application framework with template engine, control-flow > layer, > and ORM. > > Also, you ruby script/server -e production output looks very wrong. > > Mine: > D:\work\typo-2.5.5\script>ruby server -e production > => Rails application started on http://0.0.0.0:3000 > => Ctrl-C to shutdown server; call with --help for options > [2005-09-16 20:50:04] INFO WEBrick 1.3.1 > [2005-09-16 20:50:04] INFO ruby 1.8.2 (2004-12-25) [i386-mswin32] > [2005-09-16 20:50:04] INFO WEBrick::HTTPServer#start: pid=3124 > port=3000 > > Regards, > Nick > > On 9/16/05, Tim Martens wrote: > >> Hi Typos, >> >> I'm a terminal newbie trying to install Typo on Toger (10.4.2). >> >> I have Ruby 1.8.2 and Rails, and run Tracks (a GTD web app: http:// >> dev.rousette.org.uk/wiki, http://www.rousette.org.uk/projects/) on >> port 3030. >> >> This is what I've done: >> >> + Downloaded Typo 2.5.5 >> + Unzipped to Sites Folder >> + Created a database4 name "typo" in YourSQL >> + Imported MySQL schema from db/ folder into "typo" database" >> + changed config/database.yml (added user/pass) for production db >> named "typo" >> + ran "ruby server -e production" from script folder >> >> iTerm returned: >> >> ./../config/../config/routes.rb:4: undefined method `index' for >> #> er::Routing::RouteSet:0x65a898> (NoMethodError) >> from ./../config/../config/routes.rb:1:in `draw' >> from ./../config/../config/routes.rb:1 >> from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >> 18:in `requi >> re__' >> from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >> 18:in `requi >> re' >> from /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ >> active_support/ >> dependencies.rb:197:in `require' >> from /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ >> active_support/ >> dependencies.rb:38:in `require_or_load' >> from /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ >> active_support/ >> dependencies.rb:21:in `depend_on' >> from /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ >> active_support/ >> dependencies.rb:167:in `require_dependency' >> from /usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ >> active_support/ >> dependencies.rb:167:in `require_dependency' >> from /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ >> action_controller/ >> routing.rb:317:in `reload' >> from ./../config/environment.rb:76 >> from server:42:in `require' >> from server:42 >> >> + tried resolving http://127.0.0.1:3000/ in my browser >> >> Safari returned: >> Safari can't connect to the server. >> >> Safari can't open the page "http://127.0.0.1:3000/" because it could >> not connect to the server "127.0.0.1". >> >> BUT I know I can connect to 127.0.0.1, because it resolves the >> index.html file in my sites folder which is a directory of all my >> sites/projects, etc. >> >> Any help would be enormously appreciated. I'm really excited about >> toying around with Typo. >> >> Kinds regards, >> >> -tim >> >> >> >> >> >> >> _______________________________________________ >> Typo-list mailing list >> Typo-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> >> > > > -- > Nicholas Van Weerdenburg > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From kevin at sb.org Fri Sep 16 21:17:22 2005 From: kevin at sb.org (Kevin Ballard) Date: Fri, 16 Sep 2005 21:17:22 -0400 Subject: [typo] Versioning a Typo site In-Reply-To: <2F4C4AFD-9ABF-4C27-934A-650D7C2E77A8@carrel.org> References: <200509162227.j8GMRi05012419@rubyforge.org> <2F4C4AFD-9ABF-4C27-934A-650D7C2E77A8@carrel.org> Message-ID: http://scottstuff.net/blog/articles/2005/07/07/distributed- development-with-svk On Sep 16, 2005, at 6:39 PM, William A. Carrel wrote: > SVK. ;-) > > On Sep 16, 2005, at 3:35 PM, Kyle Heon wrote: > >> Hello! >> >> I'm working on a site powered by Typo and currently I pull from >> the Typo repository to get the latest and greatest. I'm making >> edits to things as I go to build my site as I want it. Some of >> these changes are in the core Typo files. >> >> I want to break this out and store my site in another repository >> so that I can track my changes as I go but also want to be able to >> quickly upgrade to the latest Typo codebase as needed. >> >> Any thoughts on the best way to handle this? -- Kevin Ballard kevin at 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/20050916/f8b0d5a1/smime.bin From scott at sigkill.org Fri Sep 16 21:22:48 2005 From: scott at sigkill.org (Scott Laird) Date: Fri, 16 Sep 2005 18:22:48 -0700 Subject: [typo] Help Installing Typo on Tiger In-Reply-To: <34076852-1B11-4452-97C9-C700656ED747@hawaii.rr.com> References: <66720C93-5A65-478D-AA84-0BAF5B9205EE@hawaii.rr.com> <632154f705091617506b889f02@mail.gmail.com> <34076852-1B11-4452-97C9-C700656ED747@hawaii.rr.com> Message-ID: On Sep 16, 2005, at 6:11 PM, Tim Martens wrote: > rails (0.12.1) > Web-application framework with template engine, control-flow > layer, > and ORM. Typo requires Rails 0.13.1 to work, so that's probably your main problem. Scott From kheon at comcast.net Fri Sep 16 21:24:04 2005 From: kheon at comcast.net (Kyle Heon) Date: Fri, 16 Sep 2005 21:24:04 -0400 Subject: [typo] Versioning a Typo site In-Reply-To: Message-ID: <200509170116.j8H1Gl05003644@rubyforge.org> Sweet, thanks for the tutorial link. That is perfect. Kyle Heon kheon at comcast.net -----Original Message----- From: typo-list-bounces at rubyforge.org [mailto:typo-list-bounces at rubyforge.org] On Behalf Of Kevin Ballard Sent: Friday, September 16, 2005 9:17 PM To: typo-list at rubyforge.org Subject: Re: [typo] Versioning a Typo site http://scottstuff.net/blog/articles/2005/07/07/distributed- development-with-svk On Sep 16, 2005, at 6:39 PM, William A. Carrel wrote: > SVK. ;-) > > On Sep 16, 2005, at 3:35 PM, Kyle Heon wrote: > >> Hello! >> >> I'm working on a site powered by Typo and currently I pull from the >> Typo repository to get the latest and greatest. I'm making edits to >> things as I go to build my site as I want it. Some of these changes >> are in the core Typo files. >> >> I want to break this out and store my site in another repository so >> that I can track my changes as I go but also want to be able to >> quickly upgrade to the latest Typo codebase as needed. >> >> Any thoughts on the best way to handle this? -- Kevin Ballard kevin at sb.org http://www.tildesoft.com http://kevin.sb.org From kevin at sb.org Fri Sep 16 21:28:17 2005 From: kevin at sb.org (Kevin Ballard) Date: Fri, 16 Sep 2005 21:28:17 -0400 Subject: [typo] Help Installing Typo on Tiger In-Reply-To: <34076852-1B11-4452-97C9-C700656ED747@hawaii.rr.com> References: <66720C93-5A65-478D-AA84-0BAF5B9205EE@hawaii.rr.com> <632154f705091617506b889f02@mail.gmail.com> <34076852-1B11-4452-97C9-C700656ED747@hawaii.rr.com> Message-ID: sudo gem update --include-dependencies rails On Sep 16, 2005, at 9:11 PM, Tim Martens wrote: > Here's my gems. Do I need to upgrade? Is there an easy way to do this? -- Kevin Ballard kevin at 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/20050916/a48422b3/smime-0001.bin From timfm at hawaii.rr.com Fri Sep 16 23:01:06 2005 From: timfm at hawaii.rr.com (Tim Martens) Date: Fri, 16 Sep 2005 17:01:06 -1000 Subject: [typo] Help Installing Typo on Tiger In-Reply-To: References: <66720C93-5A65-478D-AA84-0BAF5B9205EE@hawaii.rr.com> <632154f705091617506b889f02@mail.gmail.com> <34076852-1B11-4452-97C9-C700656ED747@hawaii.rr.com> Message-ID: <5CC81949-AAB3-4407-ABDF-2E99B7CAE41E@hawaii.rr.com> On Sep 16, 2005, at 3:22 PM, Scott Laird wrote: > >> rails (0.12.1) >> Web-application framework with template engine, control-flow >> layer, >> and ORM. >> > > Typo requires Rails 0.13.1 to work, so that's probably your main > problem. Aha! Hopefully the only problem. From akonsu at gmail.com Fri Sep 16 23:07:40 2005 From: akonsu at gmail.com (akonsu) Date: Fri, 16 Sep 2005 20:07:40 -0700 Subject: [typo] problem installing typo on win xp Message-ID: <003601c5bb34$f8db9200$49332840@kansas> hello, i downloaded typo 2.5.4 and followed the instructions in the README. it seems to connect fine to mysql but gives me the error below. has anyone seen this? i can connect to the database from mysql.exe with the same user and password and can execute SHOW FIELDS FROM sessions with no problems manually. thanks for any help konstantin # ["d:/programs/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/ connection_adapters/abstract_adapter.rb:462:in `log'", "d:/programs/ruby/lib/rub y/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/mysql_ adapter.rb:121:in `execute'", "d:/programs/ruby/lib/ruby/gems/1.8/gems/activerec ord-1.11.1/lib/active_record/connection_adapters/mysql_adapter.rb:108:in `column s'", "d:/programs/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_rec ord/base.rb:622:in `columns'", "d:/programs/ruby/lib/ruby/gems/1.8/gems/activere cord-1.11.1/lib/active_record/base.rb:627:in `columns_hash'", "d:/programs/ruby/ lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_rec ord_store.rb:71:in `setup_sessid_compatibility!'", "d:/programs/ruby/lib/ruby/ge ms/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.r b:44:in `find_by_session_id'", "d:/programs/ruby/lib/ruby/gems/1.8/gems/actionpa ck-1.9.1/lib/action_controller/session/active_record_store.rb:243:in `initialize '", "d:/programs/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_control ler/session/active_record_store.rb:243:in `silence'", "d:/programs/ruby/lib/ruby /gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_stor e.rb:243:in `initialize'", "d:/programs/ruby/lib/ruby/1.8/cgi/session.rb:273:in `new'", "d:/programs/ruby/lib/ruby/1.8/cgi/session.rb:273:in `initialize'", "d:/ programs/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/cgi_ process.rb:94:in `new'", "d:/programs/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9 .1/lib/action_controller/cgi_process.rb:94:in `session'", "d:/programs/ruby/lib/ ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:737:in `assign _shortcuts'", "d:/programs/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/acti on_controller/base.rb:351:in `process'", "d:/programs/ruby/lib/ruby/gems/1.8/gem s/actionpack-1.9.1/lib/action_controller/rescue.rb:20:in `process_with_exception '", "d:/programs/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:34:i n `dispatch'", "d:/programs/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick _server.rb:105:in `handle_dispatch'", "d:/programs/ruby/lib/ruby/gems/1.8/gems/r ails-0.13.1/lib/webrick_server.rb:71:in `service'", "d:/programs/ruby/lib/ruby/1 .8/webrick/httpserver.rb:104:in `service'", "d:/programs/ruby/lib/ruby/1.8/webri ck/httpserver.rb:65:in `run'", "d:/programs/ruby/lib/ruby/1.8/webrick/server.rb: 155:in `start_thread'", "d:/programs/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start'", "d:/programs/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread' ", "d:/programs/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start'", "d:/programs /ruby/lib/ruby/1.8/webrick/server.rb:89:in `each'", "d:/programs/ruby/lib/ruby/1 .8/webrick/server.rb:89:in `start'", "d:/programs/ruby/lib/ruby/1.8/webrick/serv er.rb:79:in `start'", "d:/programs/ruby/lib/ruby/1.8/webrick/server.rb:79:in `st art'", "d:/programs/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server. rb:57:in `dispatch'", "script/server:49"] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050916/da27942b/attachment.htm From timfm at hawaii.rr.com Sat Sep 17 00:04:33 2005 From: timfm at hawaii.rr.com (Tim Martens) Date: Fri, 16 Sep 2005 18:04:33 -1000 Subject: [typo] Help Installing Typo on Tiger In-Reply-To: References: <66720C93-5A65-478D-AA84-0BAF5B9205EE@hawaii.rr.com> <632154f705091617506b889f02@mail.gmail.com> <34076852-1B11-4452-97C9-C700656ED747@hawaii.rr.com> Message-ID: <33CDC9BE-9187-42E3-AECE-F2C1C7AA0230@hawaii.rr.com> On Sep 16, 2005, at 3:28 PM, Kevin Ballard wrote: > sudo gem update --include-dependencies rails Done. Thanks Kevin. script/ruby server -e production yields: ruby server -e production=> Rails application started on http:// 0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2005-09-16 18:00:32] INFO WEBrick 1.3.1 [2005-09-16 18:00:32] INFO ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0] [2005-09-16 18:00:32] INFO WEBrick::HTTPServer#start: pid=1110 port=3000 127.0.0.1 - - [16/Sep/2005:18:00:45 HST] "GET / HTTP/1.1" 500 2855 http://127.0.0.1/ -> / 127.0.0.1 - - [16/Sep/2005:18:00:46 HST] "GET /favicon.ico HTTP/1.1" 200 0 - -> /favicon.ico 127.0.0.1 - - [16/Sep/2005:18:01:05 HST] "GET / HTTP/1.1" 500 2730 http://127.0.0.1/ -> / *** Better, BUT, http://127.0.0.1:3000/ yields: *** NameError in # uninitialized constant ArticlesController generated/routing/recognition.rb:4:in `recognize_path' server:49 Show framework trace "Retry with Breakpoint" (Button) Request Parameters: None Show session dump Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} Anyone? -t From scott at sigkill.org Sat Sep 17 00:15:49 2005 From: scott at sigkill.org (Scott Laird) Date: Fri, 16 Sep 2005 21:15:49 -0700 Subject: [typo] Help Installing Typo on Tiger In-Reply-To: <33CDC9BE-9187-42E3-AECE-F2C1C7AA0230@hawaii.rr.com> References: <66720C93-5A65-478D-AA84-0BAF5B9205EE@hawaii.rr.com> <632154f705091617506b889f02@mail.gmail.com> <34076852-1B11-4452-97C9-C700656ED747@hawaii.rr.com> <33CDC9BE-9187-42E3-AECE-F2C1C7AA0230@hawaii.rr.com> Message-ID: <8F2CFF24-6A3D-4C38-8B63-32B3FD81FD9A@sigkill.org> On Sep 16, 2005, at 9:04 PM, Tim Martens wrote: > > On Sep 16, 2005, at 3:28 PM, Kevin Ballard wrote: > > >> sudo gem update --include-dependencies rails >> > > Done. Thanks Kevin. > > script/ruby server -e production yields: Er, that's a weird path. It should really be 'ruby ./script/ server'. If you try running it from within the script directory (cd script; ruby ./server) then it won't work right. Scott From lrtitze at mac.com Sat Sep 17 01:00:15 2005 From: lrtitze at mac.com (Leslie Titze) Date: Sat, 17 Sep 2005 00:00:15 -0500 Subject: [typo] Flickr aggregator not working? Message-ID: I spent a good part of the day trying to figure out why the Flickr aggregator I had placed in my side-bar was not displaying any images. The source code received by my browser shows all of the image links as: MyPhotoName That was VERY disconcerting and led me to believe I'd perhaps messed up my Apache mod_rewrite setup or something. As a quick sanity check, I tried to use WEBrick but got the same results. I decided to go out on the network looking for other Typo sites to see if any of them were using Flickr in their side-bar and much to my surprise, those that I found were showing exactly the same behavior as my own. When I look at: or they seem to be exhibiting the same behavior! Has the Flickr API changed and broken something in the aggregator or what? Is there a better way to do this? From scott at sigkill.org Sat Sep 17 01:07:33 2005 From: scott at sigkill.org (Scott Laird) Date: Fri, 16 Sep 2005 22:07:33 -0700 Subject: [typo] Flickr aggregator not working? In-Reply-To: References: Message-ID: <21D5444D-F10A-4035-BC31-AE6292053284@sigkill.org> On Sep 16, 2005, at 10:00 PM, Leslie Titze wrote: > > Has the Flickr API changed and broken something in the aggregator > or what? Flickr changed their RSS feeds and Typo 2.5.5 broke. We're planning on releasing a 2.5.6 release with a fix, but it's not ready yet. For now you have 3 options: 1. Apply the fix in changeset 632 by hand. http:// typo.leetsoft.com/trac/changeset/632 2. Use Subversion to grab the latest version from the 2.5.x branch. This is basically just 2.5.5 plus this one patch. 3. Upgrade to Subversion's current development tree. #1 is usually going to be easiest. Scott From timfm at hawaii.rr.com Sat Sep 17 01:19:26 2005 From: timfm at hawaii.rr.com (Tim Martens) Date: Fri, 16 Sep 2005 19:19:26 -1000 Subject: [typo] Help Installing Typo on Tiger In-Reply-To: <8F2CFF24-6A3D-4C38-8B63-32B3FD81FD9A@sigkill.org> References: <66720C93-5A65-478D-AA84-0BAF5B9205EE@hawaii.rr.com> <632154f705091617506b889f02@mail.gmail.com> <34076852-1B11-4452-97C9-C700656ED747@hawaii.rr.com> <33CDC9BE-9187-42E3-AECE-F2C1C7AA0230@hawaii.rr.com> <8F2CFF24-6A3D-4C38-8B63-32B3FD81FD9A@sigkill.org> Message-ID: On Sep 16, 2005, at 6:15 PM, Scott Laird wrote: >> script/ruby server -e production yields: >> > > Er, that's a weird path. It should really be 'ruby ./script/ > server'. If you try running it from within the script directory (cd > script; ruby ./server) then it won't work right. Scott, from within the script folder, I ran "ruby server -e production" Is that right? From lrtitze at mac.com Sat Sep 17 01:23:44 2005 From: lrtitze at mac.com (Leslie Titze) Date: Sat, 17 Sep 2005 00:23:44 -0500 Subject: [typo] Flickr aggregator not working? In-Reply-To: <21D5444D-F10A-4035-BC31-AE6292053284@sigkill.org> References: <21D5444D-F10A-4035-BC31-AE6292053284@sigkill.org> Message-ID: Thanks so much Scott! I changed the code (suggestion #1) then restarted Apache and got the results I'd expected to see this morning! Bless you. From timfm at hawaii.rr.com Sat Sep 17 05:01:39 2005 From: timfm at hawaii.rr.com (Tim Martens) Date: Fri, 16 Sep 2005 23:01:39 -1000 Subject: [typo] Help Installing Typo on Tiger In-Reply-To: References: <66720C93-5A65-478D-AA84-0BAF5B9205EE@hawaii.rr.com> <632154f705091617506b889f02@mail.gmail.com> <34076852-1B11-4452-97C9-C700656ED747@hawaii.rr.com> <33CDC9BE-9187-42E3-AECE-F2C1C7AA0230@hawaii.rr.com> <8F2CFF24-6A3D-4C38-8B63-32B3FD81FD9A@sigkill.org> Message-ID: PROBLEM SOLVED. Typo is running. Thanks to everyone for their help. -t On Sep 16, 2005, at 7:19 PM, Tim Martens wrote: > > On Sep 16, 2005, at 6:15 PM, Scott Laird wrote: > > >>> script/ruby server -e production yields: >>> >>> >> >> Er, that's a weird path. It should really be 'ruby ./script/ >> server'. If you try running it from within the script directory (cd >> script; ruby ./server) then it won't work right. >> > > Scott, from within the script folder, I ran "ruby server -e > production" > > Is that right? > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Sat Sep 17 08:42:35 2005 From: scott at sigkill.org (Scott Laird) Date: Sat, 17 Sep 2005 05:42:35 -0700 Subject: [typo] Help Installing Typo on Tiger In-Reply-To: References: <66720C93-5A65-478D-AA84-0BAF5B9205EE@hawaii.rr.com> <632154f705091617506b889f02@mail.gmail.com> <34076852-1B11-4452-97C9-C700656ED747@hawaii.rr.com> <33CDC9BE-9187-42E3-AECE-F2C1C7AA0230@hawaii.rr.com> <8F2CFF24-6A3D-4C38-8B63-32B3FD81FD9A@sigkill.org> Message-ID: On Sep 16, 2005, at 10:19 PM, Tim Martens wrote: > Scott, from within the script folder, I ran "ruby server -e > production" Nope, that doesn't work. Rails starts looking for config files starting in the current directory; if you cd into script/, then everything breaks. Run 'ruby ./script/server -e production' and it should work. Scott From akonsu at gmail.com Mon Sep 19 17:13:42 2005 From: akonsu at gmail.com (akonsu) Date: Mon, 19 Sep 2005 14:13:42 -0700 Subject: [typo] typo on apache2 on win xp Message-ID: hello, was anyone able to run typo on fast cgi on apache 2 on windows xp? my problems: 1. i have the latest ruby and rails. a rails application created from scratch runs well with both apache 2 with fast-cgi and webrick. 2. i have the latest typo. typo runs well with webrick. although there are some problems with mysql due to old/new password encoding feature in mysql but this is not relevant. 3. if i set up an apache virtual host pointing to the typo folder, accessing it times out. fast-cgi complains about non-existent 'for-each' or something like that (i can find out the right error message if needed). when i try to navigate to my host, fast-cgi spawns a ton of ruby.exe processes and then times out because it cannot receive a response from rails dispatcher. 4. note that if i point my vhost to the rails application that i created from scratch, it works well, and fast-cgi is happy. 5. so i copied my typo folders into the folders containing my test rails application, except for config files. now apache can access typo and fast-cgi does not time out, but typo reports error: NameError in Articles#index undefined local variable or method `config' for # /app/controllers/application.rb:33:in `reload_settings' this is a nightmare... i know that on unix it would be much simpler, but now this is just a point of principle for me to make it run on windows with fast-cgi and apache2. please help. From mike at uwmike.com Mon Sep 19 17:20:02 2005 From: mike at uwmike.com (Mike Purvis) Date: Mon, 19 Sep 2005 17:20:02 -0400 Subject: [typo] Markdown error on paragraph starting with a link Message-ID: <432F2B82.9070801@uwmike.com> Hi again everyone, I seem to be having some difficulty with Markdown. I definitely prefer it to Textile, but it's acting up on code that looks like this: [This link](http://somesite.com) goes to an interesting site. Plugging it into Gruber's online tester works fine, but Typo gobbles up the link and just spits out: goes to an interesting site. If I insert a single character before the link then it's fine. But this shouldn't be a necessary step, particularly with several dozen entries all possibly containing something like this. Help... ? Thanks, Mike From justus at ryoohki.net Mon Sep 19 18:20:29 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Mon, 19 Sep 2005 16:20:29 -0600 Subject: [typo] Markdown error on paragraph starting with a link In-Reply-To: <432F2B82.9070801@uwmike.com> References: <432F2B82.9070801@uwmike.com> Message-ID: <432F39AD.90304@ryoohki.net> Mike Purvis wrote: > I seem to be having some difficulty with Markdown. I definitely prefer > it to Textile, but it's acting up on code that looks like this: > > [This link](http://somesite.com) goes to an interesting site. That works for me. I've made a few other small fixes to bluecloth locally -- fixing the regexps for bold and italic -- but none of them related to this. From mike at uwmike.com Mon Sep 19 19:12:37 2005 From: mike at uwmike.com (Mike Purvis) Date: Mon, 19 Sep 2005 19:12:37 -0400 Subject: [typo] Comment box hiding? In-Reply-To: <432F39AD.90304@ryoohki.net> References: <432F2B82.9070801@uwmike.com> <432F39AD.90304@ryoohki.net> Message-ID: <432F45E5.4080705@uwmike.com> Justus Pendleton wrote: >That works for me. I've made a few other small fixes to bluecloth >locally -- fixing the regexps for bold and italic -- but none of them >related to this. > Hmm... okay. Well, I'll grab the latest version at some point and hope that that fixes it. Uh, second question: How would I make the comment form not show up when comments are no longer accepted? Right now it seems to just swallow them without any notice at all. I assume that I just need to wrap an if-statement around most of app/views/articles/_comment_box.rhtml, but I'm not sure what it would be. I had a quick look in articles_controller to see what the code was producing the "swallowing" effect, but I couldn't seem to locate it. Mike From justus at ryoohki.net Mon Sep 19 19:33:52 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Mon, 19 Sep 2005 17:33:52 -0600 Subject: [typo] Comment box hiding? In-Reply-To: <432F45E5.4080705@uwmike.com> References: <432F2B82.9070801@uwmike.com> <432F39AD.90304@ryoohki.net> <432F45E5.4080705@uwmike.com> Message-ID: <432F4AE0.70701@ryoohki.net> Mike Purvis wrote: > Uh, second question: How would I make the comment form not show up when > comments are no longer accepted? Right now it seems to just swallow them > without any notice at all. At the risk of repeating myself..."That works for me." It displays "Comments are disabled" instead of the comment form. That done at the bottom of app/views/articles/read.rhtml: <% if @article.allow_comments? -%> <%= render :partial => 'comment_box' %> <% else -%>

Comments are disabled

<% end -%> From scott at sigkill.org Mon Sep 19 19:36:28 2005 From: scott at sigkill.org (Scott Laird) Date: Mon, 19 Sep 2005 16:36:28 -0700 Subject: [typo] Comment box hiding? In-Reply-To: <432F4AE0.70701@ryoohki.net> References: <432F2B82.9070801@uwmike.com> <432F39AD.90304@ryoohki.net> <432F45E5.4080705@uwmike.com> <432F4AE0.70701@ryoohki.net> Message-ID: <69DA92BF-4B00-4BAD-AC05-476766C4C846@sigkill.org> On Sep 19, 2005, at 4:33 PM, Justus Pendleton wrote: > Mike Purvis wrote: > >> Uh, second question: How would I make the comment form not show up >> when >> comments are no longer accepted? Right now it seems to just >> swallow them >> without any notice at all. >> > > At the risk of repeating myself..."That works for me." > > It displays "Comments are disabled" instead of the comment form. That > done at the bottom of app/views/articles/read.rhtml: > > <% if @article.allow_comments? -%> > <%= render :partial => 'comment_box' %> > <% else -%> >

Comments are disabled

> <% end -%> I *think* this went into the trunk after 2.5.5. Scott From trejkaz at trypticon.org Mon Sep 19 19:36:37 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Tue, 20 Sep 2005 09:36:37 +1000 (EST) Subject: [typo] Comment box hiding? In-Reply-To: <432F45E5.4080705@uwmike.com> References: <432F2B82.9070801@uwmike.com> <432F39AD.90304@ryoohki.net> <432F45E5.4080705@uwmike.com> Message-ID: <2368.210.50.55.251.1127172997.squirrel@home.trypticon.org> > Uh, second question: How would I make the comment form not show up when > comments are no longer accepted? Right now it seems to just swallow them > without any notice at all. > > I assume that I just need to wrap an if-statement around most of > app/views/articles/_comment_box.rhtml, but I'm not sure what it would > be. I had a quick look in articles_controller to see what the code was > producing the "swallowing" effect, but I couldn't seem to locate it. You might have to watch out for the page cache. If the cache stores a copy of the page with the comment box on, then no code in Ruby land will make the comment box hide itself. I guess what I'm saying is that hiding the box from Ruby land might not be enough. It wouldn't hurt to also have a little message which says comments are disabled, _after_ the user submits. ...unless the box can be somehow hidden from JavaScript land, like a lot of the other enable/disable stuff does. TX From mike at uwmike.com Mon Sep 19 19:41:07 2005 From: mike at uwmike.com (Mike Purvis) Date: Mon, 19 Sep 2005 19:41:07 -0400 Subject: [typo] Comment box hiding? In-Reply-To: <432F4AE0.70701@ryoohki.net> References: <432F2B82.9070801@uwmike.com> <432F39AD.90304@ryoohki.net> <432F45E5.4080705@uwmike.com> <432F4AE0.70701@ryoohki.net> Message-ID: <432F4C93.9030701@uwmike.com> Justus Pendleton wrote: >At the risk of repeating myself..."That works for me." > >It displays "Comments are disabled" instead of the comment form. That >done at the bottom of app/views/articles/read.rhtml: > ><% if @article.allow_comments? -%> > <%= render :partial => 'comment_box' %> ><% else -%> >

Comments are disabled

><% end -%> > > Sorry, didn't quite make myself clear... That works okay, when the "allow_comments" flag is manually set. But as part of the spam-controls, I've also set it to reject comments on articles older than 30 days. That's where the problem seems to be. (Although, as was suggested by Trejkaz, a javascript solution might be option... not a really great one, IMO) From scott at sigkill.org Mon Sep 19 19:44:40 2005 From: scott at sigkill.org (Scott Laird) Date: Mon, 19 Sep 2005 16:44:40 -0700 Subject: [typo] Comment box hiding? In-Reply-To: <2368.210.50.55.251.1127172997.squirrel@home.trypticon.org> References: <432F2B82.9070801@uwmike.com> <432F39AD.90304@ryoohki.net> <432F45E5.4080705@uwmike.com> <2368.210.50.55.251.1127172997.squirrel@home.trypticon.org> Message-ID: <31A54D64-12C9-437D-ADB3-491E974249FC@sigkill.org> On Sep 19, 2005, at 4:36 PM, Trejkaz wrote: >> Uh, second question: How would I make the comment form not show up >> when >> comments are no longer accepted? Right now it seems to just >> swallow them >> without any notice at all. >> >> I assume that I just need to wrap an if-statement around most of >> app/views/articles/_comment_box.rhtml, but I'm not sure what it would >> be. I had a quick look in articles_controller to see what the code >> was >> producing the "swallowing" effect, but I couldn't seem to locate it. >> > > You might have to watch out for the page cache. If the cache stores a > copy of the page with the comment box on, then no code in Ruby land > will > make the comment box hide itself. > > I guess what I'm saying is that hiding the box from Ruby land might > not be > enough. It wouldn't hurt to also have a little message which says > comments are disabled, _after_ the user submits. > > ...unless the box can be somehow hidden from JavaScript land, like > a lot > of the other enable/disable stuff does. Disabling comments on an article should trigger article.save, which should sweep the cache. Scott From trejkaz at trypticon.org Mon Sep 19 19:53:42 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Tue, 20 Sep 2005 09:53:42 +1000 (EST) Subject: [typo] Comment box hiding? In-Reply-To: <31A54D64-12C9-437D-ADB3-491E974249FC@sigkill.org> References: <432F2B82.9070801@uwmike.com> <432F39AD.90304@ryoohki.net> <432F45E5.4080705@uwmike.com> <2368.210.50.55.251.1127172997.squirrel@home.trypticon.org> <31A54D64-12C9-437D-ADB3-491E974249FC@sigkill.org> Message-ID: <2468.210.50.55.251.1127174022.squirrel@home.trypticon.org> > Disabling comments on an article should trigger article.save, which > should sweep the cache. True enough, if one has the time to go and disable comments manually instead of using the timer to disable them automatically. TX From trejkaz at trypticon.org Mon Sep 19 20:22:40 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Tue, 20 Sep 2005 10:22:40 +1000 (EST) Subject: [typo] Dynamic macros Message-ID: <2548.210.50.55.251.1127175760.squirrel@home.trypticon.org> I've just tried making a macro which reflects data that changes in real time (i.e. a user's presence on IM.) Ignoring the page cache for a moment (I'll find a way around that in due time), on the development version of my site, I've noticed that the text doesn't change when my presence changes. If I go in and choose to edit the page, but just hit Store without making any changes, then it picks up the new text. Is the result of text filters being cached somewhere else? And the next question: how do I turn it off for my filter? TX From ryan at monoicon.com Mon Sep 19 20:24:46 2005 From: ryan at monoicon.com (Ryan Short) Date: Tue, 20 Sep 2005 09:54:46 +0930 Subject: [typo] Accessing to a non-typo directory Message-ID: <432F56CE.9050000@monoicon.com> Hi I currently have Typo running in the root directory of my domain, so that it is accessible through http://monoicon.com. This all works well, but Dreamhost has analog as the basic stats package that is available through /stats/. Currently when I try to connect to it I just get 404 errors about it not existing. Is it possible to get to this directory when running Typo? Thanks Ryan From trejkaz at trypticon.org Mon Sep 19 20:50:15 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Tue, 20 Sep 2005 10:50:15 +1000 (EST) Subject: [typo] Accessing to a non-typo directory In-Reply-To: <432F56CE.9050000@monoicon.com> References: <432F56CE.9050000@monoicon.com> Message-ID: <2621.210.50.55.251.1127177415.squirrel@home.trypticon.org> > Hi > > I currently have Typo running in the root directory of my domain, so > that it is accessible through http://monoicon.com. This all works well, > but Dreamhost has analog as the basic stats package that is available > through /stats/. Currently when I try to connect to it I just get 404 > errors about it not existing. Is it possible to get to this directory > when running Typo? I do this on my own site by having an Alias directive in my VirtualHost section, pointing my /software/ directory to the correct location. TX From trejkaz at trypticon.org Mon Sep 19 20:53:49 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Tue, 20 Sep 2005 10:53:49 +1000 (EST) Subject: [typo] Unicode characters output from macros Message-ID: <2623.210.50.55.251.1127177629.squirrel@home.trypticon.org> As you can probably tell, I've been playing around with macros a lot. Something I just discovered... if my macro outputs characters in UTF-8 encoding, they don't get picked up properly. I did some digging and it seems that even if the HTML has UTF-8 specified both in a element and in the declaration, if the HTTP specifies the encoding to be something else, it's all for nought. Presently, it seems that Typo sends almost all pages as encoding ISO-8859-1. Would it make sense to change this globally to UTF-8? Is it possible perhaps to do this using an Apache directive, so that Typo doesn't have to add the feature? Interestingly, when you create a page which has multi-byte characters in it, those characters encode using XML entities. This is probably a problem in itself, as XML-encoding the characters results in around 8 bytes per character, whereas UTF-8 results in an average of 2-3. Are either of these issues worth a ticket? :-) TX From scott at sigkill.org Mon Sep 19 21:06:14 2005 From: scott at sigkill.org (Scott Laird) Date: Mon, 19 Sep 2005 18:06:14 -0700 Subject: [typo] Unicode characters output from macros In-Reply-To: <2623.210.50.55.251.1127177629.squirrel@home.trypticon.org> References: <2623.210.50.55.251.1127177629.squirrel@home.trypticon.org> Message-ID: <1BC28252-C972-4488-A1DE-1E142BE749D8@sigkill.org> On Sep 19, 2005, at 5:53 PM, Trejkaz wrote: > As you can probably tell, I've been playing around with macros a lot. > > Something I just discovered... if my macro outputs characters in UTF-8 > encoding, they don't get picked up properly. I did some digging > and it > seems that even if the HTML has UTF-8 specified both in a > element > and in the declaration, if the HTTP specifies the encoding > to be > something else, it's all for nought. > > Presently, it seems that Typo sends almost all pages as encoding > ISO-8859-1. Would it make sense to change this globally to UTF-8? > Is it > possible perhaps to do this using an Apache directive, so that Typo > doesn't have to add the feature? I haven't noticed this, but it's possible that Safari is defaulting to UTF-8 for me. We *absolutely* should be using UTF-8 everywhere; ISO-8859-1 is wrong. Changing Apache's default would only help with Apache; webrick and lighttpd would still be broken. So we'll need to add a UTF-8 content-type everywhere. That shouldn't be all that hard. > Interestingly, when you create a page which has multi-byte > characters in > it, those characters encode using XML entities. This is probably a > problem in itself, as XML-encoding the characters results in around 8 > bytes per character, whereas UTF-8 results in an average of 2-3. This is almost certainly an editor or web browser issue; I've created posts with UTF-8 characters using Ecto on OS X. > Are either of these issues worth a ticket? :-) The first one is. I'm not sure about the second one, can you provide more details? Scott From trejkaz at trypticon.org Mon Sep 19 21:29:35 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Tue, 20 Sep 2005 11:29:35 +1000 (EST) Subject: [typo] Unicode characters output from macros Message-ID: <2745.210.50.55.251.1127179775.squirrel@home.trypticon.org> Apologies for breaking mail client threading, I hit delete instead of reply and had to reconstitute this from the archives. > I haven't noticed this, but it's possible that Safari is defaulting > to UTF-8 for me. We *absolutely* should be using UTF-8 everywhere; > ISO-8859-1 is wrong. Changing Apache's default would only help with > Apache; webrick and lighttpd would still be broken. So we'll need to > add a UTF-8 content-type everywhere. That shouldn't be all that hard. Good point. I've noticed that at the moment, it's being done inside some controller methods. Maybe it's something the dispatcher should be doing. Until then, though, it seems that the workaround (for Apache) is... AddDefaultCharset utf-8 >> Interestingly, when you create a page which has multi-byte >> characters in >> it, those characters encode using XML entities. This is probably a >> problem in itself, as XML-encoding the characters results in around 8 >> bytes per character, whereas UTF-8 results in an average of 2-3. > > This is almost certainly an editor or web browser issue; I've created > posts with UTF-8 characters using Ecto on OS X. Having just performed the workaround mentioned above, I've discovered that this second issue is fixed as a side-effect of fixing the first. The original page in the database actually had "ばか" as its content. The new one has the correct characters. My guess is, Firefox said "oh, this page isn't UTF-8, therefore the site probably doesn't support UTF-8 comments, so let's submit this encoded." Typo then ignored the encoding and stored it as-is. Whereas now... the page advertises itself as UTF-8, and a new page created is correctly stored as the original UTF-8 content. Aren't browsers just too smart for their own good? :-) TX From kevin at sb.org Mon Sep 19 22:05:10 2005 From: kevin at sb.org (Kevin Ballard) Date: Mon, 19 Sep 2005 22:05:10 -0400 Subject: [typo] Dynamic macros In-Reply-To: <2548.210.50.55.251.1127175760.squirrel@home.trypticon.org> References: <2548.210.50.55.251.1127175760.squirrel@home.trypticon.org> Message-ID: <8F4D5E25-3880-4A64-A9D9-D9F3932E8D3F@sb.org> On Sep 19, 2005, at 8:22 PM, Trejkaz wrote: > I've just tried making a macro which reflects data that changes in > real > time (i.e. a user's presence on IM.) > > Ignoring the page cache for a moment (I'll find a way around that > in due > time), on the development version of my site, I've noticed that the > text > doesn't change when my presence changes. If I go in and choose to > edit > the page, but just hit Store without making any changes, then it > picks up > the new text. > > Is the result of text filters being cached somewhere else? And the > next > question: how do I turn it off for my filter? Yes, the output of text filters are cached, and I would recommend not trying to get around that because you really don't want to have to re- filter your text every time somebody views the page. That's just a big CPU hit. -- Kevin Ballard kevin at 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/20050919/5956be60/smime.bin From trejkaz at trypticon.org Mon Sep 19 22:21:08 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Tue, 20 Sep 2005 12:21:08 +1000 (EST) Subject: [typo] Dynamic macros In-Reply-To: <8F4D5E25-3880-4A64-A9D9-D9F3932E8D3F@sb.org> References: <2548.210.50.55.251.1127175760.squirrel@home.trypticon.org> <8F4D5E25-3880-4A64-A9D9-D9F3932E8D3F@sb.org> Message-ID: <2996.210.50.55.251.1127182868.squirrel@home.trypticon.org> > Yes, the output of text filters are cached, and I would recommend not > trying to get around that because you really don't want to have to re- > filter your text every time somebody views the page. That's just a > big CPU hit. It would be, if people frequently visited the only page the filter is being used on. :-) I'm going to come up with some different ideas, though. Maybe I can use an AJAX trick to have the content inserted into the element after the static page already loaded. TX From justus at ryoohki.net Mon Sep 19 23:17:32 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Mon, 19 Sep 2005 21:17:32 -0600 Subject: [typo] Dynamic macros In-Reply-To: <2996.210.50.55.251.1127182868.squirrel@home.trypticon.org> References: <2548.210.50.55.251.1127175760.squirrel@home.trypticon.org> <8F4D5E25-3880-4A64-A9D9-D9F3932E8D3F@sb.org> <2996.210.50.55.251.1127182868.squirrel@home.trypticon.org> Message-ID: <20050920031732.GA3221@kiyone.ryoohki.net> On Tue, Sep 20, 2005 at 12:21:08PM +1000, Trejkaz wrote: > It would be, if people frequently visited the only page the filter is > being used on. :-) It sounds like what you want is for typo to know that some filters, given the same input, may return different output each time they are invoked. I don't think that filters were ever intended to handle that kind of nondeterminism. It certainly doesn't make sense if you come at it from the perspective of wanting to use things like Textile, Markdown, or reST for your compositions. > I'm going to come up with some different ideas, though. Maybe I can use > an AJAX trick to have the content inserted into the element after the > static page already loaded. I have a dynamic LibraryThing[1] "sidebar" which is just a static sidebar with one line of HTML: And the content of the URL is just some javascript that does a few document.writes() to put the current data into the document. It seems to work okay in the short time I've been using it. Something like that might work for what it sounds like you're trying to do. [1]: http://www.librarything.com From scott at sigkill.org Mon Sep 19 23:29:01 2005 From: scott at sigkill.org (Scott Laird) Date: Mon, 19 Sep 2005 20:29:01 -0700 Subject: [typo] Dynamic macros In-Reply-To: <20050920031732.GA3221@kiyone.ryoohki.net> References: <2548.210.50.55.251.1127175760.squirrel@home.trypticon.org> <8F4D5E25-3880-4A64-A9D9-D9F3932E8D3F@sb.org> <2996.210.50.55.251.1127182868.squirrel@home.trypticon.org> <20050920031732.GA3221@kiyone.ryoohki.net> Message-ID: <7EA4B25F-269E-4D53-996B-17D635D5D41C@sigkill.org> On Sep 19, 2005, at 8:17 PM, Justus Pendleton wrote: > On Tue, Sep 20, 2005 at 12:21:08PM +1000, Trejkaz wrote: > >> It would be, if people frequently visited the only page the filter is >> being used on. :-) >> > > It sounds like what you want is for typo to know that some filters, > given the same input, may return different output each time they are > invoked. I don't think that filters were ever intended to handle that > kind of nondeterminism. It certainly doesn't make sense if you > come at > it from the perspective of wanting to use things like Textile, > Markdown, > or reST for your compositions. Actually, this sort of thing has been on my wishlist for a while, but it's really not a high priority for me. Eventually, I'd like filters to be able to say "this output is good for 20 minutes" and have the cache behave appropriately. Obviously, we aren't there yet. We aren't really even very close. > I have a dynamic LibraryThing[1] "sidebar" which is just a static > sidebar with > one line of HTML: > > And the content of the URL is just some javascript that does a few > document.writes() to put the current data into the document. It seems > to work okay in the short time I've been using it. Something like > that > might work for what it sounds like you're trying to do. For things that change every time, this is almost certainly a better approach. It'll let the cache do its thing while still keeping everything up to date. Scott From rasputnik at gmail.com Wed Sep 21 06:45:11 2005 From: rasputnik at gmail.com (Dick Davies) Date: Wed, 21 Sep 2005 11:45:11 +0100 Subject: [typo] Comment box hiding? In-Reply-To: <432F4C93.9030701@uwmike.com> References: <432F2B82.9070801@uwmike.com> <432F39AD.90304@ryoohki.net> <432F45E5.4080705@uwmike.com> <432F4AE0.70701@ryoohki.net> <432F4C93.9030701@uwmike.com> Message-ID: <3f1760509210345325fcea3@mail.gmail.com> On 20/09/05, Mike Purvis wrote: > Justus Pendleton wrote: > > ><% if @article.allow_comments? -%> > > <%= render :partial => 'comment_box' %> > ><% else -%> > >

Comments are disabled

> ><% end -%> > Sorry, didn't quite make myself clear... That works okay, when the > "allow_comments" flag is manually set. But as part of the spam-controls, > I've also set it to reject comments on articles older than 30 days. Doesn't help with the page caching, but In lib/spam_protection.rb, there's a check made for age of an article. The following *should* work in a view ( lifted from lib/spam_protection.rb - haven't tested, see below): > ><% if SpamProtection.new.article_closed?(@article) -%> > > <%= render :partial => 'comment_box' %> > ><% else -%> > >

Comments are disabled

> ><% end -%> That's pretty ugly, but it should be straightforward to knock up a helper to check both conditions and use that from the view. I'd do it myself, but my 2 year old has poured blackcurrant squash into my laptop (bless her) so I might take a day or two to come up with a ticket. Feel free to point out my idiocy, I have only glanced at typo so far. -- Rasputin :: Jack of All Trades - Master of Nuns From gpsnospam at gmail.com Thu Sep 22 06:42:04 2005 From: gpsnospam at gmail.com (gpshewan) Date: Thu, 22 Sep 2005 11:42:04 +0100 Subject: [typo] Anybody running weed? In-Reply-To: <3f1760509210345325fcea3@mail.gmail.com> References: <432F2B82.9070801@uwmike.com> <432F39AD.90304@ryoohki.net> <432F45E5.4080705@uwmike.com> <432F4AE0.70701@ryoohki.net> <432F4C93.9030701@uwmike.com> <3f1760509210345325fcea3@mail.gmail.com> Message-ID: Has anybody got Weed (http://habtm.com/articles/2005/09/16/weed) running with Typo yet? Just in case there are any (successful) implementation instructions before I start myself ;) Gary ---------------------------- www.gpshewan.com From kevwil at gmail.com Thu Sep 22 12:12:56 2005 From: kevwil at gmail.com (Kevin Williams) Date: Thu, 22 Sep 2005 10:12:56 -0600 Subject: [typo] site migration after server comprimise Message-ID: <683a886f0509220912b86721c@mail.gmail.com> I had Typo on my own server at home, serving my blog. My server was comprimised. I dumped the MySQL data for the database into a script file. I'm wondering if I need the data in the "page_caches" and "sessions" tables, especially "sessions". The comprimise was an Apache thing, which was proxying the lighttpd instance running Typo. I don't need that data, do I? -- Cheers, Kevin From scott at sigkill.org Thu Sep 22 12:18:42 2005 From: scott at sigkill.org (Scott Laird) Date: Thu, 22 Sep 2005 09:18:42 -0700 Subject: [typo] site migration after server comprimise In-Reply-To: <683a886f0509220912b86721c@mail.gmail.com> References: <683a886f0509220912b86721c@mail.gmail.com> Message-ID: No, both of those can safely be left behind. Scott On Sep 22, 2005, at 9:12 AM, Kevin Williams wrote: > I had Typo on my own server at home, serving my blog. My server was > comprimised. I dumped the MySQL data for the database into a script > file. I'm wondering if I need the data in the "page_caches" and > "sessions" tables, especially "sessions". The comprimise was an Apache > thing, which was proxying the lighttpd instance running Typo. > > I don't need that data, do I? > > -- > Cheers, > > Kevin > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From kevwil at gmail.com Thu Sep 22 12:35:55 2005 From: kevwil at gmail.com (Kevin Williams) Date: Thu, 22 Sep 2005 10:35:55 -0600 Subject: [typo] site migration after server comprimise In-Reply-To: References: <683a886f0509220912b86721c@mail.gmail.com> Message-ID: <683a886f050922093561a1246@mail.gmail.com> Thanks, I thought so. I guess getting hacked kinda shakes your confidence when you built the box yourself. On 9/22/05, Scott Laird wrote: > No, both of those can safely be left behind. > > > Scott > > On Sep 22, 2005, at 9:12 AM, Kevin Williams wrote: > > > I had Typo on my own server at home, serving my blog. My server was > > comprimised. I dumped the MySQL data for the database into a script > > file. I'm wondering if I need the data in the "page_caches" and > > "sessions" tables, especially "sessions". The comprimise was an Apache > > thing, which was proxying the lighttpd instance running Typo. > > > > I don't need that data, do I? > > > > -- > > Cheers, > > > > Kevin > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > -- Cheers, Kevin From jpinnix.alt at gmail.com Thu Sep 22 18:48:10 2005 From: jpinnix.alt at gmail.com (jeremy*pinnix) Date: Thu, 22 Sep 2005 17:48:10 -0500 Subject: [typo] lighttpd config Message-ID: <11a908be0509221548574c6221@mail.gmail.com> Hello, I had typo running perfectly using webrick on my desktop. But trying to get it to run on lighttpd seems to be a problem. I just saw that there is a lighttpd.conf file in /config. I didn't see anything on the typo site about making changes. Is that lighttpd.conf file just a guideline for setting up your real lighttpd.conf file? It was a little different than what I already had set up. I added the url_rewrite and changed the fcgi settings to be "typo" instead of "localhost". Still no luck. Any advice will be greatly appreciated! Thanks! From rasputnik at gmail.com Fri Sep 23 04:45:50 2005 From: rasputnik at gmail.com (Dick Davies) Date: Fri, 23 Sep 2005 09:45:50 +0100 Subject: [typo] lighttpd config In-Reply-To: <11a908be0509221548574c6221@mail.gmail.com> References: <11a908be0509221548574c6221@mail.gmail.com> Message-ID: <3f17605092301453b269aaf@mail.gmail.com> Define 'problem' - does it start? What errors do you get (in the browser/logs)? On 22/09/05, jeremy*pinnix wrote: > Hello, > > I had typo running perfectly using webrick on my desktop. But trying > to get it to run on lighttpd seems to be a problem. > > I just saw that there is a lighttpd.conf file in /config. I didn't see > anything on the typo site about making changes. Is that lighttpd.conf > file just a guideline for setting up your real lighttpd.conf file? It > was a little different than what I already had set up. I added the > url_rewrite and changed the fcgi settings to be "typo" instead of > "localhost". > > Still no luck. > > Any advice will be greatly appreciated! > > Thanks! > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Rasputin :: Jack of All Trades - Master of Nuns From jpinnix.alt at gmail.com Fri Sep 23 16:10:41 2005 From: jpinnix.alt at gmail.com (jeremy*pinnix) Date: Fri, 23 Sep 2005 15:10:41 -0500 Subject: [typo] new blog Message-ID: <11a908be050923131070d151d8@mail.gmail.com> http://www.bartmillard.org/ From typo at isolated-designs.net Fri Sep 23 16:29:14 2005 From: typo at isolated-designs.net (Justin Palmer) Date: Fri, 23 Sep 2005 15:29:14 -0500 Subject: [typo] new blog In-Reply-To: <11a908be050923131070d151d8@mail.gmail.com> References: <11a908be050923131070d151d8@mail.gmail.com> Message-ID: <22FC9260-0BE7-4509-8497-CC5795D92DFF@isolated-designs.net> Looks great Jeremy! There is a slight problem in Safari you might want to address. I've attached a screenshot. Cheers -Justin Palmer encytemedia.com -------------- next part -------------- A non-text attachment was scrubbed... Name: safari-screenshot.jpg Type: image/jpeg Size: 15011 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050923/60dfc1dc/safari-screenshot-0001.jpg -------------- next part -------------- On Sep 23, 2005, at 3:10 PM, jeremy*pinnix wrote: > http://www.bartmillard.org/ > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > From kevin at sb.org Fri Sep 23 16:30:01 2005 From: kevin at sb.org (Kevin Ballard) Date: Fri, 23 Sep 2005 16:30:01 -0400 Subject: [typo] new blog In-Reply-To: <11a908be050923131070d151d8@mail.gmail.com> References: <11a908be050923131070d151d8@mail.gmail.com> Message-ID: On Sep 23, 2005, at 4:10 PM, jeremy*pinnix wrote: > http://www.bartmillard.org/ Nice layout (although the comments message box is far too wide for it), but you really shouldn't be advertising your blog here. Instead just tack it on to the end of the list at http://typo.leetsoft.com/ trac/wiki/TypoPowered (which I see you've already done). -- Kevin Ballard kevin at 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/20050923/f03ffcff/smime.bin From mike at uwmike.com Fri Sep 23 16:39:25 2005 From: mike at uwmike.com (Mike Purvis) Date: Fri, 23 Sep 2005 16:39:25 -0400 Subject: [typo] new blog In-Reply-To: <11a908be050923131070d151d8@mail.gmail.com> References: <11a908be050923131070d151d8@mail.gmail.com> Message-ID: <433467FD.2000806@uwmike.com> Looks nice. A similar look to what I was trying to acheive (http://uwmike.com), but I think you did a much better job. By the way, if you don't like the /pages/x URLs, it's a reasonably easy hack on /typo/config/routes.rb to make them... something else. Around like 80, you'll see: map.connect 'pages/*name',:controller => 'articles', :action => 'view_page' Now, it's an easy thing to make "pages" something else, but you can also just add a rule like map.connect 'bio',:controller => 'articles', :action => 'view_page', :name='bio' That way "/pages/bio" and "/bio" will both be the same resource... Anyhow, not a big deal, but it's kind of cool. (The http://uwmike.com/about page on my site is like this...) Cheers. Mike jeremy*pinnix wrote: >http://www.bartmillard.org/ > >_______________________________________________ >Typo-list mailing list >Typo-list at rubyforge.org >http://rubyforge.org/mailman/listinfo/typo-list > > From jpinnix.alt at gmail.com Fri Sep 23 16:48:07 2005 From: jpinnix.alt at gmail.com (jeremy*pinnix) Date: Fri, 23 Sep 2005 15:48:07 -0500 Subject: [typo] new blog In-Reply-To: <433467FD.2000806@uwmike.com> References: <11a908be050923131070d151d8@mail.gmail.com> <433467FD.2000806@uwmike.com> Message-ID: <11a908be050923134832bf36e@mail.gmail.com> Thanks all... I have fixed the textarea.. works in safari now. I'll take a stab at those routes. jeremy On 9/23/05, Mike Purvis wrote: > Looks nice. A similar look to what I was trying to acheive > (http://uwmike.com), but I think you did a much better job. > > > By the way, if you don't like the /pages/x URLs, it's a reasonably easy > hack on /typo/config/routes.rb to make them... something else. Around > like 80, you'll see: > > map.connect 'pages/*name',:controller => 'articles', :action => 'view_page' > > Now, it's an easy thing to make "pages" something else, but you can also > just add a rule like > > map.connect 'bio',:controller => 'articles', :action => 'view_page', > :name='bio' > > That way "/pages/bio" and "/bio" will both be the same resource... > Anyhow, not a big deal, but it's kind of cool. (The > http://uwmike.com/about page on my site is like this...) > > Cheers. > > Mike > > > jeremy*pinnix wrote: > > >http://www.bartmillard.org/ > > > >_______________________________________________ > >Typo-list mailing list > >Typo-list at rubyforge.org > >http://rubyforge.org/mailman/listinfo/typo-list > > > > > > From bradley at fluxura.com Sun Sep 25 20:10:00 2005 From: bradley at fluxura.com (bradley taylor) Date: Sun, 25 Sep 2005 20:10:00 -0400 Subject: [typo] Testing LiveController? Message-ID: <3E66C239-D821-4A8B-B647-0DC2E8044DE4@fluxura.com> Hi all, I implemented searchable pages and plan on submitting a patch. In preparation, I've been writing the appropriate unit and functional tests. In trying to write a functional test for LiveController, I am having problems with the controller's use of "request.raw_post". The post simulation process requires a hash of parameters and LiveController doesn't use parameters. Should I modify live search to use @params instead of raw_post in order to make it testable? Or just skip the test? Thanks, Bradley irc: wrecked Bradley Taylor http://fluxura.com From patrick at lenz.sh Mon Sep 26 02:43:29 2005 From: patrick at lenz.sh (Patrick Lenz) Date: Mon, 26 Sep 2005 08:43:29 +0200 Subject: [typo] Testing LiveController? In-Reply-To: <3E66C239-D821-4A8B-B647-0DC2E8044DE4@fluxura.com> References: <3E66C239-D821-4A8B-B647-0DC2E8044DE4@fluxura.com> Message-ID: On Sep 26, 2005, at 2:10 AM, bradley taylor wrote: > In trying to write a functional test for LiveController, I am having > problems with the controller's use of "request.raw_post". The post > simulation process requires a hash of parameters and LiveController > doesn't use parameters. You can pre-populate request.raw_post in your test. More here: http://poocs.net/articles/2005/07/12/rails-tip-functional-testing- ajax-calls -- 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 bradley at fluxura.com Mon Sep 26 09:25:23 2005 From: bradley at fluxura.com (bradley taylor) Date: Mon, 26 Sep 2005 09:25:23 -0400 Subject: [typo] Search results was Re: Testing LiveController? In-Reply-To: References: <3E66C239-D821-4A8B-B647-0DC2E8044DE4@fluxura.com> Message-ID: <0AD3F8D4-7933-4EA0-B6FE-6888F4BEBE5D@fluxura.com> Works great. Thanks. My next concern for adding searchable pages is that the search results page (not ajax) displays the entire article for found posts and how to handle displaying pages. Does rendering the entire body_html make sense for a page? For rendering pages on the search result page, I see a couple of options: 1. Follow the existing pattern and render the entire page body_html. 2. Summarize the page using extract for keywords in the body and truncate for keywords in the title. Add some processing to the view to determine which keywords were found in what part of the page (title and occurrence in body_html). This approach would yield a result formated similar to Google. I've implemented #1 and it looks weird. If I implement #2, should I change the display of found articles to render the same way for consistency? Opinions or other ideas? Thanks, Bradley Taylor (wrecked) On Sep 26, 2005, at 2:43 AM, Patrick Lenz wrote: > On Sep 26, 2005, at 2:10 AM, bradley taylor wrote: > > >> In trying to write a functional test for LiveController, I am having >> problems with the controller's use of "request.raw_post". The post >> simulation process requires a hash of parameters and LiveController >> doesn't use parameters. >> > > You can pre-populate request.raw_post in your test. More here: > http://poocs.net/articles/2005/07/12/rails-tip-functional-testing- > ajax-calls > > -- > 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 at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From vanweerd at gmail.com Mon Sep 26 10:21:38 2005 From: vanweerd at gmail.com (Nicholas Van Weerdenburg) Date: Mon, 26 Sep 2005 10:21:38 -0400 Subject: [typo] default .htaccess dispatch Message-ID: <632154f705092607212f323d3f@mail.gmail.com> I was wondering why the default typo .htaccess has dispatch.fcgi as the default, while the rails default has dispatch.cgi? Thanks, Nick -- Nicholas Van Weerdenburg From tobias.luetke at gmail.com Mon Sep 26 10:25:29 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Mon, 26 Sep 2005 10:25:29 -0400 Subject: [typo] default .htaccess dispatch In-Reply-To: <632154f705092607212f323d3f@mail.gmail.com> References: <632154f705092607212f323d3f@mail.gmail.com> Message-ID: <9963c1bd05092607259853aba@mail.gmail.com> CGI is not a viable platform for typo, its just way to slow... On 9/26/05, Nicholas Van Weerdenburg wrote: > I was wondering why the default typo .htaccess has dispatch.fcgi as > the default, while the rails default has dispatch.cgi? > > Thanks, > Nick > -- > Nicholas Van Weerdenburg > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://jadedpixel.com - modern e-commerce software http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From vanweerd at gmail.com Mon Sep 26 15:54:09 2005 From: vanweerd at gmail.com (Nicholas Van Weerdenburg) Date: Mon, 26 Sep 2005 15:54:09 -0400 Subject: [typo] default .htaccess dispatch In-Reply-To: <9963c1bd05092607259853aba@mail.gmail.com> References: <632154f705092607212f323d3f@mail.gmail.com> <9963c1bd05092607259853aba@mail.gmail.com> Message-ID: <632154f7050926125410dd2ac3@mail.gmail.com> I suppose it's not viable really for any rails app. Wow, is it every slow. I was following the Rails book suggestion of Apache + CGI -> Apache + FastCGI -> Lighttpd + FastCGI for deployment configuration and didn't notice .httaccess has defaulting to FastCGI. I get the impression everyone is doing Lighttpd + FastCGI. Textdrive support actually told me that Apache + FastCGI wasn't recommended. Thanks, Nick On 9/26/05, Tobias Luetke wrote: > CGI is not a viable platform for typo, its just way to slow... > > On 9/26/05, Nicholas Van Weerdenburg wrote: > > I was wondering why the default typo .htaccess has dispatch.fcgi as > > the default, while the rails default has dispatch.cgi? > > > > Thanks, > > Nick > > -- > > Nicholas Van Weerdenburg > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > -- > Tobi > http://jadedpixel.com - modern e-commerce software > http://typo.leetsoft.com - Open source weblog engine > http://blog.leetsoft.com - Technical weblog > From william.a at carrel.org Mon Sep 26 16:13:46 2005 From: william.a at carrel.org (William A. Carrel) Date: Mon, 26 Sep 2005 13:13:46 -0700 Subject: [typo] default .htaccess dispatch In-Reply-To: <632154f7050926125410dd2ac3@mail.gmail.com> References: <632154f705092607212f323d3f@mail.gmail.com> <9963c1bd05092607259853aba@mail.gmail.com> <632154f7050926125410dd2ac3@mail.gmail.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sep 26, 2005, at 12:54 PM, Nicholas Van Weerdenburg wrote: > I get the impression everyone is doing Lighttpd + FastCGI. Textdrive > support actually told me that Apache + FastCGI wasn't recommended. Apache httpd + FastCGI works fine for me. Lighttpd has advantages in memory footprint, ease of configuration, and speed (but only 10-20% in the benchmarks I've seen). Apache has advantages in module support (dav_svn and security have been mentioned) and configuration flexibility (.htaccess files and various additional knobs to adjust). The right choice for you depends on what you're doing and what your requirements are. If you're just running typo and have no other demands lighttpd + fastcgi is probably your best choice right now. (Although people are saying good things about the SCGI interface that is under development which supports both lighttpd and Apache httpd...) __ wac -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iEYEARECAAYFAkM4Vn0ACgkQyWl2oUGFZkwqFACggoUdvAyXGDFJ1oeadUJggZSq E4kAniLosULdUU25URFtaowPUCUiw0qD =u3Dc -----END PGP SIGNATURE----- From akonsu at gmail.com Mon Sep 26 16:27:04 2005 From: akonsu at gmail.com (akonsu) Date: Mon, 26 Sep 2005 13:27:04 -0700 Subject: [typo] default .htaccess dispatch In-Reply-To: References: <632154f705092607212f323d3f@mail.gmail.com> <9963c1bd05092607259853aba@mail.gmail.com> <632154f7050926125410dd2ac3@mail.gmail.com> Message-ID: hello, this is probably not very related, but i still would like to ask this. it seems to me that cgi as well as fcgi approach to running anything does not allow people to have in-memory sessions. only file-based ones. unlike server-dependent API that can be used easily to implement in-memory sessions. is this correct? 2005/9/26, William A. Carrel : > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Sep 26, 2005, at 12:54 PM, Nicholas Van Weerdenburg wrote: > > > I get the impression everyone is doing Lighttpd + FastCGI. Textdrive > > support actually told me that Apache + FastCGI wasn't recommended. > > Apache httpd + FastCGI works fine for me. > > Lighttpd has advantages in memory footprint, ease of configuration, > and speed (but only 10-20% in the benchmarks I've seen). Apache has > advantages in module support (dav_svn and security have been > mentioned) and configuration flexibility (.htaccess files and various > additional knobs to adjust). > > The right choice for you depends on what you're doing and what your > requirements are. If you're just running typo and have no other > demands lighttpd + fastcgi is probably your best choice right now. > (Although people are saying good things about the SCGI interface that > is under development which supports both lighttpd and Apache httpd...) > __ > wac > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (Darwin) > > iEYEARECAAYFAkM4Vn0ACgkQyWl2oUGFZkwqFACggoUdvAyXGDFJ1oeadUJggZSq > E4kAniLosULdUU25URFtaowPUCUiw0qD > =u3Dc > -----END PGP SIGNATURE----- > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From justus at ryoohki.net Mon Sep 26 16:40:45 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Mon, 26 Sep 2005 14:40:45 -0600 Subject: [typo] default .htaccess dispatch In-Reply-To: References: <632154f705092607212f323d3f@mail.gmail.com> <9963c1bd05092607259853aba@mail.gmail.com> <632154f7050926125410dd2ac3@mail.gmail.com> Message-ID: <43385CCD.6060708@ryoohki.net> akonsu wrote: > this is probably not very related, but i still would like to ask this. > it seems to me that cgi as well as fcgi approach to running anything > does not allow people to have in-memory sessions. only file-based > ones. Why does it seem that fastcgi doesn't allow people to have in-memory sessions? From part 3 of "Understanding FastCGI Application Performance" on fastcgi.com: "FastCGI is designed to allow effective in-memory caching." From akonsu at gmail.com Mon Sep 26 16:50:26 2005 From: akonsu at gmail.com (akonsu) Date: Mon, 26 Sep 2005 13:50:26 -0700 Subject: [typo] default .htaccess dispatch In-Reply-To: <43385CCD.6060708@ryoohki.net> References: <632154f705092607212f323d3f@mail.gmail.com> <9963c1bd05092607259853aba@mail.gmail.com> <632154f7050926125410dd2ac3@mail.gmail.com> <43385CCD.6060708@ryoohki.net> Message-ID: well, i am not sure if in-memory caching is the same as in-memory sessions. the main idea behind fcgi is to run several processes each of which listens to a bi-directional socket and responds by sending a response to this socket when request arrives through this very same socket. the web server arbitrarily chooses an fcgi process to send a request to when the request arrives. sessions are implemented either using cookies or urls. fcgi processes' memories are separate from each other. if a session was created in one process, its contents has to be shared with the other processes because the next request for this session might come to another process. i see no way to share sessions between processes other than by using a database... 2005/9/26, Justus Pendleton : > akonsu wrote: > > this is probably not very related, but i still would like to ask this. > > it seems to me that cgi as well as fcgi approach to running anything > > does not allow people to have in-memory sessions. only file-based > > ones. > > Why does it seem that fastcgi doesn't allow people to have in-memory > sessions? From part 3 of "Understanding FastCGI Application > Performance" on fastcgi.com: > > "FastCGI is designed to allow effective in-memory caching." > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From justus at ryoohki.net Mon Sep 26 17:33:05 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Mon, 26 Sep 2005 15:33:05 -0600 Subject: [typo] default .htaccess dispatch In-Reply-To: References: <632154f705092607212f323d3f@mail.gmail.com> <9963c1bd05092607259853aba@mail.gmail.com> <632154f7050926125410dd2ac3@mail.gmail.com> <43385CCD.6060708@ryoohki.net> Message-ID: <43386911.6090506@ryoohki.net> akonsu wrote: > the web server arbitrarily chooses an fcgi process to send a > request to when the request arrives. No, it doesn't. (Or, at least, it doesn't have to.) From the same document: "With session affinity you run a pool of application processes and the Web server routes requests to individual processes based on any information contained in the request. For instance, the server can route according to the area of content that's been requested, or according to the user. The user might be identified by an application-specific session identifier, by the user ID contained in an Open Market Secure Link ticket, by the Basic Authentication user name, or whatever. Each process maintains its own cache, and session affinity ensures that each incoming request has access to the cache that will speed up processing the most." FastCGI also provides multithreading if you want to share process memory that way. From akonsu at gmail.com Mon Sep 26 17:36:37 2005 From: akonsu at gmail.com (akonsu) Date: Mon, 26 Sep 2005 14:36:37 -0700 Subject: [typo] default .htaccess dispatch In-Reply-To: <43386911.6090506@ryoohki.net> References: <632154f705092607212f323d3f@mail.gmail.com> <9963c1bd05092607259853aba@mail.gmail.com> <632154f7050926125410dd2ac3@mail.gmail.com> <43385CCD.6060708@ryoohki.net> <43386911.6090506@ryoohki.net> Message-ID: this is cool. thank you very much for your clarifications. konstantin 2005/9/26, Justus Pendleton : > akonsu wrote: > > the web server arbitrarily chooses an fcgi process to send a > > request to when the request arrives. > > No, it doesn't. (Or, at least, it doesn't have to.) From the same > document: > > "With session affinity you run a pool of application processes and the > Web server routes requests to individual processes based on any > information contained in the request. For instance, the server can route > according to the area of content that's been requested, or according to > the user. The user might be identified by an application-specific > session identifier, by the user ID contained in an Open Market Secure > Link ticket, by the Basic Authentication user name, or whatever. Each > process maintains its own cache, and session affinity ensures that each > incoming request has access to the cache that will speed up processing > the most." > > FastCGI also provides multithreading if you want to share process memory > that way. > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From lists at holsman.net Mon Sep 26 19:38:48 2005 From: lists at holsman.net (Ian Holsman) Date: Tue, 27 Sep 2005 09:38:48 +1000 Subject: [typo] new blog / routes.rb Q In-Reply-To: <433467FD.2000806@uwmike.com> References: <11a908be050923131070d151d8@mail.gmail.com> <433467FD.2000806@uwmike.com> Message-ID: <43388688.6080207@holsman.net> on this note, is it possible for typo/rails to ignore part of the path? for example http://leisurelearning.com.au/f/Buki+Toys/Developmental+Products/Near+And+Far/product_id=688 I'd like rails/typo to be able to ignore the parts between 'f/' and '/product_id'. from what the example you give below it seems like I can. regards Ian. Mike Purvis wrote: > Looks nice. A similar look to what I was trying to acheive > (http://uwmike.com), but I think you did a much better job. > > > By the way, if you don't like the /pages/x URLs, it's a reasonably easy > hack on /typo/config/routes.rb to make them... something else. Around > like 80, you'll see: > > map.connect 'pages/*name',:controller => 'articles', :action => 'view_page' > > Now, it's an easy thing to make "pages" something else, but you can also > just add a rule like > > map.connect 'bio',:controller => 'articles', :action => 'view_page', > :name='bio' > > That way "/pages/bio" and "/bio" will both be the same resource... > Anyhow, not a big deal, but it's kind of cool. (The > http://uwmike.com/about page on my site is like this...) > > Cheers. > > Mike > > > jeremy*pinnix wrote: > >> http://www.bartmillard.org/ >> >> _______________________________________________ >> Typo-list mailing list >> Typo-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> >> > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From mike at uwmike.com Mon Sep 26 20:15:54 2005 From: mike at uwmike.com (Michael Purvis) Date: Mon, 26 Sep 2005 20:15:54 -0400 Subject: [typo] new blog / routes.rb Q In-Reply-To: <43388688.6080207@holsman.net> References: <11a908be050923131070d151d8@mail.gmail.com> <433467FD.2000806@uwmike.com> <43388688.6080207@holsman.net> Message-ID: <43388F3A.8000709@uwmike.com> This looks like arbitrary-depth sub-categories, and I wouldn't know how to do that purely with routing.rb, unless you wanted a whole pile of really awkward rules. What's needed is a rule where the entire path after point X gets passed to the action as an array, and then the action can go about crunching it. Of course, if you want something extraordinarly goofy, you could put a mod_rewrite rule directly in your .htaccess which just converts all slashes to underscores, so that your mega-path: http://leisurelearning.com.au/f/Buki+Toys/Developmental+Products/Near+And+Far/688 Looks to Rails like: http://leisurelearning.com.au/f/Buki+Toys_Developmental+Products_Near+And+Far/688 However, I'm sure someone here would have a better solution. (And of course, remember that Typo is a blog engine, not a CMS. I don't know of any particularly interesting rails-CMS projects at the moment, outside of Amy Hoy's one... but that hasn't seen a release yet, just a screenshot) Mike Ian Holsman wrote: >on this note, is it possible for typo/rails to ignore part of the path? > >for example >http://leisurelearning.com.au/f/Buki+Toys/Developmental+Products/Near+And+Far/product_id=688 > >I'd like rails/typo to be able to ignore the parts between 'f/' and >'/product_id'. > >from what the example you give below it seems like I can. > >regards >Ian. > > >Mike Purvis wrote: > > >>Looks nice. A similar look to what I was trying to acheive >>(http://uwmike.com), but I think you did a much better job. >> >> >>By the way, if you don't like the /pages/x URLs, it's a reasonably easy >>hack on /typo/config/routes.rb to make them... something else. Around >>like 80, you'll see: >> >>map.connect 'pages/*name',:controller => 'articles', :action => 'view_page' >> >>Now, it's an easy thing to make "pages" something else, but you can also >>just add a rule like >> >>map.connect 'bio',:controller => 'articles', :action => 'view_page', >>:name='bio' >> >>That way "/pages/bio" and "/bio" will both be the same resource... >>Anyhow, not a big deal, but it's kind of cool. (The >>http://uwmike.com/about page on my site is like this...) >> >>Cheers. >> >>Mike >> >> >> -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.7/112 - Release Date: 26/09/2005 From lists at holsman.net Mon Sep 26 23:37:41 2005 From: lists at holsman.net (Ian Holsman) Date: Tue, 27 Sep 2005 13:37:41 +1000 Subject: [typo] new blog / routes.rb Q In-Reply-To: <43388F3A.8000709@uwmike.com> References: <11a908be050923131070d151d8@mail.gmail.com> <433467FD.2000806@uwmike.com> <43388688.6080207@holsman.net> <43388F3A.8000709@uwmike.com> Message-ID: <4338BE85.7040201@holsman.net> Michael Purvis wrote: > This looks like arbitrary-depth sub-categories, and I wouldn't know how > to do that purely with routing.rb, unless you wanted a whole pile of > really awkward rules. > > What's needed is a rule where the entire path after point X gets passed > to the action as an array, and then the action can go about crunching it. > > Of course, if you want something extraordinarly goofy, you could put a > mod_rewrite rule directly in your .htaccess which just converts all > slashes to underscores, so that your mega-path: > http://leisurelearning.com.au/f/Buki+Toys/Developmental+Products/Near+And+Far/688 > thats similar to what I do today.. but I just remove the stuff ;-) I was trying to avoid rewrite.. but it looks like you can't. > Looks to Rails like: > http://leisurelearning.com.au/f/Buki+Toys_Developmental+Products_Near+And+Far/688 > > However, I'm sure someone here would have a better solution. (And of > course, remember that Typo is a blog engine, not a CMS. I don't know of > any particularly interesting rails-CMS projects at the moment, outside > of Amy Hoy's one... but that hasn't seen a release yet, just a screenshot) > > Mike > I pinged Amy to see if she's gone any further with it (I hope so.. it looks nice). A IRC member pointed also me to http://handsgallery.com/ where typo is being used as a basic CMS... which looks perfect for what I need for a couple of other things... > > Ian Holsman wrote: > >> on this note, is it possible for typo/rails to ignore part of the path? >> >> for example >> http://leisurelearning.com.au/f/Buki+Toys/Developmental+Products/Near+And+Far/product_id=688 >> >> I'd like rails/typo to be able to ignore the parts between 'f/' and >> '/product_id'. >> >>from what the example you give below it seems like I can. >> regards >> Ian. >> >> >> Mike Purvis wrote: >> >> >>> Looks nice. A similar look to what I was trying to acheive >>> (http://uwmike.com), but I think you did a much better job. >>> >>> >>> By the way, if you don't like the /pages/x URLs, it's a reasonably easy >>> hack on /typo/config/routes.rb to make them... something else. Around >>> like 80, you'll see: >>> >>> map.connect 'pages/*name',:controller => 'articles', :action => 'view_page' >>> >>> Now, it's an easy thing to make "pages" something else, but you can also >>> just add a rule like >>> >>> map.connect 'bio',:controller => 'articles', :action => 'view_page', >>> :name='bio' >>> >>> That way "/pages/bio" and "/bio" will both be the same resource... >>> Anyhow, not a big deal, but it's kind of cool. (The >>> http://uwmike.com/about page on my site is like this...) >>> >>> Cheers. >>> >>> Mike >>> >>> >>> > > From pdcawley at bofh.org.uk Tue Sep 27 08:30:08 2005 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 27 Sep 2005 13:30:08 +0100 Subject: [typo] A matter of style Message-ID: I've been working on typo and I'm finding the style guidelines suggested on trac rather insufficient. Have we got definitive rulings how we deal with breaking long lines (for instance)? In the code I've been writing that has long arg lists I've been tending to do TextFilter.render_text_by_name \ text, filter_name, controller, filter_params, filter_html, text_holder What do we think? What's best practice? Or should we wait for the Pragmatic Friday on Ruby Best Practice and just use that style? Of course, I realise now I should probably change the declaration of that method to be something like. def self.render_text_by_name( \ text, filter_name, controller, optional_params = {} ) And then call it as: TextFilter.render_text_by_name \ text, filter_name, controller, :filter_html? => false, :text_holder => text_holder Hmm... the problem with that declaration format of course is that it's hard to see where the signature ends and the body begins. Thoughts? -- Piers Cawley http://www.bofh.org.uk/ From william.a at carrel.org Tue Sep 27 11:42:17 2005 From: william.a at carrel.org (William A. Carrel) Date: Tue, 27 Sep 2005 08:42:17 -0700 Subject: [typo] A matter of style In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sep 27, 2005, at 5:30 AM, Piers Cawley wrote: > I've been working on typo and I'm finding the style guidelines > suggested on > trac rather insufficient. Have we got definitive rulings how we > deal with > breaking long lines (for instance)? > I've found that a lot of the long lines aren't broken at all. Not my first choice, but then I like parenthesis around an arg list longer than one or two items as well. ;-) Just to back this up with facts... % grep -rE '^.{80,}$' . | wc -l ~/Projects/typo-local 3135 That's the number of lines with 80 or more characters on them in the typo source out of 36k or so total lines. But yes, if this is going to be the practice, it should be spelled out explicitly on the CodingStyle wiki page. __ wac -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iEYEARECAAYFAkM5aFoACgkQyWl2oUGFZkxoywCginG85a6Vp9d9U4yHvkv38+he IDoAn3cbzKFtOOkQaJcXBhZ8DVAfxqug =p2lg -----END PGP SIGNATURE----- From pdcawley at bofh.org.uk Tue Sep 27 13:13:29 2005 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 27 Sep 2005 18:13:29 +0100 Subject: [typo] A matter of style In-Reply-To: (William A. Carrel's message of "Tue, 27 Sep 2005 08:42:17 -0700") References: Message-ID: "William A. Carrel" writes: > On Sep 27, 2005, at 5:30 AM, Piers Cawley wrote: > >> I've been working on typo and I'm finding the style guidelines >> suggested on >> trac rather insufficient. Have we got definitive rulings how we >> deal with >> breaking long lines (for instance)? >> > > I've found that a lot of the long lines aren't broken at all. Not my > first choice, but then I like parenthesis around an arg list longer > than one or two items as well. ;-) Yeah, but then I like rectangular arg blocks when they're parenthesized object.method(arg1, arg2, arg3, arg4, arg5, arg6) Which doesn't do much for shortening lines. object \ .method(arg1, arg2, arg3, arg4, arg5, arg6) Might be the way forward (and it echo's Kent Beck's Smalltalk Best Practice patterns for indenting, which doesn't hurt). > Just to back this up with facts... > % grep -rE '^.{80,}$' . | wc -l ~/Projects/typo-local > 3135 > That's the number of lines with 80 or more characters on them in the > typo source out of 36k or so total lines. Yipe. So that's nearly 10%. I wonder what fixing that'll do to rake stats? > But yes, if this is going to be the practice, it should be spelled > out explicitly on the CodingStyle wiki page. Indeed. My gut feeling is a 'soft' 80 character margin is the way to go. I don't suppose there's a RubyTidy akin to PerlTidy? Or can GNU indent handle Ruby source? -- Piers Cawley http://www.bofh.org.uk/ From mike at uwmike.com Tue Sep 27 13:33:22 2005 From: mike at uwmike.com (Mike Purvis) Date: Tue, 27 Sep 2005 13:33:22 -0400 Subject: [typo] Adding Contact Form Message-ID: <43398262.1090407@uwmike.com> This may be more of a general Rails question, but hopefully it's relevant to other novice Typo users. How can I make a contact form on my blog? I generated a Mailer, but I really haven't a clue how to use it (the documentation boggles my mind). I also created a "Contact" controller (and added a corresponding "index.rhtml" view): class ContactController < ApplicationController layout :theme_layout def index @page_title = "Contact" render :action => "index" end end But I still get this kind of stuff going on: |undefined local variable or method `page_title' for # So yeah, should be pretty obvious to folks that I don't know what I'm doing at all. I know I could do this in about 10 seconds with the "Pages" functionality and some PHP (sooo tempting), but I need to expose myself to a little more Rails. Any help, or pointers to relevant source documentation would be appreciated. Mike ||| || || From scott at sigkill.org Tue Sep 27 13:44:02 2005 From: scott at sigkill.org (Scott Laird) Date: Tue, 27 Sep 2005 10:44:02 -0700 Subject: [typo] A matter of style In-Reply-To: References: Message-ID: <218DBF55-D307-43A2-B5D7-D51D7F1218D3@sigkill.org> On Sep 27, 2005, at 10:13 AM, Piers Cawley wrote: > > Yeah, but then I like rectangular arg blocks when they're > parenthesized > > object.method(arg1, arg2, arg3, > arg4, arg5, arg6) > > Which doesn't do much for shortening lines. > > object \ > .method(arg1, arg2, arg3, arg4, arg5, arg6) I hate trailing backslashes. This looks cleaner to me: object. method(arg1, arg2, arg3, arg4, arg5, arg6). anothermethod(). somethingelse I see how this could be confusing to some people, though. Scott From justus at ryoohki.net Tue Sep 27 16:23:27 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Tue, 27 Sep 2005 14:23:27 -0600 Subject: [typo] A matter of style In-Reply-To: References: Message-ID: <4339AA3F.50008@ryoohki.net> As another unsolicited opinion.. :) I have a big monitor. Every programmer I know has a big monitor. Even laptops have big screens and high resolutions. I have been stuck with 80 columns since my VT-220 days. I like everyone on one line. If the line is so unbearably long that I can't stand to read it on a 17-18" monitor then I refactor the code. Justus From akonsu at gmail.com Tue Sep 27 16:35:21 2005 From: akonsu at gmail.com (akonsu) Date: Tue, 27 Sep 2005 13:35:21 -0700 Subject: [typo] A matter of style In-Reply-To: <4339AA3F.50008@ryoohki.net> References: <4339AA3F.50008@ryoohki.net> Message-ID: completely agree with code refactoring. good code does not need long lines. ;-) konstantin 2005/9/27, Justus Pendleton : > As another unsolicited opinion.. :) > > I have a big monitor. Every programmer I know has a big monitor. Even > laptops have big screens and high resolutions. I have been stuck with > 80 columns since my VT-220 days. I like everyone on one line. If the > line is so unbearably long that I can't stand to read it on a 17-18" > monitor then I refactor the code. > > Justus > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From vanweerd at gmail.com Tue Sep 27 17:11:44 2005 From: vanweerd at gmail.com (Nicholas Van Weerdenburg) Date: Tue, 27 Sep 2005 17:11:44 -0400 Subject: [typo] A matter of style In-Reply-To: <218DBF55-D307-43A2-B5D7-D51D7F1218D3@sigkill.org> References: <218DBF55-D307-43A2-B5D7-D51D7F1218D3@sigkill.org> Message-ID: <632154f705092714115dfd2efe@mail.gmail.com> On 9/27/05, Scott Laird wrote: > > On Sep 27, 2005, at 10:13 AM, Piers Cawley wrote: > > > > Yeah, but then I like rectangular arg blocks when they're > > parenthesized > > > > object.method(arg1, arg2, arg3, > > arg4, arg5, arg6) > > > > Which doesn't do much for shortening lines. > > > > object \ > > .method(arg1, arg2, arg3, arg4, arg5, arg6) > > I hate trailing backslashes. This looks cleaner to me: > > object. > method(arg1, arg2, arg3, arg4, arg5, arg6). > anothermethod(). > somethingelse > > I see how this could be confusing to some people, though. > > > Scott > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > I'm quite fond of the style in Rails book. e.g. find(:all, :conditions => "asfasdf", :order => "asdfasdf") validates_format_of :image_url, :with => ....., :message => .... -- Nicholas Van Weerdenburg From vanweerd at gmail.com Tue Sep 27 17:13:31 2005 From: vanweerd at gmail.com (Nicholas Van Weerdenburg) Date: Tue, 27 Sep 2005 17:13:31 -0400 Subject: [typo] A matter of style In-Reply-To: <4339AA3F.50008@ryoohki.net> References: <4339AA3F.50008@ryoohki.net> Message-ID: <632154f705092714131b38c29d@mail.gmail.com> On 9/27/05, Justus Pendleton wrote: > As another unsolicited opinion.. :) > > I have a big monitor. Every programmer I know has a big monitor. Even > laptops have big screens and high resolutions. I have been stuck with > 80 columns since my VT-220 days. I like everyone on one line. If the > line is so unbearably long that I can't stand to read it on a 17-18" > monitor then I refactor the code. > > Justus > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > I find it harder to read one big line, and I like to print code (call me a dinosaur).. -- Nicholas Van Weerdenburg From pdcawley at bofh.org.uk Tue Sep 27 18:33:57 2005 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 27 Sep 2005 23:33:57 +0100 Subject: [typo] A matter of style In-Reply-To: <218DBF55-D307-43A2-B5D7-D51D7F1218D3@sigkill.org> (Scott Laird's message of "Tue, 27 Sep 2005 10:44:02 -0700") References: <218DBF55-D307-43A2-B5D7-D51D7F1218D3@sigkill.org> Message-ID: Scott Laird writes: > On Sep 27, 2005, at 10:13 AM, Piers Cawley wrote: >> >> Yeah, but then I like rectangular arg blocks when they're >> parenthesized >> >> object.method(arg1, arg2, arg3, >> arg4, arg5, arg6) >> >> Which doesn't do much for shortening lines. >> >> object \ >> .method(arg1, arg2, arg3, arg4, arg5, arg6) > > I hate trailing backslashes. This looks cleaner to me: > > object. > method(arg1, arg2, arg3, arg4, arg5, arg6). > anothermethod(). > somethingelse > > I see how this could be confusing to some people, though. that . doesn't really distinguish itself does it? The backslash has the benefit of being rather more visible. Plus, on first reading, I thought 'anothermethod' was one of method's arguments. -- Piers Cawley http://www.bofh.org.uk/ From trejkaz at trypticon.org Tue Sep 27 21:20:03 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Wed, 28 Sep 2005 11:20:03 +1000 (EST) Subject: [typo] A matter of style In-Reply-To: <632154f705092714115dfd2efe@mail.gmail.com> References: <218DBF55-D307-43A2-B5D7-D51D7F1218D3@sigkill.org> <632154f705092714115dfd2efe@mail.gmail.com> Message-ID: <4677.210.50.55.251.1127870403.squirrel@home.trypticon.org> Nicholas Van Weerdenburg wrote: > I'm quite fond of the style in Rails book. > > e.g. > find(:all, > :conditions => "asfasdf", > :order => "asdfasdf") > > > validates_format_of :image_url, > :with => ....., > :message => .... ...though it has to be said that lining up the right hand side would do a lot for the neatness. :-) TX From trejkaz at trypticon.org Tue Sep 27 21:26:39 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Wed, 28 Sep 2005 11:26:39 +1000 (EST) Subject: [typo] A matter of style In-Reply-To: <4339AA3F.50008@ryoohki.net> References: <4339AA3F.50008@ryoohki.net> Message-ID: <4698.210.50.55.251.1127870799.squirrel@home.trypticon.org> > As another unsolicited opinion.. :) > > I have a big monitor. Every programmer I know has a big monitor. Even > laptops have big screens and high resolutions. I have been stuck with > 80 columns since my VT-220 days. I like everyone on one line. If the > line is so unbearably long that I can't stand to read it on a 17-18" > monitor then I refactor the code. As a basis for comparison, IntelliJ IDEA (which I use at work when forced to code Java) defaults to a 120-line margin. Granted, Java is a LOT more verbose so it needs more space... even with that 120-line margin we still have wrapping lines. I guess there must still be some VT-220 users out there, to bother restricting oneself down to 80. :-) TX From kevin at sb.org Wed Sep 28 00:44:44 2005 From: kevin at sb.org (Kevin Ballard) Date: Wed, 28 Sep 2005 00:44:44 -0400 Subject: [typo] A matter of style In-Reply-To: <4698.210.50.55.251.1127870799.squirrel@home.trypticon.org> References: <4339AA3F.50008@ryoohki.net> <4698.210.50.55.251.1127870799.squirrel@home.trypticon.org> Message-ID: <6D40B85E-DF52-4C5C-ABC1-24FEB867BB5C@sb.org> Hey, I often view code in a terminal window, which defaults to 80 columns, so I like to stick to an 80-column wrap in any code I think might end up being viewed/edited in the Terminal. On Sep 27, 2005, at 9:26 PM, Trejkaz wrote: > I guess there must still be some VT-220 users out there, to bother > restricting oneself down to 80. :-) -- Kevin Ballard kevin at 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/20050928/fe5cc8e2/smime.bin From ralbarazi at gmail.com Wed Sep 28 07:39:54 2005 From: ralbarazi at gmail.com (Rida Al Barazi) Date: Wed, 28 Sep 2005 15:39:54 +0400 Subject: [typo] Typo and FastCGI on Plesk VPS Message-ID: <01bb01c5c421$5dc2a790$8d50a4d9@redshift> Hi I already installed typo and it's working fine so far on CGI (except for the speed, which become better after cashing the files). I tried to switch to fcgi but I was getting this error: [Wed Sep 28 10:42:29 2005] [alert] [client X.X.X.X] (2)No such file or directory: FastCGI: failed to connect to (dynamic) server "/home/httpd/vhosts/amidship.com/ruby/blog/public/dispatch.fcgi": something is seriously wrong, any chance the socket/named_pipe directory was removed?, see the FastCgiIpcDir directive, referer: http://www.amidship.com/admin [Wed Sep 28 10:42:29 2005] [error] [client X.X.X.X] FastCGI: incomplete headers (0 bytes) received from server "/home/httpd/vhosts/amidship.com/ruby/blog/public/dispatch.fcgi", referer: http://www.amidship.com/admin after checking online I followed what's in the link: http://wiki.rubyonrails.com/rails/pages/HowtoSetupChrootedApacheWithRailsOnOpenBSD But I got another error: [Wed Sep 28 11:04:37 2005] [error] [client X.X.X.X] FastCGI: comm with (dynamic) server "/home/httpd/vhosts/amidship.com/ruby/blog/public/dispatch.fcgi" aborted: (first read) idle timeout (30 sec) [Wed Sep 28 11:04:37 2005] [error] [client X.X.X.X] FastCGI: incomplete headers (0 bytes) received from server "/home/httpd/vhosts/amidship.com/ruby/blog/public/dispatch.fcgi" I tried to copy the libraries as mentioned in the above link, but I couldn't find all of them, specifically the ld.so file. Any help will be highly appreciated.. FYI I'm running on Plesk VPS server on Linux OS. Another issue I'm facing also. and this is completely new and I didn't recognize what I did wrong so it's happening, if I add any article or do any change in the admin section, I'm getting Forbidden error message that won't go unless I chmod the public directory to 755 , but everytime I do changed I have to chmod again. any idea why this is happening? Thanks in advance. Rida -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050928/b02fc6c2/attachment-0001.htm From justus at ryoohki.net Wed Sep 28 09:13:27 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Wed, 28 Sep 2005 07:13:27 -0600 Subject: [typo] Typo and FastCGI on Plesk VPS In-Reply-To: <01bb01c5c421$5dc2a790$8d50a4d9@redshift> References: <01bb01c5c421$5dc2a790$8d50a4d9@redshift> Message-ID: <433A96F7.7040600@ryoohki.net> Rida Al Barazi wrote: > I tried to copy the libraries as mentioned in the above link, but I > couldn't find all of them, specifically the ld.so file. The link you mention is about setting up chrooted Apache on OpenBSD. You say you're running linux, so files will be in different places. On my box I have /lib/ld-linux.so.2 which points to /lib/ld-2.3.2.so as my dynamic loader. Justus From dlamotte at bamboo.lu Wed Sep 28 10:11:29 2005 From: dlamotte at bamboo.lu (Denis Lamotte) Date: Wed, 28 Sep 2005 16:11:29 +0200 Subject: [typo] Adding Contact Form In-Reply-To: <43398262.1090407@uwmike.com> References: <43398262.1090407@uwmike.com> Message-ID: <433AA491.1070908@bamboo.lu> The method page_title is defined in the helper of article. Copy the definition in your helper will resolve the problem. Typo is not simplest rails app to begin with if you want to learn rails. Lanfeust Mike Purvis wrote: > This may be more of a general Rails question, but hopefully it's > relevant to other novice Typo users. > > How can I make a contact form on my blog? I generated a Mailer, but I > really haven't a clue how to use it (the documentation boggles my mind). > > I also created a "Contact" controller (and added a corresponding > "index.rhtml" view): > > class ContactController < ApplicationController > layout :theme_layout > > def index > @page_title = "Contact" > render :action => "index" > end > end > > But I still get this kind of stuff going on: > |undefined local variable or method `page_title' for > # > > So yeah, should be pretty obvious to folks that I don't know what I'm > doing at all. I know I could do this in about 10 seconds with the > "Pages" functionality and some PHP (sooo tempting), but I need to expose > myself to a little more Rails. > > Any help, or pointers to relevant source documentation would be appreciated. > > Mike > ||| > > || > > || > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From mike at uwmike.com Wed Sep 28 11:33:15 2005 From: mike at uwmike.com (Mike Purvis) Date: Wed, 28 Sep 2005 11:33:15 -0400 Subject: [typo] Adding Contact Form In-Reply-To: <433AA491.1070908@bamboo.lu> References: <43398262.1090407@uwmike.com> <433AA491.1070908@bamboo.lu> Message-ID: <433AB7BB.7020508@uwmike.com> Denis Lamotte wrote: >The method page_title is defined in the helper of article. >Copy the definition in your helper will resolve the problem. > > This is perfect, thanks. I also needed to reset the style, but now it's coming up fine. I'll try to look up some documentation for Mailer. And once it's working, I'll write up a blurb for others... might have to ask one or two more questions first, though. >Typo is not simplest rails app to begin with if you want to learn rails. > > Nevertheless, it's one written by people who know what they're doing, and it demonstrates the "right way" to use a lot of things that get tossed around ultra-basic tutorials. (partials and views, for instance) As far as I can tell, the only mature Rails open-source apps out there are Instiki and Typo... not exactly a plethora of code for those of us that need to learn by example. Perhaps there's a list somewhere that I missed. It sure would help to have more material which bridges the gap between "Hey check out scaffolding" and actually accomplishing something useful. (And doing it the way it would actually be done, not just the quickie-demo way...) /rant Mike From ralbarazi at gmail.com Wed Sep 28 13:38:36 2005 From: ralbarazi at gmail.com (Rida Al Barazi) Date: Wed, 28 Sep 2005 21:38:36 +0400 Subject: [typo] Typo and FastCGI on Plesk VPS References: <01bb01c5c421$5dc2a790$8d50a4d9@redshift> <433A96F7.7040600@ryoohki.net> Message-ID: <01fd01c5c453$792a1d60$8d50a4d9@redshift> > The link you mention is about setting up chrooted Apache on OpenBSD. > You say you're running linux, so files will be in different places. On > my box I have /lib/ld-linux.so.2 which points to /lib/ld-2.3.2.so as my > dynamic loader. Thanks for the tip Justus, I already found the files in /home/httpd/vhosts/chroot/lib and copied them but still getting the same error.. Can anyone help regarding the permission error also please? Thanks Rida From akonsu at gmail.com Wed Sep 28 15:18:40 2005 From: akonsu at gmail.com (akonsu) Date: Wed, 28 Sep 2005 12:18:40 -0700 Subject: [typo] Typo and FastCGI on Plesk VPS In-Reply-To: <01fd01c5c453$792a1d60$8d50a4d9@redshift> References: <01bb01c5c421$5dc2a790$8d50a4d9@redshift> <433A96F7.7040600@ryoohki.net> <01fd01c5c453$792a1d60$8d50a4d9@redshift> Message-ID: hello, does fcgi work on your server in general? try this in your dispatch.fcgi: #!/usr/bin/ruby require "fcgi" FCGI.each {|request| out = request.out out.print "Content-Type: text/plain\r\n\r\n" out.print Time.now.to_s request.finish } does it work? 2005/9/28, Rida Al Barazi : > > The link you mention is about setting up chrooted Apache on OpenBSD. > > You say you're running linux, so files will be in different places. On > > my box I have /lib/ld-linux.so.2 which points to /lib/ld-2.3.2.so as my > > dynamic loader. > > Thanks for the tip Justus, > > I already found the files in /home/httpd/vhosts/chroot/lib and copied them > but still getting the same error.. > > Can anyone help regarding the permission error also please? > > Thanks > Rida > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From pdcawley at bofh.org.uk Wed Sep 28 16:22:46 2005 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Wed, 28 Sep 2005 21:22:46 +0100 Subject: [typo] A matter of style In-Reply-To: <6D40B85E-DF52-4C5C-ABC1-24FEB867BB5C@sb.org> (Kevin Ballard's message of "Wed, 28 Sep 2005 00:44:44 -0400") References: <4339AA3F.50008@ryoohki.net> <4698.210.50.55.251.1127870799.squirrel@home.trypticon.org> <6D40B85E-DF52-4C5C-ABC1-24FEB867BB5C@sb.org> Message-ID: Kevin Ballard writes: > Hey, I often view code in a terminal window, which defaults to 80 columns, so > I like to stick to an 80-column wrap in any code I think might end up being > viewed/edited in the Terminal. I reckon that, if I keep hitting the 80 column margin several times in a method, it's probably time to refactor. Plus, if you stick to an 80 column margin, it makes tools like FileMerge even more useful than they already are because it's easy to fit two versions of the same file next to each otehr without constantly having to scroll to the end of the line. -- Piers Cawley http://www.bofh.org.uk/ From ralbarazi at gmail.com Wed Sep 28 16:26:52 2005 From: ralbarazi at gmail.com (Rida Al Barazi) Date: Thu, 29 Sep 2005 00:26:52 +0400 Subject: [typo] Typo and FastCGI on Plesk VPS References: <01bb01c5c421$5dc2a790$8d50a4d9@redshift><433A96F7.7040600@ryoohki.net><01fd01c5c453$792a1d60$8d50a4d9@redshift> Message-ID: <021101c5c46a$fbd3b3e0$8d50a4d9@redshift> ----- Original Message ----- From: "akonsu" To: Sent: Wednesday, September 28, 2005 11:18 PM Subject: Re: [typo] Typo and FastCGI on Plesk VPS > hello, > > does fcgi work on your server in general? > > try this in your dispatch.fcgi: > > #!/usr/bin/ruby > require "fcgi" > > FCGI.each {|request| > out = request.out > out.print "Content-Type: text/plain\r\n\r\n" > out.print Time.now.to_s > request.finish > } > > does it work? > Yes I tried a test rails application and set it to use fcgi as rubygems as per rubyonrails website, and it's working fine. I tried to place the code you gave me but without any sucess.. or change in the output, I tried many cases.. but the output still working pretty fine in my test app, and showing the same error in type.. From akonsu at gmail.com Wed Sep 28 17:03:49 2005 From: akonsu at gmail.com (akonsu) Date: Wed, 28 Sep 2005 14:03:49 -0700 Subject: [typo] Typo and FastCGI on Plesk VPS In-Reply-To: <021101c5c46a$fbd3b3e0$8d50a4d9@redshift> References: <01bb01c5c421$5dc2a790$8d50a4d9@redshift> <433A96F7.7040600@ryoohki.net> <01fd01c5c453$792a1d60$8d50a4d9@redshift> <021101c5c46a$fbd3b3e0$8d50a4d9@redshift> Message-ID: is your test application invoked through fast cgi? were you able to run typo using plain cgi? 2005/9/28, Rida Al Barazi : > ----- Original Message ----- > From: "akonsu" > To: > Sent: Wednesday, September 28, 2005 11:18 PM > Subject: Re: [typo] Typo and FastCGI on Plesk VPS > > > > hello, > > > > does fcgi work on your server in general? > > > > try this in your dispatch.fcgi: > > > > #!/usr/bin/ruby > > require "fcgi" > > > > FCGI.each {|request| > > out = request.out > > out.print "Content-Type: text/plain\r\n\r\n" > > out.print Time.now.to_s > > request.finish > > } > > > > does it work? > > > > > Yes I tried a test rails application and set it to use fcgi as rubygems as > per rubyonrails website, and it's working fine. > > I tried to place the code you gave me but without any sucess.. or change in > the output, I tried many cases.. but the output still working pretty fine in > my test app, and showing the same error in type.. > > From ralbarazi at gmail.com Wed Sep 28 17:07:42 2005 From: ralbarazi at gmail.com (Rida Al Barazi) Date: Thu, 29 Sep 2005 01:07:42 +0400 Subject: [typo] Typo and FastCGI on Plesk VPS References: <01bb01c5c421$5dc2a790$8d50a4d9@redshift> <433A96F7.7040600@ryoohki.net> <01fd01c5c453$792a1d60$8d50a4d9@redshift> <021101c5c46a$fbd3b3e0$8d50a4d9@redshift> Message-ID: <023101c5c470$b0778010$8d50a4d9@redshift> ----- Original Message ----- From: "akonsu" To: "Rida Al Barazi" Cc: Sent: Thursday, September 29, 2005 1:03 AM Subject: Re: [typo] Typo and FastCGI on Plesk VPS > is your test application invoked through fast cgi? Yes, My test application is working through fcgi > were you able to run typo using plain cgi? Yes, and this is what I'm doing now, I'm using my website as typo cgi .. but it's slow that's why I want it to work as fcgi From akonsu at gmail.com Wed Sep 28 17:11:52 2005 From: akonsu at gmail.com (akonsu) Date: Wed, 28 Sep 2005 14:11:52 -0700 Subject: [typo] Typo and FastCGI on Plesk VPS In-Reply-To: <023101c5c470$b0778010$8d50a4d9@redshift> References: <01bb01c5c421$5dc2a790$8d50a4d9@redshift> <433A96F7.7040600@ryoohki.net> <01fd01c5c453$792a1d60$8d50a4d9@redshift> <021101c5c46a$fbd3b3e0$8d50a4d9@redshift> <023101c5c470$b0778010$8d50a4d9@redshift> Message-ID: ok, so fcgi is known to work, the typo is known to work too. then it seems that there is a problem with dispatch.fcgi for typo. what happens if you run dispatch.fcgi directly from the command line? 2005/9/28, Rida Al Barazi : > > ----- Original Message ----- > From: "akonsu" > To: "Rida Al Barazi" > Cc: > Sent: Thursday, September 29, 2005 1:03 AM > Subject: Re: [typo] Typo and FastCGI on Plesk VPS > > > > is your test application invoked through fast cgi? > Yes, My test application is working through fcgi > > > were you able to run typo using plain cgi? > Yes, and this is what I'm doing now, I'm using my website as typo cgi .. but > it's slow that's why I want it to work as fcgi > > From ralbarazi at gmail.com Wed Sep 28 17:49:53 2005 From: ralbarazi at gmail.com (Rida Al Barazi) Date: Thu, 29 Sep 2005 01:49:53 +0400 Subject: [typo] Typo and FastCGI on Plesk VPS References: <01bb01c5c421$5dc2a790$8d50a4d9@redshift> <433A96F7.7040600@ryoohki.net> <01fd01c5c453$792a1d60$8d50a4d9@redshift> <021101c5c46a$fbd3b3e0$8d50a4d9@redshift> <023101c5c470$b0778010$8d50a4d9@redshift> Message-ID: <023c01c5c476$949847c0$8d50a4d9@redshift> ----- Original Message ----- From: "akonsu" To: "Rida Al Barazi" Cc: Sent: Thursday, September 29, 2005 1:11 AM Subject: Re: [typo] Typo and FastCGI on Plesk VPS > ok, so fcgi is known to work, the typo is known to work too. then it > seems that there is a problem with dispatch.fcgi for typo. what > happens if you run dispatch.fcgi directly from the command line? Here is what I'm getting: [root at vps public]# ruby dispatch.fcgi Content-Type: text/html Set-Cookie: _session_id=cb77a148a16f757be9109b47e074fbe1; path=/ Status: 200 OK Cache-Control: no-cache

Application error (Rails)

and in log/fastcgi.crash.log: # Logfile created on Wed Sep 28 21:43:10 GMT 2005 by logger.rb/1.5.2.4 [28/Sep/2005:21:43:10 :: 28381] starting [28/Sep/2005:21:43:11 :: 28381] terminated gracefully and in log/production.log: Processing Base#index (for at Wed Sep 28 21:43:11 GMT 2005) Parameters: {"action"=>"index", "controller"=>"articles", "page"=>nil} ActionView::TemplateError (undefined method `+' for nil:NilClass) on line #13 of /../.$ 10: 11: 12: <%= meta_tag 'ICBM', config_value(:geourl_location) %> 13: 14: <%= auto_discovery_link_tag :rss, :controller => 'xml', :action => 'rss' %> 15: <%= stylesheet_link_tag "/stylesheets/theme/amidshipPage" %> 16: <%= 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):13: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_benc$ /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_pub$ /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!' dispatch.fcgi:26 From akonsu at gmail.com Wed Sep 28 17:59:37 2005 From: akonsu at gmail.com (akonsu) Date: Wed, 28 Sep 2005 14:59:37 -0700 Subject: [typo] Typo and FastCGI on Plesk VPS In-Reply-To: <023c01c5c476$949847c0$8d50a4d9@redshift> References: <01bb01c5c421$5dc2a790$8d50a4d9@redshift> <433A96F7.7040600@ryoohki.net> <01fd01c5c453$792a1d60$8d50a4d9@redshift> <021101c5c46a$fbd3b3e0$8d50a4d9@redshift> <023101c5c470$b0778010$8d50a4d9@redshift> <023c01c5c476$949847c0$8d50a4d9@redshift> Message-ID: sorry, i have no idea about this one. one other thing that i would try is to make sure typo uses the installed rails instead of the ones that come in the vendors folder. but i do not think this matters. also, just to make sure, try to run dispatch.fcgi by itself. without running ruby explicitly. just to check if it is runnable. sorry, cannot help you anymore. konstantin 2005/9/28, Rida Al Barazi : > ----- Original Message ----- > From: "akonsu" > To: "Rida Al Barazi" > Cc: > Sent: Thursday, September 29, 2005 1:11 AM > Subject: Re: [typo] Typo and FastCGI on Plesk VPS > > > > ok, so fcgi is known to work, the typo is known to work too. then it > > seems that there is a problem with dispatch.fcgi for typo. what > > happens if you run dispatch.fcgi directly from the command line? > > Here is what I'm getting: > > [root at vps public]# ruby dispatch.fcgi > Content-Type: text/html > Set-Cookie: _session_id=cb77a148a16f757be9109b47e074fbe1; path=/ > Status: 200 OK > Cache-Control: no-cache > >

Application error (Rails)

> > > and in log/fastcgi.crash.log: > # Logfile created on Wed Sep 28 21:43:10 GMT 2005 by logger.rb/1.5.2.4 > [28/Sep/2005:21:43:10 :: 28381] starting > [28/Sep/2005:21:43:11 :: 28381] terminated gracefully > > and in log/production.log: > Processing Base#index (for at Wed Sep 28 21:43:11 GMT 2005) > Parameters: {"action"=>"index", "controller"=>"articles", "page"=>nil} > > > ActionView::TemplateError (undefined method `+' for nil:NilClass) on line > #13 of /../.$ > 10: > 11: > 12: <%= meta_tag 'ICBM', config_value(:geourl_location) %> > 13: > 14: <%= auto_discovery_link_tag :rss, :controller => 'xml', :action => > 'rss' %> > 15: <%= stylesheet_link_tag "/stylesheets/theme/amidshipPage" %> > 16: <%= 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):13: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_benc$ > /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_pub$ > /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!' > dispatch.fcgi:26 > > > > From dag at sonsorol.org Wed Sep 28 18:38:54 2005 From: dag at sonsorol.org (Chris Dagdigian) Date: Wed, 28 Sep 2005 18:38:54 -0400 Subject: [typo] typo-2.5.5 user wondering about running off of SVN Message-ID: Hello, I'm using typo-2.5.5 running on lighttpd/fastcgi to power a niche grid computing blog (http://gridengine.info). Both ruby and rails are new to me so I've got a lot of catching up to do. So far things are running great. I've been trawling the typo mailing list archives and have one basic question ... It seems that many people are happily running code directly off of the SVN repository. Am I missing any new features or abilities that are in SVN but not in the 2.5.5 tarball? Should I switch over to a SVN checkout? What do the majority of people use? Regards, Chris From kevwil at gmail.com Wed Sep 28 18:50:46 2005 From: kevwil at gmail.com (Kevin Williams) Date: Wed, 28 Sep 2005 16:50:46 -0600 Subject: [typo] typo-2.5.5 user wondering about running off of SVN In-Reply-To: References: Message-ID: <683a886f05092815501328b27a@mail.gmail.com> I use the tagged url for the release, i.e.:svn://leetsoft.com/typo/tags/release_2_5_5. Because Ruby is not acompiled language in the way Java, .NET, or C++ would be, the sourcemay well be the same as the released package. It seems to be this waywith Typo. I like this because I can "svn switch [new_url]" to get thenew version, and Subversion won't blow away my changes (database.yml,etc). I'm more comfortable with "svn" than "tar". You should get the sameresult from the tarball if you are more comfortable with tar. On 9/28/05, Chris Dagdigian wrote:>> Hello,>> I'm using typo-2.5.5 running on lighttpd/fastcgi to power a niche> grid computing blog (http://gridengine.info). Both ruby and rails are> new to me so I've got a lot of catching up to do.>> So far things are running great. I've been trawling the typo mailing> list archives and have one basic question ...>> It seems that many people are happily running code directly off of> the SVN repository. Am I missing any new features or abilities that> are in SVN but not in the 2.5.5 tarball? Should I switch over to a> SVN checkout? What do the majority of people use?>> Regards,> Chris>>>>>> _______________________________________________> Typo-list mailing list> Typo-list at rubyforge.org> http://rubyforge.org/mailman/listinfo/typo-list> --Cheers, Kevin From justus at ryoohki.net Wed Sep 28 18:58:11 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Wed, 28 Sep 2005 16:58:11 -0600 Subject: [typo] typo-2.5.5 user wondering about running off of SVN In-Reply-To: References: Message-ID: <433B2003.7020907@ryoohki.net> Chris Dagdigian wrote: > Am I missing any new features or abilities that are in SVN but not in > the 2.5.5 tarball? Looking over the trac timeline[1] some of the things I see are text filters, tags, gravatar support, audioscrobbler sidebar, per-category and per-tag feeds, Atom 1.0, pinging sites (e.g. Technorati) on updates, turning off non-AJAX commenting (an anti-spam measure, I think), and others. > Should I switch over to a SVN checkout? Depends on whether you care about any of those things, I guess. Typo's developers do a good job of not breaking SVN; I've never had any problems running off of it. [1]: http://typo.leetsoft.com/trac/timeline?from=09%2F28%2F05&daysback=55&changeset=on From edavis10 at gmail.com Wed Sep 28 19:52:39 2005 From: edavis10 at gmail.com (Eric Davis) Date: Wed, 28 Sep 2005 16:52:39 -0700 Subject: [typo] typo-2.5.5 user wondering about running off of SVN In-Reply-To: <433B2003.7020907@ryoohki.net> References: <433B2003.7020907@ryoohki.net> Message-ID: <8349FF4D-BFCD-45F2-B529-A9241882E88F@gmail.com> Chris Dagdigian wrote: >> Should I switch over to a SVN checkout? One thing I did before running the latest copy was to do a SVN checkout for the tagged release. For example checkout rev 650 would be the same as downloading 2.5.6. It is also good in case there is a simple bug that gets fixed as you can upgrade to it easily. As far as stability, I think Typo Trunk runs better than most releases. Eric Davis edavis10 at gmail.com =-=-= v2sw5Yhw5ln3pr6Ock4ma3u6MLw3m7l6DiJe6t3b8Oen5g5Ma21s5Mr2p6 hackerkey.com From paul.vanovertveld at gmail.com Thu Sep 29 04:41:59 2005 From: paul.vanovertveld at gmail.com (Paul Vanovertveld) Date: Thu, 29 Sep 2005 10:41:59 +0200 Subject: [typo] admin not working anymore after switching to current Message-ID: <4286e81b050929014173d6deb2@mail.gmail.com> Hello, I recently converted my wordpress blog into a glamours typo blog. Everything went fine. But after reading about the stability of the current tree I was tempted to switch to current from the svn tree. The update was ok, Everything looked good. I got a page telling me that my db needed to be updated. That also worked, at least I thought so. Now my blog is working, but I can't access the admin pages anymore. I am always redirected to the database update pages. But instead of these pages I am greeted with Application Error (Rails) The production.log shows me these lines when I try to access the admin pages Processing GeneralController#index (for 193.203.227.251at Thu Sep 29 10:30:05 CEST 2005) Parameters: {"action"=>"index", "controller"=>"admin/general"} Redirected to http://www.pv3.info/admin/general/update_database Completed in 0.00652 (153 reqs/sec) | DB: 0.00104 (16%) [ http://www.pv3.info/admin] Processing GeneralController#update_database (for 193.203.227.251at Thu Sep 29 10:30:05 CEST 2005) Parameters: {"action"=>"update_database", "controller"=>"admin/general"} NoMethodError (undefined method `collect' for nil:NilClass): app/controllers/admin/general_controller.rb:10:in `update_database' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:756:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:756:in `perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:295:in `perform_action_without_benchmark' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `measure' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:80:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32: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/fcgi-0.8.6.1/./fcgi.rb:597:in`each' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./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!' /home/lighttpd/vhosts/pv3info/public/dispatch.fcgi:24 Any ideas? regards Paul -- ------- Paul Vanovertveld Vienna, Austria, Europe www.pv3.info ------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050929/05908a90/attachment.htm From paul.vanovertveld at gmail.com Thu Sep 29 06:22:04 2005 From: paul.vanovertveld at gmail.com (Paul Vanovertveld) Date: Thu, 29 Sep 2005 12:22:04 +0200 Subject: [typo] admin not working anymore after switching to current In-Reply-To: <4286e81b050929014173d6deb2@mail.gmail.com> References: <4286e81b050929014173d6deb2@mail.gmail.com> Message-ID: <4286e81b05092903222f2cb1f0@mail.gmail.com> Hi, I figured it out already. Somehow my schema_info table was corrupt. It was asuming that my db is already at version 20. After I corrected it to 18 everything is fine again. Once more I am really impressed with rubyonrails and also with typo. The Code is really readable and once I figured out how the migration action is triggered the solution was near. Thanks to all the developers for delivering such a nice product. regards Paul On 9/29/05, Paul Vanovertveld wrote: > > Hello, > > I recently converted my wordpress blog into a glamours typo blog. > Everything went fine. But after reading about the stability of the current > tree I was tempted to switch to current from the svn tree. > > The update was ok, Everything looked good. I got a page telling me that my > db needed to be updated. That also worked, at least I thought so. Now my > blog is working, but I can't access the admin pages anymore. I am always > redirected to the database update pages. But instead of these pages I am > greeted with > > Application Error (Rails) > > The production.log shows me these lines when I try to access the admin > pages > > > Processing GeneralController#index (for 193.203.227.251at Thu Sep 29 10:30:05 CEST 2005) > Parameters: {"action"=>"index", "controller"=>"admin/general"} > Redirected to http://www.pv3.info/admin/general/update_database > Completed in 0.00652 (153 reqs/sec) | DB: 0.00104 (16%) [ > http://www.pv3.info/admin] > > > Processing GeneralController#update_database (for 193.203.227.251at Thu Sep 29 10:30:05 CEST 2005) > Parameters: {"action"=>"update_database", "controller"=>"admin/general"} > > > NoMethodError (undefined method `collect' for nil:NilClass): > app/controllers/admin/general_controller.rb:10:in `update_database' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:756:in > `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:756:in > `perform_action_without_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:295:in > `perform_action_without_benchmark' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in > `perform_action_without_rescue' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in > `measure' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in > `perform_action_without_rescue' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:80:in > `perform_action' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in > `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in > `process' > /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32: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/fcgi-0.8.6.1/./fcgi.rb:597:in`each' > /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./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!' > /home/lighttpd/vhosts/pv3info/public/dispatch.fcgi:24 > > > > Any ideas? > > regards > Paul > -- > ------- > Paul Vanovertveld > Vienna, Austria, Europe > www.pv3.info > ------- -- ------- Paul Vanovertveld Vienna, Austria, Europe www.pv3.info ------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050929/7c744ea6/attachment-0001.htm From jonasb.16759522 at bloglines.com Thu Sep 29 16:37:06 2005 From: jonasb.16759522 at bloglines.com (jonasb.16759522@bloglines.com) Date: 29 Sep 2005 20:37:06 -0000 Subject: [typo] Development set up Message-ID: <1128026226.1711573884.1676.sendItem@bloglines.com> Hi list, I have some problems knowing how to set up things when developing my blog. I have Typo which I got from svn and then customized (both own theme and changes to the existing code). I also have a TextDrive site where I'm going to host the blog. So how do I set up things for development? The main problem I see is how to get changes from the Typo svn repository to mine which contains my customized version of Typo. Is there any support in svn (or subclipse) for this? (This might be a svn question but since I guess that many here are using roughly the same set up perhaps someone can guide me. I know very little about svn at this point since I'm used using Perforce.) Thanks in advance, Jonas Bengtsson (jonas.b at home.se) From justus at ryoohki.net Thu Sep 29 16:42:12 2005 From: justus at ryoohki.net (Justus Pendleton) Date: Thu, 29 Sep 2005 14:42:12 -0600 Subject: [typo] Development set up In-Reply-To: <1128026226.1711573884.1676.sendItem@bloglines.com> References: <1128026226.1711573884.1676.sendItem@bloglines.com> Message-ID: <433C51A4.4080000@ryoohki.net> http://scottstuff.net/blog/articles/2005/07/07/distributed-development-with-svk From bradley at fluxura.com Thu Sep 29 16:41:06 2005 From: bradley at fluxura.com (bradley taylor) Date: Thu, 29 Sep 2005 16:41:06 -0400 Subject: [typo] Development set up In-Reply-To: <1128026226.1711573884.1676.sendItem@bloglines.com> References: <1128026226.1711573884.1676.sendItem@bloglines.com> Message-ID: Hi Jonas: I think svk will do the trick. More on using svk and typo here: http://scottstuff.net/blog/articles/2005/07/07/distributed- development-with-svk :bradley On Sep 29, 2005, at 4:37 PM, jonasb.16759522 at bloglines.com wrote: > Hi list, > > I have some problems knowing how to set up things when developing > my blog. I have Typo which I got from svn and then customized (both > own theme > and changes to the existing code). I also have a TextDrive site > where I'm > going to host the blog. > > So how do I set up things for development? The > main problem I see is how to get changes from the Typo svn > repository to mine > which contains my customized version of Typo. Is there any support > in svn > (or subclipse) for this? > > (This might be a svn question but since I guess > that many here are using roughly the same set up perhaps someone > can guide > me. I know very little about svn at this point since I'm used using > Perforce.) > > > Thanks in advance, > Jonas Bengtsson (jonas.b at home.se) > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From jonasb.16759522 at bloglines.com Thu Sep 29 19:07:04 2005 From: jonasb.16759522 at bloglines.com (jonasb.16759522@bloglines.com) Date: 29 Sep 2005 23:07:04 -0000 Subject: [typo] Development set up Message-ID: <1128035224.1354129305.6877.sendItem@bloglines.com> Thanks for the replies bradley and Justus! I've been thinking and reading up on this for a while now. I'm not sure I like the svk solution basically since I want to use the hosted svn repository and I like the subclipse plug-in in Eclipse. But wouldn't it work fine to use a typo-import branch, and regularly merge it manually with the Typo trunk (and then merge typo-import with my trunk using svn). I don't see what the drawback of this approach would be, but I'm a svn newbie. Regards, Jonas Bengtsson (jonas.b at home.se) --- typo-list at rubyforge.org wrote: Hi Jonas: > > I think svk will do the trick. More on using svk and typo here: > > http://scottstuff.net/blog/articles/2005/07/07/distributed- > development-with-svk > > :bradley From jonasb.16759522 at bloglines.com Thu Sep 29 19:58:25 2005 From: jonasb.16759522 at bloglines.com (jonasb.16759522@bloglines.com) Date: 29 Sep 2005 23:58:25 -0000 Subject: [typo] Development set up Message-ID: <1128038305.127522940.8529.sendItem@bloglines.com> It seems like I didn't grok SVK?before. They are having the same discussion over at the rails mailing list and this seems really nice: http://article.gmane.org/gmane.comp.lang.ruby.rails/23701 Regards, Jonas Bengtsson (jonas.b at home.se) --- typo-list at rubyforge.org wrote: > Thanks for the replies bradley and Justus! > > I've been thinking and reading > up on this for a while now. I'm not sure I like the svk solution basically > since I want to use the hosted svn repository and I like the subclipse plug-in > in Eclipse. > > But wouldn't it work fine to use a typo-import branch, and > regularly merge it manually with the Typo trunk (and then merge typo-import > with my trunk using svn). I don't see what the drawback of this approach would > be, but I'm a svn newbie. > > Regards, > Jonas Bengtsson (jonas.b at home.se) From kheon at comcast.net Thu Sep 29 20:24:08 2005 From: kheon at comcast.net (Kyle Heon) Date: Thu, 29 Sep 2005 20:24:08 -0400 Subject: [typo] Looking for a better way to do this... In-Reply-To: <1128038305.127522940.8529.sendItem@bloglines.com> Message-ID: <200509300016.j8U0GP05016974@rubyforge.org> I'm starting to learn Ruby so I apologize for this hackish code. I have this method in my articles_helper file: def navigation_tab(tab) if tab == nil && @controller.action_name.eql?('index') "activeTab" elsif tab != nil && @controller.params['name'].to_s.eql?(tab.to_s) "activeTab" elsif @controller.controller_name.eql?('articles') && ( @controller.action_name.eql?('category') || @controller.action_name.eql?('permalink') || @controller.action_name.eql?('search') ) && tab == nil "activeTab" else "Tab" end End It can be passed one of three values: nil photography About The function of this method is to set one of three navigational tabs to a selected state based on the currently active controller/action. I know there must be a better way. I particularly don't care for the multiple elsif statements. Kyle Heon kheon at comcast.net From typo at isolated-designs.net Fri Sep 30 22:05:14 2005 From: typo at isolated-designs.net (Justin Palmer) Date: Fri, 30 Sep 2005 21:05:14 -0500 Subject: [typo] Looking for a better way to do this... In-Reply-To: <200509300016.j8U0GP05016974@rubyforge.org> References: <200509300016.j8U0GP05016974@rubyforge.org> Message-ID: <5904F295-A7A1-4360-A4F9-6767F1F5F632@isolated-designs.net> Check out the way we do it in Typo's admin: def tab(label, options = {}) if controller.controller_name =~ /#{options[:controller].split ('/').last}/ content_tag :li, link_to(label, options, {"class"=> "active"}), {"class"=> "active"} else content_tag :li, link_to(label, options) end end You can see this implemented in the admin layout. Cheers, -Justin On Sep 29, 2005, at 7:24 PM, Kyle Heon wrote: > I'm starting to learn Ruby so I apologize for this hackish code. > > I have this method in my articles_helper file: > > def navigation_tab(tab) > if tab == nil && @controller.action_name.eql?('index') > "activeTab" > elsif tab != nil && @controller.params['name'].to_s.eql?(tab.to_s) > "activeTab" > elsif @controller.controller_name.eql?('articles') && ( > @controller.action_name.eql?('category') || > @controller.action_name.eql?('permalink') || > @controller.action_name.eql?('search') ) && tab == nil > "activeTab" > else > "Tab" > end > End > > It can be passed one of three values: > > nil > photography > About > > The function of this method is to set one of three navigational > tabs to a > selected state based on the currently active controller/action. > > I know there must be a better way. I particularly don't care for the > multiple elsif statements. > > Kyle Heon > kheon at comcast.net > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > >