From ltymowski at gmail.com Fri Jul 1 23:29:56 2005 From: ltymowski at gmail.com (Luke Tymowski) Date: Fri Jul 1 23:25:02 2005 Subject: [typo] How to limit index.html to only one article? Message-ID: <1cbceebe05070120295620c3c4@mail.gmail.com> Hello, I'm in the process of converting my photoblog to Typo. I want the front page to show only the most recent entry, not the 10 (or X) most recent as it does now. How do I do that? I've gone through all the bits & pieces, but can't find anything. I've searched the Typo mailing archives, but I don't see that anyone asked this question before. thanks, Luke From seth at remor.com Sat Jul 2 00:06:07 2005 From: seth at remor.com (Seth Hall) Date: Sat Jul 2 00:01:45 2005 Subject: [typo] How to limit index.html to only one article? In-Reply-To: <1cbceebe05070120295620c3c4@mail.gmail.com> References: <1cbceebe05070120295620c3c4@mail.gmail.com> Message-ID: <77B8AA6B-C185-4CB9-A9AF-73AA6EC6E640@remor.com> It's in the index method in the articles_controller.rb file def index @pages = Paginator.new self, Article.count, 10, @params['page'] @articles = Article.find(:all, :conditions => 'published != 0', :order => 'articles.created_at DESC', :limit => 10, :offset => @pages.current.offset) end Change both of the 10s to 1s and you should be done. I'll add a ticket to get that abstracted out to a variable. Thanks for pointing that out. .Seth On Jul 1, 2005, at 11:29 PM, Luke Tymowski wrote: > Hello, > > I'm in the process of converting my photoblog to Typo. > I want the front page to show only the most recent entry, not the 10 > (or X) most recent as it does now. How do I do that? > > I've gone through all the bits & pieces, but can't find anything. > I've searched the Typo mailing archives, but I don't see that anyone > asked this question before. > > thanks, > > Luke > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From ltymowski at gmail.com Sat Jul 2 06:07:55 2005 From: ltymowski at gmail.com (Luke Tymowski) Date: Sat Jul 2 06:03:04 2005 Subject: [typo] How to limit index.html to only one article? In-Reply-To: <77B8AA6B-C185-4CB9-A9AF-73AA6EC6E640@remor.com> References: <1cbceebe05070120295620c3c4@mail.gmail.com> <77B8AA6B-C185-4CB9-A9AF-73AA6EC6E640@remor.com> Message-ID: <1cbceebe05070203077ee168b3@mail.gmail.com> Hello Seth, > def index > @pages = Paginator.new self, Article.count, 10, @params['page'] > @articles = Article.find(:all, :conditions => 'published != > 0', :order => 'articles.created_at DESC', :limit => 10, :offset => > @pages.current.offset) > end > > Change both of the 10s to 1s and you should be done. Thank you. That did the trick. Is there a way to get "previous|next" links? Rather than the older posts links? > I'll add a ticket to get that abstracted out to a variable. Is there a list of variables somewhere? Or are they in the code? Is anyone working on a manual? Or is everyone involved with Typo so far coders? thanks, Luke From ltymowski at gmail.com Sat Jul 2 06:38:27 2005 From: ltymowski at gmail.com (Luke Tymowski) Date: Sat Jul 2 06:33:33 2005 Subject: [typo] Future posts Message-ID: <1cbceebe05070203384bfc9083@mail.gmail.com> Hello, Typo does not appear to support future posts. Is this something for which I should open a ticket? Or is it already being worked on? By future post I mean today is July 2nd, and I post articles with datestamps set for July 3, 4, 5. Each article is published only on or after the datestamp. thanks, Luke From trejkaz at trypticon.org Tue Jul 5 06:18:51 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Tue Jul 5 06:13:10 2005 Subject: [typo] Hacking for static content Message-ID: <200507052018.54917.trejkaz@trypticon.org> Resurrected from the archive, Xavier said: > Or just create a 'static' controller with one action per static page, > then just put your static content in app/static/action_name.rhtml and > use routes.rb to have cute URLs. That way you can also leverage all > the layout mechanism. I've just implemented something very like this on my own local copy. It looks like it _should_ be pretty simple: class StaticController < ApplicationController def contact end end But realistically, that won't actually work, it bombs out not being able to find the Category class. Funnily enough, the following works: class StaticController < ApplicationController def contact Category.find_all end end This is all just temporary though. Really, I was thinking that static pages should be stored in the database and CRUD via the admin interface. I should get around to it and if/when I do I'll contribute back anything which doesn't suck. ;-) Finally, does anyone have suggestions on how to manage this sort of hackery? For instance, if I just change the links on my site, I need to update app/views/shared/_links.rhtml, but then when the next version of Typo comes out it's bound to get squashed so I'd have to patch over my changes again. CVS wouldn't be quite enough... it's like I need some kind of patch-based versioning system. Either that or we modify Typo until everything user-defined is in the database (including the theme?) ;-) 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/20050705/18fb992c/attachment.bin From robby at planetargon.com Wed Jul 6 15:33:46 2005 From: robby at planetargon.com (Robby Russell) Date: Wed Jul 6 16:02:54 2005 Subject: [typo] handling amount of comments In-Reply-To: <1119130577.5781.160.camel@linus> References: <1119110062.5781.132.camel@linus> <1119128018.5781.156.camel@linus> <9963c1bd0506181415643f8df0@mail.gmail.com> <1119130577.5781.160.camel@linus> Message-ID: <1120678426.7805.16.camel@linus> On Sat, 2005-06-18 at 14:36 -0700, Robby Russell wrote: > On Sat, 2005-06-18 at 17:15 -0400, Tobias Luetke wrote: > > whats really weird is that i had 500 comments once myself and it > > didn't cause any grief other then long scrolling. Anyways, once static > > caching is in its no problem. I'm not so sure about pagination, i > > always dislike it and I think its really rare that a blog gets over > > 100 posts in normal operation. > > > > Hrm. > > I'd think that with over 100 comments of un-threaded comments would be > painful to look at on one screen anyways. > > While we're at it, what about threaded comments? I prefer this form of > comment viewing/responding. (especially when the number of comments gets > larger) I wanted to follow up on this a bit more. I realized that we could easily add another field to the articles table called 'comment_count' so that we could utilize the counter cache. For some reason, when Curt logs into his admin area, it times out because the number of comments is in the several thousand. Do you think that this would help things? -Robby -- /****************************************************** * Robby Russell, Owner.Developer.Geek * PLANET ARGON, Open Source Solutions & Web Hosting * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 * www.planetargon.com | www.robbyonrails.com *******************************************************/ From patricklenz at gmail.com Wed Jul 6 16:21:34 2005 From: patricklenz at gmail.com (Patrick Lenz) Date: Wed Jul 6 16:16:40 2005 Subject: [typo] handling amount of comments In-Reply-To: <1120678426.7805.16.camel@linus> References: <1119110062.5781.132.camel@linus> <1119128018.5781.156.camel@linus> <9963c1bd0506181415643f8df0@mail.gmail.com> <1119130577.5781.160.camel@linus> <1120678426.7805.16.camel@linus> Message-ID: <40fe71380507061321335057c6@mail.gmail.com> On 7/6/05, Robby Russell wrote: > I wanted to follow up on this a bit more. I realized that we could > easily add another field to the articles table called 'comment_count' so > that we could utilize the counter cache. For some reason, when Curt logs > into his admin area, it times out because the number of comments is in > the several thousand. Do you think that this would help things? There's a couple of things we have to tune performance-wise in the not-too-distant future. For one, typo makes no use of eager loading in the admin area yet (as far as I remember). Regarding the counter cache, there's a bug in that logic presently which is getting triggered if you populate the association upside down. The counter is only updated via @article.comments << Comment.new and not via @comment.article = Article.find() -- unless we can ensure that no single spot in our code populates associations the wrong way we can't potentially trust the counter cache. Other than that, Curt's logs might indicate a few other problematic queries I'd love to know about. Thanks. -- Patrick Lenz (scoop) http://poocs.net/ # Personal Weblog http://limited-overload.de/ # Web application development http://freshmeat.net/ # Free software archive http://topmedia.de/ # IT Storage Solutions From damien.pollet at gmail.com Thu Jul 7 10:44:01 2005 From: damien.pollet at gmail.com (Damien Pollet) Date: Thu Jul 7 10:39:09 2005 Subject: [typo] Hacking for static content In-Reply-To: <200507052018.54917.trejkaz@trypticon.org> References: <200507052018.54917.trejkaz@trypticon.org> Message-ID: <34b4844b05070707441850fedd@mail.gmail.com> > > Or just create a 'static' controller with one action per static page, > > then just put your static content in app/static/action_name.rhtml and I don't get it... if you use a controller it's not static... Did you have a look at ticket 127? http://typo.leetsoft.com/trac/ticket/127 The pages are generated as files which apache will return directly (statically). disclaimer: I'm still working on uncaching paginated pages ("older posts" links at the bottom). -- D From trejkaz at trypticon.org Thu Jul 7 21:50:19 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Thu Jul 7 21:46:10 2005 Subject: [typo] Hacking for static content In-Reply-To: <34b4844b05070707441850fedd@mail.gmail.com> References: <200507052018.54917.trejkaz@trypticon.org> <34b4844b05070707441850fedd@mail.gmail.com> Message-ID: <20050708115019.3eqdtlvffk084k4k@home.trypticon.org> Quoting Damien Pollet : >> > Or just create a 'static' controller with one action per static page, >> > then just put your static content in app/static/action_name.rhtml and > > I don't get it... if you use a controller it's not static... We just have slightly different views of what's static. To me, static just means the content doesn't change, and my pages are static because they're served from files which are just sitting on the disk. And using a controller seems to be the only way to make static pages show the correct sidebar. TX ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From mark at threewordslong.com Thu Jul 7 21:57:17 2005 From: mark at threewordslong.com (Mark Reid) Date: Thu Jul 7 21:52:12 2005 Subject: [typo] Problems running typo - `/' not found Message-ID: Hi, I recently downloaded typo 2.0.6 and rails 0.13 and tried to run them on OS 10.3.9 Mac using MySQL 4.1.7-standard. I got the server up and running but when I visit `http://localhost:3000/`I get a messge: Not Found `/' not found. WEBrick/1.3.1 (Ruby/1.8.2/2004-11-03) at localhost:3000 Here's the steps I took: 1. $ sudo gem install rails Successfully installed rails-0.13.0 Successfully installed activesupport-1.1.0 Successfully installed activerecord-1.11.0 Successfully installed actionpack-1.9.0 Successfully installed actionmailer-1.0.0 Successfully installed actionwebservice-0.8.0 2. $ cd /tmp ; tar xf typo-2.0.6.tar 3. $ cd typo-2.0.6 4. $ vi config/databases.yml # Added password to development config 5. Set up a database called `typo_dev` in mysql. 6. $ mysql -u root -p typo_dev < db/schema.mysql.sql 7. $ ./script/server => Rails application started on http://0.0.0.0:3000 [2005-07-08 11:54:08] INFO WEBrick 1.3.1 [2005-07-08 11:54:08] INFO ruby 1.8.2 (2004-11-03) [powerpc-darwin7.5.0] [2005-07-08 11:54:08] INFO WEBrick::HTTPServer#start: pid=2901 port=3000 8. Pointed Safari to http://localhost:3000/ and got the error message `/' not found. The server spat out the following: #> ["/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ action_controller/session/active_record_store.rb:244:in `initialize'", "/usr/local/lib/ruby/1.8/cgi/session.rb:266:in `new'", "/usr/local/lib/ruby/1.8/cgi/session.rb:266:in `initialize'", "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ action_controller/cgi_process.rb:94:in `new'", "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ action_controller/cgi_process.rb:94:in `session'", "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ action_controller/base.rb:729:in `assign_shortcuts'", "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ action_controller/base.rb:343:in `process'", "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ action_controller/rescue.rb:20:in `process_with_exception'", "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/dispatcher.rb:34:in `dispatch'", "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/webrick_server.rb: 103:in `handle_dispatch'", "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/webrick_server.rb: 69:in `service'", "/usr/local/lib/ruby/1.8/webrick/httpserver.rb:97:in `service'", "/usr/local/lib/ruby/1.8/webrick/httpserver.rb:58:in `run'", "/usr/local/lib/ruby/1.8/webrick/server.rb:153:in `start_thread'", "/usr/local/lib/ruby/1.8/webrick/server.rb:147:in `start'", "/usr/local/lib/ruby/1.8/webrick/server.rb:147:in `start_thread'", "/usr/local/lib/ruby/1.8/webrick/server.rb:97: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.0/lib/webrick_server.rb: 55:in `dispatch'", "./script/server:48"] [2005-07-08 11:55:18] ERROR `/' not found. 127.0.0.1 - - [08/Jul/2005:11:55:16 EST] "GET / HTTP/1.1" 404 270 - -> / Any suggestions on what I'm doing wrong and how to fix it would be appreciated. Thanks, Mark. From tobias.luetke at gmail.com Thu Jul 7 22:13:13 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Thu Jul 7 22:08:13 2005 Subject: [typo] Problems running typo - `/' not found In-Reply-To: References: Message-ID: <9963c1bd05070719131e76283d@mail.gmail.com> can you try to get the latest version from subversion and see if that works? On 7/7/05, Mark Reid wrote: > Hi, > > I recently downloaded typo 2.0.6 and rails 0.13 and tried to run them > on OS 10.3.9 Mac using MySQL 4.1.7-standard. > > I got the server up and running but when I visit > `http://localhost:3000/`I get a messge: > > Not Found > > `/' not found. > WEBrick/1.3.1 (Ruby/1.8.2/2004-11-03) at localhost:3000 > > Here's the steps I took: > > 1. $ sudo gem install rails > Successfully installed rails-0.13.0 > Successfully installed activesupport-1.1.0 > Successfully installed activerecord-1.11.0 > Successfully installed actionpack-1.9.0 > Successfully installed actionmailer-1.0.0 > Successfully installed actionwebservice-0.8.0 > > 2. $ cd /tmp ; tar xf typo-2.0.6.tar > > 3. $ cd typo-2.0.6 > > 4. $ vi config/databases.yml # Added password to development config > > 5. Set up a database called `typo_dev` in mysql. > > 6. $ mysql -u root -p typo_dev < db/schema.mysql.sql > > 7. $ ./script/server > => Rails application started on http://0.0.0.0:3000 > [2005-07-08 11:54:08] INFO WEBrick 1.3.1 > [2005-07-08 11:54:08] INFO ruby 1.8.2 (2004-11-03) > [powerpc-darwin7.5.0] > [2005-07-08 11:54:08] INFO WEBrick::HTTPServer#start: pid=2901 > port=3000 > > 8. Pointed Safari to http://localhost:3000/ and got the error message > `/' not found. > > The server spat out the following: > > # #> > ["/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ > action_controller/session/active_record_store.rb:244:in `initialize'", > "/usr/local/lib/ruby/1.8/cgi/session.rb:266:in `new'", > "/usr/local/lib/ruby/1.8/cgi/session.rb:266:in `initialize'", > "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ > action_controller/cgi_process.rb:94:in `new'", > "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ > action_controller/cgi_process.rb:94:in `session'", > "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ > action_controller/base.rb:729:in `assign_shortcuts'", > "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ > action_controller/base.rb:343:in `process'", > "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ > action_controller/rescue.rb:20:in `process_with_exception'", > "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/dispatcher.rb:34:in > `dispatch'", > "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/webrick_server.rb: > 103:in `handle_dispatch'", > "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/webrick_server.rb: > 69:in `service'", "/usr/local/lib/ruby/1.8/webrick/httpserver.rb:97:in > `service'", "/usr/local/lib/ruby/1.8/webrick/httpserver.rb:58:in > `run'", "/usr/local/lib/ruby/1.8/webrick/server.rb:153:in > `start_thread'", "/usr/local/lib/ruby/1.8/webrick/server.rb:147:in > `start'", "/usr/local/lib/ruby/1.8/webrick/server.rb:147:in > `start_thread'", "/usr/local/lib/ruby/1.8/webrick/server.rb:97: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.0/lib/webrick_server.rb: > 55:in `dispatch'", "./script/server:48"] > [2005-07-08 11:55:18] ERROR `/' not found. > 127.0.0.1 - - [08/Jul/2005:11:55:16 EST] "GET / HTTP/1.1" 404 270 > - -> / > > Any suggestions on what I'm doing wrong and how to fix it would be > appreciated. > > Thanks, > > Mark. > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From markc at renta.net Thu Jul 7 22:24:53 2005 From: markc at renta.net (Mark Constable) Date: Thu Jul 7 22:19:56 2005 Subject: [typo] Hacking for static content In-Reply-To: <20050708115019.3eqdtlvffk084k4k@home.trypticon.org> References: <200507052018.54917.trejkaz@trypticon.org> <34b4844b05070707441850fedd@mail.gmail.com> <20050708115019.3eqdtlvffk084k4k@home.trypticon.org> Message-ID: <200507081224.53251.markc@renta.net> On Friday 08 July 2005 11:50, Trejkaz wrote: > > I don't get it... if you use a controller it's not static... > > We just have slightly different views of what's static. To me, static just > means the content doesn't change, and my pages are static because they're > served from files which are just sitting on the disk. > > And using a controller seems to be the only way to make static pages show the > correct sidebar. A true static page is somepage.html that bypasses ruby altogether. The fastest caching system on the planet is a dynamic system that writes out plain *.html pages, perhaps with some javascript to make up for some truly needed runtime data. --markc From mark at threewordslong.com Thu Jul 7 22:27:40 2005 From: mark at threewordslong.com (Mark Reid) Date: Thu Jul 7 22:22:39 2005 Subject: [typo] Problems running typo - `/' not found In-Reply-To: <9963c1bd05070719131e76283d@mail.gmail.com> References: <9963c1bd05070719131e76283d@mail.gmail.com> Message-ID: Hi, I got the latest version with `svn checkout svn://leetsoft.com/typo/trunk typo` and followed the same steps below with the following changes. 1. I deleted my `typo_dev` database and re-initialised it using the svn copy of the schema. 2. I changed the header of `./script/server` from `#! /opt/local/bin/ruby` to `#! /usr/local/bin/ruby`. The same problem occurred. The server trace this time was: #> ["/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ action_controller/session/active_record_store.rb:244:in `initialize'", "/usr/local/lib/ruby/1.8/cgi/session.rb:266:in `new'", "/usr/local/lib/ruby/1.8/cgi/session.rb:266:in `initialize'", "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ action_controller/cgi_process.rb:94:in `new'", "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ action_controller/cgi_process.rb:94:in `session'", "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ action_controller/base.rb:729:in `assign_shortcuts'", "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ action_controller/base.rb:343:in `process'", "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ action_controller/rescue.rb:20:in `process_with_exception'", "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/dispatcher.rb:34:in `dispatch'", "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/webrick_server.rb: 103:in `handle_dispatch'", "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/webrick_server.rb: 69:in `service'", "/usr/local/lib/ruby/1.8/webrick/httpserver.rb:97:in `service'", "/usr/local/lib/ruby/1.8/webrick/httpserver.rb:58:in `run'", "/usr/local/lib/ruby/1.8/webrick/server.rb:153:in `start_thread'", "/usr/local/lib/ruby/1.8/webrick/server.rb:147:in `start'", "/usr/local/lib/ruby/1.8/webrick/server.rb:147:in `start_thread'", "/usr/local/lib/ruby/1.8/webrick/server.rb:97: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.0/lib/webrick_server.rb: 55:in `dispatch'", "./script/server:49"] [2005-07-08 12:20:55] ERROR `/' not found. 127.0.0.1 - - [08/Jul/2005:12:20:53 EST] "GET / HTTP/1.1" 404 270 - -> / What's the `new_session` method that the CGI server is having trouble finding? Mark. On 08/07/2005, at 12:13 PM, Tobias Luetke wrote: > can you try to get the latest version from subversion and see if that > works? > > On 7/7/05, Mark Reid wrote: >> Hi, >> >> I recently downloaded typo 2.0.6 and rails 0.13 and tried to run them >> on OS 10.3.9 Mac using MySQL 4.1.7-standard. >> >> I got the server up and running but when I visit >> `http://localhost:3000/`I get a messge: >> >> Not Found >> >> `/' not found. >> WEBrick/1.3.1 (Ruby/1.8.2/2004-11-03) at localhost:3000 >> >> Here's the steps I took: >> >> 1. $ sudo gem install rails >> Successfully installed rails-0.13.0 >> Successfully installed activesupport-1.1.0 >> Successfully installed activerecord-1.11.0 >> Successfully installed actionpack-1.9.0 >> Successfully installed actionmailer-1.0.0 >> Successfully installed actionwebservice-0.8.0 >> >> 2. $ cd /tmp ; tar xf typo-2.0.6.tar >> >> 3. $ cd typo-2.0.6 >> >> 4. $ vi config/databases.yml # Added password to >> development config >> >> 5. Set up a database called `typo_dev` in mysql. >> >> 6. $ mysql -u root -p typo_dev < db/schema.mysql.sql >> >> 7. $ ./script/server >> => Rails application started on http://0.0.0.0:3000 >> [2005-07-08 11:54:08] INFO WEBrick 1.3.1 >> [2005-07-08 11:54:08] INFO ruby 1.8.2 (2004-11-03) >> [powerpc-darwin7.5.0] >> [2005-07-08 11:54:08] INFO >> WEBrick::HTTPServer#start: pid=2901 >> port=3000 >> >> 8. Pointed Safari to http://localhost:3000/ and got the error >> message >> `/' not found. >> >> The server spat out the following: >> >> #> #> >> ["/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >> action_controller/session/active_record_store.rb:244:in `initialize'", >> "/usr/local/lib/ruby/1.8/cgi/session.rb:266:in `new'", >> "/usr/local/lib/ruby/1.8/cgi/session.rb:266:in `initialize'", >> "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >> action_controller/cgi_process.rb:94:in `new'", >> "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >> action_controller/cgi_process.rb:94:in `session'", >> "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >> action_controller/base.rb:729:in `assign_shortcuts'", >> "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >> action_controller/base.rb:343:in `process'", >> "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >> action_controller/rescue.rb:20:in `process_with_exception'", >> "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/dispatcher.rb:34: >> in >> `dispatch'", >> "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/webrick_server.rb: >> 103:in `handle_dispatch'", >> "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/webrick_server.rb: >> 69:in `service'", "/usr/local/lib/ruby/1.8/webrick/httpserver.rb:97:in >> `service'", "/usr/local/lib/ruby/1.8/webrick/httpserver.rb:58:in >> `run'", "/usr/local/lib/ruby/1.8/webrick/server.rb:153:in >> `start_thread'", "/usr/local/lib/ruby/1.8/webrick/server.rb:147:in >> `start'", "/usr/local/lib/ruby/1.8/webrick/server.rb:147:in >> `start_thread'", "/usr/local/lib/ruby/1.8/webrick/server.rb:97: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.0/lib/webrick_server.rb: >> 55:in `dispatch'", "./script/server:48"] >> [2005-07-08 11:55:18] ERROR `/' not found. >> 127.0.0.1 - - [08/Jul/2005:11:55:16 EST] "GET / HTTP/1.1" 404 270 >> - -> / >> >> Any suggestions on what I'm doing wrong and how to fix it would be >> appreciated. >> >> Thanks, >> >> Mark. >> >> _______________________________________________ >> Typo-list mailing list >> Typo-list@rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> > > > -- > Tobi > http://www.snowdevil.ca - Snowboards that don't suck > http://typo.leetsoft.com - Open source weblog engine > http://blog.leetsoft.com - Technical weblog > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From mark at threewordslong.com Thu Jul 7 22:39:48 2005 From: mark at threewordslong.com (Mark Reid) Date: Thu Jul 7 22:34:46 2005 Subject: [typo] Problems running typo - `/' not found In-Reply-To: <9963c1bd0507071930268f1ff3@mail.gmail.com> References: <9963c1bd05070719131e76283d@mail.gmail.com> <9963c1bd0507071930268f1ff3@mail.gmail.com> Message-ID: <23a222e2d3fdf8da815a2fb49baa4a6d@threewordslong.com> That nailed it! I commented out the second last line in `config/environment.rb`, namely: # ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update(: database_manager => CGI::Session::ActiveRecordStore) and that did the trick. Everything seems to be working fine now. Going to `http://localhost:3000/ took me to the admin screen where I set up a blog and posted an entry. Going back to `http://localhost:3000/ displayed the new article. I had tried typo-2.0.6 with an earlier version of rails a few weeks ago so maybe some sessions got saved incorrectly there. I'm surprised anything has persisted as I completely removed every version of rails and its associated libraries before installing 0.13. I also deleted all my typo databases. Where do the database based sessions get stored? Thanks for the extremely prompt and useful help! Mark. On 08/07/2005, at 12:30 PM, Tobias Luetke wrote: > i'm really curious myself. Typo uses database based sessions. Try to > delete the session related line in the end of typo's environment.rb > which will switch it back to filestore. > > The sql session store was rewritten in 0.13. I'll forward this to the > author but unfortunatly I cannot reproduce > > On 7/7/05, Mark Reid wrote: >> Hi, >> >> I got the latest version with `svn checkout >> svn://leetsoft.com/typo/trunk typo` and followed the same steps below >> with the following changes. >> >> 1. I deleted my `typo_dev` database and re-initialised it >> using the >> svn copy of the schema. >> >> 2. I changed the header of `./script/server` from `#! >> /opt/local/bin/ruby` to `#! /usr/local/bin/ruby`. >> >> The same problem occurred. The server trace this time was: >> >> #> #> >> ["/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >> action_controller/session/active_record_store.rb:244:in `initialize'", >> "/usr/local/lib/ruby/1.8/cgi/session.rb:266:in `new'", >> "/usr/local/lib/ruby/1.8/cgi/session.rb:266:in `initialize'", >> "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >> action_controller/cgi_process.rb:94:in `new'", >> "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >> action_controller/cgi_process.rb:94:in `session'", >> "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >> action_controller/base.rb:729:in `assign_shortcuts'", >> "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >> action_controller/base.rb:343:in `process'", >> "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >> action_controller/rescue.rb:20:in `process_with_exception'", >> "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/dispatcher.rb:34: >> in >> `dispatch'", >> "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/webrick_server.rb: >> 103:in `handle_dispatch'", >> "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/webrick_server.rb: >> 69:in `service'", "/usr/local/lib/ruby/1.8/webrick/httpserver.rb:97:in >> `service'", "/usr/local/lib/ruby/1.8/webrick/httpserver.rb:58:in >> `run'", "/usr/local/lib/ruby/1.8/webrick/server.rb:153:in >> `start_thread'", "/usr/local/lib/ruby/1.8/webrick/server.rb:147:in >> `start'", "/usr/local/lib/ruby/1.8/webrick/server.rb:147:in >> `start_thread'", "/usr/local/lib/ruby/1.8/webrick/server.rb:97: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.0/lib/webrick_server.rb: >> 55:in `dispatch'", "./script/server:49"] >> [2005-07-08 12:20:55] ERROR `/' not found. >> 127.0.0.1 - - [08/Jul/2005:12:20:53 EST] "GET / HTTP/1.1" 404 270 >> - -> / >> >> What's the `new_session` method that the CGI server is having >> trouble >> finding? >> >> Mark. >> >> On 08/07/2005, at 12:13 PM, Tobias Luetke wrote: >> >>> can you try to get the latest version from subversion and see if that >>> works? >>> >>> On 7/7/05, Mark Reid wrote: >>>> Hi, >>>> >>>> I recently downloaded typo 2.0.6 and rails 0.13 and tried to run >>>> them >>>> on OS 10.3.9 Mac using MySQL 4.1.7-standard. >>>> >>>> I got the server up and running but when I visit >>>> `http://localhost:3000/`I get a messge: >>>> >>>> Not Found >>>> >>>> `/' not found. >>>> WEBrick/1.3.1 (Ruby/1.8.2/2004-11-03) at localhost:3000 >>>> >>>> Here's the steps I took: >>>> >>>> 1. $ sudo gem install rails >>>> Successfully installed rails-0.13.0 >>>> Successfully installed activesupport-1.1.0 >>>> Successfully installed activerecord-1.11.0 >>>> Successfully installed actionpack-1.9.0 >>>> Successfully installed actionmailer-1.0.0 >>>> Successfully installed actionwebservice-0.8.0 >>>> >>>> 2. $ cd /tmp ; tar xf typo-2.0.6.tar >>>> >>>> 3. $ cd typo-2.0.6 >>>> >>>> 4. $ vi config/databases.yml # Added password to >>>> development config >>>> >>>> 5. Set up a database called `typo_dev` in mysql. >>>> >>>> 6. $ mysql -u root -p typo_dev < db/schema.mysql.sql >>>> >>>> 7. $ ./script/server >>>> => Rails application started on http://0.0.0.0:3000 >>>> [2005-07-08 11:54:08] INFO WEBrick 1.3.1 >>>> [2005-07-08 11:54:08] INFO ruby 1.8.2 (2004-11-03) >>>> [powerpc-darwin7.5.0] >>>> [2005-07-08 11:54:08] INFO >>>> WEBrick::HTTPServer#start: pid=2901 >>>> port=3000 >>>> >>>> 8. Pointed Safari to http://localhost:3000/ and got the >>>> error >>>> message >>>> `/' not found. >>>> >>>> The server spat out the following: >>>> >>>> #>>> #> >>>> ["/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >>>> action_controller/session/active_record_store.rb:244:in >>>> `initialize'", >>>> "/usr/local/lib/ruby/1.8/cgi/session.rb:266:in `new'", >>>> "/usr/local/lib/ruby/1.8/cgi/session.rb:266:in `initialize'", >>>> "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >>>> action_controller/cgi_process.rb:94:in `new'", >>>> "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >>>> action_controller/cgi_process.rb:94:in `session'", >>>> "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >>>> action_controller/base.rb:729:in `assign_shortcuts'", >>>> "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >>>> action_controller/base.rb:343:in `process'", >>>> "/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.0/lib/ >>>> action_controller/rescue.rb:20:in `process_with_exception'", >>>> "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/dispatcher.rb: >>>> 34: >>>> in >>>> `dispatch'", >>>> "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/ >>>> webrick_server.rb: >>>> 103:in `handle_dispatch'", >>>> "/usr/local/lib/ruby/gems/1.8/gems/rails-0.13.0/lib/ >>>> webrick_server.rb: >>>> 69:in `service'", >>>> "/usr/local/lib/ruby/1.8/webrick/httpserver.rb:97:in >>>> `service'", "/usr/local/lib/ruby/1.8/webrick/httpserver.rb:58:in >>>> `run'", "/usr/local/lib/ruby/1.8/webrick/server.rb:153:in >>>> `start_thread'", "/usr/local/lib/ruby/1.8/webrick/server.rb:147:in >>>> `start'", "/usr/local/lib/ruby/1.8/webrick/server.rb:147:in >>>> `start_thread'", "/usr/local/lib/ruby/1.8/webrick/server.rb:97: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.0/lib/ >>>> webrick_server.rb: >>>> 55:in `dispatch'", "./script/server:48"] >>>> [2005-07-08 11:55:18] ERROR `/' not found. >>>> 127.0.0.1 - - [08/Jul/2005:11:55:16 EST] "GET / HTTP/1.1" 404 270 >>>> - -> / >>>> >>>> Any suggestions on what I'm doing wrong and how to fix it would be >>>> appreciated. >>>> >>>> Thanks, >>>> >>>> Mark. >>>> >>>> _______________________________________________ >>>> Typo-list mailing list >>>> Typo-list@rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/typo-list >>>> >>> >>> >>> -- >>> Tobi >>> http://www.snowdevil.ca - Snowboards that don't suck >>> http://typo.leetsoft.com - Open source weblog engine >>> http://blog.leetsoft.com - Technical weblog >>> >>> _______________________________________________ >>> Typo-list mailing list >>> Typo-list@rubyforge.org >>> http://rubyforge.org/mailman/listinfo/typo-list >> >> > > > -- > Tobi > http://www.snowdevil.ca - Snowboards that don't suck > http://typo.leetsoft.com - Open source weblog engine > http://blog.leetsoft.com - Technical weblog From trejkaz at trypticon.org Thu Jul 7 23:09:59 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Thu Jul 7 23:05:58 2005 Subject: [typo] Hacking for static content In-Reply-To: <200507081224.53251.markc@renta.net> References: <200507052018.54917.trejkaz@trypticon.org> <34b4844b05070707441850fedd@mail.gmail.com> <20050708115019.3eqdtlvffk084k4k@home.trypticon.org> <200507081224.53251.markc@renta.net> Message-ID: <20050708130959.x5lllylw8csw4wkg@home.trypticon.org> Quoting Mark Constable : > On Friday 08 July 2005 11:50, Trejkaz wrote: >> > I don't get it... if you use a controller it's not static... >> >> We just have slightly different views of what's static. To me, static just >> means the content doesn't change, and my pages are static because they're >> served from files which are just sitting on the disk. >> >> And using a controller seems to be the only way to make static pages >> show the >> correct sidebar. > > A true static page is somepage.html that bypasses ruby altogether. Sure, but it's a trade-off. Sites I tend to make don't get a lot of hits, so I'd rather have a tiny loss of efficiency during the page request, rather than having to regenerate every page just because some feed in my sidebar got a new post. :-) > The fastest caching system on the planet is a dynamic system > that writes out plain *.html pages, perhaps with some javascript > to make up for some truly needed runtime data. Nope. The fastest caching system on the planet would have all that HTML in memory, as reading from the filesystem is expensive. :-) TX ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From mburnham1973 at gmail.com Fri Jul 8 11:57:55 2005 From: mburnham1973 at gmail.com (Mike Burnham) Date: Fri Jul 8 11:53:12 2005 Subject: [typo] typo comments Message-ID: Anyone else notice when adding a comment from the latest from subversion leaves the spinner going when you submit? It takes a refresh to see the comment. Wierd. -- http://blog.closingbracket.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050708/b839c0f7/attachment.htm From damien.pollet at gmail.com Fri Jul 8 11:58:27 2005 From: damien.pollet at gmail.com (Damien Pollet) Date: Fri Jul 8 11:53:22 2005 Subject: [typo] Hacking for static content In-Reply-To: <20050708115019.3eqdtlvffk084k4k@home.trypticon.org> References: <200507052018.54917.trejkaz@trypticon.org> <34b4844b05070707441850fedd@mail.gmail.com> <20050708115019.3eqdtlvffk084k4k@home.trypticon.org> Message-ID: <34b4844b050708085826495cb0@mail.gmail.com> > And using a controller seems to be the only way to make static pages show the > correct sidebar. In fact it is probably doable using dynamic iframes for the side bar, included in a static (file.html) home page. Indeed, the sidebar is still a problem is the patch I attached to #127. -- D From tobias.luetke at gmail.com Fri Jul 8 18:49:50 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Fri Jul 8 18:45:27 2005 Subject: [typo] typo comments In-Reply-To: References: Message-ID: <9963c1bd050708154927158b67@mail.gmail.com> Which browser is that? Could you open a ticket on the issue? On 7/8/05, Mike Burnham wrote: > Anyone else notice when adding a comment from the latest from subversion > leaves the spinner going when you submit? It takes a refresh to see the > comment. > > Wierd. > > -- > http://blog.closingbracket.com > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From scott at sigkill.org Sat Jul 9 09:50:26 2005 From: scott at sigkill.org (Scott Laird) Date: Sat Jul 9 09:45:23 2005 Subject: [typo] Problems running typo - `/' not found In-Reply-To: <23a222e2d3fdf8da815a2fb49baa4a6d@threewordslong.com> References: <9963c1bd05070719131e76283d@mail.gmail.com> <9963c1bd0507071930268f1ff3@mail.gmail.com> <23a222e2d3fdf8da815a2fb49baa4a6d@threewordslong.com> Message-ID: On Jul 7, 2005, at 7:39 PM, Mark Reid wrote: > That nailed it! > > I commented out the second last line in `config/environment.rb`, > namely: > # ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update > (:database_manager => CGI::Session::ActiveRecordStore) > > and that did the trick. Everything seems to be working fine now. > Going to `http://localhost:3000/ took me to the admin screen where > I set up a blog and posted an entry. Going back to `http:// > localhost:3000/ displayed the new article. > > I had tried typo-2.0.6 with an earlier version of rails a few weeks > ago so maybe some sessions got saved incorrectly there. I'm > surprised anything has persisted as I completely removed every > version of rails and its associated libraries before installing > 0.13. I also deleted all my typo databases. > > Where do the database based sessions get stored? > > Thanks for the extremely prompt and useful help! DHH just posted the solution to your problem on the Rails blog. Basically, you're running a beta of Ruby 1.8.2, and you need to be using the final version. See 'ruby -v' -- it should say version 1.8.2 from Christmas 2004 (or newer). If it's older then that, you're going to see the CGI session error. http://weblog.rubyonrails.com/archives/2005/07/09/are-you-running-the- final-version-of-ruby-182/ Scott From nic.lindh at gmail.com Tue Jul 12 15:47:41 2005 From: nic.lindh at gmail.com (Nic Lindh) Date: Tue Jul 12 15:42:28 2005 Subject: [typo] Extended_html Message-ID: I just updated my blog to the latest svn trunk and am getting extended_html errors. There's a migrate script in /db/migrate, which looks like it'll do the job of adding the required fields to the articles, but my mind is utterly melted and I simply can't figure out how to run it. If any of you could please help me out with the magic incantation it would be *hugely* appreciated. Thanks a bunch, Nic From patricklenz at gmail.com Tue Jul 12 15:49:34 2005 From: patricklenz at gmail.com (Patrick Lenz) Date: Tue Jul 12 15:44:22 2005 Subject: [typo] Extended_html In-Reply-To: References: Message-ID: <40fe7138050712124932f583aa@mail.gmail.com> Just run "rake migrate" in your typo dir. On 7/12/05, Nic Lindh wrote: > I just updated my blog to the latest svn trunk and am getting > extended_html errors. There's a migrate script in /db/migrate, which > looks like it'll do the job of adding the required fields to the > articles, but my mind is utterly melted and I simply can't figure out > how to run it. > > If any of you could please help me out with the magic incantation it > would be *hugely* appreciated. > > Thanks a bunch, > > Nic > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Patrick Lenz (scoop) http://poocs.net/ # Personal Weblog http://limited-overload.de/ # Web application development http://freshmeat.net/ # Free software archive http://topmedia.de/ # IT Storage Solutions From tobias.luetke at gmail.com Tue Jul 12 15:52:39 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Tue Jul 12 15:47:27 2005 Subject: [typo] Extended_html In-Reply-To: <40fe7138050712124932f583aa@mail.gmail.com> References: <40fe7138050712124932f583aa@mail.gmail.com> Message-ID: <9963c1bd050712125269846a38@mail.gmail.com> maybe rake migrate RAILS_ENV=production if that doesn't work On 7/12/05, Patrick Lenz wrote: > Just run "rake migrate" in your typo dir. > > On 7/12/05, Nic Lindh wrote: > > I just updated my blog to the latest svn trunk and am getting > > extended_html errors. There's a migrate script in /db/migrate, which > > looks like it'll do the job of adding the required fields to the > > articles, but my mind is utterly melted and I simply can't figure out > > how to run it. > > > > If any of you could please help me out with the magic incantation it > > would be *hugely* appreciated. > > > > Thanks a bunch, > > > > Nic > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > -- > Patrick Lenz (scoop) > > http://poocs.net/ # Personal Weblog > http://limited-overload.de/ # Web application development > http://freshmeat.net/ # Free software archive > http://topmedia.de/ # IT Storage Solutions > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From nic.lindh at gmail.com Tue Jul 12 19:25:30 2005 From: nic.lindh at gmail.com (Nic Lindh) Date: Tue Jul 12 19:20:17 2005 Subject: [typo] Extended_html In-Reply-To: <40fe7138050712124932f583aa@mail.gmail.com> References: <40fe7138050712124932f583aa@mail.gmail.com> Message-ID: Thank you very much! That did the trick. Sorry about the silly n00b question... Nic On 7/12/05, Patrick Lenz wrote: > Just run "rake migrate" in your typo dir. > > On 7/12/05, Nic Lindh wrote: > > I just updated my blog to the latest svn trunk and am getting > > extended_html errors. There's a migrate script in /db/migrate, which > > looks like it'll do the job of adding the required fields to the > > articles, but my mind is utterly melted and I simply can't figure out > > how to run it. > > > > If any of you could please help me out with the magic incantation it > > would be *hugely* appreciated. > > > > Thanks a bunch, > > > > Nic > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > -- > Patrick Lenz (scoop) > > http://poocs.net/ # Personal Weblog > http://limited-overload.de/ # Web application development > http://freshmeat.net/ # Free software archive > http://topmedia.de/ # IT Storage Solutions > From tobias.luetke at gmail.com Tue Jul 12 19:51:39 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Tue Jul 12 19:46:26 2005 Subject: [typo] Extended_html In-Reply-To: References: <40fe7138050712124932f583aa@mail.gmail.com> Message-ID: <9963c1bd05071216513314ff01@mail.gmail.com> Don't worry, Unless you have mind reading capabilities you couldn't possibly have known. I don't think its documented anywhere. On 7/12/05, Nic Lindh wrote: > Thank you very much! That did the trick. > > Sorry about the silly n00b question... > > Nic > > On 7/12/05, Patrick Lenz wrote: > > Just run "rake migrate" in your typo dir. > > > > On 7/12/05, Nic Lindh wrote: > > > I just updated my blog to the latest svn trunk and am getting > > > extended_html errors. There's a migrate script in /db/migrate, which > > > looks like it'll do the job of adding the required fields to the > > > articles, but my mind is utterly melted and I simply can't figure out > > > how to run it. > > > > > > If any of you could please help me out with the magic incantation it > > > would be *hugely* appreciated. > > > > > > Thanks a bunch, > > > > > > Nic > > > > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list@rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > -- > > Patrick Lenz (scoop) > > > > http://poocs.net/ # Personal Weblog > > http://limited-overload.de/ # Web application development > > http://freshmeat.net/ # Free software archive > > http://topmedia.de/ # IT Storage Solutions > > > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From patricklenz at gmail.com Wed Jul 13 00:09:43 2005 From: patricklenz at gmail.com (Patrick Lenz) Date: Wed Jul 13 00:04:33 2005 Subject: [typo] Extended_html In-Reply-To: <9963c1bd05071216513314ff01@mail.gmail.com> References: <40fe7138050712124932f583aa@mail.gmail.com> <9963c1bd05071216513314ff01@mail.gmail.com> Message-ID: <40fe71380507122109e5ae22f@mail.gmail.com> It is, here: http://rails.rubyonrails.com/classes/ActiveRecord/Migration.html Not anywhere near typo though ;) On 7/13/05, Tobias Luetke wrote: > Don't worry, > > Unless you have mind reading capabilities you couldn't possibly have > known. I don't think its documented anywhere. > > On 7/12/05, Nic Lindh wrote: > > Thank you very much! That did the trick. > > > > Sorry about the silly n00b question... > > > > Nic > > > > On 7/12/05, Patrick Lenz wrote: > > > Just run "rake migrate" in your typo dir. > > > > > > On 7/12/05, Nic Lindh wrote: > > > > I just updated my blog to the latest svn trunk and am getting > > > > extended_html errors. There's a migrate script in /db/migrate, which > > > > looks like it'll do the job of adding the required fields to the > > > > articles, but my mind is utterly melted and I simply can't figure out > > > > how to run it. > > > > > > > > If any of you could please help me out with the magic incantation it > > > > would be *hugely* appreciated. > > > > > > > > Thanks a bunch, > > > > > > > > Nic > > > > > > > > _______________________________________________ > > > > Typo-list mailing list > > > > Typo-list@rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > -- > > > Patrick Lenz (scoop) > > > > > > http://poocs.net/ # Personal Weblog > > > http://limited-overload.de/ # Web application development > > > http://freshmeat.net/ # Free software archive > > > http://topmedia.de/ # IT Storage Solutions > > > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > -- > Tobi > http://www.snowdevil.ca - Snowboards that don't suck > http://typo.leetsoft.com - Open source weblog engine > http://blog.leetsoft.com - Technical weblog > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- 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 t.lucas at toolmantim.com Wed Jul 13 00:49:48 2005 From: t.lucas at toolmantim.com (Tim Lucas) Date: Wed Jul 13 00:44:02 2005 Subject: [typo] Keeping Typo's codebase separate from site-specific customisations Message-ID: <99e74dff05fc07d9983f5d034a3508ba@toolmantim.com> Just thought Duane's recent post might have some relevance to Typo: http://thread.gmane.org/gmane.comp.lang.ruby.rails/14513 Might be a good way to keep Typo core separate from from site-specific customisations... though it would quickly become unmaintainable if people are overriding things willy-nilly. Nothing can replace a set of well thought-out and documented extension points. - tim lucas From scott at sigkill.org Wed Jul 13 00:57:21 2005 From: scott at sigkill.org (Scott Laird) Date: Wed Jul 13 00:52:13 2005 Subject: [typo] Keeping Typo's codebase separate from site-specific customisations In-Reply-To: <99e74dff05fc07d9983f5d034a3508ba@toolmantim.com> References: <99e74dff05fc07d9983f5d034a3508ba@toolmantim.com> Message-ID: <457BA31D-BC5F-44C4-8A68-B3E50961DB48@sigkill.org> On Jul 12, 2005, at 9:49 PM, Tim Lucas wrote: > Just thought Duane's recent post might have some relevance to Typo: > http://thread.gmane.org/gmane.comp.lang.ruby.rails/14513 > > Might be a good way to keep Typo core separate from from site- > specific customisations... though it would quickly become > unmaintainable if people are overriding things willy-nilly. Nothing > can replace a set of well thought-out and documented extension points. I'm using SVK to maintain my local Typo, and keep track of the Typo trunk, my patches for Typo that I send off to Trac for inclusion, and my local changes that aren't intended for submission. It's working pretty well so far. Here are the two blog entries that I wrote on the topic: http://scottstuff.net/blog/articles/2005/07/07/distributed- development-with-svk http://scottstuff.net/blog/articles/2005/07/08/checking-everything- into-svk Scott From markc at renta.net Wed Jul 13 02:29:09 2005 From: markc at renta.net (Mark Constable) Date: Wed Jul 13 02:24:09 2005 Subject: [typo] Keeping Typo's codebase separate from site-specific customisations In-Reply-To: <99e74dff05fc07d9983f5d034a3508ba@toolmantim.com> References: <99e74dff05fc07d9983f5d034a3508ba@toolmantim.com> Message-ID: <200507131629.09437.markc@renta.net> On Wednesday 13 July 2005 14:49, Tim Lucas wrote: > Just thought Duane's recent post might have some relevance to Typo: > http://thread.gmane.org/gmane.comp.lang.ruby.rails/14513 That was a timely post, thank you! I'm a ruby/rails/typo newbie and I cannot deploy typo until I come up with a true multihosting solution for rails/typo.. which is proving to be difficult but probably because of my lack of understanding of how rails really works. FWIW, as a comparison, we use Drupal as a CMS that is available to our 4000 ISP/vhost clients off a single copy of the 1.8Mb Drupal codebase. I only have to change 2 lines in the PHP include files to pull the main config file from the users homedir for their MySQL perms and we have 1000s of separate Drupal sites running in full PHP safe-mode. We provide phpBB2 and Gallery in a similar manner but now changing it so that Drupal is _the_ system with a photo gallery module included instead. I can't deploy rails/typo for real until I emulate this kind of setup. > Might be a good way to keep Typo core separate from from site-specific > customisations... though it would quickly become unmaintainable if > people are overriding things willy-nilly. Nothing can replace a set of > well thought-out and documented extension points. Absolutely. Please keep in mind a true multihosting solution! --markc From jluster at jluster.org Wed Jul 13 02:39:52 2005 From: jluster at jluster.org (Jonas M Luster) Date: Wed Jul 13 02:35:11 2005 Subject: [typo] Keeping Typo's codebase separate from site-specific customisations In-Reply-To: <200507131629.09437.markc@renta.net> References: <99e74dff05fc07d9983f5d034a3508ba@toolmantim.com> <200507131629.09437.markc@renta.net> Message-ID: > FWIW, as a comparison, we use Drupal as a CMS that is available to our > 4000 ISP/vhost clients off a single copy of the 1.8Mb Drupal codebase. > > I can't deploy rails/typo for real until I emulate this kind of setup. As someone who codes on Drupal stuff and uses Typo for his weblog, I should point out the obvious differences between a weblogging system and a CMS with a working, albeit limited, weblog entry module included. Drupal used to be rather monolithic as well, pre 'settings/' directory (4.6, respective CVS trunk releases), but had been written from the get-go with some multi-hosting in mind. All in all, I think it's unfair to both Typo and Drupal to attempt to compare the two :) jonas From markc at renta.net Wed Jul 13 03:07:52 2005 From: markc at renta.net (Mark Constable) Date: Wed Jul 13 03:02:51 2005 Subject: [typo] Keeping Typo's codebase separate from site-specific customisations In-Reply-To: References: <99e74dff05fc07d9983f5d034a3508ba@toolmantim.com> <200507131629.09437.markc@renta.net> Message-ID: <200507131707.52650.markc@renta.net> On Wednesday 13 July 2005 16:39, Jonas M Luster wrote: > > FWIW, as a comparison, we use Drupal as a CMS that is available to our > > 4000 ISP/vhost clients off a single copy of the 1.8Mb Drupal codebase. > > > > I can't deploy rails/typo for real until I emulate this kind of setup. > > As someone who codes on Drupal stuff and uses Typo for his weblog, I > should point out the obvious differences between a weblogging system > and a CMS with a working, albeit limited, weblog entry module > included. Drupal used to be rather monolithic as well, pre > 'settings/' directory (4.6, respective CVS trunk releases), but had > been written from the get-go with some multi-hosting in mind. All in > all, I think it's unfair to both Typo and Drupal to attempt to > compare the two :) I did say "rails/typo" as typo is fully dependant on the rails framework, of course, so how typo could be extended into a full multihosting equivalent would largely depend on how the rails framework is tweaked. And I think it would be even fairer to say Drupal evolved into a much better multihosting app because of demand. Earlier versions were NOT multihosting friendly at all. I suspect rails and typo will come under the same requirement (hey, I'm one who wants it) so all I am suggesting as typo devel moves forward is to keep full multihosting in mind. I am hugely encouraged by the appearence of this thread on this list. --markc From robin-lists at robinbowes.com Tue Jul 19 08:00:52 2005 From: robin-lists at robinbowes.com (Robin Bowes) Date: Tue Jul 19 07:55:20 2005 Subject: [typo] typo installed on apache2 with fastcgi Message-ID: <42DCEB74.3070309@robinbowes.com> Hi, Just to let you know that I've just installed typo (from SVN) on my Fedora Core 4 box with apache2 and using fastcgi. Site is here: http://typo.robinbowes.com The only article is a brief dump of how I solved the fastcgi problems! Hope someone finds this useful. R. -- http://robinbowes.com If a man speaks in a forest, and his wife's not there, is he still wrong? From hassanhodges at gmail.com Tue Jul 19 13:31:00 2005 From: hassanhodges at gmail.com (Hassan Hodges) Date: Tue Jul 19 13:25:36 2005 Subject: [typo] DoubleRenderError Message-ID: <7192ecef0507191031f4c0780@mail.gmail.com> I'm a newbie with Rails and Typo. I downloaded typo 2.0.6 this morning and haven't been able to get it to run. It's giving me a "DoubleRenderError" error. highlights from the error page: ActionController::DoubleRenderError in Articles# Render and/or redirect were called multiple times in this action. script/server:49 Response Headers: {"Status"=>"302 Found", "cookie"=>[], "Content-Type"=>"text/html", "Cache-Control"=>"no-cache", "location"=>"http://localhost:3000/accounts/signup"} I'm running webbrick on a mac, and already tried gem updates. any help would be greatly appreciated. thanks -Hassan From scott at sigkill.org Tue Jul 19 13:35:44 2005 From: scott at sigkill.org (Scott Laird) Date: Tue Jul 19 13:30:24 2005 Subject: [typo] DoubleRenderError In-Reply-To: <7192ecef0507191031f4c0780@mail.gmail.com> References: <7192ecef0507191031f4c0780@mail.gmail.com> Message-ID: <2CF6402F-A420-4CD1-B528-786556A22EBA@sigkill.org> On Jul 19, 2005, at 10:31 AM, Hassan Hodges wrote: > I'm a newbie with Rails and Typo. > > I downloaded typo 2.0.6 this morning and haven't been able to get it > to run. It's giving me a "DoubleRenderError" error. Typo 2.0.6 has issues with Rails 0.13.1. The current development version of Typo works great with current versions of rails. There should be another release fairly soon, or you can follow the directions on the Typo site for downloading and installing a dev version of Typo. Scott From robin-lists at robinbowes.com Tue Jul 19 15:50:42 2005 From: robin-lists at robinbowes.com (Robin Bowes) Date: Tue Jul 19 15:45:13 2005 Subject: [typo] DoubleRenderError In-Reply-To: <2CF6402F-A420-4CD1-B528-786556A22EBA@sigkill.org> References: <7192ecef0507191031f4c0780@mail.gmail.com> <2CF6402F-A420-4CD1-B528-786556A22EBA@sigkill.org> Message-ID: <42DD5992.6000607@robinbowes.com> Scott Laird wrote: > Typo 2.0.6 has issues with Rails 0.13.1. The current development > version of Typo works great with current versions of rails. There > should be another release fairly soon, or you can follow the directions > on the Typo site for downloading and installing a dev version of Typo. I can confirm that the latest dev version on Typo from svn seems to work great. I've downloaded it and got it working today. I've also got a bug fixed that lets me use ecto to upload articles [1][2]. [1] http://bb.infinite-sushi.com/viewtopic.php?t=888 [2] http://typo.robinbowes.com/articles/2005/07/19/updating-typo-with-ecto R. -- http://robinbowes.com If a man speaks in a forest, and his wife's not there, is he still wrong? From hypsometry at gmail.com Wed Jul 20 11:43:08 2005 From: hypsometry at gmail.com (Chris Boone) Date: Wed Jul 20 11:38:11 2005 Subject: [typo] Empty span.typo_date generates XHTML warning Message-ID: <525eb1d905072008431fb747ea@mail.gmail.com> Hi all I'm setting up a Typo blog for myself -- tweaking it locally first, now, before deploying to Textdrive soon -- and I noticed that the new (?) way to format the published dates, using domscript, uses an empty span element to store the date in a hidden fashion. Course, Tidy (as manifested in the Firefox HTML Validator plugin) doesn't like empty spans. I'm new to the list, but I looked through the archives quickly and didn't see any discussion of this. It's not a big deal (obviously... :), but since I do sell my services as a web designer with a focus on web standards, it's not optimal. Has anyone thought about another way to implement this functionality? (Cause it's pretty cool.) For instance, might it be worth including the old fashioned (static, that is) post date within the span, and having show_date_as_local_time hide it / replace it with the fancier (dynamic, that is) version? Thanks. -- Chris Boone http://hypsometry.com/ : website edification http://uvlist.org/ : free classifieds for the Upper Valley From tobias.luetke at gmail.com Wed Jul 20 12:18:25 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Wed Jul 20 12:13:58 2005 Subject: [typo] Empty span.typo_date generates XHTML warning In-Reply-To: <525eb1d905072008431fb747ea@mail.gmail.com> References: <525eb1d905072008431fb747ea@mail.gmail.com> Message-ID: <9963c1bd05072009185696c3a9@mail.gmail.com> I think this model would be especially nice because non js browsers can still pick up the date. Please look into that if you have some time. There is also a ticket on the trac[1]. [1]: http://typo.leetsoft.com/trac/ticket/173 On 7/20/05, Chris Boone wrote: > Hi all > > I'm setting up a Typo blog for myself -- tweaking it locally first, > now, before deploying to Textdrive soon -- and I noticed that the new > (?) way to format the published dates, using domscript, uses an empty > span element to store the date in a hidden fashion. Course, Tidy (as > manifested in the Firefox HTML Validator plugin) doesn't like empty > spans. > > I'm new to the list, but I looked through the archives quickly and > didn't see any discussion of this. > > It's not a big deal (obviously... :), but since I do sell my services > as a web designer with a focus on web standards, it's not optimal. > > Has anyone thought about another way to implement this functionality? > (Cause it's pretty cool.) > > For instance, might it be worth including the old fashioned (static, > that is) post date within the span, and having show_date_as_local_time > hide it / replace it with the fancier (dynamic, that is) version? > > Thanks. > > -- > Chris Boone > > http://hypsometry.com/ : website edification > http://uvlist.org/ : free classifieds for the Upper Valley > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From kevin at sb.org Wed Jul 20 13:30:37 2005 From: kevin at sb.org (Kevin Ballard) Date: Wed Jul 20 13:25:54 2005 Subject: [typo] Empty span.typo_date generates XHTML warning In-Reply-To: <9963c1bd05072009185696c3a9@mail.gmail.com> References: <525eb1d905072008431fb747ea@mail.gmail.com> <9963c1bd05072009185696c3a9@mail.gmail.com> Message-ID: On Jul 20, 2005, at 12:18 PM, Tobias Luetke wrote: > I think this model would be especially nice because non js browsers > can still pick up the date. > > Please look into that if you have some time. > > There is also a ticket on the trac[1]. > > [1]: http://typo.leetsoft.com/trac/ticket/173 That ticket that I submitted still uses javascript. I suppose maybe you could insert a