From rasputnik at gmail.com Sat Apr 1 01:59:19 2006 From: rasputnik at gmail.com (Dick Davies) Date: Sat, 1 Apr 2006 07:59:19 +0100 Subject: [typo] "Guid has already been taken" error In-Reply-To: References: Message-ID: <3f1760603312259s831a0dak427b62f5e52953b5@mail.gmail.com> What database is it? On 31/03/06, Cory Vander Jagt wrote: > hello - > > sorry for the spam if there is a better place to look for this sort of > thing, but my old install of typo started acting strangely the other day so > i tried to upgrade. i wasn't having much luck, so i did a fresh install of > the latest trunk release (977 i believe) and then imported my old articles > from a text file. > > that worked fine, except now, when i try to post a new article i get the > following error: > > > 1 error prohibited this article from being saved > > > > There were problems with the following fields: > > > > * Guid has already been taken > > > > I've tried changing and even deleting the old guid's from the database but > that doesn't help. any suggestions? > > 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 http://number9.hellooperator.net/ From kevin at sb.org Sat Apr 1 02:05:16 2006 From: kevin at sb.org (Kevin Ballard) Date: Fri, 31 Mar 2006 23:05:16 -0800 Subject: [typo] "Guid has already been taken" error In-Reply-To: References: Message-ID: <7DACFCD1-296A-4DF4-B430-F3009B778F8D@sb.org> That error tends to happen if you have any guids set to NULL. I don't know how people end up with NULL guids, but it's happened in the past and caused this error. On Mar 31, 2006, at 1:25 PM, Cory Vander Jagt wrote: > sorry for the spam if there is a better place to look for this sort > of thing, but my old install of typo started acting strangely the > other day so i tried to upgrade. i wasn't having much luck, so i > did a fresh install of the latest trunk release (977 i believe) and > then imported my old articles from a text file. > > that worked fine, except now, when i try to post a new article i > get the following error: > > 1 error prohibited this article from being saved > > There were problems with the following fields: > > * Guid has already been taken > > I've tried changing and even deleting the old guid's from the > database but that doesn't help. any suggestions? -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060331/3e991fd0/attachment-0001.bin From jon.borgthorsson at gmail.com Sat Apr 1 06:23:14 2006 From: jon.borgthorsson at gmail.com (Jon Gretar Borgthorsson) Date: Sat, 1 Apr 2006 11:23:14 +0000 Subject: [typo] Comments under admin fails Message-ID: Using rails 1.1 and the newest trunk of typo I just noticed that if I try to view the articles comment on the admin side I get an Application error (Rails). The log shows the error shown at the end. Wondering if this is a problem at my side or if anyone else has this problem. ### Rails Error Begins ### Processing CommentsController#list (for 85.220.114.88 at 2006-04-01 06:19:55) [GET] Session ID: 4f081261c4610dc3619bfe7356a047b9 Parameters: {"action"=>"list", "controller"=>"admin/comments", "article_id"=>"29"} Rendering within layouts/administration Rendering admin/comments/list NoMethodError (undefined method `controller_name' for nil:NilClass): /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/caching.rb:541:in `callback' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/caching.rb:534:in `after' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/filters.rb:227:in `around_filter' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/filters.rb:388:in `call_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/filters.rb:381:in `call_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/filters.rb:376:in `after_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/filters.rb:356:in `perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/rescue.rb:82:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/base.rb:379:in `process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/filters.rb:364:in `process_without_session_management_support' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session_management.rb:117:in `process' /usr/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/dispatcher.rb:38:in `dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/fcgi_handler.rb:150:in `process_request' /usr/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/fcgi_handler.rb:54:in `process!' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:600:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/fcgi_handler.rb:53:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/fcgi_handler.rb:23:in `process!' /public/dispatch.fcgi:24 ### Rails Error Ends ### -- -------------- Jon Gretar Borgthorsson http://www.jongretar.net/ From kevin at sb.org Sat Apr 1 07:15:16 2006 From: kevin at sb.org (Kevin Ballard) Date: Sat, 1 Apr 2006 04:15:16 -0800 Subject: [typo] Comments under admin fails In-Reply-To: References: Message-ID: <549F8BB9-6FD8-462B-8C7B-613B7D0EA7C4@sb.org> Please file a ticket and assign it a milestone of 4.0. On Apr 1, 2006, at 3:23 AM, Jon Gretar Borgthorsson wrote: > Using rails 1.1 and the newest trunk of typo I just noticed that if I > try to view the articles comment on the admin side I get an > Application error (Rails). The log shows the error shown at the end. > > Wondering if this is a problem at my side or if anyone else has > this problem. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060401/c5540e34/attachment.bin From jon.borgthorsson at gmail.com Sat Apr 1 10:40:58 2006 From: jon.borgthorsson at gmail.com (Jon Gretar Borgthorsson) Date: Sat, 1 Apr 2006 15:40:58 +0000 Subject: [typo] Comments under admin fails In-Reply-To: <549F8BB9-6FD8-462B-8C7B-613B7D0EA7C4@sb.org> References: <549F8BB9-6FD8-462B-8C7B-613B7D0EA7C4@sb.org> Message-ID: Just didn't want to make a ticket if I was the only one with the problem. The odds of this being totally my fault are high. ;) On 4/1/06, Kevin Ballard wrote: > Please file a ticket and assign it a milestone of 4.0. > > On Apr 1, 2006, at 3:23 AM, Jon Gretar Borgthorsson wrote: > > > Using rails 1.1 and the newest trunk of typo I just noticed that if I > > try to view the articles comment on the admin side I get an > > Application error (Rails). The log shows the error shown at the end. > > > > Wondering if this is a problem at my side or if anyone else has > > this problem. > > -- > Kevin Ballard > kevin at sb.org > http://kevin.sb.org > http://www.tildesoft.com > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > -- -------------- Jon Gretar Borgthorsson http://www.jongretar.net/ From gpsnospam at gmail.com Sat Apr 1 11:17:34 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sat, 1 Apr 2006 17:17:34 +0100 Subject: [typo] r822 to r983 migration failing Message-ID: Okay the last version of trunk I was sitting on was r822. I thought I'd embrace 1.1 fully and push up to r983. Running rake migrate throws out these errors: ** Invoke migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute migrate Adding display name to tags rake aborted! uninitialized constant ApplicationController /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:200:in `const_missing' /home/*****/gpshewan.com/app/controllers/textfi/usr/local/lib/ site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/local/lib/site_ruby/ 1.8/rubygems/custom_require.rb:18:i/usr/lib/ruby/gems/1.8/gems/ activesupport-1.2.5/lib/active_srb:214:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:39:in `require_or_load' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:22:in `depend_on' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:178:in `require_dependency' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:178:in `require_dependency' /home/.farpoint/gpshewan/gpshewan.com/app/models/text_filter/usr/ local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/local/lib/ site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/lib/ruby/gems/1.8/ gems/activesupport-1.2.5/lib/active_srb:214:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:39:in `require_or_load' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:22:in `depend_on' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:30:in `associate_with' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:179:in `require_association' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:179:in `require_association' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_rb:780:in `require_association_class' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_rb:524:in `belongs_to_without_reflection' (eval):5:in `belongs_to' /home/.farpoint/gpshewan/gpshewan.com/app/models/content.rb:/usr/ local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/local/lib/ site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/lib/ruby/gems/1.8/ gems/activesupport-1.2.5/lib/active_srb:214:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:39:in `require_or_load' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:22:in `depend_on' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:178:in `require_dependency' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:178:in `require_dependency' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:194:in `const_missing' /home/.farpoint/gpshewan/gpshewan.com/app/models/article.rb:/usr/ local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/local/lib/ site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/lib/ruby/gems/1.8/ gems/activesupport-1.2.5/lib/active_srb:214:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:39:in `require_or_load' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:22:in `depend_on' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:30:in `associate_with' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:179:in `require_association' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:179:in `require_association' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_rb:780:in `require_association_class' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_rb:650:in `has_and_belongs_to_many_without_reflection' (eval):5:in `has_and_belongs_to_many' /home/.farpoint/gpshewan/gpshewan.com/app/models/tag.rb:2 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/ local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:i/usr/lib/ruby/ gems/1.8/gems/activesupport-1.2.5/lib/active_srb:214:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:39:in `require_or_load' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:22:in `depend_on' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:178:in `require_dependency' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:178:in `require_dependency' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_srb:194:in `const_missing' ./db/migrate//36_add_tag_display_name.rb:4:in `up' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_r28:in `send' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_r28:in `migrate' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_r23:in `each' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_r23:in `migrate' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_r90:in `up' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_r81:in `migrate' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/tasks/databases./usr/lib/ ruby/gems/1.8/gems/rails-1.0.0/lib/tasks/databases./usr/lib/ruby/gems/ 1.8/gems/rake-0.7.0/lib/rake.rb:232:in `e/usr/lib/ruby/gems/1.8/gems/ rake-0.7.0/lib/rake.rb:232:in `e/usr/lib/ruby/gems/1.8/gems/ rake-0.7.0/lib/rake.rb:232:in `e/usr/lib/ruby/gems/1.8/gems/ rake-0.7.0/lib/rake.rb:202:in `i/usr/lib/ruby/gems/1.8/gems/ rake-0.7.0/lib/rake.rb:195:in `s/usr/lib/ruby/gems/1.8/gems/ rake-0.7.0/lib/rake.rb:195:in `i/usr/lib/ruby/gems/1.8/gems/ rake-0.7.0/lib/rake.rb:1719:in `/usr/lib/ruby/gems/1.8/gems/ rake-0.7.0/lib/rake.rb:1719:in `/usr/lib/ruby/gems/1.8/gems/ rake-0.7.0/lib/rake.rb:1719:in `/usr/lib/ruby/gems/1.8/gems/ rake-0.7.0/bin/rake:7 /usr/bin/rake:18:in `load' /usr/bin/rake:18 I'm rolling back to r822 now. But is this something that needs a ticket? Or something simpler? Cheers Gary From ernieoporto at gmail.com Sat Apr 1 14:05:38 2006 From: ernieoporto at gmail.com (Ernie Oporto) Date: Sat, 1 Apr 2006 14:05:38 -0500 Subject: [typo] titles for tagged pages Message-ID: This is probably a quickie. I'd like to see pages that are tag links, such as http://www.website.com/blog/articles/tag/blah have a title of " Website.com - Blah", where currently the title is only set to "Website.com". How can I set that? More importantly so that it's not overwritten each time I svn update. ;-) The reason for this is that most page tracking systems, like Mint, will key on the page titles when aggregating the data, so tagged pages do not count any diffferently than the front page. -- Ernie http://www.shokk.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060401/68d56db7/attachment.htm From pdcawley at bofh.org.uk Sat Apr 1 16:03:20 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sat, 01 Apr 2006 22:03:20 +0100 Subject: [typo] r822 to r983 migration failing In-Reply-To: (Gary Shewan's message of "Sat, 1 Apr 2006 17:17:34 +0100") References: Message-ID: Gary Shewan writes: > Okay the last version of trunk I was sitting on was r822. I thought > I'd embrace 1.1 fully and push up to r983. Running rake migrate > throws out these errors: > > ** Invoke migrate (first_time) > ** Invoke environment (first_time) > ** Execute environment > ** Execute migrate > Adding display name to tags Ah! It's about to be fixed, the migration didn't use a BareMigration. I caught it on my big trawl through the migrations fixing things for sqlite. -- Piers Cawley http://www.bofh.org.uk/ From trejkaz at trypticon.org Sat Apr 1 18:55:17 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Sun, 2 Apr 2006 09:55:17 +1000 Subject: [typo] titles for tagged pages In-Reply-To: References: Message-ID: <200604020955.23363.trejkaz@trypticon.org> On Sunday 02 April 2006 05:05, Ernie Oporto wrote: > This is probably a quickie. I'd like to see pages that are tag links, such > as http://www.website.com/blog/articles/tag/blah have a title of " > Website.com - Blah", where currently the title is only set to > "Website.com". How can I set that? Inside the tag method of articles_controller.rb, you probably want to assign @page_title to the title you want. > More importantly so that it's not overwritten each time I svn update. ;-) This is probably pointing out the obvious, but when you make changes to any files in a SVN repository, those changes are preserved when you svn update. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ 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: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060402/ce61387f/attachment.bin From arvind at grovernetwork.com Sat Apr 1 19:00:51 2006 From: arvind at grovernetwork.com (arvind s grover) Date: Sat, 1 Apr 2006 19:00:51 -0500 Subject: [typo] Typo-list Digest, Vol 13, Issue 1 In-Reply-To: References: Message-ID: <4B403CD7-9552-46B3-B686-C59ADDB751AF@grovernetwork.com> Jared, you are right to some degree, people searching through the archive won't be able to access the files once 24 hours has passed. The problem is that sometimes files copied into e-mails lose all their formatting and become impossible to read. Maybe do both? Paste the code in the file and into rafb.net/paste so people can see the pretty version and the cruddy version. On Apr 1, 2006, at 2:06 AM, typo-list-request at rubyforge.org wrote: Date: Fri, 31 Mar 2006 22:02:32 -0500 From: Jared Luxenberg Subject: Re: [typo] how to paste code to the list To: typo-list at rubyforge.org Message-ID: <442DED48.6070107 at comcast.net> Content-Type: text/plain; charset=ISO-8859-1 > Kevin, next time, paste your log here: http://rafb.net/paste/ > > > Please, please do _not_ do this...it makes the mailing list archives useless. Unless I'm wrong and pasting code is bad netiquette. - Jared From ernieoporto at gmail.com Sat Apr 1 22:11:50 2006 From: ernieoporto at gmail.com (Ernie Oporto) Date: Sat, 1 Apr 2006 22:11:50 -0500 Subject: [typo] titles for tagged pages In-Reply-To: <200604020955.23363.trejkaz@trypticon.org> References: <200604020955.23363.trejkaz@trypticon.org> Message-ID: I found this in app/helpers/articles_helper.rb def page_title if @page_title @page_title else this_blog.blog_name || "Typo" end end I'm trying to add something like + " - #{tag.display_name}" somewhere but I can't seem to find where and how. On 4/1/06, Trejkaz wrote: > > On Sunday 02 April 2006 05:05, Ernie Oporto wrote: > > This is probably a quickie. I'd like to see pages that are tag links, > such > > as http://www.website.com/blog/articles/tag/blah have a title of " > > Website.com - Blah", where currently the title is only set to > > "Website.com". How can I set that? > > Inside the tag method of articles_controller.rb, you probably want to > assign > @page_title to the title you want. > > -- Ernie http://www.shokk.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060401/5ddb1a7c/attachment.htm From kevin at sb.org Sat Apr 1 22:27:02 2006 From: kevin at sb.org (Kevin Ballard) Date: Sat, 1 Apr 2006 19:27:02 -0800 Subject: [typo] titles for tagged pages In-Reply-To: References: <200604020955.23363.trejkaz@trypticon.org> Message-ID: <1C1FE284-E80D-45F6-AEEA-1D956FA2B438@sb.org> You might try doing exactly what Trejkaz suggested. In app/ controllers/articles_controller.rb, look for the method you want to override the title for and set @page_title there. On Apr 1, 2006, at 7:11 PM, Ernie Oporto wrote: > I found this in app/helpers/articles_helper.rb > > def page_title > if @page_title > @page_title > else > this_blog.blog_name || "Typo" > end > end > > I'm trying to add something like > + " - #{tag.display_name}" > somewhere but I can't seem to find where and how. > > > On 4/1/06, Trejkaz wrote:On Sunday 02 April > 2006 05:05, Ernie Oporto wrote: > > This is probably a quickie. I'd like to see pages that are tag > links, such > > as http://www.website.com/blog/articles/tag/blah have a title of " > > Website.com - Blah", where currently the title is only set to > > "Website.com". How can I set that? > > Inside the tag method of articles_controller.rb, you probably want > to assign > @page_title to the title you want. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060401/78babfa1/attachment.bin From ernieoporto at gmail.com Sun Apr 2 00:23:24 2006 From: ernieoporto at gmail.com (Ernie Oporto) Date: Sun, 2 Apr 2006 00:23:24 -0500 Subject: [typo] titles for tagged pages In-Reply-To: <1C1FE284-E80D-45F6-AEEA-1D956FA2B438@sb.org> References: <200604020955.23363.trejkaz@trypticon.org> <1C1FE284-E80D-45F6-AEEA-1D956FA2B438@sb.org> Message-ID: I found this in app/controllers/articles_controller.rb as the only mention of @page_title or tags. def tag render_grouping(Tag) end def view_page if(@page = Page.find_by_name(params[:name].to_a.join('/'))) @page_title = @page.title else render :nothing => true, :status => 404 end end and setting the @page_title line to @page_title = @page.title + " - #{tag.display_name}" doesn't produce anything when the URL is http://www.website.com/blog/articles/tag/blah The text I'm trying to add to the title is dynamic based on the tag if the path includes "articles/tag", so it's not a predefined text I'm setting. In fact it should probably work that way for categories, too. I'll keep digging to see how this all works with articles_controller.rb Complete newb here, if you haven't noticed. =) On 4/1/06, Kevin Ballard wrote: > > You might try doing exactly what Trejkaz suggested. In app/ > controllers/articles_controller.rb, look for the method you want to > override the title for and set @page_title there. > > On Apr 1, 2006, at 7:11 PM, Ernie Oporto wrote: > > > I found this in app/helpers/articles_helper.rb > > > > def page_title > > if @page_title > > @page_title > > else > > this_blog.blog_name || "Typo" > > end > > end > > > > I'm trying to add something like > > + " - #{tag.display_name}" > > somewhere but I can't seem to find where and how. > > > > > > On 4/1/06, Trejkaz wrote:On Sunday 02 April > > 2006 05:05, Ernie Oporto wrote: > > > This is probably a quickie. I'd like to see pages that are tag > > links, such > > > as http://www.website.com/blog/articles/tag/blah have a title of " > > > Website.com - Blah", where currently the title is only set to > > > "Website.com". How can I set that? > > > > Inside the tag method of articles_controller.rb, you probably want > > to assign > > @page_title to the title you want. > > -- > Kevin Ballard > kevin at sb.org > http://kevin.sb.org > http://www.tildesoft.com > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > -- Ernie http://www.shokk.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060402/dc012cda/attachment.htm From trejkaz at trypticon.org Sun Apr 2 05:00:55 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Sun, 2 Apr 2006 19:00:55 +1000 Subject: [typo] titles for tagged pages In-Reply-To: References: <1C1FE284-E80D-45F6-AEEA-1D956FA2B438@sb.org> Message-ID: <200604021901.00280.trejkaz@trypticon.org> On Sunday 02 April 2006 15:23, Ernie Oporto wrote: > I found this in app/controllers/articles_controller.rb as the only mention > of @page_title or tags. > > def tag > render_grouping(Tag) > end > def view_page > if(@page = Page.find_by_name(params[:name].to_a.join('/'))) > @page_title = @page.title > else > render :nothing => true, :status => 404 > end > end > > and setting the @page_title line to > @page_title = @page.title + " - #{tag.display_name}" > doesn't produce anything when the URL is > http://www.website.com/blog/articles/tag/blah I think you might be getting a bit confused here. You want to set the title in the "tag" method, not the "view_page" method. It's the tag pages which you want to have the title, right? TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ 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: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060402/3456d62c/attachment.bin From gpsnospam at gmail.com Sun Apr 2 06:24:13 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sun, 2 Apr 2006 11:24:13 +0100 Subject: [typo] r822 to r983 migration failing In-Reply-To: References: Message-ID: <81AF61A4-A217-45F2-A086-0E8DD783BF12@gmail.com> On 1 Apr 2006, at 22:03, Piers Cawley wrote: > Gary Shewan writes: > >> Okay the last version of trunk I was sitting on was r822. I thought >> I'd embrace 1.1 fully and push up to r983. Running rake migrate >> throws out these errors: >> >> ** Invoke migrate (first_time) >> ** Invoke environment (first_time) >> ** Execute environment >> ** Execute migrate >> Adding display name to tags > > Ah! It's about to be fixed, the migration didn't use a > BareMigration. I caught it on my big trawl through the migrations > fixing things for sqlite. That was a very smooth and successful migration from r822 to r984. Good man Piers! From gpsnospam at gmail.com Sun Apr 2 10:10:34 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sun, 2 Apr 2006 15:10:34 +0100 Subject: [typo] Last n comments sidebar? Message-ID: I've searched and haven't seen anything, but has anybody had a bash at a 'Last n comments' sidebar? Cheers Gary From gpsnospam at gmail.com Sun Apr 2 10:36:12 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sun, 2 Apr 2006 15:36:12 +0100 Subject: [typo] 'pings' table Message-ID: What's the point of the 'pings' table? It seems to just keep a record of every site I've linked to. That seems to be a bit of a weight to my db without much use. I could see that there _could_ be a use, but I don't particularly want to keep a record of every time I've hit one of the ping servers. Safe to empty it periodically in the same way that I empty the 'sessions' table once in a while? Cheers From kevin at sb.org Sun Apr 2 19:46:24 2006 From: kevin at sb.org (Kevin Ballard) Date: Sun, 2 Apr 2006 16:46:24 -0700 Subject: [typo] 'pings' table In-Reply-To: References: Message-ID: <033C7793-814D-448A-BAF0-8673470B09B9@sb.org> I assume it's so if you edit an article it can tell what sites it's already pinged and avoid re-pinging them. I haven't looked at the code relative to this, though. On Apr 2, 2006, at 7:36 AM, Gary Shewan wrote: > What's the point of the 'pings' table? > > It seems to just keep a record of every site I've linked to. That > seems to be a bit of a weight to my db without much use. I could see > that there _could_ be a use, but I don't particularly want to keep a > record of every time I've hit one of the ping servers. > > Safe to empty it periodically in the same way that I empty the > 'sessions' table once in a while? -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060402/1a471301/attachment-0001.bin From pdcawley at bofh.org.uk Sun Apr 2 19:55:45 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 03 Apr 2006 00:55:45 +0100 Subject: [typo] r822 to r983 migration failing In-Reply-To: <81AF61A4-A217-45F2-A086-0E8DD783BF12@gmail.com> (Gary Shewan's message of "Sun, 2 Apr 2006 11:24:13 +0100") References: <81AF61A4-A217-45F2-A086-0E8DD783BF12@gmail.com> Message-ID: Gary Shewan writes: > On 1 Apr 2006, at 22:03, Piers Cawley wrote: > >> Gary Shewan writes: >> >>> Okay the last version of trunk I was sitting on was r822. I thought >>> I'd embrace 1.1 fully and push up to r983. Running rake migrate >>> throws out these errors: >>> >>> ** Invoke migrate (first_time) >>> ** Invoke environment (first_time) >>> ** Execute environment >>> ** Execute migrate >>> Adding display name to tags >> >> Ah! It's about to be fixed, the migration didn't use a >> BareMigration. I caught it on my big trawl through the migrations >> fixing things for sqlite. > > That was a very smooth and successful migration from r822 to r984. > > Good man Piers! Thank heavens for that. By all rights I should never have checked that big migration patch in when I did; I'd been working on it for about 8 hours straight, then rushed straight out to the pub, sang myself hoarse for a couple of hours and the next day was my weekly "NO COMPUTERS!" day. Sometimes arrogance pays off I guess. -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Sun Apr 2 19:56:23 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 03 Apr 2006 00:56:23 +0100 Subject: [typo] Last n comments sidebar? In-Reply-To: (Gary Shewan's message of "Sun, 2 Apr 2006 15:10:34 +0100") References: Message-ID: Gary Shewan writes: > I've searched and haven't seen anything, but has anybody had a bash > at a 'Last n comments' sidebar? Mmm... nice idea. Write a story for it and stick it on the trac. -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Sun Apr 2 20:02:07 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 03 Apr 2006 01:02:07 +0100 Subject: [typo] 'pings' table In-Reply-To: (Gary Shewan's message of "Sun, 2 Apr 2006 15:36:12 +0100") References: Message-ID: Gary Shewan writes: > What's the point of the 'pings' table? > > It seems to just keep a record of every site I've linked to. That > seems to be a bit of a weight to my db without much use. I could see > that there _could_ be a use, but I don't particularly want to keep a > record of every time I've hit one of the ping servers. > > Safe to empty it periodically in the same way that I empty the > 'sessions' table once in a while? It's used by the notification engine to avoid pinging anywhere twice for the same article. I'm afraid I'm not up on the workings of said notification system, but I would be wary of emptying it or you might find yourself incontinently pinging everywhere all over again when someone comments on an article. Yes. This needs to be fixed. No, it probably won't be fixed by 4.0 Probably the first step will be to change the relationship from has_many/belongs_to to has_and_belongs_to_many or, more likely, has_many ... through ... and use the join table as a state object for publication state. -- Piers Cawley http://www.bofh.org.uk/ From uzair at nairang.org Sun Apr 2 20:10:55 2006 From: uzair at nairang.org (Syed Uzair Aqeel) Date: Mon, 3 Apr 2006 01:10:55 +0100 Subject: [typo] 'pings' table In-Reply-To: Message-ID: <20060403001054.3E3E7199A13@murdock.dreamhost.com> > notification system, but I would be wary of emptying it or you might > find yourself incontinently pinging everywhere all over again when Bwahahaha. I, for one, support incontinence as the new approach to maintaining Typo's lightweight-ness ;) Uzair From arvind at grovernetwork.com Sun Apr 2 20:45:31 2006 From: arvind at grovernetwork.com (arvind s grover) Date: Sun, 02 Apr 2006 20:45:31 -0400 Subject: [typo] Last n comments sidebar? In-Reply-To: Message-ID: Gary, there was a "last posts" sidebar posted, maybe you can hack that? http://www.steelpixel.com/articles/2006/03/08/recent-posts-typo-plugin there was also some discussion and a little progress on this in june on the list: http://article.gmane.org/gmane.comp.web.typo.user/218/match=sidebar+recent >Message: 6 >Date: Sun, 2 Apr 2006 15:10:34 +0100 >From: Gary Shewan >Subject: [typo] Last n comments sidebar? >To: typo-list at rubyforge.org >Message-ID: >Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > >I've searched and haven't seen anything, but has anybody had a bash >at a 'Last n comments' sidebar? > >Cheers > >Gary > From cwsaylor at gmail.com Sun Apr 2 21:33:07 2006 From: cwsaylor at gmail.com (Chris Saylor) Date: Sun, 2 Apr 2006 21:33:07 -0400 Subject: [typo] Last n comments sidebar? In-Reply-To: References: Message-ID: That plugin sounds like a good idea. I wrote the recent posts one. I'll see if I can take a crack at it this week. Chris http://www.steelpixel.com On 4/2/06, arvind s grover wrote: > > Gary, there was a "last posts" sidebar posted, maybe you can hack that? > http://www.steelpixel.com/articles/2006/03/08/recent-posts-typo-plugin > > there was also some discussion and a little progress on this in june on > the list: > http://article.gmane.org/gmane.comp.web.typo.user/218/match=sidebar+recent > > > >Message: 6 > >Date: Sun, 2 Apr 2006 15:10:34 +0100 > >From: Gary Shewan > >Subject: [typo] Last n comments sidebar? > >To: typo-list at rubyforge.org > >Message-ID: > >Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > > >I've searched and haven't seen anything, but has anybody had a bash > >at a 'Last n comments' sidebar? > > > >Cheers > > > >Gary > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From steve.longdo at gmail.com Sun Apr 2 22:50:23 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Sun, 2 Apr 2006 21:50:23 -0500 Subject: [typo] 'pings' table In-Reply-To: <20060403001054.3E3E7199A13@murdock.dreamhost.com> References: <20060403001054.3E3E7199A13@murdock.dreamhost.com> Message-ID: +1 for incontinence :-) On 4/2/06, Syed Uzair Aqeel wrote: > > > notification system, but I would be wary of emptying it or you might > > find yourself incontinently pinging everywhere all over again when > > Bwahahaha. I, for one, support incontinence as the new approach to > maintaining Typo's lightweight-ness ;) > > Uzair > > _______________________________________________ > 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/20060402/7fd9f1d2/attachment.htm From meta at pobox.com Sun Apr 2 22:52:14 2006 From: meta at pobox.com (mathew) Date: Sun, 02 Apr 2006 21:52:14 -0500 Subject: [typo] My wishlist Message-ID: <44308DDE.5060701@pobox.com> 1. Expiry dates. If I'm posting a note about an event coming up in a couple of weeks, there's no point leaving the posting there forever. So, I'd like to be able to specify that the system should quietly delete the entry at some time in the future. 2. Time zone support. I run using PostgreSQL, and hack the schema to say 'TIMESTAMP WITH TIME ZONE' instead of just 'TIMESTAMP', and everything works. It would be nice if this was officially supported. Call me picky, but I like my postings to have a complete date and time, so I don't have to reprocess the entire database if I change to a web host in a different time zone. It would therefore be nice if I could pick a time zone for the output, rather than having it use whatever the server's time zone happens to be. This will probably be painful because of the need to support sucky databases. 3. FOAF. Should be pretty trivial. 4. Tags with dashes and slashes in, e.g. 'e-mail', '9/11'. 5. A database integrity checker. Some integrity constraints in the schema wouldn't be a bad idea too, but again, the desire to support sucky databases will likely limit that. 6. User accounts for commenters / confirmation e-mails My ideal for comments would be: Users get to either (a) login, or (b) specify a name, and an e-mail address. They can check a box to hide the e-mail address from the page, but I always get to see it. If they don't log in, an e-mail is sent to confirm that the e-mail address is real, before the posting goes on the site. The e-mail also offers to let them set up an account. They can then use login/password instead of having to type name and e-mail and respond to the ping. Also, since I see on the wishlist a desire to ditch the aggregator code in favor of something like feedtools, I'd like to plug my own offering: . Sure, it's less featureful... but it's also about 1/10th of the size. mathew -- From pdcawley at bofh.org.uk Mon Apr 3 02:59:55 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 03 Apr 2006 07:59:55 +0100 Subject: [typo] My wishlist In-Reply-To: <44308DDE.5060701@pobox.com> (mathew's message of "Sun, 02 Apr 2006 21:52:14 -0500") References: <44308DDE.5060701@pobox.com> Message-ID: mathew writes: [ list of stories elided] Mathew, please could you separate these into story tickets on the trac (http://www.typosphere.org/trac) -- Piers Cawley http://www.bofh.org.uk/ From gpsnospam at gmail.com Mon Apr 3 05:38:58 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Mon, 3 Apr 2006 10:38:58 +0100 Subject: [typo] 'pings' table In-Reply-To: References: Message-ID: <06DEECB6-DA9E-4CB7-A82C-D0BC47C679A8@gmail.com> On 3 Apr 2006, at 01:02, Piers Cawley wrote: > Gary Shewan writes: > >> What's the point of the 'pings' table? >> >> It seems to just keep a record of every site I've linked to. That >> seems to be a bit of a weight to my db without much use. I could see >> that there _could_ be a use, but I don't particularly want to keep a >> record of every time I've hit one of the ping servers. >> >> Safe to empty it periodically in the same way that I empty the >> 'sessions' table once in a while? > > It's used by the notification engine to avoid pinging anywhere twice > for the same article. I'm afraid I'm not up on the workings of said > notification system, but I would be wary of emptying it or you might > find yourself incontinently pinging everywhere all over again when > someone comments on an article. > > Yes. This needs to be fixed. No, it probably won't be fixed by 4.0 > > Probably the first step will be to change the relationship from > has_many/belongs_to to has_and_belongs_to_many or, more likely, > has_many ... through ... and use the join table as a state object for > publication state. Hmmm, problem is I don't really need to keep a record that I pinged Technorati in October so some I'll probably do some pruning. From gpsnospam at gmail.com Mon Apr 3 07:29:55 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Mon, 3 Apr 2006 12:29:55 +0100 Subject: [typo] Last n comments sidebar? In-Reply-To: References: Message-ID: On 3 Apr 2006, at 02:33, Chris Saylor wrote: > That plugin sounds like a good idea. I wrote the recent posts one. > I'll see if I can take a crack at it this week. > > Chris > http://www.steelpixel.com > > > On 4/2/06, arvind s grover wrote: >> >> Gary, there was a "last posts" sidebar posted, maybe you can hack >> that? >> http://www.steelpixel.com/articles/2006/03/08/recent-posts-typo- >> plugin >> >> there was also some discussion and a little progress on this in >> june on >> the list: >> http://article.gmane.org/gmane.comp.web.typo.user/218/match=sidebar >> +recent Excellent, saves me dusting off my rails book :) From scott at sigkill.org Mon Apr 3 09:50:07 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 3 Apr 2006 06:50:07 -0700 Subject: [typo] titles for tagged pages In-Reply-To: <200604021901.00280.trejkaz@trypticon.org> References: <1C1FE284-E80D-45F6-AEEA-1D956FA2B438@sb.org> <200604021901.00280.trejkaz@trypticon.org> Message-ID: <14b7e5ef0604030650j1b2472cbmbb092b301a71d4cd@mail.gmail.com> One thing to remember--the search engine optimization people generally*discourage* putting your site name in the ofpages--apparently it causes a noticable drop in search engineperformance. Scott From gpsnospam at gmail.com Mon Apr 3 09:51:04 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Mon, 3 Apr 2006 14:51:04 +0100 Subject: [typo] Dreamhost, Rails 1.1 and fcgi Message-ID: <ECB8182C-8DF0-468B-95DE-9A3C9EE8D62A@gmail.com> This might not be of interest to everyone, but to anyone on Dreamhost (or other shared providers) it might ring bells. Do you remember the issues with running fcgi and 500 errors? I had a few fixes in place. I think I'd had a newer version of 'fcgi_handler.rb' sitting in /lib. In dispatch.fcgi I had set "RailsFCGIHandler.process! nil, 10" so there were 10 requests between GC and this worked quite well. I hardly saw any fcgi crashes or 500 errors. Of course we're now dealing with Rails 1.1 and I haven't put any of those changes back in. I've seen a few extended 500 errors and crashes, but I wouldn't point a finger at fcgi handling just yet. I need to do some research to see what 1.1 has brought in with regards to this. Anybody else looked at it? Seen any real problems? Made custom changes? Cheers Gary From gpsnospam at gmail.com Mon Apr 3 10:22:03 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Mon, 3 Apr 2006 15:22:03 +0100 Subject: [typo] NoMethodError (Blog:Class) error in production log Message-ID: <E2D20B6B-6F71-4E94-904B-1A83E7184BB5@gmail.com> This error keeps cropping up in my production log. I don't know if it's contributing to any flakyness. Anybody any clues? NoMethodError (undefined method `default' for Blog:Class): /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/ active_record/base.rb:991:in `method_missing' /app/controllers/application.rb:33:in `get_the_blog_object' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/filters.rb:354:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/filters.rb:354:in `call_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/filters.rb:350:in `each' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/filters.rb:350:in `call_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/filters.rb:339:in `before_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/filters.rb:331:in `perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/benchmarking.rb:69:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/rescue.rb:82:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/base.rb:369:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/base.rb:369:in `process_without_session_management_support' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/session_management.rb:116:in `process' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in `dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb: 141:in `process_request' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb: 53:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb: 52:in `each_cgi' /usr/lib/ruby/1.8/fcgi.rb:597:in `each' /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb: 52:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb: 22:in `process!' dispatch.fcgi:34 Cheers From phil at cryer.us Mon Apr 3 11:05:10 2006 From: phil at cryer.us (phil) Date: Mon, 3 Apr 2006 10:05:10 -0500 Subject: [typo] Article name mungles comment option In-Reply-To: <m264lugvu7.fsf@obelisk.bofh.org.uk> References: <m264lugvu7.fsf@obelisk.bofh.org.uk> Message-ID: <b54e6df1e38631bc71f3ae7f6d32f762@pepe.cryer.us> I didn't see this in the bugs, and it's pretty small, but I had an article that I couldn't think of a name for, so I named it '??????' (without the quotes) and the article shows up, but if you click on the title it never takes you to the article's page, thus you can't leave comments. I simply renamed the title, and everything was peachy - so kinda a silly bug, but that's how allot of em are. P -- http://fak3r.com - you dont have to kick it From pdcawley at bofh.org.uk Mon Apr 3 11:07:35 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 03 Apr 2006 16:07:35 +0100 Subject: [typo] NoMethodError (Blog:Class) error in production log In-Reply-To: <E2D20B6B-6F71-4E94-904B-1A83E7184BB5@gmail.com> (Gary Shewan's message of "Mon, 3 Apr 2006 15:22:03 +0100") References: <E2D20B6B-6F71-4E94-904B-1A83E7184BB5@gmail.com> Message-ID: <m2irpqvgso.fsf@obelisk.bofh.org.uk> Gary Shewan <gpsnospam at gmail.com> writes: > This error keeps cropping up in my production log. I don't know if > it's contributing to any flakyness. Anybody any clues? Production? Weird. When we've had problems with missing methods on a class before it's been because the class didn't get reloaded properly, which obviously isn't the case here. Er... -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From scott at sigkill.org Mon Apr 3 11:22:30 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 3 Apr 2006 08:22:30 -0700 Subject: [typo] Article name mungles comment option In-Reply-To: <b54e6df1e38631bc71f3ae7f6d32f762@pepe.cryer.us> References: <m264lugvu7.fsf@obelisk.bofh.org.uk> <b54e6df1e38631bc71f3ae7f6d32f762@pepe.cryer.us> Message-ID: <14b7e5ef0604030822n4c558854wa817bedd764b386f@mail.gmail.com> Is the link to /articles/2006/04/01/??????, or are the ?s URL-encoded? Scott On 4/3/06, phil <phil at cryer.us> wrote:> I didn't see this in the bugs, and it's pretty small, but I had an article that I couldn't think of a name for, so I named it '??????' (without the quotes) and the article shows up, but if you click on the title it never takes you to the article's page, thus you can't leave comments.>> I simply renamed the title, and everything was peachy - so kinda a silly bug, but that's how allot of em are.>> P> --> http://fak3r.com - you dont have to kick it>> _______________________________________________> Typo-list mailing list> Typo-list at rubyforge.org> http://rubyforge.org/mailman/listinfo/typo-list> From gpsnospam at gmail.com Mon Apr 3 11:31:49 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Mon, 3 Apr 2006 16:31:49 +0100 Subject: [typo] NoMethodError (Blog:Class) error in production log In-Reply-To: <m2irpqvgso.fsf@obelisk.bofh.org.uk> References: <E2D20B6B-6F71-4E94-904B-1A83E7184BB5@gmail.com> <m2irpqvgso.fsf@obelisk.bofh.org.uk> Message-ID: <87CB1A48-D937-44D1-983F-8940DEA0546C@gmail.com> On 3 Apr 2006, at 16:07, Piers Cawley wrote: > Gary Shewan <gpsnospam at gmail.com> writes: > >> This error keeps cropping up in my production log. I don't know if >> it's contributing to any flakyness. Anybody any clues? > > Production? Weird. When we've had problems with missing methods on a > class before it's been because the class didn't get reloaded properly, > which obviously isn't the case here. Er... My thought exactly ... the 'Er' that is :) I've put some measures back into dispatch.fcgi which seems to be restarting everything more quickly than was the case this weekend. No long periods of downtime - and to be honest I'm tip-toeing around the bloody thing now It's had a couple of Rails errors this afternoon, but it's come back up pretty quickly. I can handle brief periods of downtime until somebody goes '"Tch, you just have to ..." From cdvander at gmail.com Mon Apr 3 11:36:17 2006 From: cdvander at gmail.com (Cory Vander Jagt) Date: Mon, 3 Apr 2006 11:36:17 -0400 Subject: [typo] "Guid has already been taken" error Message-ID: <d4c464e00604030836r48b83468yb94eadf60f7c7e6@mail.gmail.com> It is a mysql database and there are no NULL guids. Anything else known to cause this error? Thanks! That error tends to happen if you have any guids set to NULL. I don't > know how people end up with NULL guids, but it's happened in the past > and caused this error. > > What database is it? > On 31/03/06, Cory Vander Jagt <cdvander at gmail.com> wrote: > hello - > > sorry for the spam if there is a better place to look for this sort of > thing, but my old install of typo started acting strangely the other day so > i tried to upgrade. i wasn't having much luck, so i did a fresh install of > the latest trunk release (977 i believe) and then imported my old articles > from a text file. > > that worked fine, except now, when i try to post a new article i get the > following error: > > > 1 error prohibited this article from being saved > > > > There were problems with the following fields: > > > > * Guid has already been taken > > > > I've tried changing and even deleting the old guid's from the database but > that doesn't help. any suggestions? > > thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060403/30885a6c/attachment.htm From ernieoporto at gmail.com Mon Apr 3 14:51:09 2006 From: ernieoporto at gmail.com (Ernie Oporto) Date: Mon, 3 Apr 2006 14:51:09 -0400 Subject: [typo] titles for tagged pages In-Reply-To: <200604021901.00280.trejkaz@trypticon.org> References: <f91ac86d0604011105g31c03b2ay7d808adf81d680d0@mail.gmail.com> <1C1FE284-E80D-45F6-AEEA-1D956FA2B438@sb.org> <f91ac86d0604012123n24fd6828rb398f425e5ba80ef@mail.gmail.com> <200604021901.00280.trejkaz@trypticon.org> Message-ID: <f91ac86d0604031151pb36e79v39839dc47b8fde47@mail.gmail.com> Yes, you have it right, Trejkaz. I think I see the light now. Thanks for your pointer about the site name, Scott. On 4/2/06, Trejkaz <trejkaz at trypticon.org> wrote: > > I think you might be getting a bit confused here. You want to set the > title > in the "tag" method, not the "view_page" method. It's the tag pages which > you want to have the title, right? > > TX > > -- > Email: trejkaz at trypticon.org > Jabber ID: trejkaz at trypticon.org > Web site: http://trypticon.org/ > GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > -- Ernie http://www.shokk.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060403/d2d40e14/attachment.htm From phil at cryer.us Mon Apr 3 16:44:02 2006 From: phil at cryer.us (phil) Date: Mon, 3 Apr 2006 15:44:02 -0500 Subject: [typo] =?utf-8?q?Gravatar_not_working=3F?= In-Reply-To: <87CB1A48-D937-44D1-983F-8940DEA0546C@gmail.com> References: <87CB1A48-D937-44D1-983F-8940DEA0546C@gmail.com> Message-ID: <35897439106ba879caf403c848123b08@pepe.cryer.us> My gravitar doesn't seem to be working, but the interesting thing is if you check this page on my site: http://fak3r.com/articles/2005/11/15/howto-install-roundcube-webmail-from-cvs-on-freebsd The second poster has a gravatar that worked; the code looks like this: <img alt="Avatar" class="gravatar" src="http://www.gravatar.com/avatar.php?gravatar_id=931418acb16f9a74fa30664c5e05851b&size=60"> but if you scroll down to any of my posts, the gravatar doesn't work; code looks like this: <img alt="Avatar" class="gravatar" src="http://www.gravatar.com/avatar.php?gravatar_id=086f1cab5625f03d3a04342359757fea&size=60"> I assumed it was just me, but when if cut/paste the link outta that code: http://www.gravatar.com/avatar.php?gravatar_id=086f1cab5625f03d3a04342359757fea&size=60 You can see a curious Dexter as you'd expect. Weird, now the gravatar support isn't crucial for me, but I thought it was strange that his worked, yet mine didn't. Searching the Bugs didn't reveal anything relevant. Thanks P -- http://fak3r.com - you dont have to kick it From trejkaz at trypticon.org Mon Apr 3 17:36:00 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Tue, 4 Apr 2006 07:36:00 +1000 Subject: [typo] titles for tagged pages In-Reply-To: <14b7e5ef0604030650j1b2472cbmbb092b301a71d4cd@mail.gmail.com> References: <f91ac86d0604011105g31c03b2ay7d808adf81d680d0@mail.gmail.com> <200604021901.00280.trejkaz@trypticon.org> <14b7e5ef0604030650j1b2472cbmbb092b301a71d4cd@mail.gmail.com> Message-ID: <200604040736.03542.trejkaz@trypticon.org> On Monday 03 April 2006 23:50, Scott Laird wrote: > One thing to remember--the search engine optimization people > generally*discourage* putting your site name in the <title> > ofpages--apparently it causes a noticable drop in search engineperformance. Now that's interesting. Those same people used to tell you to put it in there because it raised performance. Let me guess -- every spam site on the internet then did it, and thus the odds of a real site doing it fell dramatically, and we ended up back at step 1. In any case, should Typo remove the site name from all the titles? :-) TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ 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: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060404/93d7020a/attachment-0001.bin From kevin at sb.org Tue Apr 4 06:15:51 2006 From: kevin at sb.org (Kevin Ballard) Date: Tue, 4 Apr 2006 03:15:51 -0700 Subject: [typo] Gravatar not working? In-Reply-To: <35897439106ba879caf403c848123b08@pepe.cryer.us> References: <87CB1A48-D937-44D1-983F-8940DEA0546C@gmail.com> <35897439106ba879caf403c848123b08@pepe.cryer.us> Message-ID: <3751E1D4-0680-42B4-86CA-B4C73FB1987B@sb.org> Well that's odd. The first post is supposed to have a gravatar too. I copied & pasted its gravatar into the URL bar and it showed up fine. Then I changed the "&" into a "&" (since that's what Safari would do) and the gravatar simply stopped loading! The only thing I can think of that would cause that is for Gravatar itself to be kinda screwed up. On Apr 3, 2006, at 1:44 PM, phil wrote: > My gravitar doesn't seem to be working, but the interesting thing > is if you check this page on my site: > http://fak3r.com/articles/2005/11/15/howto-install-roundcube- > webmail-from-cvs-on-freebsd > > The second poster has a gravatar that worked; the code looks like > this: > <img alt="Avatar" class="gravatar" src="http://www.gravatar.com/ > avatar.php?gravatar_id=931418acb16f9a74fa30664c5e05851b&size=60"> > > but if you scroll down to any of my posts, the gravatar doesn't > work; code looks like this: > <img alt="Avatar" class="gravatar" src="http://www.gravatar.com/ > avatar.php?gravatar_id=086f1cab5625f03d3a04342359757fea&size=60"> > > I assumed it was just me, but when if cut/paste the link outta that > code: > http://www.gravatar.com/avatar.php? > gravatar_id=086f1cab5625f03d3a04342359757fea&size=60 > > You can see a curious Dexter as you'd expect. Weird, now the > gravatar support isn't crucial for me, but I thought it was strange > that his worked, yet mine didn't. Searching the Bugs didn't reveal > anything relevant. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060404/885b3a7d/attachment.bin From gpsnospam at gmail.com Tue Apr 4 06:52:05 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Tue, 4 Apr 2006 11:52:05 +0100 Subject: [typo] Another NoMethodError - trackbacks this time Message-ID: <4602F85E-0578-4227-81F9-5ADC73A3D49F@gmail.com> Here's another strange NoMethodError from my production log. Strangely this seems to be catching because of trackbacks. I never have trackbacks enabled because in my opinion they're only of use to spammers. Doesn't seem to be trashing fcgi, but ... err ... I haven't a clue what it's impact is. Processing ArticlesController#trackback (for 68.142.250.70 at 2006-04-04 03:39:08) [GET] Parameters: {"action"=>"trackback", "id"=>"1055", "controller"=>"articles"} NoMethodError (undefined method `has_key' for {"action"=>"trackback", "id"=>"1569", "controller"=>"articles"}:HashWithIndifferentAccess): /app/controllers/articles_controller.rb:105:in `trackback' /app/controllers/articles_controller.rb:101:in `catch' /app/controllers/articles_controller.rb:101:in `trackback' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/base.rb:853:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/base.rb:853:in `perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/filters.rb:332:in `perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/benchmarking.rb:69:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/rescue.rb:82:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/base.rb:369:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/base.rb:369:in `process_without_session_management_support' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/session_management.rb:116:in `process' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in `dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb: 141:in `process_request' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb: 53:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb: 52:in `each_cgi' /usr/lib/ruby/1.8/fcgi.rb:597:in `each' /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb: 52:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb: 22:in `process!' dispatch.fcgi:24 Cheers From kevin at sb.org Tue Apr 4 07:59:22 2006 From: kevin at sb.org (Kevin Ballard) Date: Tue, 4 Apr 2006 04:59:22 -0700 Subject: [typo] Another NoMethodError - trackbacks this time In-Reply-To: <4602F85E-0578-4227-81F9-5ADC73A3D49F@gmail.com> References: <4602F85E-0578-4227-81F9-5ADC73A3D49F@gmail.com> Message-ID: <DA4859DF-A42A-4F99-BFAD-5CFF2A3C24E4@sb.org> Huh, there's actually a bug in the code there. Apparently we don't have a test for that action. I'll write a test, then fix the bug. On Apr 4, 2006, at 3:52 AM, Gary Shewan wrote: > Here's another strange NoMethodError from my production log. > Strangely this seems to be catching because of trackbacks. I never > have trackbacks enabled because in my opinion they're only of use to > spammers. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060404/001e9a1d/attachment.bin From trejkaz at trypticon.org Tue Apr 4 08:06:42 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Tue, 4 Apr 2006 22:06:42 +1000 Subject: [typo] Gravatar not working? In-Reply-To: <3751E1D4-0680-42B4-86CA-B4C73FB1987B@sb.org> References: <87CB1A48-D937-44D1-983F-8940DEA0546C@gmail.com> <35897439106ba879caf403c848123b08@pepe.cryer.us> <3751E1D4-0680-42B4-86CA-B4C73FB1987B@sb.org> Message-ID: <200604042206.45379.trejkaz@trypticon.org> On Tuesday 04 April 2006 20:15, Kevin Ballard wrote: > Well that's odd. The first post is supposed to have a gravatar too. I ? > copied & pasted its gravatar into the URL bar and it showed up fine. ? > Then I changed the "&" into a "&" (since that's what Safari would ? > do) and the gravatar simply stopped loading! The only thing I can ? > think of that would cause that is for Gravatar itself to be kinda ? > screwed up. FWIW, I just tried the link in question from Konqueror, and neither worked. Take off the "&size=60" entirely, then it works. It's almost like Gravatar itself is broken. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ 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: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060404/0bdcae30/attachment.bin From kevin at sb.org Tue Apr 4 09:06:42 2006 From: kevin at sb.org (Kevin Ballard) Date: Tue, 4 Apr 2006 06:06:42 -0700 Subject: [typo] Another NoMethodError - trackbacks this time In-Reply-To: <DA4859DF-A42A-4F99-BFAD-5CFF2A3C24E4@sb.org> References: <4602F85E-0578-4227-81F9-5ADC73A3D49F@gmail.com> <DA4859DF-A42A-4F99-BFAD-5CFF2A3C24E4@sb.org> Message-ID: <AAA63F6C-16FF-4134-A7E9-1908BFA33079@sb.org> Ok, fixed in r996. There was actually several problems with receiving trackback pings and this has been fixed. There's also now a test for it. On Apr 4, 2006, at 4:59 AM, Kevin Ballard wrote: > Huh, there's actually a bug in the code there. Apparently we don't > have a test for that action. I'll write a test, then fix the bug. > > On Apr 4, 2006, at 3:52 AM, Gary Shewan wrote: > >> Here's another strange NoMethodError from my production log. >> Strangely this seems to be catching because of trackbacks. I never >> have trackbacks enabled because in my opinion they're only of use to >> spammers. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060404/91769621/attachment.bin From gpsnospam at gmail.com Tue Apr 4 09:22:26 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Tue, 4 Apr 2006 14:22:26 +0100 Subject: [typo] Another NoMethodError - trackbacks this time In-Reply-To: <AAA63F6C-16FF-4134-A7E9-1908BFA33079@sb.org> References: <4602F85E-0578-4227-81F9-5ADC73A3D49F@gmail.com> <DA4859DF-A42A-4F99-BFAD-5CFF2A3C24E4@sb.org> <AAA63F6C-16FF-4134-A7E9-1908BFA33079@sb.org> Message-ID: <A1B83D6F-87B6-42B4-9D88-80F4B3CB0DFE@gmail.com> On 4 Apr 2006, at 14:06, Kevin Ballard wrote: > Ok, fixed in r996. There was actually several problems with > receiving trackback pings and this has been fixed. There's also now > a test for it. > > On Apr 4, 2006, at 4:59 AM, Kevin Ballard wrote: > >> Huh, there's actually a bug in the code there. Apparently we don't >> have a test for that action. I'll write a test, then fix the bug. >> >> On Apr 4, 2006, at 3:52 AM, Gary Shewan wrote: >> >>> Here's another strange NoMethodError from my production log. >>> Strangely this seems to be catching because of trackbacks. I never >>> have trackbacks enabled because in my opinion they're only of use to >>> spammers. Cheers Kevin, I'm pulling down r996 now From gpsnospam at gmail.com Tue Apr 4 11:33:46 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Tue, 4 Apr 2006 16:33:46 +0100 Subject: [typo] Blacklist patterns Message-ID: <28FDA426-50FD-40A6-9D38-381455136F51@gmail.com> Did I miss the 'How-to' on using blacklist patterns in the admin interface? Is it just regex? I hate regex ... it's a black and unfathomable art for me :/ Gary From gpsnospam at gmail.com Tue Apr 4 12:12:26 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Tue, 4 Apr 2006 17:12:26 +0100 Subject: [typo] Another NoMethodError - trackbacks this time In-Reply-To: <AAA63F6C-16FF-4134-A7E9-1908BFA33079@sb.org> References: <4602F85E-0578-4227-81F9-5ADC73A3D49F@gmail.com> <DA4859DF-A42A-4F99-BFAD-5CFF2A3C24E4@sb.org> <AAA63F6C-16FF-4134-A7E9-1908BFA33079@sb.org> Message-ID: <F5E9E04B-2BC1-4AB6-9061-F353C9802AB9@gmail.com> On 4 Apr 2006, at 14:06, Kevin Ballard wrote: > Ok, fixed in r996. There was actually several problems with > receiving trackback pings and this has been fixed. There's also now > a test for it. > > On Apr 4, 2006, at 4:59 AM, Kevin Ballard wrote: > >> Huh, there's actually a bug in the code there. Apparently we don't >> have a test for that action. I'll write a test, then fix the bug. >> >> On Apr 4, 2006, at 3:52 AM, Gary Shewan wrote: >> >>> Here's another strange NoMethodError from my production log. >>> Strangely this seems to be catching because of trackbacks. I never >>> have trackbacks enabled because in my opinion they're only of use to >>> spammers. There wasn't a ticket for this Kevin, but I can confirm there's no errors now. For theme developers, it's worth remembering that you need to change the RDF description ... line 10(ish) in /views/articles/read.rhtml if you have: dc:description="<%=h strip_html(@article.body_html[0..255]).gsub (/-+/, '-') %>" to dc:description="<%=h strip_html(article_html(@article) [0..255]).gsub(/-+/, '-') %>" or it'll throw out errors. From phil at cryer.us Tue Apr 4 12:37:39 2006 From: phil at cryer.us (phil) Date: Tue, 4 Apr 2006 11:37:39 -0500 Subject: [typo] svn: Working copy 'tmp/cache' is missing or not locked In-Reply-To: <28FDA426-50FD-40A6-9D38-381455136F51@gmail.com> References: <28FDA426-50FD-40A6-9D38-381455136F51@gmail.com> Message-ID: <571af563f95dd42fe05b8bcf5f2961b1@pepe.cryer.us> When I change to my typo dir (trunk) and try to do a 'svn up' it fails with svn: Working copy 'tmp/cache' is missing or not locked Of course if I do 'rm -rf tmp/cache/; svn up' it's all good, but I *suspect* I shouldn't have to do that each time. What have I messed up? Thanks P -- http://fak3r.com - you dont have to kick it From phil at cryer.us Wed Apr 5 11:00:00 2006 From: phil at cryer.us (phil) Date: Wed, 5 Apr 2006 10:00:00 -0500 Subject: [typo] With trunk, can no longer login as Admin In-Reply-To: <571af563f95dd42fe05b8bcf5f2961b1@pepe.cryer.us> References: <571af563f95dd42fe05b8bcf5f2961b1@pepe.cryer.us> Message-ID: <5db02b48f7d6f0b915817a07128d8be4@pepe.cryer.us> Running Trunk I can now no longer login as admin. I go to /admin and get the login boxes, enter what I usually do, hit 'Login' but it just refreshes the login page. I thought I'd try to update (notice I still have the tmp/cache is missing or not locked error) but now I can't 'rake migrate' either. Is this broken in SVN, or I am missing something on my end? [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ svn up svn: Working copy 'tmp/cache' is missing or not locked [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rm -rf tmp/cache/ [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ svn up A tmp/cache U app/controllers/admin/sidebar_controller.rb U app/views/admin/sidebar/_active.rhtml U app/views/admin/sidebar/_actives.rhtml U app/views/admin/sidebar/index.rhtml Fetching external item into 'vendor/rails' Updated external to revision 4168. Updated to revision 997. [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake migrate (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) rake aborted! undefined method `namespace' for main:Object ./Rakefile:10 [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ Thanks P -- http://fak3r.com - you dont have to kick it From kevin at sb.org Wed Apr 5 11:52:02 2006 From: kevin at sb.org (Kevin Ballard) Date: Wed, 5 Apr 2006 08:52:02 -0700 Subject: [typo] With trunk, can no longer login as Admin In-Reply-To: <5db02b48f7d6f0b915817a07128d8be4@pepe.cryer.us> References: <571af563f95dd42fe05b8bcf5f2961b1@pepe.cryer.us> <5db02b48f7d6f0b915817a07128d8be4@pepe.cryer.us> Message-ID: <4C13EAF0-58F5-4546-B932-4269BEB0E3FB@sb.org> Can you run `rake --trace migrate`? On Apr 5, 2006, at 8:00 AM, phil wrote: > [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake migrate > (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) > rake aborted! > undefined method `namespace' for main:Object > ./Rakefile:10 > [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060405/330c4764/attachment.bin From phil at cryer.us Wed Apr 5 12:04:46 2006 From: phil at cryer.us (Phil Cryer) Date: Wed, 5 Apr 2006 11:04:46 -0500 Subject: [typo] With trunk, can no longer login as Admin In-Reply-To: <4C13EAF0-58F5-4546-B932-4269BEB0E3FB@sb.org> References: <4C13EAF0-58F5-4546-B932-4269BEB0E3FB@sb.org> Message-ID: <3208b13916d6e3e128548d8ad61a4de4@pepe.cryer.us> On Wed, 5 Apr 2006 08:52:02 -0700, Kevin Ballard <kevin at sb.org> wrote: > Can you run `rake --trace migrate`? > Sure, sorry I didn't do that before: [10:59:27] [root at pepe ../fak3r/typo-svn-trunk]# rake --trace migrate (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) rake aborted! undefined method `namespace' for main:Object ./vendor/rails/railties/lib/tasks/databases.rake:1 ./vendor/rails/railties/lib/tasks/rails.rb:4 ./vendor/rails/railties/lib/tasks/rails.rb:4 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' ./Rakefile:10 /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1379:in `load_rakefile' /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1448:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/bin/rake:7 /usr/local/bin/rake:18 [10:59:33] [root at pepe ../fak3r/typo-svn-trunk]# P > On Apr 5, 2006, at 8:00 AM, phil wrote: > >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake migrate >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) >> rake aborted! >> undefined method `namespace' for main:Object >> ./Rakefile:10 >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ > > From steve.longdo at gmail.com Wed Apr 5 13:42:14 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Wed, 5 Apr 2006 12:42:14 -0500 Subject: [typo] With trunk, can no longer login as Admin In-Reply-To: <3208b13916d6e3e128548d8ad61a4de4@pepe.cryer.us> References: <4C13EAF0-58F5-4546-B932-4269BEB0E3FB@sb.org> <3208b13916d6e3e128548d8ad61a4de4@pepe.cryer.us> Message-ID: <cc4e85f30604051042g2f03bednbf67fa9666a18f00@mail.gmail.com> You need a newer version of rake 0.70. On 4/5/06, Phil Cryer <phil at cryer.us> wrote: > > On Wed, 5 Apr 2006 08:52:02 -0700, Kevin Ballard <kevin at sb.org> wrote: > > Can you run `rake --trace migrate`? > > > > Sure, sorry I didn't do that before: > > [10:59:27] [root at pepe ../fak3r/typo-svn-trunk]# rake --trace migrate > (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) > rake aborted! > undefined method `namespace' for main:Object > ./vendor/rails/railties/lib/tasks/databases.rake:1 > ./vendor/rails/railties/lib/tasks/rails.rb:4 > ./vendor/rails/railties/lib/tasks/rails.rb:4 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require' > ./Rakefile:10 > /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1379:in > `load_rakefile' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1448:in `run' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/bin/rake:7 > /usr/local/bin/rake:18 > [10:59:33] [root at pepe ../fak3r/typo-svn-trunk]# > > > P > > > On Apr 5, 2006, at 8:00 AM, phil wrote: > > > >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake migrate > >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) > >> rake aborted! > >> undefined method `namespace' for main:Object > >> ./Rakefile:10 > >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ > > > > > > _______________________________________________ > 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/20060405/239e50cb/attachment.htm From phil at cryer.us Wed Apr 5 14:18:57 2006 From: phil at cryer.us (Phil Cryer) Date: Wed, 5 Apr 2006 13:18:57 -0500 Subject: [typo] With trunk, can no longer login as Admin In-Reply-To: <cc4e85f30604051042g2f03bednbf67fa9666a18f00@mail.gmail.com> References: <cc4e85f30604051042g2f03bednbf67fa9666a18f00@mail.gmail.com> Message-ID: <2dc6b09619342d3a3f6478354040942a@pepe.cryer.us> ** Ok, I did 'gem install rake' and it got me 0.7.1, and now 'rake migrate' works - thanks. Sorry if this is an OS question and not a Typo question - but FreeBSD only has 0.6.2 available in ports [http://www.freshports.org/devel/rubygem-rake/], which is where I installed it from, what do I mess up if I install it via gem? Thanks Thanks again Steve for the solution Steve. ** I still have the issue of not being able to login on the site - so I can't admin it, add articles, etc. log/production.log in Typo (I ****'d out the passwd) shows: Processing AccountsController#login (for 199.249.176.251 at 2006-04-05 13:14:20) [POST] Session ID: 89eeda5439f5f7259d464b736e5cf645 Parameters: {"user_login"=>"fak3r", "action"=>"login", "controller"=>"accounts", "user_password"=>"******", "login"=>"Login ??"} Rendering within layouts/accounts Rendering accounts/login Completed in 0.01557 (64 reqs/sec) | Rendering: 0.00735 (47%) | DB: 0.00310 (19%) | 200 OK [http://fak3r.com/accounts/login] Meanwhile Apache says: 199.249.176.251 - - [05/Apr/2006:13:15:59 -0500] "POST /accounts/login HTTP/1.1" 200 1468 "htt p://fak3r.com/accounts/login" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/2 0060321 Firefox/2.0a1" no access errors - or any others found. P On Wed, 5 Apr 2006 12:42:14 -0500, "Steve Longdo" <steve.longdo at gmail.com> wrote: > You need a newer version of rake 0.70. > > On 4/5/06, Phil Cryer <phil at cryer.us> wrote: >> >> On Wed, 5 Apr 2006 08:52:02 -0700, Kevin Ballard <kevin at sb.org> wrote: >> > Can you run `rake --trace migrate`? >> > >> >> Sure, sorry I didn't do that before: >> >> [10:59:27] [root at pepe ../fak3r/typo-svn-trunk]# rake --trace migrate >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) >> rake aborted! >> undefined method `namespace' for main:Object >> ./vendor/rails/railties/lib/tasks/databases.rake:1 >> ./vendor/rails/railties/lib/tasks/rails.rb:4 >> ./vendor/rails/railties/lib/tasks/rails.rb:4 >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in >> `require' >> ./Rakefile:10 >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1379:in >> `load_rakefile' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1448:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/bin/rake:7 >> /usr/local/bin/rake:18 >> [10:59:33] [root at pepe ../fak3r/typo-svn-trunk]# >> >> >> P >> >> > On Apr 5, 2006, at 8:00 AM, phil wrote: >> > >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake migrate >> >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) >> >> rake aborted! >> >> undefined method `namespace' for main:Object >> >> ./Rakefile:10 >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ >> > >> > >> >> _______________________________________________ >> Typo-list mailing list >> Typo-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> > > From steve.longdo at gmail.com Wed Apr 5 15:22:47 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Wed, 5 Apr 2006 14:22:47 -0500 Subject: [typo] With trunk, can no longer login as Admin In-Reply-To: <2dc6b09619342d3a3f6478354040942a@pepe.cryer.us> References: <cc4e85f30604051042g2f03bednbf67fa9666a18f00@mail.gmail.com> <2dc6b09619342d3a3f6478354040942a@pepe.cryer.us> Message-ID: <cc4e85f30604051222h3b13e63cv52a68ff32f175a93@mail.gmail.com> You might try clearing out the sessions table. Not sure if that is the problem or not. Trying run: rake purge_sessions_table and see if that clears up your problems :-) On 4/5/06, Phil Cryer <phil at cryer.us> wrote: > > ** Ok, I did 'gem install rake' and it got me 0.7.1, and now 'rake > migrate' works - thanks. Sorry if this is an OS question and not a Typo > question - but FreeBSD only has 0.6.2 available in ports [ > http://www.freshports.org/devel/rubygem-rake/], which is where I installed > it from, what do I mess up if I install it via gem? Thanks > > Thanks again Steve for the solution Steve. > > > ** I still have the issue of not being able to login on the site - so I > can't admin it, add articles, etc. log/production.log in Typo (I ****'d out > the passwd) shows: > > Processing AccountsController#login (for 199.249.176.251 at 2006-04-05 > 13:14:20) [POST] > Session ID: 89eeda5439f5f7259d464b736e5cf645 > Parameters: {"user_login"=>"fak3r", "action"=>"login", > "controller"=>"accounts", "user_password"=>"******", "login"=>"Login ??"} > Rendering within layouts/accounts > Rendering accounts/login > Completed in 0.01557 (64 reqs/sec) | Rendering: 0.00735 (47%) | DB: > 0.00310 (19%) | 200 OK [http://fak3r.com/accounts/login] > > Meanwhile Apache says: > 199.249.176.251 - - [05/Apr/2006:13:15:59 -0500] "POST /accounts/login > HTTP/1.1" 200 1468 "htt > p://fak3r.com/accounts/login" "Mozilla/5.0 (Windows; U; Windows NT 5.1; > en-US; rv:1.8) Gecko/2 > 0060321 Firefox/2.0a1" > > no access errors - or any others found. > > P > > > On Wed, 5 Apr 2006 12:42:14 -0500, "Steve Longdo" <steve.longdo at gmail.com> > wrote: > > You need a newer version of rake 0.70. > > > > On 4/5/06, Phil Cryer <phil at cryer.us> wrote: > >> > >> On Wed, 5 Apr 2006 08:52:02 -0700, Kevin Ballard <kevin at sb.org> wrote: > >> > Can you run `rake --trace migrate`? > >> > > >> > >> Sure, sorry I didn't do that before: > >> > >> [10:59:27] [root at pepe ../fak3r/typo-svn-trunk]# rake --trace migrate > >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) > >> rake aborted! > >> undefined method `namespace' for main:Object > >> ./vendor/rails/railties/lib/tasks/databases.rake:1 > >> ./vendor/rails/railties/lib/tasks/rails.rb:4 > >> ./vendor/rails/railties/lib/tasks/rails.rb:4 > >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > >> `require' > >> ./Rakefile:10 > >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1379:in > >> `load_rakefile' > >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1448:in `run' > >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/bin/rake:7 > >> /usr/local/bin/rake:18 > >> [10:59:33] [root at pepe ../fak3r/typo-svn-trunk]# > >> > >> > >> P > >> > >> > On Apr 5, 2006, at 8:00 AM, phil wrote: > >> > > >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake migrate > >> >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) > >> >> rake aborted! > >> >> undefined method `namespace' for main:Object > >> >> ./Rakefile:10 > >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ > >> > > >> > > >> > >> _______________________________________________ > >> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060405/925c0eea/attachment-0001.htm From phil at cryer.us Wed Apr 5 15:27:12 2006 From: phil at cryer.us (Phil Cryer) Date: Wed, 5 Apr 2006 14:27:12 -0500 Subject: [typo] With trunk, can no longer login as Admin In-Reply-To: <cc4e85f30604051222h3b13e63cv52a68ff32f175a93@mail.gmail.com> References: <cc4e85f30604051222h3b13e63cv52a68ff32f175a93@mail.gmail.com> Message-ID: <88137a91080f8555fb4feafffa34cf98@pepe.cryer.us> On Wed, 5 Apr 2006 14:22:47 -0500, "Steve Longdo" <steve.longdo at gmail.com> wrote: > You might try clearing out the sessions table. Not sure if that is the > problem or not. > > Trying run: rake purge_sessions_table > > and see if that clears up your problems :-) [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake --trace purge_sessions_table (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) ** Invoke purge_sessions_table (first_time) rake aborted! Don't know how to build task 'db:sessions:recreate' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1449:in `[]' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in `invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in `invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke' /usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 /usr/local/bin/rake:18 [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ > > On 4/5/06, Phil Cryer <phil at cryer.us> wrote: >> >> ** Ok, I did 'gem install rake' and it got me 0.7.1, and now 'rake >> migrate' works - thanks. Sorry if this is an OS question and not a Typo >> question - but FreeBSD only has 0.6.2 available in ports [ >> http://www.freshports.org/devel/rubygem-rake/], which is where I > installed >> it from, what do I mess up if I install it via gem? Thanks >> >> Thanks again Steve for the solution Steve. >> >> >> ** I still have the issue of not being able to login on the site - so I >> can't admin it, add articles, etc. log/production.log in Typo (I ****'d > out >> the passwd) shows: >> >> Processing AccountsController#login (for 199.249.176.251 at 2006-04-05 >> 13:14:20) [POST] >> Session ID: 89eeda5439f5f7259d464b736e5cf645 >> Parameters: {"user_login"=>"fak3r", "action"=>"login", >> "controller"=>"accounts", "user_password"=>"******", "login"=>"Login > ??"} >> Rendering within layouts/accounts >> Rendering accounts/login >> Completed in 0.01557 (64 reqs/sec) | Rendering: 0.00735 (47%) | DB: >> 0.00310 (19%) | 200 OK [http://fak3r.com/accounts/login] >> >> Meanwhile Apache says: >> 199.249.176.251 - - [05/Apr/2006:13:15:59 -0500] "POST /accounts/login >> HTTP/1.1" 200 1468 "htt >> p://fak3r.com/accounts/login" "Mozilla/5.0 (Windows; U; Windows NT 5.1; >> en-US; rv:1.8) Gecko/2 >> 0060321 Firefox/2.0a1" >> >> no access errors - or any others found. >> >> P >> >> >> On Wed, 5 Apr 2006 12:42:14 -0500, "Steve Longdo" > <steve.longdo at gmail.com> >> wrote: >> > You need a newer version of rake 0.70. >> > >> > On 4/5/06, Phil Cryer <phil at cryer.us> wrote: >> >> >> >> On Wed, 5 Apr 2006 08:52:02 -0700, Kevin Ballard <kevin at sb.org> > wrote: >> >> > Can you run `rake --trace migrate`? >> >> > >> >> >> >> Sure, sorry I didn't do that before: >> >> >> >> [10:59:27] [root at pepe ../fak3r/typo-svn-trunk]# rake --trace migrate >> >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) >> >> rake aborted! >> >> undefined method `namespace' for main:Object >> >> ./vendor/rails/railties/lib/tasks/databases.rake:1 >> >> ./vendor/rails/railties/lib/tasks/rails.rb:4 >> >> ./vendor/rails/railties/lib/tasks/rails.rb:4 >> >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in >> >> `require' >> >> ./Rakefile:10 >> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1379:in >> >> `load_rakefile' >> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1448:in > `run' >> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/bin/rake:7 >> >> /usr/local/bin/rake:18 >> >> [10:59:33] [root at pepe ../fak3r/typo-svn-trunk]# >> >> >> >> >> >> P >> >> >> >> > On Apr 5, 2006, at 8:00 AM, phil wrote: >> >> > >> >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake migrate >> >> >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) >> >> >> rake aborted! >> >> >> undefined method `namespace' for main:Object >> >> >> ./Rakefile:10 >> >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ >> >> > >> >> > >> >> >> >> _______________________________________________ >> >> 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 phil at cryer.us Wed Apr 5 16:13:47 2006 From: phil at cryer.us (phil) Date: Wed, 5 Apr 2006 15:13:47 -0500 Subject: [typo] With trunk, can no longer login as Admin In-Reply-To: <88137a91080f8555fb4feafffa34cf98@pepe.cryer.us> References: <88137a91080f8555fb4feafffa34cf98@pepe.cryer.us> Message-ID: <63b75b58775a7f08360eb2985fbcccc8@pepe.cryer.us> As a followup, I just tried logging in via w.blogger (a client based blog poster) and it failed with 'Invalid login' but I was able to grab this from production.log in Typo: Processing BackendController#xmlrpc (for 199.249.176.251 at 2006-04-05 15:11:38) [POST] Parameters: {"action"=>"xmlrpc", "controller"=>"backend", "methodCall"=>{"methodName"=>"blogger.getUsersBlogs", "params"=>{"param"=>[{"value"=>{"string"=>"E7F0F69AB4125D811D74C797B11A4DC768E9B2BC"}}, {"value"=>{"string"=>"fak3r"}}, {"value"=>{"string"=>"luna16"}}]}}} RuntimeError (Invalid login): /app/apis/typo_web_servicerb:20:in `authenticate' /vendor/rails/actionwebservice/lib/action_web_service/invocationrb:163:in `call_interceptors' /vendor/rails/actionwebservice/lib/action_web_service/invocationrb:159:in `call_interceptors' /vendor/rails/actionwebservice/lib/action_web_service/invocationrb:148:in `before_invocation' /vendor/rails/actionwebservice/lib/action_web_service/invocationrb:137:in `perform_invocation' /vendor/rails/actionwebservice/lib/action_web_service/dispatcher/abstractrb:43:in `web_service_filtered_invoke' /vendor/rails/actionwebservice/lib/action_web_service/dispatcher/abstractrb:38:in `web_service_delegated_invoke' /vendor/rails/actionwebservice/lib/action_web_service/dispatcher/abstractrb:57:in `web_service_invoke' /vendor/rails/actionwebservice/lib/action_web_service/dispatcher/abstractrb:22:in `invoke_web_service_request' /vendor/rails/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcherrb:53:in `dispatch_web_service_request' /usr/local/lib/ruby/18/benchmarkrb:293:in `measure' /vendor/rails/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcherrb:51:in `dispatch_web_service_request' (eval):1:in `xmlrpc' /vendor/rails/actionpack/lib/action_controller/baserb:908:in `perform_action_without_filters' /vendor/rails/actionpack/lib/action_controller/filtersrb:355:in `perform_action_without_benchmark' /vendor/rails/actionpack/lib/action_controller/benchmarkingrb:69:in `perform_action_without_rescue' /usr/local/lib/ruby/18/benchmarkrb:293:in `measure' /vendor/rails/actionpack/lib/action_controller/benchmarkingrb:69:in `perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/rescuerb:82:in `perform_action' /vendor/rails/actionpack/lib/action_controller/baserb:379:in `process_without_filters' /vendor/rails/actionpack/lib/action_controller/filtersrb:364:in `process_without_session_management_support' /vendor/rails/actionpack/lib/action_controller/session_managementrb:117:in `process' /vendor/rails/railties/lib/dispatcherrb:38:in `dispatch' /vendor/rails/railties/lib/webrick_serverrb:115:in `handle_dispatch' /vendor/rails/railties/lib/webrick_serverrb:81:in `service' /usr/local/lib/ruby/18/webrick/httpserverrb:104:in `service' /usr/local/lib/ruby/18/webrick/httpserverrb:65:in `run' /usr/local/lib/ruby/18/webrick/serverrb:173:in `start_thread' /usr/local/lib/ruby/18/webrick/serverrb:162:in `start_thread' /usr/local/lib/ruby/18/webrick/serverrb:95:in `start' /usr/local/lib/ruby/18/webrick/serverrb:92:in `start' /usr/local/lib/ruby/18/webrick/serverrb:23:in `start' /usr/local/lib/ruby/18/webrick/serverrb:82:in `start' /vendor/rails/railties/lib/webrick_serverrb:67:in `dispatch' /vendor/rails/railties/lib/commands/servers/webrickrb:59 /vendor/rails/activesupport/lib/active_support/dependenciesrb:136:in `require' /vendor/rails/railties/lib/commands/serverrb:30 /script/server:3 On Wed, 5 Apr 2006 14:27:12 -0500, Phil Cryer <phil at cryer.us> wrote: > On Wed, 5 Apr 2006 14:22:47 -0500, "Steve Longdo" <steve.longdo at gmail.com> > wrote: >> You might try clearing out the sessions table. Not sure if that is the >> problem or not. >> >> Trying run: rake purge_sessions_table >> >> and see if that clears up your problems :-) > > > [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake --trace > purge_sessions_table > (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) > ** Invoke purge_sessions_table (first_time) > rake aborted! > Don't know how to build task 'db:sessions:recreate' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1449:in `[]' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in > `invoke_prerequisites' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in > `invoke_prerequisites' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke' > /usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 > /usr/local/bin/rake:18 > [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ > > > > >> >> On 4/5/06, Phil Cryer <phil at cryer.us> wrote: >>> >>> ** Ok, I did 'gem install rake' and it got me 0.7.1, and now 'rake >>> migrate' works - thanks. Sorry if this is an OS question and not a > Typo >>> question - but FreeBSD only has 0.6.2 available in ports [ >>> http://www.freshports.org/devel/rubygem-rake/], which is where I >> installed >>> it from, what do I mess up if I install it via gem? Thanks >>> >>> Thanks again Steve for the solution Steve. >>> >>> >>> ** I still have the issue of not being able to login on the site - so I >>> can't admin it, add articles, etc. log/production.log in Typo (I > ****'d >> out >>> the passwd) shows: >>> >>> Processing AccountsController#login (for 199.249.176.251 at 2006-04-05 >>> 13:14:20) [POST] >>> Session ID: 89eeda5439f5f7259d464b736e5cf645 >>> Parameters: {"user_login"=>"fak3r", "action"=>"login", >>> "controller"=>"accounts", "user_password"=>"******", "login"=>"Login >> ??"} >>> Rendering within layouts/accounts >>> Rendering accounts/login >>> Completed in 0.01557 (64 reqs/sec) | Rendering: 0.00735 (47%) | DB: >>> 0.00310 (19%) | 200 OK [http://fak3r.com/accounts/login] >>> >>> Meanwhile Apache says: >>> 199.249.176.251 - - [05/Apr/2006:13:15:59 -0500] "POST /accounts/login >>> HTTP/1.1" 200 1468 "htt >>> p://fak3r.com/accounts/login" "Mozilla/5.0 (Windows; U; Windows NT 5.1; >>> en-US; rv:1.8) Gecko/2 >>> 0060321 Firefox/2.0a1" >>> >>> no access errors - or any others found. >>> >>> P >>> >>> >>> On Wed, 5 Apr 2006 12:42:14 -0500, "Steve Longdo" >> <steve.longdo at gmail.com> >>> wrote: >>> > You need a newer version of rake 0.70. >>> > >>> > On 4/5/06, Phil Cryer <phil at cryer.us> wrote: >>> >> >>> >> On Wed, 5 Apr 2006 08:52:02 -0700, Kevin Ballard <kevin at sb.org> >> wrote: >>> >> > Can you run `rake --trace migrate`? >>> >> > >>> >> >>> >> Sure, sorry I didn't do that before: >>> >> >>> >> [10:59:27] [root at pepe ../fak3r/typo-svn-trunk]# rake --trace migrate >>> >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) >>> >> rake aborted! >>> >> undefined method `namespace' for main:Object >>> >> ./vendor/rails/railties/lib/tasks/databases.rake:1 >>> >> ./vendor/rails/railties/lib/tasks/rails.rb:4 >>> >> ./vendor/rails/railties/lib/tasks/rails.rb:4 >>> >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in >>> >> `require' >>> >> ./Rakefile:10 >>> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1379:in >>> >> `load_rakefile' >>> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1448:in >> `run' >>> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/bin/rake:7 >>> >> /usr/local/bin/rake:18 >>> >> [10:59:33] [root at pepe ../fak3r/typo-svn-trunk]# >>> >> >>> >> >>> >> P >>> >> >>> >> > On Apr 5, 2006, at 8:00 AM, phil wrote: >>> >> > >>> >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake migrate >>> >> >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) >>> >> >> rake aborted! >>> >> >> undefined method `namespace' for main:Object >>> >> >> ./Rakefile:10 >>> >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ >>> >> > >>> >> > >>> >> >>> >> _______________________________________________ >>> >> 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 >> >> -- http://fak3r.com - you dont have to kick it From steve.longdo at gmail.com Wed Apr 5 16:19:47 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Wed, 5 Apr 2006 15:19:47 -0500 Subject: [typo] With trunk, can no longer login as Admin In-Reply-To: <88137a91080f8555fb4feafffa34cf98@pepe.cryer.us> References: <cc4e85f30604051222h3b13e63cv52a68ff32f175a93@mail.gmail.com> <88137a91080f8555fb4feafffa34cf98@pepe.cryer.us> Message-ID: <cc4e85f30604051319g42314adbq11bc1a1633d94405@mail.gmail.com> I tried rake purge_sessions_table with rake 0.7.0 installed and it worked fine. I upgraded rake to 0.7.1 and I am able to duplicate the "Don't know how to build task 'db:sessions:recreate'" error when using rake 0.7.1 on a Windows XP box! I would recommend uninstalling rake 0.7.1 and forcing an install of rake 0.7.0. Probably something has changed in the syntax of rakefiles and the typo rakefile needs to be updated. You can also manually DELETE * FROM sessions to clear out the sessions table. On 4/5/06, Phil Cryer <phil at cryer.us> wrote: > > On Wed, 5 Apr 2006 14:22:47 -0500, "Steve Longdo" <steve.longdo at gmail.com> > wrote: > > You might try clearing out the sessions table. Not sure if that is the > > problem or not. > > > > Trying run: rake purge_sessions_table > > > > and see if that clears up your problems :-) > > > [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake --trace > purge_sessions_table > (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) > ** Invoke purge_sessions_table (first_time) > rake aborted! > Don't know how to build task 'db:sessions:recreate' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1449:in `[]' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in > `invoke_prerequisites' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in > `invoke_prerequisites' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke' > /usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 > /usr/local/bin/rake:18 > [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ > > > > > > > > On 4/5/06, Phil Cryer <phil at cryer.us> wrote: > >> > >> ** Ok, I did 'gem install rake' and it got me 0.7.1, and now 'rake > >> migrate' works - thanks. Sorry if this is an OS question and not a > Typo > >> question - but FreeBSD only has 0.6.2 available in ports [ > >> http://www.freshports.org/devel/rubygem-rake/], which is where I > > installed > >> it from, what do I mess up if I install it via gem? Thanks > >> > >> Thanks again Steve for the solution Steve. > >> > >> > >> ** I still have the issue of not being able to login on the site - so I > >> can't admin it, add articles, etc. log/production.log in Typo (I > ****'d > > out > >> the passwd) shows: > >> > >> Processing AccountsController#login (for 199.249.176.251 at 2006-04-05 > >> 13:14:20) [POST] > >> Session ID: 89eeda5439f5f7259d464b736e5cf645 > >> Parameters: {"user_login"=>"fak3r", "action"=>"login", > >> "controller"=>"accounts", "user_password"=>"******", "login"=>"Login > > ??"} > >> Rendering within layouts/accounts > >> Rendering accounts/login > >> Completed in 0.01557 (64 reqs/sec) | Rendering: 0.00735 (47%) | DB: > >> 0.00310 (19%) | 200 OK [http://fak3r.com/accounts/login] > >> > >> Meanwhile Apache says: > >> 199.249.176.251 - - [05/Apr/2006:13:15:59 -0500] "POST /accounts/login > >> HTTP/1.1" 200 1468 "htt > >> p://fak3r.com/accounts/login" "Mozilla/5.0 (Windows; U; Windows NT 5.1; > >> en-US; rv:1.8) Gecko/2 > >> 0060321 Firefox/2.0a1" > >> > >> no access errors - or any others found. > >> > >> P > >> > >> > >> On Wed, 5 Apr 2006 12:42:14 -0500, "Steve Longdo" > > <steve.longdo at gmail.com> > >> wrote: > >> > You need a newer version of rake 0.70. > >> > > >> > On 4/5/06, Phil Cryer <phil at cryer.us> wrote: > >> >> > >> >> On Wed, 5 Apr 2006 08:52:02 -0700, Kevin Ballard <kevin at sb.org> > > wrote: > >> >> > Can you run `rake --trace migrate`? > >> >> > > >> >> > >> >> Sure, sorry I didn't do that before: > >> >> > >> >> [10:59:27] [root at pepe ../fak3r/typo-svn-trunk]# rake --trace migrate > >> >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) > >> >> rake aborted! > >> >> undefined method `namespace' for main:Object > >> >> ./vendor/rails/railties/lib/tasks/databases.rake:1 > >> >> ./vendor/rails/railties/lib/tasks/rails.rb:4 > >> >> ./vendor/rails/railties/lib/tasks/rails.rb:4 > >> >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > >> >> `require' > >> >> ./Rakefile:10 > >> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1379:in > >> >> `load_rakefile' > >> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1448:in > > `run' > >> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/bin/rake:7 > >> >> /usr/local/bin/rake:18 > >> >> [10:59:33] [root at pepe ../fak3r/typo-svn-trunk]# > >> >> > >> >> > >> >> P > >> >> > >> >> > On Apr 5, 2006, at 8:00 AM, phil wrote: > >> >> > > >> >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake migrate > >> >> >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) > >> >> >> rake aborted! > >> >> >> undefined method `namespace' for main:Object > >> >> >> ./Rakefile:10 > >> >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ > >> >> > > >> >> > > >> >> > >> >> _______________________________________________ > >> >> 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 > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060405/5b4d4ea0/attachment-0001.htm From cwsaylor at gmail.com Wed Apr 5 16:30:43 2006 From: cwsaylor at gmail.com (Chris Saylor) Date: Wed, 5 Apr 2006 16:30:43 -0400 Subject: [typo] Cannot Update Side in Trunk Message-ID: <a23a98e90604051330i383b37ccg6099994b7b88ff83@mail.gmail.com> I am getting a spinning wheel when trying to update the sidebar. This error is in my log file. ActionController::MissingTemplate (Missing template ./script/../config/../app/views/admin/sidebar/set_active.rhtml): /vendor/rails/actionpack/lib/action_controller/base.rb:935:in `assert_existance_of_template_file' /vendor/rails/actionpack/lib/action_controller/base.rb:654:in `render_file' /vendor/rails/actionpack/lib/action_controller/base.rb:595:in `render_with_no_layout' /vendor/rails/actionpack/lib/action_controller/layout.rb:220:in `render_without_benchmark' Thanks, Chris From phil at cryer.us Wed Apr 5 18:28:45 2006 From: phil at cryer.us (Phil Cryer) Date: Wed, 5 Apr 2006 17:28:45 -0500 Subject: [typo] With trunk, can no longer login as Admin In-Reply-To: <cc4e85f30604051319g42314adbq11bc1a1633d94405@mail.gmail.com> References: <cc4e85f30604051319g42314adbq11bc1a1633d94405@mail.gmail.com> Message-ID: <89d21273f10c89432924d7a3ac16489a@pepe.cryer.us> On Wed, 5 Apr 2006 15:19:47 -0500, "Steve Longdo" <steve.longdo at gmail.com> wrote: > I tried rake purge_sessions_table with rake 0.7.0 installed and it worked > fine. I upgraded rake to 0.7.1 and I am able to duplicate the "Don't know > how to build task 'db:sessions:recreate'" error when using rake 0.7.1 on a > Windows XP box! > > I would recommend uninstalling rake 0.7.1 and forcing an install of rake > 0.7.0. Probably something has changed in the syntax of rakefiles and the > typo rakefile needs to be updated. This worked, thank you. > You can also manually DELETE * FROM > sessions to clear out the sessions table. Hmmm...still same error on rake purge_sessions_table with rake 0.7.0! What else could be bothering that, I did update all my Gems earlier today. P > On 4/5/06, Phil Cryer <phil at cryer.us> wrote: >> >> On Wed, 5 Apr 2006 14:22:47 -0500, "Steve Longdo" > <steve.longdo at gmail.com> >> wrote: >> > You might try clearing out the sessions table. Not sure if that is > the >> > problem or not. >> > >> > Trying run: rake purge_sessions_table >> > >> > and see if that clears up your problems :-) >> >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake --trace >> purge_sessions_table >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) >> ** Invoke purge_sessions_table (first_time) >> rake aborted! >> Don't know how to build task 'db:sessions:recreate' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1449:in `[]' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in >> `invoke_prerequisites' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in >> `invoke_prerequisites' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke' >> /usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 >> /usr/local/bin/rake:18 >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ >> >> >> >> >> > >> > On 4/5/06, Phil Cryer <phil at cryer.us> wrote: >> >> >> >> ** Ok, I did 'gem install rake' and it got me 0.7.1, and now 'rake >> >> migrate' works - thanks. Sorry if this is an OS question and not a >> Typo >> >> question - but FreeBSD only has 0.6.2 available in ports [ >> >> http://www.freshports.org/devel/rubygem-rake/], which is where I >> > installed >> >> it from, what do I mess up if I install it via gem? Thanks >> >> >> >> Thanks again Steve for the solution Steve. >> >> >> >> >> >> ** I still have the issue of not being able to login on the site - so > I >> >> can't admin it, add articles, etc. log/production.log in Typo (I >> ****'d >> > out >> >> the passwd) shows: >> >> >> >> Processing AccountsController#login (for 199.249.176.251 at > 2006-04-05 >> >> 13:14:20) [POST] >> >> Session ID: 89eeda5439f5f7259d464b736e5cf645 >> >> Parameters: {"user_login"=>"fak3r", "action"=>"login", >> >> "controller"=>"accounts", "user_password"=>"******", "login"=>"Login >> > ??"} >> >> Rendering within layouts/accounts >> >> Rendering accounts/login >> >> Completed in 0.01557 (64 reqs/sec) | Rendering: 0.00735 (47%) | DB: >> >> 0.00310 (19%) | 200 OK [http://fak3r.com/accounts/login] >> >> >> >> Meanwhile Apache says: >> >> 199.249.176.251 - - [05/Apr/2006:13:15:59 -0500] "POST > /accounts/login >> >> HTTP/1.1" 200 1468 "htt >> >> p://fak3r.com/accounts/login" "Mozilla/5.0 (Windows; U; Windows NT > 5.1; >> >> en-US; rv:1.8) Gecko/2 >> >> 0060321 Firefox/2.0a1" >> >> >> >> no access errors - or any others found. >> >> >> >> P >> >> >> >> >> >> On Wed, 5 Apr 2006 12:42:14 -0500, "Steve Longdo" >> > <steve.longdo at gmail.com> >> >> wrote: >> >> > You need a newer version of rake 0.70. >> >> > >> >> > On 4/5/06, Phil Cryer <phil at cryer.us> wrote: >> >> >> >> >> >> On Wed, 5 Apr 2006 08:52:02 -0700, Kevin Ballard <kevin at sb.org> >> > wrote: >> >> >> > Can you run `rake --trace migrate`? >> >> >> > >> >> >> >> >> >> Sure, sorry I didn't do that before: >> >> >> >> >> >> [10:59:27] [root at pepe ../fak3r/typo-svn-trunk]# rake --trace > migrate >> >> >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) >> >> >> rake aborted! >> >> >> undefined method `namespace' for main:Object >> >> >> ./vendor/rails/railties/lib/tasks/databases.rake:1 >> >> >> ./vendor/rails/railties/lib/tasks/rails.rb:4 >> >> >> ./vendor/rails/railties/lib/tasks/rails.rb:4 >> >> >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in >> >> >> `require' >> >> >> ./Rakefile:10 >> >> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1379:in >> >> >> `load_rakefile' >> >> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1448:in >> > `run' >> >> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/bin/rake:7 >> >> >> /usr/local/bin/rake:18 >> >> >> [10:59:33] [root at pepe ../fak3r/typo-svn-trunk]# >> >> >> >> >> >> >> >> >> P >> >> >> >> >> >> > On Apr 5, 2006, at 8:00 AM, phil wrote: >> >> >> > >> >> >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake migrate >> >> >> >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) >> >> >> >> rake aborted! >> >> >> >> undefined method `namespace' for main:Object >> >> >> >> ./Rakefile:10 >> >> >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ >> >> >> > >> >> >> > >> >> >> >> >> >> _______________________________________________ >> >> >> 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 kheon at comcast.net Wed Apr 5 19:32:15 2006 From: kheon at comcast.net (Kyle Heon) Date: Wed, 5 Apr 2006 19:32:15 -0400 Subject: [typo] With trunk, can no longer login as Admin In-Reply-To: <89d21273f10c89432924d7a3ac16489a@pepe.cryer.us> Message-ID: <200604052332.k35NWHCP000466@rubyforge.org> I had an issue awhile back with a banged up migration that prevented me from logging into the admin area as well. I fixed it by opening up a console and resetting my password. I'm pretty sure you need to hash the password first but I believe the functions you need are all part of the LoginController. Kyle Heon kheon at comcast.net www.kyleheon.com -----Original Message----- From: typo-list-bounces at rubyforge.org [mailto:typo-list-bounces at rubyforge.org] On Behalf Of Phil Cryer Sent: Wednesday, April 05, 2006 6:29 PM To: Steve Longdo Cc: typo-list at rubyforge.org Subject: Re: [typo] With trunk, can no longer login as Admin On Wed, 5 Apr 2006 15:19:47 -0500, "Steve Longdo" <steve.longdo at gmail.com> wrote: > I tried rake purge_sessions_table with rake 0.7.0 installed and it > worked fine. I upgraded rake to 0.7.1 and I am able to duplicate the > "Don't know how to build task 'db:sessions:recreate'" error when using > rake 0.7.1 on a Windows XP box! > > I would recommend uninstalling rake 0.7.1 and forcing an install of > rake 0.7.0. Probably something has changed in the syntax of rakefiles > and the typo rakefile needs to be updated. This worked, thank you. > You can also manually DELETE * FROM > sessions to clear out the sessions table. Hmmm...still same error on rake purge_sessions_table with rake 0.7.0! What else could be bothering that, I did update all my Gems earlier today. P > On 4/5/06, Phil Cryer <phil at cryer.us> wrote: >> >> On Wed, 5 Apr 2006 14:22:47 -0500, "Steve Longdo" > <steve.longdo at gmail.com> >> wrote: >> > You might try clearing out the sessions table. Not sure if that is > the >> > problem or not. >> > >> > Trying run: rake purge_sessions_table >> > >> > and see if that clears up your problems :-) >> >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake --trace >> purge_sessions_table (in >> /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) >> ** Invoke purge_sessions_table (first_time) rake aborted! >> Don't know how to build task 'db:sessions:recreate' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1449:in `[]' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in >> `invoke_prerequisites' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in >> `invoke_prerequisites' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke' >> /usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 >> /usr/local/bin/rake:18 >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ >> >> >> >> >> > >> > On 4/5/06, Phil Cryer <phil at cryer.us> wrote: >> >> >> >> ** Ok, I did 'gem install rake' and it got me 0.7.1, and now 'rake >> >> migrate' works - thanks. Sorry if this is an OS question and not >> >> a >> Typo >> >> question - but FreeBSD only has 0.6.2 available in ports [ >> >> http://www.freshports.org/devel/rubygem-rake/], which is where I >> > installed >> >> it from, what do I mess up if I install it via gem? Thanks >> >> >> >> Thanks again Steve for the solution Steve. >> >> >> >> >> >> ** I still have the issue of not being able to login on the site - >> >> so > I >> >> can't admin it, add articles, etc. log/production.log in Typo (I >> ****'d >> > out >> >> the passwd) shows: >> >> >> >> Processing AccountsController#login (for 199.249.176.251 at > 2006-04-05 >> >> 13:14:20) [POST] >> >> Session ID: 89eeda5439f5f7259d464b736e5cf645 >> >> Parameters: {"user_login"=>"fak3r", "action"=>"login", >> >> "controller"=>"accounts", "user_password"=>"******", >> >> "login"=>"Login >> > ??"} >> >> Rendering within layouts/accounts Rendering accounts/login >> >> Completed in 0.01557 (64 reqs/sec) | Rendering: 0.00735 (47%) | DB: >> >> 0.00310 (19%) | 200 OK [http://fak3r.com/accounts/login] >> >> >> >> Meanwhile Apache says: >> >> 199.249.176.251 - - [05/Apr/2006:13:15:59 -0500] "POST > /accounts/login >> >> HTTP/1.1" 200 1468 "htt >> >> p://fak3r.com/accounts/login" "Mozilla/5.0 (Windows; U; Windows NT > 5.1; >> >> en-US; rv:1.8) Gecko/2 >> >> 0060321 Firefox/2.0a1" >> >> >> >> no access errors - or any others found. >> >> >> >> P >> >> >> >> >> >> On Wed, 5 Apr 2006 12:42:14 -0500, "Steve Longdo" >> > <steve.longdo at gmail.com> >> >> wrote: >> >> > You need a newer version of rake 0.70. >> >> > >> >> > On 4/5/06, Phil Cryer <phil at cryer.us> wrote: >> >> >> >> >> >> On Wed, 5 Apr 2006 08:52:02 -0700, Kevin Ballard <kevin at sb.org> >> > wrote: >> >> >> > Can you run `rake --trace migrate`? >> >> >> > >> >> >> >> >> >> Sure, sorry I didn't do that before: >> >> >> >> >> >> [10:59:27] [root at pepe ../fak3r/typo-svn-trunk]# rake --trace > migrate >> >> >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) >> >> >> rake aborted! >> >> >> undefined method `namespace' for main:Object >> >> >> ./vendor/rails/railties/lib/tasks/databases.rake:1 >> >> >> ./vendor/rails/railties/lib/tasks/rails.rb:4 >> >> >> ./vendor/rails/railties/lib/tasks/rails.rb:4 >> >> >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 >> >> >> :in >> >> >> `require' >> >> >> ./Rakefile:10 >> >> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1379:i >> >> >> n >> >> >> `load_rakefile' >> >> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1448:i >> >> >> n >> > `run' >> >> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/bin/rake:7 >> >> >> /usr/local/bin/rake:18 >> >> >> [10:59:33] [root at pepe ../fak3r/typo-svn-trunk]# >> >> >> >> >> >> >> >> >> P >> >> >> >> >> >> > On Apr 5, 2006, at 8:00 AM, phil wrote: >> >> >> > >> >> >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake migrate >> >> >> >> (in >> >> >> >> /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) >> >> >> >> rake aborted! >> >> >> >> undefined method `namespace' for main:Object ./Rakefile:10 >> >> >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ >> >> >> > >> >> >> > >> >> >> >> >> >> _______________________________________________ >> >> >> 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 >> > >> > >> >> > > _______________________________________________ Typo-list mailing list Typo-list at rubyforge.org http://rubyforge.org/mailman/listinfo/typo-list From mail at paulhart.ca Wed Apr 5 20:12:49 2006 From: mail at paulhart.ca (Paul Hart) Date: Wed, 05 Apr 2006 20:12:49 -0400 Subject: [typo] Cannot update/add sidebars in trunk Message-ID: <44345D01.8090501@paulhart.ca> I've seen that Chris Saylor has posted the this issue too, but I'd like to add my +1 on this; I'm seeing exactly the same problem. Also, during the migration my existing sidebar content was lost; I had two static sidebars and their content was replaced with 'body'. I'm running r997. From phil at cryer.us Wed Apr 5 22:17:05 2006 From: phil at cryer.us (phil) Date: Wed, 5 Apr 2006 21:17:05 -0500 Subject: [typo] Cannot update/add sidebars in trunk In-Reply-To: <44345D01.8090501@paulhart.ca> References: <44345D01.8090501@paulhart.ca> Message-ID: <8a733a7bc01e712158c4f07e63038406@pepe.cryer.us> On Wed, 05 Apr 2006 20:12:49 -0400, Paul Hart <mail at paulhart.ca> wrote: > I've seen that Chris Saylor has posted the this issue too, but I'd like > to add my +1 on this; I'm seeing exactly the same problem. > > Also, during the migration my existing sidebar content was lost; I had > two static sidebars and their content was replaced with 'body'. I had this as well, I added a 'Static' bar back in, it didn't take, but when I got back onto the site the OLD 'Static' was there! P > I'm running r997. > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list -- http://fak3r.com - you dont have to kick it From david.tunoheavy at gmail.com Thu Apr 6 04:08:26 2006 From: david.tunoheavy at gmail.com (=?UTF-8?Q?David_Verd=C3=BA?=) Date: Thu, 6 Apr 2006 09:08:26 +0100 Subject: [typo] Globalize plugin on Typo Message-ID: <2b979f3c0604060108t623aeb59wff4f6451065527c5@mail.gmail.com> Hello! I'm Trying to add localization to my Typo installation with Globalize Plugin but, what my surprise! 1. script/plugin script doesn't exists. Why Typo hasn't this script? 2. I have tryed to checkout by hand latest Globalize version into vendor/plugins (plugins folder created by me), vendor and lib folders with subversion. Globalize is taken from http://svn.globalize-rails.org/svn/globalize/globalize/trunk. Then, I invoqued script/generate migrate and rake migrate, and It seems to run well; database was updated with globalize tables. But, when I use on views t method, application breaks with this line: %= link_to("edit".t, { :controller => "admin/content", :action => "edit", :id => @article }, :class => "admintools", :style => "display: none", :id => "admin_article") %> Dumping this error: undefined method `t' for "edit":String Why are typo folders structure slightly different from normal Rails applications? so, What things should I change to set globalize correctly on Typo? I'm using *typo-2.6.0_rails_1_0<http://rubyforge.org/frs/shownotes.php?release_id=4771> Thanks * -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060406/38b16108/attachment.htm From gpsnospam at gmail.com Thu Apr 6 07:22:37 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Thu, 6 Apr 2006 12:22:37 +0100 Subject: [typo] 'Filter chain halted' in production log Message-ID: <96DA009E-B888-40C4-BC29-0C40ADC7C2FF@gmail.com> I'm hunting for stability with 1.1 and dispatch.fcgi ... it's close Anybody ever come across this in the production log or know what it's referring to? It's cropping up A LOT. Filter chain halted as [#<Proc:0x4062a970 at ../vendor/rails/actionpack/ lib/action_controller/filters.rb:227>] returned false Cheers Gary From phil at cryer.us Thu Apr 6 08:55:18 2006 From: phil at cryer.us (Phil Cryer) Date: Thu, 6 Apr 2006 7:55:18 -0500 Subject: [typo] With trunk, can no longer login as Admin In-Reply-To: <20060405234028.C7005A6@pepe.cryer.us> References: <20060405234028.C7005A6@pepe.cryer.us> Message-ID: <d23f58b760b1299b19aaeddf948e13c1@pepe.cryer.us> On Wed, 5 Apr 2006 19:32:15 -0400, "Kyle Heon" <kheon at comcast.net> wrote: > I had an issue awhile back with a banged up migration that prevented me > from > logging into the admin area as well. > > I fixed it by opening up a console and resetting my password. I'm pretty > sure you need to hash the password first but I believe the functions you > need are all part of the LoginController. Can you tell me how to do this, or is it documented somewhere? (I don't see anything on Typo Trac about it). Thanks P > > Kyle Heon > kheon at comcast.net > www.kyleheon.com > > > -----Original Message----- > From: typo-list-bounces at rubyforge.org > [mailto:typo-list-bounces at rubyforge.org] On Behalf Of Phil Cryer > Sent: Wednesday, April 05, 2006 6:29 PM > To: Steve Longdo > Cc: typo-list at rubyforge.org > Subject: Re: [typo] With trunk, can no longer login as Admin > > On Wed, 5 Apr 2006 15:19:47 -0500, "Steve Longdo" <steve.longdo at gmail.com> > wrote: >> I tried rake purge_sessions_table with rake 0.7.0 installed and it >> worked fine. I upgraded rake to 0.7.1 and I am able to duplicate the >> "Don't know how to build task 'db:sessions:recreate'" error when using >> rake 0.7.1 on a Windows XP box! >> >> I would recommend uninstalling rake 0.7.1 and forcing an install of >> rake 0.7.0. Probably something has changed in the syntax of rakefiles >> and the typo rakefile needs to be updated. > > This worked, thank you. > >> You can also manually DELETE * FROM >> sessions to clear out the sessions table. > > Hmmm...still same error on rake purge_sessions_table with rake 0.7.0! > What > else could be bothering that, I did update all my Gems earlier today. > > > P > > >> On 4/5/06, Phil Cryer <phil at cryer.us> wrote: >>> >>> On Wed, 5 Apr 2006 14:22:47 -0500, "Steve Longdo" >> <steve.longdo at gmail.com> >>> wrote: >>> > You might try clearing out the sessions table. Not sure if that is >> the >>> > problem or not. >>> > >>> > Trying run: rake purge_sessions_table >>> > >>> > and see if that clears up your problems :-) >>> >>> >>> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake --trace >>> purge_sessions_table (in >>> /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) >>> ** Invoke purge_sessions_table (first_time) rake aborted! >>> Don't know how to build task 'db:sessions:recreate' >>> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1449:in `[]' >>> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in >>> `invoke_prerequisites' >>> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each' >>> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in >>> `invoke_prerequisites' >>> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in > `invoke' >>> /usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' >>> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in > `invoke' >>> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' >>> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 >>> /usr/local/bin/rake:18 >>> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ >>> >>> >>> >>> >>> > >>> > On 4/5/06, Phil Cryer <phil at cryer.us> wrote: >>> >> >>> >> ** Ok, I did 'gem install rake' and it got me 0.7.1, and now 'rake >>> >> migrate' works - thanks. Sorry if this is an OS question and not >>> >> a >>> Typo >>> >> question - but FreeBSD only has 0.6.2 available in ports [ >>> >> http://www.freshports.org/devel/rubygem-rake/], which is where I >>> > installed >>> >> it from, what do I mess up if I install it via gem? Thanks >>> >> >>> >> Thanks again Steve for the solution Steve. >>> >> >>> >> >>> >> ** I still have the issue of not being able to login on the site - >>> >> so >> I >>> >> can't admin it, add articles, etc. log/production.log in Typo (I >>> ****'d >>> > out >>> >> the passwd) shows: >>> >> >>> >> Processing AccountsController#login (for 199.249.176.251 at >> 2006-04-05 >>> >> 13:14:20) [POST] >>> >> Session ID: 89eeda5439f5f7259d464b736e5cf645 >>> >> Parameters: {"user_login"=>"fak3r", "action"=>"login", >>> >> "controller"=>"accounts", "user_password"=>"******", >>> >> "login"=>"Login >>> > ??"} >>> >> Rendering within layouts/accounts Rendering accounts/login >>> >> Completed in 0.01557 (64 reqs/sec) | Rendering: 0.00735 (47%) | DB: >>> >> 0.00310 (19%) | 200 OK [http://fak3r.com/accounts/login] >>> >> >>> >> Meanwhile Apache says: >>> >> 199.249.176.251 - - [05/Apr/2006:13:15:59 -0500] "POST >> /accounts/login >>> >> HTTP/1.1" 200 1468 "htt >>> >> p://fak3r.com/accounts/login" "Mozilla/5.0 (Windows; U; Windows NT >> 5.1; >>> >> en-US; rv:1.8) Gecko/2 >>> >> 0060321 Firefox/2.0a1" >>> >> >>> >> no access errors - or any others found. >>> >> >>> >> P >>> >> >>> >> >>> >> On Wed, 5 Apr 2006 12:42:14 -0500, "Steve Longdo" >>> > <steve.longdo at gmail.com> >>> >> wrote: >>> >> > You need a newer version of rake 0.70. >>> >> > >>> >> > On 4/5/06, Phil Cryer <phil at cryer.us> wrote: >>> >> >> >>> >> >> On Wed, 5 Apr 2006 08:52:02 -0700, Kevin Ballard <kevin at sb.org> >>> > wrote: >>> >> >> > Can you run `rake --trace migrate`? >>> >> >> > >>> >> >> >>> >> >> Sure, sorry I didn't do that before: >>> >> >> >>> >> >> [10:59:27] [root at pepe ../fak3r/typo-svn-trunk]# rake --trace >> migrate >>> >> >> (in /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) >>> >> >> rake aborted! >>> >> >> undefined method `namespace' for main:Object >>> >> >> ./vendor/rails/railties/lib/tasks/databases.rake:1 >>> >> >> ./vendor/rails/railties/lib/tasks/rails.rb:4 >>> >> >> ./vendor/rails/railties/lib/tasks/rails.rb:4 >>> >> >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 >>> >> >> :in >>> >> >> `require' >>> >> >> ./Rakefile:10 >>> >> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1379:i >>> >> >> n >>> >> >> `load_rakefile' >>> >> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1448:i >>> >> >> n >>> > `run' >>> >> >> /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/bin/rake:7 >>> >> >> /usr/local/bin/rake:18 >>> >> >> [10:59:33] [root at pepe ../fak3r/typo-svn-trunk]# >>> >> >> >>> >> >> >>> >> >> P >>> >> >> >>> >> >> > On Apr 5, 2006, at 8:00 AM, phil wrote: >>> >> >> > >>> >> >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ rake migrate >>> >> >> >> (in >>> >> >> >> /mnt/backup/pepe/home/phil/websites/fak3r/typo-svn-trunk) >>> >> >> >> rake aborted! >>> >> >> >> undefined method `namespace' for main:Object ./Rakefile:10 >>> >> >> >> [phil at pepe:~/websites/fak3r/typo-svn-trunk]$ >>> >> >> > >>> >> >> > >>> >> >> >>> >> >> _______________________________________________ >>> >> >> 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 >>> > >>> > >>> >>> >> >> > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From gpsnospam at gmail.com Thu Apr 6 09:23:00 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Thu, 6 Apr 2006 14:23:00 +0100 Subject: [typo] With trunk, can no longer login as Admin In-Reply-To: <d23f58b760b1299b19aaeddf948e13c1@pepe.cryer.us> References: <20060405234028.C7005A6@pepe.cryer.us> <d23f58b760b1299b19aaeddf948e13c1@pepe.cryer.us> Message-ID: <2F89582C-2EB1-48DB-8E29-1F77C47B4C72@gmail.com> On 6 Apr 2006, at 13:55, Phil Cryer wrote: > > On Wed, 5 Apr 2006 19:32:15 -0400, "Kyle Heon" <kheon at comcast.net> > wrote: >> I had an issue awhile back with a banged up migration that >> prevented me >> from >> logging into the admin area as well. >> >> I fixed it by opening up a console and resetting my password. I'm >> pretty >> sure you need to hash the password first but I believe the >> functions you >> need are all part of the LoginController. > > Can you tell me how to do this, or is it documented somewhere? (I > don't see anything on Typo Trac about it). Thanks You could use phpmyadmin (or whatever you like) to delete your user from the user table ... if there aren't any users I'm pretty sure Typo let's you sign up with a new user. Look at /app/controllers/accounts_controller.rb - seems pretty straightforward. From jake at whoisjake.com Thu Apr 6 09:50:06 2006 From: jake at whoisjake.com (Jake Good) Date: Thu, 06 Apr 2006 08:50:06 -0500 Subject: [typo] With trunk, can no longer login as Admin In-Reply-To: <2F89582C-2EB1-48DB-8E29-1F77C47B4C72@gmail.com> References: <20060405234028.C7005A6@pepe.cryer.us> <d23f58b760b1299b19aaeddf948e13c1@pepe.cryer.us> <2F89582C-2EB1-48DB-8E29-1F77C47B4C72@gmail.com> Message-ID: <44351C8E.1080504@whoisjake.com> This might not be the best way... but throw your blog into development mode... try your OLD password, copy the hash and replace it in the db. I didn't that when the hashes went bad after a migrate. Worked like a charm. Jake Gary Shewan wrote: > On 6 Apr 2006, at 13:55, Phil Cryer wrote: > >> On Wed, 5 Apr 2006 19:32:15 -0400, "Kyle Heon" <kheon at comcast.net> >> wrote: >> >>> I had an issue awhile back with a banged up migration that >>> prevented me >>> from >>> logging into the admin area as well. >>> >>> I fixed it by opening up a console and resetting my password. I'm >>> pretty >>> sure you need to hash the password first but I believe the >>> functions you >>> need are all part of the LoginController. >>> >> Can you tell me how to do this, or is it documented somewhere? (I >> don't see anything on Typo Trac about it). Thanks >> > > You could use phpmyadmin (or whatever you like) to delete your user > from the user table ... if there aren't any users I'm pretty sure > Typo let's you sign up with a new user. > > Look at /app/controllers/accounts_controller.rb - seems pretty > straightforward. > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From jake at whoisjake.com Thu Apr 6 10:03:43 2006 From: jake at whoisjake.com (Jake Good) Date: Thu, 06 Apr 2006 09:03:43 -0500 Subject: [typo] With trunk, can no longer login as Admin In-Reply-To: <44351C8E.1080504@whoisjake.com> References: <20060405234028.C7005A6@pepe.cryer.us> <d23f58b760b1299b19aaeddf948e13c1@pepe.cryer.us> <2F89582C-2EB1-48DB-8E29-1F77C47B4C72@gmail.com> <44351C8E.1080504@whoisjake.com> Message-ID: <44351FBF.5070506@whoisjake.com> Err copy the hash out of the log/development.log file Minor detail omission. Jake Good wrote: > This might not be the best way... but throw your blog into development > mode... try your OLD password, copy the hash and replace it in the db. > > I didn't that when the hashes went bad after a migrate. Worked like a charm. > > Jake > > Gary Shewan wrote: > >> On 6 Apr 2006, at 13:55, Phil Cryer wrote: >> >> >>> On Wed, 5 Apr 2006 19:32:15 -0400, "Kyle Heon" <kheon at comcast.net> >>> wrote: >>> >>> >>>> I had an issue awhile back with a banged up migration that >>>> prevented me >>>> from >>>> logging into the admin area as well. >>>> >>>> I fixed it by opening up a console and resetting my password. I'm >>>> pretty >>>> sure you need to hash the password first but I believe the >>>> functions you >>>> need are all part of the LoginController. >>>> >>>> >>> Can you tell me how to do this, or is it documented somewhere? (I >>> don't see anything on Typo Trac about it). Thanks >>> >>> >> You could use phpmyadmin (or whatever you like) to delete your user >> from the user table ... if there aren't any users I'm pretty sure >> Typo let's you sign up with a new user. >> >> Look at /app/controllers/accounts_controller.rb - seems pretty >> straightforward. >> _______________________________________________ >> 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 phil at cryer.us Thu Apr 6 10:48:40 2006 From: phil at cryer.us (phil) Date: Thu, 6 Apr 2006 9:48:40 -0500 Subject: [typo] With trunk, can no longer login as Admin [SOLVED] In-Reply-To: <44351FBF.5070506@whoisjake.com> References: <44351FBF.5070506@whoisjake.com> Message-ID: <63238eebad5f405bf18e5caf7c0403cc@pepe.cryer.us> On Thu, 06 Apr 2006 09:03:43 -0500, Jake Good <jake at whoisjake.com> wrote: > Err copy the hash out of the log/development.log file > > Minor detail omission. > > Jake Good wrote: >> This might not be the best way... but throw your blog into development >> mode... try your OLD password, copy the hash and replace it in the db. >> >> I didn't that when the hashes went bad after a migrate. Worked like a > charm. >> >> Jake >> >> Gary Shewan wrote: >> >>> On 6 Apr 2006, at 13:55, Phil Cryer wrote: >>> >>> >>>> On Wed, 5 Apr 2006 19:32:15 -0400, "Kyle Heon" <kheon at comcast.net> >>>> wrote: >>>> >>>> >>>>> I had an issue awhile back with a banged up migration that >>>>> prevented me >>>>> from >>>>> logging into the admin area as well. >>>>> >>>>> I fixed it by opening up a console and resetting my password. I'm >>>>> pretty >>>>> sure you need to hash the password first but I believe the >>>>> functions you >>>>> need are all part of the LoginController. >>>>> >>>>> >>>> Can you tell me how to do this, or is it documented somewhere? (I >>>> don't see anything on Typo Trac about it). Thanks >>>> >>>> >>> You could use phpmyadmin (or whatever you like) to delete your user >>> from the user table ... if there aren't any users I'm pretty sure >>> Typo let's you sign up with a new user. Ah, thanks for everyone's help, this is now fixed. And since I *hate* it when I search mailing lists to find an answer just to see someone say, "never mind, I fixed it" without saying how they fixed it, here ya go: Symptom: couldn't login as admin to Typo site Solution: go into database, switch to Typo database and enter: delete from users where id=1; fire up your site/admin re-create the admin acct. I'm sure there's other ways to handle this, but this works. Thanks again P >>> >>> Look at /app/controllers/accounts_controller.rb - seems pretty >>> straightforward. >>> _______________________________________________ >>> 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 >> >> > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list -- http://fak3r.com - you dont have to kick it From phil at cryer.us Thu Apr 6 11:32:50 2006 From: phil at cryer.us (phil) Date: Thu, 6 Apr 2006 10:32:50 -0500 Subject: [typo] Cannot update/add sidebars in trunk In-Reply-To: <8a733a7bc01e712158c4f07e63038406@pepe.cryer.us> References: <8a733a7bc01e712158c4f07e63038406@pepe.cryer.us> Message-ID: <acc564837d6686d408c7dee8f78bd6d0@pepe.cryer.us> On Wed, 5 Apr 2006 21:17:05 -0500, phil <phil at cryer.us> wrote: > On Wed, 05 Apr 2006 20:12:49 -0400, Paul Hart <mail at paulhart.ca> wrote: >> I've seen that Chris Saylor has posted the this issue too, but I'd like >> to add my +1 on this; I'm seeing exactly the same problem. >> >> Also, during the migration my existing sidebar content was lost; I had >> two static sidebars and their content was replaced with 'body'. > > I had this as well, I added a 'Static' bar back in, it didn't take, but > when I got back onto the site the OLD 'Static' was there! And as a followup, as this has happened during a couple of migrations for me, I now have a /pages/sidebar page so I can easily recreate my old sidebar if it gets lost. P > > P > >> I'm running r997. >> _______________________________________________ >> Typo-list mailing list >> Typo-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list > -- > http://fak3r.com - you dont have to kick it > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list -- http://fak3r.com - you dont have to kick it From kevin at sb.org Thu Apr 6 11:57:40 2006 From: kevin at sb.org (Kevin Ballard) Date: Thu, 6 Apr 2006 08:57:40 -0700 Subject: [typo] Globalize plugin on Typo In-Reply-To: <2b979f3c0604060108t623aeb59wff4f6451065527c5@mail.gmail.com> References: <2b979f3c0604060108t623aeb59wff4f6451065527c5@mail.gmail.com> Message-ID: <742A065A-2C68-4659-A551-76393801F439@sb.org> Uhh, script/plugin doesn't exist because Typo 2.6.0 is old. You might want to try this on trunk instead (or wait for the imminent 4.0 release). On Apr 6, 2006, at 1:08 AM, David Verd? wrote: > Hello! I'm Trying to add localization to my Typo installation with > Globalize Plugin but, what my surprise! > > 1. script/plugin script doesn't exists. Why Typo hasn't this script? > > 2. I have tryed to checkout by hand latest Globalize version into > vendor/plugins (plugins folder created by me), vendor and lib > folders with subversion. Globalize is taken from http:// > svn.globalize-rails.org/svn/globalize/globalize/trunk. > Then, I invoqued script/generate migrate and rake migrate, and It > seems to run well; database was updated with globalize tables. But, > when I use on views t method, application breaks with this line: > > > %= link_to("edit".t, { :controller => "admin/content", :action => > "edit", :id => @article }, > :class => "admintools", :style => "display: none", :id => > "admin_article") %> > > Dumping this error: > > undefined method `t' for "edit":String > > > Why are typo folders structure slightly different from normal Rails > applications? so, What things should I change to set globalize > correctly on Typo? > I'm using typo-2.6.0_rails_1_0 -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060406/86966a47/attachment.bin From kevin at sb.org Thu Apr 6 11:59:58 2006 From: kevin at sb.org (Kevin Ballard) Date: Thu, 6 Apr 2006 08:59:58 -0700 Subject: [typo] With trunk, can no longer login as Admin In-Reply-To: <2F89582C-2EB1-48DB-8E29-1F77C47B4C72@gmail.com> References: <20060405234028.C7005A6@pepe.cryer.us> <d23f58b760b1299b19aaeddf948e13c1@pepe.cryer.us> <2F89582C-2EB1-48DB-8E29-1F77C47B4C72@gmail.com> Message-ID: <16AE6B98-631A-4692-AC3E-30500BE3B87F@sb.org> A fairly straightforward way is to run ./script/console (with RAILS_ENV=production if necessary) and then do user = User.find(:first) user.password = "your password here" user.password_confirmation = "your password here" user.save On Apr 6, 2006, at 6:23 AM, Gary Shewan wrote: > You could use phpmyadmin (or whatever you like) to delete your user > from the user table ... if there aren't any users I'm pretty sure > Typo let's you sign up with a new user. > > Look at /app/controllers/accounts_controller.rb - seems pretty > straightforward. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060406/a87aeaf5/attachment.bin From dlamotte at bamboo.lu Thu Apr 6 12:33:51 2006 From: dlamotte at bamboo.lu (Denis Lamotte) Date: Thu, 06 Apr 2006 18:33:51 +0200 Subject: [typo] Globalize plugin on Typo In-Reply-To: <742A065A-2C68-4659-A551-76393801F439@sb.org> References: <2b979f3c0604060108t623aeb59wff4f6451065527c5@mail.gmail.com> <742A065A-2C68-4659-A551-76393801F439@sb.org> Message-ID: <443542EF.3060109@bamboo.lu> Yeah and i'll post a complete localizazed version of the current trunk with the Localization (updated) plugin ( for rails 1.0 only), available in english, french and dutch. Kevin Ballard wrote: > Uhh, script/plugin doesn't exist because Typo 2.6.0 is old. You might > want to try this on trunk instead (or wait for the imminent 4.0 release). > > On Apr 6, 2006, at 1:08 AM, David Verd? wrote: > >> Hello! I'm Trying to add localization to my Typo installation with >> Globalize Plugin but, what my surprise! >> >> 1. script/plugin script doesn't exists. Why Typo hasn't this script? >> >> 2. I have tryed to checkout by hand latest Globalize version into >> vendor/plugins (plugins folder created by me), vendor and lib folders >> with subversion. Globalize is taken from http:// >> svn.globalize-rails.org/svn/globalize/globalize/trunk. >> Then, I invoqued script/generate migrate and rake migrate, and It >> seems to run well; database was updated with globalize tables. But, >> when I use on views t method, application breaks with this line: >> >> >> %= link_to("edit".t, { :controller => "admin/content", :action => >> "edit", :id => @article }, >> :class => "admintools", :style => "display: none", :id => >> "admin_article") %> >> >> Dumping this error: >> >> undefined method `t' for "edit":String >> >> >> Why are typo folders structure slightly different from normal Rails >> applications? so, What things should I change to set globalize >> correctly on Typo? >> I'm using typo-2.6.0_rails_1_0 > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From phil at cryer.us Thu Apr 6 12:57:50 2006 From: phil at cryer.us (phil) Date: Thu, 6 Apr 2006 11:57:50 -0500 Subject: [typo] With trunk, can no longer login as Admin [SOLVED] In-Reply-To: <63238eebad5f405bf18e5caf7c0403cc@pepe.cryer.us> References: <63238eebad5f405bf18e5caf7c0403cc@pepe.cryer.us> Message-ID: <98e56f2ec2aa4e9619529a2a4dee254a@pepe.cryer.us> On Thu, 6 Apr 2006 9:48:40 -0500, phil <phil at cryer.us> wrote: > > > On Thu, 06 Apr 2006 09:03:43 -0500, Jake Good <jake at whoisjake.com> wrote: >> Err copy the hash out of the log/development.log file >> >> Minor detail omission. >> >> Jake Good wrote: >>> This might not be the best way... but throw your blog into development >>> mode... try your OLD password, copy the hash and replace it in the db. >>> >>> I didn't that when the hashes went bad after a migrate. Worked like a >> charm. >>> >>> Jake >>> >>> Gary Shewan wrote: >>> >>>> On 6 Apr 2006, at 13:55, Phil Cryer wrote: >>>> >>>> >>>>> On Wed, 5 Apr 2006 19:32:15 -0400, "Kyle Heon" <kheon at comcast.net> >>>>> wrote: >>>>> >>>>> >>>>>> I had an issue awhile back with a banged up migration that >>>>>> prevented me >>>>>> from >>>>>> logging into the admin area as well. >>>>>> >>>>>> I fixed it by opening up a console and resetting my password. I'm >>>>>> pretty >>>>>> sure you need to hash the password first but I believe the >>>>>> functions you >>>>>> need are all part of the LoginController. >>>>>> >>>>>> >>>>> Can you tell me how to do this, or is it documented somewhere? (I >>>>> don't see anything on Typo Trac about it). Thanks >>>>> >>>>> >>>> You could use phpmyadmin (or whatever you like) to delete your user >>>> from the user table ... if there aren't any users I'm pretty sure >>>> Typo let's you sign up with a new user. > > Ah, thanks for everyone's help, this is now fixed. And since I *hate* it > when I search mailing lists to find an answer just to see someone say, > "never mind, I fixed it" without saying how they fixed it, here ya go: > > Symptom: couldn't login as admin to Typo site > > Solution: go into database, switch to Typo database and enter: > > delete from users where id=1; > > fire up your site/admin > > re-create the admin acct. > > I'm sure there's other ways to handle this, but this works. Thanks again However - the only thing that seems brok3n is when I click on a article title and get to the article page, I don't get the 'Edit' option next to the title to jump right into the edit function even when I'm logged in. If I go to /admin it'll drop me over there and I can do all of my admin-y stuff, but this functionality was there yesterday before I 'fixed' my login issue. Is there anything else I need to add to the DB to have my user be 'special'? P > > P > > >>>> >>>> Look at /app/controllers/accounts_controller.rb - seems pretty >>>> straightforward. >>>> _______________________________________________ >>>> 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 >>> >>> >> _______________________________________________ >> Typo-list mailing list >> Typo-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list > -- > http://fak3r.com - you dont have to kick it > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list -- http://fak3r.com - you dont have to kick it From rasputnik at gmail.com Thu Apr 6 17:16:41 2006 From: rasputnik at gmail.com (Dick Davies) Date: Thu, 6 Apr 2006 22:16:41 +0100 Subject: [typo] With trunk, can no longer login as Admin [SOLVED] In-Reply-To: <98e56f2ec2aa4e9619529a2a4dee254a@pepe.cryer.us> References: <63238eebad5f405bf18e5caf7c0403cc@pepe.cryer.us> <98e56f2ec2aa4e9619529a2a4dee254a@pepe.cryer.us> Message-ID: <3f1760604061416u485a7f26kb8991a40c8af9066@mail.gmail.com> On 06/04/06, phil <phil at cryer.us> wrote: > > And since I *hate* it when I search mailing lists to find an answer > > just to see someone say, "never mind, I fixed it" > > without saying how they fixed it, here ya go: (google : file under 'possibly not such a great idea' ) :) > > Symptom: couldn't login as admin to Typo site > > > > Solution: go into database, switch to Typo database and enter: > > > > delete from users where id=1; > > > > fire up your site/admin > > > > re-create the admin acct. > > > > I'm sure there's other ways to handle this, but this works. Thanks again Think that's a bad fix - if you have an auto-increment id field on the users table, then when you recreate the user he has a different id. I expect that's why you can't edit any of your old posts. The best fix is to use the console, find the old user me = User.find(1) in my case, then reset the password with a me.password = me.password_confirmation = 'sekrit' me.save (Yes, I forget my password a lot). > However - the only thing that seems brok3n is when I click on a article title and get to the article page, I don't get the 'Edit' option next to the title to jump right into the edit function even when I'm logged in. If I go to /admin it'll drop me over there and I can do all of my admin-y stuff, but this functionality was there yesterday before I 'fixed' my login issue. > > Is there anything else I need to add to the DB to have my user be 'special'? -- Rasputin :: Jack of All Trades - Master of Nuns http://number9.hellooperator.net/ From cwsaylor at gmail.com Thu Apr 6 17:28:05 2006 From: cwsaylor at gmail.com (Chris Saylor) Date: Thu, 6 Apr 2006 17:28:05 -0400 Subject: [typo] Cannot update/add sidebars in trunk In-Reply-To: <acc564837d6686d408c7dee8f78bd6d0@pepe.cryer.us> References: <8a733a7bc01e712158c4f07e63038406@pepe.cryer.us> <acc564837d6686d408c7dee8f78bd6d0@pepe.cryer.us> Message-ID: <a23a98e90604061428g79075de0jc46c5f1971995c5a@mail.gmail.com> I'm still getting a missing template error in the log. It's this one app/views/admin/sidebar/set_active.rhtml Is anybody else getting this? Thanks, Chris On 4/6/06, phil <phil at cryer.us> wrote: > > > On Wed, 5 Apr 2006 21:17:05 -0500, phil <phil at cryer.us> wrote: > > On Wed, 05 Apr 2006 20:12:49 -0400, Paul Hart <mail at paulhart.ca> wrote: > >> I've seen that Chris Saylor has posted the this issue too, but I'd like > >> to add my +1 on this; I'm seeing exactly the same problem. > >> > >> Also, during the migration my existing sidebar content was lost; I had > >> two static sidebars and their content was replaced with 'body'. > > > > I had this as well, I added a 'Static' bar back in, it didn't take, but > > when I got back onto the site the OLD 'Static' was there! > > And as a followup, as this has happened during a couple of migrations for me, I now have a /pages/sidebar page so I can easily recreate my old sidebar if it gets lost. > > P > > > > > P > > > >> I'm running r997. > >> _______________________________________________ > >> Typo-list mailing list > >> Typo-list at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/typo-list > > -- > > http://fak3r.com - you dont have to kick it > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > -- > http://fak3r.com - you dont have to kick it > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From josh at hasmanythrough.com Thu Apr 6 17:29:00 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Thu, 6 Apr 2006 14:29:00 -0700 Subject: [typo] Typo and Rails 1.1.1 Message-ID: <A1564A13-B8F8-455F-B223-01FB9FB840FF@hasmanythrough.com> Now that Rails 1.1.1 is out, is Typo trunk going to standardize on that soon? I think someone said that Rails 1.1.1 is all that was needed to switch Typo trunk over from the Rails 1.0 requirement. -- Josh Susser http://blog.hasmanythrough.com From meta at pobox.com Thu Apr 6 18:16:01 2006 From: meta at pobox.com (mathew) Date: Thu, 06 Apr 2006 17:16:01 -0500 Subject: [typo] Typo and Rails 1.1.1 In-Reply-To: <A1564A13-B8F8-455F-B223-01FB9FB840FF@hasmanythrough.com> References: <A1564A13-B8F8-455F-B223-01FB9FB840FF@hasmanythrough.com> Message-ID: <44359321.4090903@pobox.com> Josh Susser wrote: > Now that Rails 1.1.1 is out, is Typo trunk going to standardize on > that soon? I think someone said that Rails 1.1.1 is all that was > needed to switch Typo trunk over from the Rails 1.0 requirement. > I'm running trunk on Rails 1.1. mathew From phil at cryer.us Thu Apr 6 23:31:27 2006 From: phil at cryer.us (Phil Cryer) Date: Thu, 6 Apr 2006 22:31:27 -0500 Subject: [typo] With trunk, can no longer login as Admin [SOLVED] In-Reply-To: <3f1760604061416u485a7f26kb8991a40c8af9066@mail.gmail.com> References: <3f1760604061416u485a7f26kb8991a40c8af9066@mail.gmail.com> Message-ID: <fdae2cf08adf4c602a12576c2667aa02@pepe.cryer.us> On Thu, 6 Apr 2006 22:16:41 +0100, "Dick Davies" <rasputnik at gmail.com> wrote: > On 06/04/06, phil <phil at cryer.us> wrote: > >> > And since I *hate* it when I search mailing lists to find an answer >> > just to see someone say, "never mind, I fixed it" >> > without saying how they fixed it, here ya go: > > (google : file under 'possibly not such a great idea' ) :) > >> > Symptom: couldn't login as admin to Typo site >> > >> > Solution: go into database, switch to Typo database and enter: >> > >> > delete from users where id=1; >> > >> > fire up your site/admin >> > >> > re-create the admin acct. >> > >> > I'm sure there's other ways to handle this, but this works. Thanks > again > > Think that's a bad fix - if you have an auto-increment id field on the > users > table, then when you recreate the user he has a different id. > I expect that's why you can't edit any of your old posts. > > The best fix is to use the console, find the old user > me = User.find(1) > in my case, then reset the password with a > > me.password = me.password_confirmation = 'sekrit' > me.save Thanks Dave - however you say 'use the console' - what do you mean by this? Is this ia Ruby thing? If so I'd like to know more about how to use it. Again, thanks for pointing out a better way, I'm always up for that. P > > (Yes, I forget my password a lot). > >> However - the only thing that seems brok3n is when I click on a article > title and get to the article page, I don't get the 'Edit' option next to > the title to jump right into the edit function even when I'm logged in. > If I go to /admin it'll drop me over there and I can do all of my admin-y > stuff, but this functionality was there yesterday before I 'fixed' my > login issue. >> >> Is there anything else I need to add to the DB to have my user be > 'special'? > > -- > Rasputin :: Jack of All Trades - Master of Nuns > http://number9.hellooperator.net/ From kevin at sb.org Thu Apr 6 23:34:41 2006 From: kevin at sb.org (Kevin Ballard) Date: Thu, 6 Apr 2006 20:34:41 -0700 Subject: [typo] With trunk, can no longer login as Admin [SOLVED] In-Reply-To: <98e56f2ec2aa4e9619529a2a4dee254a@pepe.cryer.us> References: <63238eebad5f405bf18e5caf7c0403cc@pepe.cryer.us> <98e56f2ec2aa4e9619529a2a4dee254a@pepe.cryer.us> Message-ID: <004A2961-9467-424C-90BA-3693A2838B35@sb.org> It's possible that the theme you're using isn't providing this. But by default, if you're logged in, you get a cookie set which enables these buttons. So it should just work. On Apr 6, 2006, at 9:57 AM, phil wrote: > However - the only thing that seems brok3n is when I click on a > article title and get to the article page, I don't get the 'Edit' > option next to the title to jump right into the edit function even > when I'm logged in. If I go to /admin it'll drop me over there and > I can do all of my admin-y stuff, but this functionality was there > yesterday before I 'fixed' my login issue. > > Is there anything else I need to add to the DB to have my user be > 'special'? -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060406/d2609f99/attachment.bin From kevin at sb.org Thu Apr 6 23:35:27 2006 From: kevin at sb.org (Kevin Ballard) Date: Thu, 6 Apr 2006 20:35:27 -0700 Subject: [typo] Typo and Rails 1.1.1 In-Reply-To: <A1564A13-B8F8-455F-B223-01FB9FB840FF@hasmanythrough.com> References: <A1564A13-B8F8-455F-B223-01FB9FB840FF@hasmanythrough.com> Message-ID: <4FD68189-A043-407B-A7AE-3E3B8C6AAA68@sb.org> Uhh, Typo trunk has been running on Rails 1.1 for some time now. If you check out HEAD you'll even get rails 1.1 extracted into your vendor dir (through the magic of svn:externals). On Apr 6, 2006, at 2:29 PM, Josh Susser wrote: > Now that Rails 1.1.1 is out, is Typo trunk going to standardize on > that soon? I think someone said that Rails 1.1.1 is all that was > needed to switch Typo trunk over from the Rails 1.0 requirement. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060406/f0da02c9/attachment.bin From josh at hasmanythrough.com Thu Apr 6 23:39:48 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Thu, 6 Apr 2006 20:39:48 -0700 Subject: [typo] With trunk, can no longer login as Admin [SOLVED] In-Reply-To: <fdae2cf08adf4c602a12576c2667aa02@pepe.cryer.us> References: <3f1760604061416u485a7f26kb8991a40c8af9066@mail.gmail.com> <fdae2cf08adf4c602a12576c2667aa02@pepe.cryer.us> Message-ID: <0D665A94-E7ED-471E-A624-51021C7B991E@hasmanythrough.com> http://wiki.rubyonrails.org/rails/pages/Console -- Josh Susser http://blog.hasmanythrough.com On Apr 6, 2006, at 8:31 PM, Phil Cryer wrote: > > Thanks Dave - however you say 'use the console' - what do you mean > by this? Is this ia Ruby thing? If so I'd like to know more about > how to use it. Again, thanks for pointing out a better way, I'm > always up for that. From scaudill at gmail.com Thu Apr 6 23:47:46 2006 From: scaudill at gmail.com (Stephen Caudill) Date: Thu, 6 Apr 2006 23:47:46 -0400 Subject: [typo] With trunk, can no longer login as Admin [SOLVED] In-Reply-To: <fdae2cf08adf4c602a12576c2667aa02@pepe.cryer.us> References: <3f1760604061416u485a7f26kb8991a40c8af9066@mail.gmail.com> <fdae2cf08adf4c602a12576c2667aa02@pepe.cryer.us> Message-ID: <49B967A5-10B7-4002-8B9F-BCB9153083DF@gmail.com> It's not a Ruby thing, it's a Rails thing. You'll have seen it if you watched any of the screencasts by DHH. In case you haven't seen any of them, go here: http://rubyonrails.com/screencasts this one in particular (or its earlier incarnation) is the one that lit a fire under most folks asses to check out rails: http://media.rubyonrails.org/video/rails_take2_with_sound.mov In a nutshell though, from the root of your application, run: script/console This will bring up an interactive shell session with your applications data and environment available. - Stephen On Apr 6, 2006, at 11:31 PM, Phil Cryer wrote: > > Thanks Dave - however you say 'use the console' - what do you mean > by this? Is this ia Ruby thing? If so I'd like to know more about > how to use it. Again, thanks for pointing out a better way, I'm > always up for that. > > P From arvind at grovernetwork.com Thu Apr 6 23:57:25 2006 From: arvind at grovernetwork.com (arvind s grover) Date: Thu, 6 Apr 2006 23:57:25 -0400 Subject: [typo] technorati (html) tags inserting incorrectly In-Reply-To: <mailman.21185.1144381210.25833.typo-list@rubyforge.org> References: <mailman.21185.1144381210.25833.typo-list@rubyforge.org> Message-ID: <6527129C-0F67-4C75-AFD4-E02C3637A3F9@grovernetwork.com> When I put html technorati tags into my message body: <!-- technorati tags start --> <a href="http://www.technorati.com/tag/teachers" rel="tag">teachers</a> <!-- technorati tags end --> they show up like this on my blog: <!—technorati tags start—> <a href="http://www.technorati.com/tag/teachers" rel="tag">teachers</a> <!—technorati tags end—> My pings are not working, and I wonder if it is related to that. Any ideas on how to get it to insert the exact html? See http://www. 21apples.org if you want the full page source thanks for any ideas. i am also using ecto to post if that gives you some ideas. From kevin at sb.org Fri Apr 7 00:07:03 2006 From: kevin at sb.org (Kevin Ballard) Date: Thu, 6 Apr 2006 21:07:03 -0700 Subject: [typo] technorati (html) tags inserting incorrectly In-Reply-To: <6527129C-0F67-4C75-AFD4-E02C3637A3F9@grovernetwork.com> References: <mailman.21185.1144381210.25833.typo-list@rubyforge.org> <6527129C-0F67-4C75-AFD4-E02C3637A3F9@grovernetwork.com> Message-ID: <6C75869F-18ED-4554-B54E-55B91D818F3E@sb.org> That would be a function of whatever markup (probably Textile) that you're using. I believe, if it's Textile, you can wrap this block with <notextile>stuff here</notextile> to disable textile markup there. Alternately, someone else may have a better solution. On Apr 6, 2006, at 8:57 PM, arvind s grover wrote: > When I put html technorati tags into my message body: > <!-- technorati tags start --> > <a href="http://www.technorati.com/tag/teachers" > rel="tag">teachers</a> > <!-- technorati tags end --> > > they show up like this on my blog: > <!—technorati tags start—> > <a href="http://www.technorati.com/tag/teachers" > rel="tag">teachers</a> > <!—technorati tags end—> > > My pings are not working, and I wonder if it is related to that. Any > ideas on how to get it to insert the exact html? See http://www. > 21apples.org if you want the full page source > > thanks for any ideas. i am also using ecto to post if that gives you > some ideas. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060406/dc9e04d1/attachment.bin From cedric at feelfree.homelinux.com Fri Apr 7 01:21:34 2006 From: cedric at feelfree.homelinux.com (cedric) Date: Fri, 7 Apr 2006 07:21:34 +0200 Subject: [typo] svn problems... Message-ID: <200604070721.34413.cedric@feelfree.homelinux.com> an error message comes when I'm doing 'svn up' Fetching external item into 'vendor/rails' svn: REPORT request failed on '/svn/rails/!svn/vcc/default' svn: Cannot replace a directory from within Here are my svn info: Path: . URL: svn://typosphere.org/typo/trunk Repository UUID: 820eb932-12ee-0310-9ca8-eeb645f39767 Revision: 998 Node Kind: directory Schedule: normal Last Changed Author: kevin Last Changed Rev: 998 Last Changed Date: 2006-04-06 04:55:10 +0200 (jeu, 06 avr 2006) Properties Last Updated: 2006-04-04 12:26:45 +0200 (mar, 04 avr 2006) Regards. C?dric From kevin at sb.org Fri Apr 7 01:31:28 2006 From: kevin at sb.org (Kevin Ballard) Date: Thu, 6 Apr 2006 22:31:28 -0700 Subject: [typo] svn problems... In-Reply-To: <200604070721.34413.cedric@feelfree.homelinux.com> References: <200604070721.34413.cedric@feelfree.homelinux.com> Message-ID: <98DC51D4-BC3B-4137-A1A6-10E8187C0C7B@sb.org> Delete your vendor/rails directory and try again. On Apr 6, 2006, at 10:21 PM, cedric wrote: > an error message comes when I'm doing 'svn up' > > Fetching external item into 'vendor/rails' > svn: REPORT request failed on '/svn/rails/!svn/vcc/default' > svn: > Cannot replace a directory from within > > Here are my svn info: > Path: . > URL: svn://typosphere.org/typo/trunk > Repository UUID: 820eb932-12ee-0310-9ca8-eeb645f39767 > Revision: 998 > Node Kind: directory > Schedule: normal > Last Changed Author: kevin > Last Changed Rev: 998 > Last Changed Date: 2006-04-06 04:55:10 +0200 (jeu, 06 avr 2006) > Properties Last Updated: 2006-04-04 12:26:45 +0200 (mar, 04 avr 2006) -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060406/25f12a7c/attachment.bin From cedric at feelfree.homelinux.com Fri Apr 7 03:44:05 2006 From: cedric at feelfree.homelinux.com (cedric) Date: Fri, 7 Apr 2006 09:44:05 +0200 (CEST) Subject: [typo] svn problems... In-Reply-To: <98DC51D4-BC3B-4137-A1A6-10E8187C0C7B@sb.org> References: <200604070721.34413.cedric@feelfree.homelinux.com> <98DC51D4-BC3B-4137-A1A6-10E8187C0C7B@sb.org> Message-ID: <45230.212.215.1.67.1144395845.squirrel@kobayazen.ath.cx> Now I got svn: url 'http://dev.rubyonrails.com/svn/rails/branches/stable' doesn't exist > Delete your vendor/rails directory and try again. > > On Apr 6, 2006, at 10:21 PM, cedric wrote: > >> an error message comes when I'm doing 'svn up' >> >> Fetching external item into 'vendor/rails' >> svn: REPORT request failed on '/svn/rails/!svn/vcc/default' >> svn: >> Cannot replace a directory from within >> >> Here are my svn info: >> Path: . >> URL: svn://typosphere.org/typo/trunk >> Repository UUID: 820eb932-12ee-0310-9ca8-eeb645f39767 >> Revision: 998 >> Node Kind: directory >> Schedule: normal >> Last Changed Author: kevin >> Last Changed Rev: 998 >> Last Changed Date: 2006-04-06 04:55:10 +0200 (jeu, 06 avr 2006) >> Properties Last Updated: 2006-04-04 12:26:45 +0200 (mar, 04 avr 2006) > > -- > Kevin Ballard > kevin at sb.org > http://kevin.sb.org > http://www.tildesoft.com > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From kevin at kubasik.net Fri Apr 7 07:41:41 2006 From: kevin at kubasik.net (Kevin Kubasik) Date: Fri, 7 Apr 2006 07:41:41 -0400 Subject: [typo] svn problems... In-Reply-To: <45230.212.215.1.67.1144395845.squirrel@kobayazen.ath.cx> References: <200604070721.34413.cedric@feelfree.homelinux.com> <98DC51D4-BC3B-4137-A1A6-10E8187C0C7B@sb.org> <45230.212.215.1.67.1144395845.squirrel@kobayazen.ath.cx> Message-ID: <88d636060604070441h23a5aa8dxfcc394067d9f1b9e@mail.gmail.com> Apperently it doesn't (exist) any more. They just recently added a new tag/branch set for 1.1, (according to the svn log). Maybe they wiped the 'stable' branch accedentaly. Someone wanna send an e-mail to their list? Cheers, Kevin Kubasik On 4/7/06, cedric <cedric at feelfree.homelinux.com> wrote: > Now I got > > svn: url 'http://dev.rubyonrails.com/svn/rails/branches/stable' doesn't exist > > > > Delete your vendor/rails directory and try again. > > > > On Apr 6, 2006, at 10:21 PM, cedric wrote: > > > >> an error message comes when I'm doing 'svn up' > >> > >> Fetching external item into 'vendor/rails' > >> svn: REPORT request failed on '/svn/rails/!svn/vcc/default' > >> svn: > >> Cannot replace a directory from within > >> > >> Here are my svn info: > >> Path: . > >> URL: svn://typosphere.org/typo/trunk > >> Repository UUID: 820eb932-12ee-0310-9ca8-eeb645f39767 > >> Revision: 998 > >> Node Kind: directory > >> Schedule: normal > >> Last Changed Author: kevin > >> Last Changed Rev: 998 > >> Last Changed Date: 2006-04-06 04:55:10 +0200 (jeu, 06 avr 2006) > >> Properties Last Updated: 2006-04-04 12:26:45 +0200 (mar, 04 avr 2006) > > > > -- > > Kevin Ballard > > kevin at sb.org > > http://kevin.sb.org > > http://www.tildesoft.com > > > > > > _______________________________________________ > > 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 > -- Cheers, Kevin Kubasik http://blog.kubasik.net/ From meta at pobox.com Fri Apr 7 10:44:27 2006 From: meta at pobox.com (mathew) Date: Fri, 07 Apr 2006 09:44:27 -0500 Subject: [typo] Strange problem Message-ID: <44367ACB.80005@pobox.com> If you look at http://meta.ath0.com/articles/page/2 there's a posting titled "Equilibrium". If you click on the title, you get "Post not found". Any idea why this might be happening? Nothing appears in the logs. mathew From pdcawley at bofh.org.uk Fri Apr 7 10:48:45 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 07 Apr 2006 15:48:45 +0100 Subject: [typo] Blacklist patterns In-Reply-To: <28FDA426-50FD-40A6-9D38-381455136F51@gmail.com> (Gary Shewan's message of "Tue, 4 Apr 2006 16:33:46 +0100") References: <28FDA426-50FD-40A6-9D38-381455136F51@gmail.com> Message-ID: <m2ek09l9v6.fsf@obelisk.bofh.org.uk> Gary Shewan <gpsnospam at gmail.com> writes: > Did I miss the 'How-to' on using blacklist patterns in the admin > interface? Is it just regex? I hate regex ... it's a black and > unfathomable art for me :/ Both Regexps and String patterns. When you create a pattern you should be able to specify which. And on further investigation, the Blacklist stuff is crying out to be refactored. Any time I see a model that's simply an empty class declaration it triggers a nervous tic. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Fri Apr 7 10:53:58 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 07 Apr 2006 15:53:58 +0100 Subject: [typo] Typo and Rails 1.1.1 In-Reply-To: <4FD68189-A043-407B-A7AE-3E3B8C6AAA68@sb.org> (Kevin Ballard's message of "Thu, 6 Apr 2006 20:35:27 -0700") References: <A1564A13-B8F8-455F-B223-01FB9FB840FF@hasmanythrough.com> <4FD68189-A043-407B-A7AE-3E3B8C6AAA68@sb.org> Message-ID: <m2acaxl9mh.fsf@obelisk.bofh.org.uk> Kevin Ballard <kevin at sb.org> writes: > Uhh, Typo trunk has been running on Rails 1.1 for some time now. If > you check out HEAD you'll even get rails 1.1 extracted into your > vendor dir (through the magic of svn:externals). You'll probably get 1.1.1 now. We're using branches/stable as the external target. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From meta at pobox.com Fri Apr 7 10:55:02 2006 From: meta at pobox.com (mathew) Date: Fri, 07 Apr 2006 09:55:02 -0500 Subject: [typo] Strange problem In-Reply-To: <44367ACB.80005@pobox.com> References: <44367ACB.80005@pobox.com> Message-ID: <44367D46.3090504@pobox.com> mathew wrote: > If you look at http://meta.ath0.com/articles/page/2 there's a posting > titled "Equilibrium". > > If you click on the title, you get "Post not found". > > Any idea why this might be happening? Nothing appears in the logs. Found the cause. A spambot had posted a comment that was causing typo to fail. I removed the comment via psql. mathew From pdcawley at bofh.org.uk Fri Apr 7 10:55:22 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 07 Apr 2006 15:55:22 +0100 Subject: [typo] svn problems... In-Reply-To: <88d636060604070441h23a5aa8dxfcc394067d9f1b9e@mail.gmail.com> (Kevin Kubasik's message of "Fri, 7 Apr 2006 07:41:41 -0400") References: <200604070721.34413.cedric@feelfree.homelinux.com> <98DC51D4-BC3B-4137-A1A6-10E8187C0C7B@sb.org> <45230.212.215.1.67.1144395845.squirrel@kobayazen.ath.cx> <88d636060604070441h23a5aa8dxfcc394067d9f1b9e@mail.gmail.com> Message-ID: <m264lll9k5.fsf@obelisk.bofh.org.uk> "Kevin Kubasik" <kevin at kubasik.net> writes: > Apperently it doesn't (exist) any more. They just recently added a new > tag/branch set for 1.1, (according to the svn log). Maybe they wiped > the 'stable' branch accedentaly. Someone wanna send an e-mail to their > list? BWAH! There I was, carefully setting the thing up so that it tracked the stable version, and making sure that the trunk would break nice and early, and they go and remove the branch! What's a developer to do? -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From phil at cryer.us Fri Apr 7 11:00:15 2006 From: phil at cryer.us (Phil Cryer) Date: Fri, 7 Apr 2006 10:00:15 -0500 Subject: [typo] With trunk, can no longer login as Admin [SOLVED] In-Reply-To: <004A2961-9467-424C-90BA-3693A2838B35@sb.org> References: <004A2961-9467-424C-90BA-3693A2838B35@sb.org> Message-ID: <f518db81200426673ffe73b73866d010@pepe.cryer.us> On Thu, 6 Apr 2006 20:34:41 -0700, Kevin Ballard <kevin at sb.org> wrote: > It's possible that the theme you're using isn't providing this. But > by default, if you're logged in, you get a cookie set which enables > these buttons. So it should just work. Yep, cleared the browser cache - closed - reopened, and there are the 'edit' buttons again, thanks! P > > On Apr 6, 2006, at 9:57 AM, phil wrote: > >> However - the only thing that seems brok3n is when I click on a >> article title and get to the article page, I don't get the 'Edit' >> option next to the title to jump right into the edit function even >> when I'm logged in. If I go to /admin it'll drop me over there and >> I can do all of my admin-y stuff, but this functionality was there >> yesterday before I 'fixed' my login issue. >> >> Is there anything else I need to add to the DB to have my user be >> 'special'? > > From pdcawley at bofh.org.uk Fri Apr 7 11:23:45 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 07 Apr 2006 16:23:45 +0100 Subject: [typo] The sidebar issue in HEAD Message-ID: <m21ww9l88u.fsf@obelisk.bofh.org.uk> Sorry for any problems you've been experiencing folks. I'm trying to get sidebars to a point where we can test them automatically, which will hopefully mean that problems like you've been experiencing will be a thing of of the past. I am, however, reasonably confident that, with the current trunk (r999 and above), and starting from an empty sidebars table[1] you should be able to populate your sidebar quite happily from the standard sidebar set and have your changes saved without any problems. If anyone is still having problems with core sidebars, starting from an empty sidebar, then please start a ticket in the trac[2] with as much information as possible including log traces and exactly what it was you were trying to do. I'm afraid my time to work on this is somewhat limited all of a sudden; I've just had a big influx of paying work that's eating into my time -- instead of having three or four days a week to work on typo I'm going to be lucky to grab one or two for the next while. 1. You can empty your production sidebars table by doing: $ ./script/runner -e production 'Sidebar.delete_all' If you're running in development mode, replace 'production' with 'development' and it should purge the table. However, only do this if you've got problems with your current sidebar set. 2. http://www.typosphere.org/trac -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From scott at sigkill.org Fri Apr 7 11:27:55 2006 From: scott at sigkill.org (Scott Laird) Date: Fri, 7 Apr 2006 08:27:55 -0700 Subject: [typo] Strange problem In-Reply-To: <44367D46.3090504@pobox.com> References: <44367ACB.80005@pobox.com> <44367D46.3090504@pobox.com> Message-ID: <14b7e5ef0604070827s6bbc1cft4351e4a66c90ac52@mail.gmail.com> Yikes. Which version of Typo and which DB? Do you still have a copyof the comment, or do you have the backtrace in the logs that showswhat happened? Scott On 4/7/06, mathew <meta at pobox.com> wrote:> mathew wrote:> > If you look at http://meta.ath0.com/articles/page/2 there's a posting> > titled "Equilibrium".> >> > If you click on the title, you get "Post not found".> >> > Any idea why this might be happening? Nothing appears in the logs.>> Found the cause. A spambot had posted a comment that was causing typo to> fail. I removed the comment via psql.>>> mathew> _______________________________________________> Typo-list mailing list> Typo-list at rubyforge.org> http://rubyforge.org/mailman/listinfo/typo-list> From steve.longdo at gmail.com Fri Apr 7 11:32:47 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Fri, 7 Apr 2006 10:32:47 -0500 Subject: [typo] Strange problem In-Reply-To: <44367D46.3090504@pobox.com> References: <44367ACB.80005@pobox.com> <44367D46.3090504@pobox.com> Message-ID: <cc4e85f30604070832n4173d82fhf29a859ec397a415@mail.gmail.com> What kind of comment causes Typo to fail? Could you post the text here? On 4/7/06, mathew <meta at pobox.com> wrote: > > mathew wrote: > > If you look at http://meta.ath0.com/articles/page/2 there's a posting > > titled "Equilibrium". > > > > If you click on the title, you get "Post not found". > > > > Any idea why this might be happening? Nothing appears in the logs. > > Found the cause. A spambot had posted a comment that was causing typo to > fail. I removed the comment via psql. > > > mathew > _______________________________________________ > 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/20060407/5d64a638/attachment.htm From meta at pobox.com Fri Apr 7 12:14:56 2006 From: meta at pobox.com (mathew) Date: Fri, 07 Apr 2006 11:14:56 -0500 Subject: [typo] Strange problem In-Reply-To: <14b7e5ef0604070827s6bbc1cft4351e4a66c90ac52@mail.gmail.com> References: <44367ACB.80005@pobox.com> <44367D46.3090504@pobox.com> <14b7e5ef0604070827s6bbc1cft4351e4a66c90ac52@mail.gmail.com> Message-ID: <44369000.5070405@pobox.com> Scott Laird wrote: > Yikes. Which version of Typo and which DB? PostgreSQL, trunk from a week or two ago, Rails 1.1. If you want me to be more precise, you'll need to tell me which file might have a useful version ID... (It'd be a good idea to make the admin interface display that info, yes?) > Do you still have a copyof the comment, or do you have the backtrace in the logs that showswhat happened? > There was no backtrace in the logs. The spambot in question visits me on a regular basis. It posts MIME-encoded crap, apparently thinking it'll get sent as e-mail or something. It always uses my domain as the e-mail address, which ought to make it really easy to block if blacklisting on anything other than IP address is possible. Next time I get one I'll try and extract the data and forward it. This time I just did DELETE FROM CONTENTS WHERE EMAIL MATCHES '%meta.ath0.com' mathew From phil at cryer.us Fri Apr 7 12:18:57 2006 From: phil at cryer.us (phil) Date: Fri, 7 Apr 2006 11:18:57 -0500 Subject: [typo] Live search - no results In-Reply-To: <m21ww9l88u.fsf@obelisk.bofh.org.uk> References: <m21ww9l88u.fsf@obelisk.bofh.org.uk> Message-ID: <fc813cafdc4102900c03a1e64546ba26@pepe.cryer.us> I'm not getting any results with Live Search, I'm running trunk - have done all my migrations successfully (thanks to the advice on the list to downgrade rake to 0.7.0). Here I search for 'bsd', which should give a bunch of results, but instead shows nothing: Processing LiveController#search (for 199.249.176.251 at 2006-04-07 11:14:53) [POST] Parameters: {"action"=>"search", "controller"=>"live"} Rendering live/search Completed in 0.00961 (104 reqs/sec) | Rendering: 0.00488 (50%) | DB: 0.00080 (8%) | 200 OK [http://fak3r.com/live/search] Processing LiveController#search (for 199.249.176.251 at 2006-04-07 11:14:56) [POST] Parameters: {"fr"=>"", "action"=>"search", "controller"=>"live"} Rendering live/search Completed in 0.00955 (104 reqs/sec) | Rendering: 0.00499 (52%) | DB: 0.00099 (10%) | 200 OK [http://fak3r.com/live/search] Processing LiveController#search (for 199.249.176.251 at 2006-04-07 11:14:57) [POST] Parameters: {"freebsd"=>"", "action"=>"search", "controller"=>"live"} Rendering live/search Completed in 0.00941 (106 reqs/sec) | Rendering: 0.00468 (49%) | DB: 0.00097 (10%) | 200 OK [http://fak3r.com/live/search] == However == If I hit 'Return' while still in the live search box, the page refreshes, and all of a sudden I have all of my 'bsd' result articles on the page. P -- http://fak3r.com - you dont have to kick it From jack.schwarz at gmail.com Fri Apr 7 12:48:27 2006 From: jack.schwarz at gmail.com (Jack Schwarz) Date: Fri, 7 Apr 2006 11:48:27 -0500 Subject: [typo] Live search - no results In-Reply-To: <fc813cafdc4102900c03a1e64546ba26@pepe.cryer.us> References: <m21ww9l88u.fsf@obelisk.bofh.org.uk> <fc813cafdc4102900c03a1e64546ba26@pepe.cryer.us> Message-ID: <c74013cc0604070948r7642e51eye7797e29cec703e9@mail.gmail.com> Phil, I think this is an issue with Scribbish. Try the same with Azure. I actually have the same problem. Honestly, it is a real pain that the themes that I use constantly break when Typo updates. Good luck, Jack On 4/7/06, phil <phil at cryer.us> wrote: > I'm not getting any results with Live Search, I'm running trunk - have done all my migrations successfully (thanks to the advice on the list to downgrade rake to 0.7.0). Here I search for 'bsd', which should give a bunch of results, but instead shows nothing: > > > Processing LiveController#search (for 199.249.176.251 at 2006-04-07 11:14:53) [POST] > Parameters: {"action"=>"search", "controller"=>"live"} > Rendering live/search > Completed in 0.00961 (104 reqs/sec) | Rendering: 0.00488 (50%) | DB: 0.00080 (8%) | 200 OK [http://fak3r.com/live/search] > > > Processing LiveController#search (for 199.249.176.251 at 2006-04-07 11:14:56) [POST] > Parameters: {"fr"=>"", "action"=>"search", "controller"=>"live"} > Rendering live/search > Completed in 0.00955 (104 reqs/sec) | Rendering: 0.00499 (52%) | DB: 0.00099 (10%) | 200 OK [http://fak3r.com/live/search] > > > Processing LiveController#search (for 199.249.176.251 at 2006-04-07 11:14:57) [POST] > Parameters: {"freebsd"=>"", "action"=>"search", "controller"=>"live"} > Rendering live/search > Completed in 0.00941 (106 reqs/sec) | Rendering: 0.00468 (49%) | DB: 0.00097 (10%) | 200 OK [http://fak3r.com/live/search] > > > == However == > > If I hit 'Return' while still in the live search box, the page refreshes, and all of a sudden I have all of my 'bsd' result articles on the page. > > P > -- > http://fak3r.com - you dont have to kick it > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From pdcawley at bofh.org.uk Fri Apr 7 13:09:01 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 07 Apr 2006 18:09:01 +0100 Subject: [typo] Engineering sidebars Message-ID: <m2k6a1josy.fsf@obelisk.bofh.org.uk> On IRC just now, someone was describing a navigational sidebar that they were trying to write. The idea sounded really cool, but in order to make it work well, he was going to have to write a 'first class' controller to handle menu expansions in order to retain the menu's state. Which meant he'd have to put something into typo's app/controllers directory. Which is something we'd been trying to avoid in the design of the sidebar system. Meanwhile, in another project, I've been using a Rails Engine[1]. The rails_engines plugin is a cunning plugin which enables writing plugins that, in essence shadow the main application's tree, complete with their own controllers, models, lib, views, tests... Which sounds like a perfect match for the kind of sidebar this person was trying to write (and the techniques used to make engines go looked like they might enable some seriously powerful themes, but that's definitely in the blue sky category). The catch is, having a full engine for each sidebar is definitely overkill. So, I'm thinking of investigating pulling our current sidebar system out into a 'typo_sidebars' engine, with the goal of having a vendor/sidebars directory into which you would drop 'simple' sidebars consisting of a SidebarPlugin based controller and 'configure' and 'content' views (Actually, I think it's not beyond the bounds of possibility to have the configure view be entirely autogenerated from metadata). More complex sidebars could then make full use of engine capabilities by being distributed as engines in their own right. Has anyone had much experience working with rails engines? Thoughts? 1. http://rails-engines.org/ -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From meta at pobox.com Fri Apr 7 14:27:06 2006 From: meta at pobox.com (mathew) Date: Fri, 07 Apr 2006 13:27:06 -0500 Subject: [typo] Caches? Message-ID: <4436AEFA.3020507@pobox.com> I've noticed typo always says "There are 0 entries in the cache". What situations should cause generation of cached info? mathew From scott at sigkill.org Fri Apr 7 14:45:18 2006 From: scott at sigkill.org (Scott Laird) Date: Fri, 7 Apr 2006 11:45:18 -0700 Subject: [typo] Caches? In-Reply-To: <4436AEFA.3020507@pobox.com> References: <4436AEFA.3020507@pobox.com> Message-ID: <14b7e5ef0604071145s32ff045bs252e3a0f741a06ca@mail.gmail.com> Hmm. The cache counter is probably broken. There isn't an easy wayto count entries in the fragment cache, so we might want to just dropthat number from the page. Alternately, we *could* do something like find $CACHEDIR | wc, but Idoubt it's worth the effort. Scott On 4/7/06, mathew <meta at pobox.com> wrote:> I've noticed typo always says "There are 0 entries in the cache". What> situations should cause generation of cached info?>>> mathew> _______________________________________________> Typo-list mailing list> Typo-list at rubyforge.org> http://rubyforge.org/mailman/listinfo/typo-list> From steve.longdo at gmail.com Fri Apr 7 15:20:11 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Fri, 7 Apr 2006 14:20:11 -0500 Subject: [typo] Caches? In-Reply-To: <14b7e5ef0604071145s32ff045bs252e3a0f741a06ca@mail.gmail.com> References: <4436AEFA.3020507@pobox.com> <14b7e5ef0604071145s32ff045bs252e3a0f741a06ca@mail.gmail.com> Message-ID: <cc4e85f30604071220l4853df63r8c986ce746f2f10b@mail.gmail.com> FYI: It still shows a number if you are using caches_page instead of the caches_action_with_params. On TXD this makes for a huge reduction in the memory used by Typo. On 4/7/06, Scott Laird <scott at sigkill.org> wrote: > > Hmm. The cache counter is probably broken. There isn't an easy wayto > count entries in the fragment cache, so we might want to just dropthat > number from the page. > Alternately, we *could* do something like find $CACHEDIR | wc, but Idoubt > it's worth the effort. > > Scott > On 4/7/06, mathew <meta at pobox.com> wrote:> I've noticed typo always says > "There are 0 entries in the cache". What> situations should cause generation > of cached info?>>> mathew> _______________________________________________> > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060407/8f408957/attachment.htm From pdcawley at bofh.org.uk Fri Apr 7 16:28:01 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 07 Apr 2006 21:28:01 +0100 Subject: [typo] The sidebar issue in HEAD In-Reply-To: <m21ww9l88u.fsf@obelisk.bofh.org.uk> (Piers Cawley's message of "Fri, 07 Apr 2006 16:23:45 +0100") References: <m21ww9l88u.fsf@obelisk.bofh.org.uk> Message-ID: <m2wte1i10u.fsf@obelisk.bofh.org.uk> Piers Cawley <pdcawley at bofh.org.uk> writes: > Sorry for any problems you've been experiencing folks. I'm trying to > get sidebars to a point where we can test them automatically, which > will hopefully mean that problems like you've been experiencing will > be a thing of of the past. Oops, guess who forgot to run svn add? No wonder I couldn't replicate the issue. Fixed in r1001 I hope. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From kevin at sb.org Fri Apr 7 22:59:10 2006 From: kevin at sb.org (Kevin Ballard) Date: Fri, 7 Apr 2006 19:59:10 -0700 Subject: [typo] Caches? In-Reply-To: <cc4e85f30604071220l4853df63r8c986ce746f2f10b@mail.gmail.com> References: <4436AEFA.3020507@pobox.com> <14b7e5ef0604071145s32ff045bs252e3a0f741a06ca@mail.gmail.com> <cc4e85f30604071220l4853df63r8c986ce746f2f10b@mail.gmail.com> Message-ID: <B4DA6232-DF3E-493B-944C-774DEEEB15A0@sb.org> It also breaks some assumptions we've started making since switching to fragment caching, such as expiring caches. On Apr 7, 2006, at 12:20 PM, Steve Longdo wrote: > FYI: It still shows a number if you are using caches_page instead > of the caches_action_with_params. On TXD this makes for a huge > reduction in the memory used by Typo. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060407/6ea09458/attachment.bin From martin at b-worlds.net Sat Apr 8 05:19:30 2006 From: martin at b-worlds.net (Martin Blaha) Date: Sat, 8 Apr 2006 11:19:30 +0200 Subject: [typo] Domain access: www.domain.com/weblog/ works, www.domain.com/weblog doesn't Message-ID: <8873090e0604080219w3a929244p1392d5a2dc1f8d5b@mail.gmail.com> Hi all! Does anybody have a tip for me: I can reach my TYPO app via a domain call like:"www.server.com/weblog/", but not via "www.server.com/weblog", which returns 404 and 400 error (no slash at the end of the web address ...) My public/.htaccess file contains besides others: ReweriteBase /weblog/ I'm on the site5.com shared hosting plan. Any ideas? Thanks! Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060408/754f20ff/attachment.htm From pdcawley at bofh.org.uk Sun Apr 9 03:25:18 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 09 Apr 2006 08:25:18 +0100 Subject: [typo] I dance the dance of happy! Message-ID: <m2odzbi529.fsf@obelisk.bofh.org.uk> Here's the commit notice from revision 1004: Sing, muse the joy of pdcawley as he puts the monstrosity article_url and all its spawn to his sure swift sword and casts the tiny pieces down, down, ye even unto the very depths of The Pit. Bear witness as Content#full_html returns to the fray, trailing clouds of glory, renewing the vigour of old themes left withering in the TypoGarden. For, verily, I have returned the sensible API to its rightful place. (Oh, and if you must use them, article_url et al. will continue to work for the forseeable future, but I will insist on treating them like red headed stepchildren.) Which is, arguably, a little bit over the top, but I've been longing to get rid of article_url since the very moment we introduced it. The old 'content_object.body_html' was just so much neater. But, once we introduced a proper blog object, we had somewhere to hang the active controller, so that's what I did. The Blog class is now an around_filter called by the controller, so, for the duration of a request, Blog (and hence any of its instances) know what the controller is. And our content objects know what the blog is. So Content#full_html now looks roughly like this: def full_html html(blog.controller, :all) end (It raises a slightly more informative error if there's no active controller, of course). Also, an article (and eventually other content subclasses) can now tell you its url by asking the blog, which asks the controller. Once all the content types are asking the blog for their url we can start using the blog as a place to store url policy. Why is that useful you may ask? Well, I was chatting on IRC to someone who was converting a large wordpress blog and he was looking at writing the thick end of 1500 redirect rules because wordpress urls look like: http://someblogger.com/blog-entry But ours look like http://sometypoblogger.com/articles/2006/04/09/blog-entry So, instead of writing a generic route that catches all of his articles, he has to write a redirect for each one. But wouldn't it be cool if we could have a 'url_style' setting on the blog, so if you want wordpress style urls you get 'em, if you want dateless permalinks, you get those. The routing table would (obviously) have to handle all (most) cases, but all our generated links would respect the blog's link style. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From jack.schwarz at gmail.com Sun Apr 9 12:14:03 2006 From: jack.schwarz at gmail.com (Jack Schwarz) Date: Sun, 9 Apr 2006 11:14:03 -0500 Subject: [typo] Application error (Rails) on site navigation Message-ID: <c74013cc0604090914q4b4a0901v8a022ed442fa1a64@mail.gmail.com> Hi all, Just updated to [1004] and am getting an "Application error (Rails)" when navigating my page. Navigation of the admin interface works just fine. After a little more investigation it seems that some themes give errors while others do not. Azure, of course, works fine. Thanks, Jack From jeremy.torres at gmail.com Sun Apr 9 12:37:27 2006 From: jeremy.torres at gmail.com (Jeremy Torres) Date: Sun, 9 Apr 2006 12:37:27 -0400 Subject: [typo] Apache 2.2 As Proxy to Typo Running in Lighttpd Message-ID: <5fa9e32e0604090937q51b97ae8y21861ce48e9e2e70@mail.gmail.com> All, Typo Version: Latest from SVN Trunk, as of 4/8/06 Apache version 2.2 OS: Fedora Core 5 I have applications that need to run in Apache 2, such as subversion, some PHP apps, etc. I would like to run typo in Lighty and just have Apache 2 proxy to typo using (http://mydomain.com/typo). I've searched the forums, Googled and tried a lot of different experiments, but I can't get a successful proxy setup. Has anyone go a similar setup working? I saw the post hosting typo in a subdirectory, but I'm not running fastcgi module within Apache. Thanks in advance, Jeremy From bart.braem at gmail.com Sun Apr 9 13:01:24 2006 From: bart.braem at gmail.com (Bart Braem) Date: Sun, 9 Apr 2006 19:01:24 +0200 Subject: [typo] Apache 2.2 As Proxy to Typo Running in Lighttpd In-Reply-To: <5fa9e32e0604090937q51b97ae8y21861ce48e9e2e70@mail.gmail.com> References: <5fa9e32e0604090937q51b97ae8y21861ce48e9e2e70@mail.gmail.com> Message-ID: <b9bd37fd0604091001q1c3c89bfv2fe839887db4ba93@mail.gmail.com> http://wiki.rubyonrails.com/rails/pages/HowtoSetupApacheProxyingToLighttpdWithFastCGI I wrote this howto on how to use it and it works perfectly... Bart On 4/9/06, Jeremy Torres <jeremy.torres at gmail.com> wrote: > All, > > Typo Version: Latest from SVN Trunk, as of 4/8/06 > Apache version 2.2 > OS: Fedora Core 5 > > I have applications that need to run in Apache 2, such as subversion, > some PHP apps, etc. I would like to run typo in Lighty and just have > Apache 2 proxy to typo using (http://mydomain.com/typo). I've > searched the forums, Googled and tried a lot of different experiments, > but I can't get a successful proxy setup. > > Has anyone go a similar setup working? > > I saw the post hosting typo in a subdirectory, but I'm not running > fastcgi module within Apache. > > Thanks in advance, > > Jeremy > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- "May the source be with you" From pdcawley at bofh.org.uk Sun Apr 9 15:13:51 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 09 Apr 2006 20:13:51 +0100 Subject: [typo] Application error (Rails) on site navigation In-Reply-To: <c74013cc0604090914q4b4a0901v8a022ed442fa1a64@mail.gmail.com> (Jack Schwarz's message of "Sun, 9 Apr 2006 11:14:03 -0500") References: <c74013cc0604090914q4b4a0901v8a022ed442fa1a64@mail.gmail.com> Message-ID: <m2irpiimts.fsf@obelisk.bofh.org.uk> "Jack Schwarz" <jack.schwarz at gmail.com> writes: > Hi all, > > Just updated to [1004] and am getting an "Application error (Rails)" > when navigating my page. Navigation of the admin interface works just > fine. After a little more investigation it seems that some themes give > errors while others do not. Azure, of course, works fine. Ah... I was intending to retain backwards compatibility with themes that worked with the old (new) API. D'you have a log trace? Also, if the theme in question is downloadable somewhere I'll be happy to test against it. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From urban at bettong.net Mon Apr 10 03:52:44 2006 From: urban at bettong.net (Urban Hafner) Date: Mon, 10 Apr 2006 09:52:44 +0200 Subject: [typo] Application error (Rails) on site navigation In-Reply-To: <m2irpiimts.fsf@obelisk.bofh.org.uk> References: <c74013cc0604090914q4b4a0901v8a022ed442fa1a64@mail.gmail.com> <m2irpiimts.fsf@obelisk.bofh.org.uk> Message-ID: <1144655564.19780.1.camel@mws16.gsf.de> On Sun, 2006-04-09 at 20:13 +0100, Piers Cawley wrote: > Also, if the theme in question is downloadable somewhere I'll be happy > to test against it. I used Choco Mod: http://typogarden.com/articles/2005/12/01/choco-mod- theme , switching back to Azure worked so it has to be the theme. Urban From trejkaz at trypticon.org Mon Apr 10 06:05:53 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Mon, 10 Apr 2006 20:05:53 +1000 Subject: [typo] Domain access: www.domain.com/weblog/ works, www.domain.com/weblog doesn't In-Reply-To: <8873090e0604080219w3a929244p1392d5a2dc1f8d5b@mail.gmail.com> References: <8873090e0604080219w3a929244p1392d5a2dc1f8d5b@mail.gmail.com> Message-ID: <C1EA7287-D62D-4209-AC20-7DDD20A7D74D@trypticon.org> On 08/04/2006, at 19:19 PM, Martin Blaha wrote: > Hi all! > Does anybody have a tip for me: I can reach my TYPO app via a > domain call like:"www.server.com/weblog/", but not via " > www.server.com/weblog", which returns 404 and 400 error (no slash > at the end of the web address ...) > > My public/.htaccess file contains besides others: > > ReweriteBase /weblog/ > > I'm on the site5.com shared hosting plan. > > Any ideas? What I would do in this situation is in Apache, set up a permanent redirect from /weblog to /weblog/ . TX -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060410/06ce1431/attachment.htm From pdcawley at bofh.org.uk Mon Apr 10 13:31:50 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 10 Apr 2006 18:31:50 +0100 Subject: [typo] Fixing broken themes Message-ID: <m2odz92v7d.fsf@obelisk.bofh.org.uk> Some time ago (I thought it was in pre 2.6.0 days, but apparently not), we added a 'render_sidebars' helper method, so that theme authors wouldn't have to go typing: <%= render_component(:controller => 'sidebars/sidebar', :action => 'display_plugins' %> in their themes. It also had the advantage of encapsulation; if theme authors used 'render_sidebars' then we could change the details of how sidebars got rendered with impunity and we wouldn't break any compliant themes. And, in revision 1003, we did exactly that. Except, it turns out that an awful lot of themes aren't compliant. So, if your theme is playing up with recent trunk rails, you need to look in your /themes/<whatever>/layouts/default.rhtml, find the part that renders the sidebar using render_component, replace it with <%= render_sidebars %>, sit back and take quite satisfaction in the wonder that is encapsulation. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From jack.schwarz at gmail.com Mon Apr 10 13:36:40 2006 From: jack.schwarz at gmail.com (Jack Schwarz) Date: Mon, 10 Apr 2006 12:36:40 -0500 Subject: [typo] Application error (Rails) on site navigation In-Reply-To: <m2irpiimts.fsf@obelisk.bofh.org.uk> References: <c74013cc0604090914q4b4a0901v8a022ed442fa1a64@mail.gmail.com> <m2irpiimts.fsf@obelisk.bofh.org.uk> Message-ID: <c74013cc0604101036m2089c989r3c263f1125bdc8ee@mail.gmail.com> Piers was nice enough to help me out with this one. I will post the solution below incase anyone else is having trouble. Some themes (Scribbish in particular) were giving me Rails errors when rendering pages. This was the the fix: Change the line in /layouts/default.rhtml that reads <%= render_component(:controller => 'sidebars/sidebar', :action => 'display_plugins') %> to read <%= render_sidebars %> Later, Jack On 4/9/06, Piers Cawley <pdcawley at bofh.org.uk> wrote: > "Jack Schwarz" <jack.schwarz at gmail.com> writes: > > > Hi all, > > > > Just updated to [1004] and am getting an "Application error (Rails)" > > when navigating my page. Navigation of the admin interface works just > > fine. After a little more investigation it seems that some themes give > > errors while others do not. Azure, of course, works fine. > > Ah... I was intending to retain backwards compatibility with themes > that worked with the old (new) API. D'you have a log trace? > > Also, if the theme in question is downloadable somewhere I'll be happy > to test against it. > > -- > Piers Cawley <pdcawley at bofh.org.uk> > http://www.bofh.org.uk/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From phil at cryer.us Mon Apr 10 14:23:44 2006 From: phil at cryer.us (phil) Date: Mon, 10 Apr 2006 13:23:44 -0500 Subject: [typo] Application error (Rails) on site navigation In-Reply-To: <c74013cc0604101036m2089c989r3c263f1125bdc8ee@mail.gmail.com> References: <c74013cc0604101036m2089c989r3c263f1125bdc8ee@mail.gmail.com> Message-ID: <9ec4dc12506809f7b52e0d55a8318197@pepe.cryer.us> On Mon, 10 Apr 2006 12:36:40 -0500, "Jack Schwarz" <jack.schwarz at gmail.com> wrote: > Piers was nice enough to help me out with this one. I will post the > solution below incase anyone else is having trouble. > > Some themes (Scribbish in particular) were giving me Rails errors when > rendering pages. This was the the fix: > > Change the line in /layouts/default.rhtml that reads > > <%= render_component(:controller => 'sidebars/sidebar', :action => > 'display_plugins') %> > > to read > > <%= render_sidebars %> Nice, now is there an easy way to fix searching in Scribbish? P > > Later, > > Jack > > > On 4/9/06, Piers Cawley <pdcawley at bofh.org.uk> wrote: >> "Jack Schwarz" <jack.schwarz at gmail.com> writes: >> >> > Hi all, >> > >> > Just updated to [1004] and am getting an "Application error (Rails)" >> > when navigating my page. Navigation of the admin interface works just >> > fine. After a little more investigation it seems that some themes give >> > errors while others do not. Azure, of course, works fine. >> >> Ah... I was intending to retain backwards compatibility with themes >> that worked with the old (new) API. D'you have a log trace? >> >> Also, if the theme in question is downloadable somewhere I'll be happy >> to test against it. >> >> -- >> Piers Cawley <pdcawley at bofh.org.uk> >> http://www.bofh.org.uk/ >> _______________________________________________ >> 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 -- http://fak3r.com - you dont have to kick it From pdcawley at bofh.org.uk Mon Apr 10 14:26:51 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 10 Apr 2006 19:26:51 +0100 Subject: [typo] Application error (Rails) on site navigation In-Reply-To: <9ec4dc12506809f7b52e0d55a8318197@pepe.cryer.us> (phil@cryer.us's message of "Mon, 10 Apr 2006 13:23:44 -0500") References: <c74013cc0604101036m2089c989r3c263f1125bdc8ee@mail.gmail.com> <9ec4dc12506809f7b52e0d55a8318197@pepe.cryer.us> Message-ID: <m24q112sno.fsf@obelisk.bofh.org.uk> phil <phil at cryer.us> writes: > On Mon, 10 Apr 2006 12:36:40 -0500, "Jack Schwarz" <jack.schwarz at gmail.com> wrote: >> Piers was nice enough to help me out with this one. I will post the >> solution below incase anyone else is having trouble. >> >> Some themes (Scribbish in particular) were giving me Rails errors when >> rendering pages. This was the the fix: >> >> Change the line in /layouts/default.rhtml that reads >> >> <%= render_component(:controller => 'sidebars/sidebar', :action => >> 'display_plugins') %> >> >> to read >> >> <%= render_sidebars %> > > > Nice, now is there an easy way to fix searching in Scribbish? Errr. I haven't touched the search... -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From jack.schwarz at gmail.com Mon Apr 10 14:32:40 2006 From: jack.schwarz at gmail.com (Jack Schwarz) Date: Mon, 10 Apr 2006 13:32:40 -0500 Subject: [typo] Application error (Rails) on site navigation In-Reply-To: <9ec4dc12506809f7b52e0d55a8318197@pepe.cryer.us> References: <c74013cc0604101036m2089c989r3c263f1125bdc8ee@mail.gmail.com> <9ec4dc12506809f7b52e0d55a8318197@pepe.cryer.us> Message-ID: <c74013cc0604101132x5272f271lde1f44752bd493e2@mail.gmail.com> Good question. I assume, again, that this is up to the theme developer. It is difficult, though, to bug theme developers every time (there are many) a theme breaks. At least the search works (even if it is not a live search). Later, Jack On 4/10/06, phil <phil at cryer.us> wrote: > > Nice, now is there an easy way to fix searching in Scribbish? > > P > From meta at pobox.com Mon Apr 10 15:17:58 2006 From: meta at pobox.com (mathew) Date: Mon, 10 Apr 2006 14:17:58 -0500 Subject: [typo] Apache 2.2 As Proxy to Typo Running in Lighttpd In-Reply-To: <b9bd37fd0604091001q1c3c89bfv2fe839887db4ba93@mail.gmail.com> References: <5fa9e32e0604090937q51b97ae8y21861ce48e9e2e70@mail.gmail.com> <b9bd37fd0604091001q1c3c89bfv2fe839887db4ba93@mail.gmail.com> Message-ID: <443AAF66.9050600@pobox.com> Bart Braem wrote: > http://wiki.rubyonrails.com/rails/pages/HowtoSetupApacheProxyingToLighttpdWithFastCGI > > I wrote this howto on how to use it and it works perfectly... > Seemed to me he was asking for the opposite--lighttpd on the front, proxying to Apache only when necessary for the legacy applications. mathew From urban at bettong.net Mon Apr 10 15:46:49 2006 From: urban at bettong.net (Urban Hafner) Date: Mon, 10 Apr 2006 21:46:49 +0200 Subject: [typo] Fixing broken themes In-Reply-To: <m2odz92v7d.fsf@obelisk.bofh.org.uk> References: <m2odz92v7d.fsf@obelisk.bofh.org.uk> Message-ID: <FD4A2E2B-663B-4726-A096-97555B4FEEC2@bettong.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10 Apr 2006, at 19:31, Piers Cawley wrote: > Some time ago (I thought it was in pre 2.6.0 days, but apparently > not), we added a 'render_sidebars' helper method, so that theme > authors wouldn't have to go typing: > > <%= render_component(:controller => 'sidebars/sidebar', > :action => 'display_plugins' %> > > in their themes. It also had the advantage of encapsulation; if theme > authors used 'render_sidebars' then we could change the details of how > sidebars got rendered with impunity and we wouldn't break any > compliant themes. Hooray, it works again. Thanks Piers. Urban - -- http://bettong.net - Urban's Blog -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (Darwin) iD8DBQFEOrYwggNuVCIrEyURAvJQAJ0XczwkqB8+5uqj53sQ9HKYMD7f+ACfZCPD w4ikm/p4A/m4hJSiMIju3IY= =jcjb -----END PGP SIGNATURE----- From victor-typo at carotena.net Mon Apr 10 18:04:31 2006 From: victor-typo at carotena.net (Victor Jalencas) Date: Tue, 11 Apr 2006 00:04:31 +0200 Subject: [typo] Passing info to sidebars Message-ID: <443AD66F.9010703@carotena.net> Hi all, this is a question for the sidebar experts. I'm interested in having access, from the sidebars, to information from the main controller. I.e., I'd like to write a couple of sidebars for the article controller, and its display action, that show the main page article's trackbacks, or metadata, or comments count, or whatever. I could obtain the id from the request and do a search for it, but ideally I should be able to directly obtain the main controller's @article. Is there a way and I am missing something obvious, or should a mechanism be ideated to pass the @article from the main controller to the sidebars? I've tried using the flash object but doesn't work (or I'm not using it correctly). Any ideas? TIA cheers, Victor From pdcawley at bofh.org.uk Mon Apr 10 19:07:32 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 11 Apr 2006 00:07:32 +0100 Subject: [typo] Passing info to sidebars In-Reply-To: <443AD66F.9010703@carotena.net> (Victor Jalencas's message of "Tue, 11 Apr 2006 00:04:31 +0200") References: <443AD66F.9010703@carotena.net> Message-ID: <m2lkudjah7.fsf@obelisk.bofh.org.uk> Victor Jalencas <victor-typo at carotena.net> writes: > Hi all, > > this is a question for the sidebar experts. I'm interested in having > access, from the sidebars, to information from the main controller. > I.e., I'd like to write a couple of sidebars for the article controller, > and its display action, that show the main page article's trackbacks, or > metadata, or comments count, or whatever. I could obtain the id from > the request and do a search for it, but ideally I should be able to > directly obtain the main controller's @article. > > Is there a way and I am missing something obvious, or should a > mechanism be ideated to pass the @article from the main controller to > the sidebars? I've tried using the flash object but doesn't work (or I'm > not using it correctly). The sidebar gets passed the 'contents' being rendered, which is a list of the articles/pages/comments/whatever that's being displayed on the current page. That's probably what you want. Take a look at how the Amazon sidebar works. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From steve.longdo at gmail.com Mon Apr 10 19:13:10 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Mon, 10 Apr 2006 18:13:10 -0500 Subject: [typo] [Typo] broken tests when running rake? Message-ID: <cc4e85f30604101613t6d2664e1yec5198d740252225@mail.gmail.com> When running rake against r1004 I am seeing a lot of failures against MySQL and Ruby 1.8.4. Is this the current state of things or should I not be getting any errors? 207 tests, 197 assertions, 0 failures, 146 errors rake aborted! Test failures Most of the errors seem to relate to the blog_id column an example: ActiveRecord::StatementInvalid: Mysql::Error: Unknown column 'blog_id' in 'field list': INSERT INTO contents (`updated_at`, `body`, `guid`, `url`, `author`, `type`, `id`, `blog_id`, `article_id`, `created_at`, `email`) VALUES ('2004-05-02 20:00:02', 'Comment body _italic_ *bold*', 'b1i2n3g4o5t6i7v', 'www.google.com', 'John Bar', 'Comment', 15, 1, 14, '2004-05-02 20:00:02', 'john.bar at google.com') -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060410/56e11c85/attachment-0001.htm From uzair at nairang.org Mon Apr 10 19:20:58 2006 From: uzair at nairang.org (Syed Uzair Aqeel) Date: Tue, 11 Apr 2006 00:20:58 +0100 Subject: [typo] Typo vs. Captcha. In-Reply-To: <m2d5gyjkua.fsf@obelisk.bofh.org.uk> Message-ID: <20060410232056.2FEEE195176@randymail-a4.dreamhost.com> While talking about http://www.lazyweb.org today, I mentioned that it might be a good idea to port something like SpamBayes for blogs. One of the responses I got was that Simon Cozens (a pretty prolific CPAN contributor) started on a general-purpose spam engine based on the Mail::SpamAssassin module: http://search.cpan.org/~simon/SpamMonkey-0.03/lib/SpamMonkey.pm Assuming the majority is opposed to Captcha, how does this sound? Uzair > -----Original Message----- > From: typo-list-bounces at rubyforge.org [mailto:typo-list- > bounces at rubyforge.org] On Behalf Of Piers Cawley > Sent: Tuesday, March 07, 2006 4:12 PM > To: typo-list at rubyforge.org > Subject: Re: [typo] Typo vs. Captcha. > > "George Razvan NICA" <george.nica at gmail.com> writes: > > > Hi all, > > > > I was thinking of a solution of limiting comment spam by the use of a > > captcha. As far as I could see there is a nice tutorial for Captcha & > > Rails over at > > > > http://frankhale.org/CAPTCHA_RoR_Tutorial.html . > > > > Are there any plans of including such a thing into Typo? > > It'll be a cold day in hell before *I* implement a Captcha scheme in > Typo, but I can't speak for the other maintainers. > > -- > Piers Cawley <pdcawley at bofh.org.uk> > http://www.bofh.org.uk/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From scott at sigkill.org Mon Apr 10 19:35:30 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 10 Apr 2006 16:35:30 -0700 Subject: [typo] Typo vs. Captcha. In-Reply-To: <20060410232056.2FEEE195176@randymail-a4.dreamhost.com> References: <m2d5gyjkua.fsf@obelisk.bofh.org.uk> <20060410232056.2FEEE195176@randymail-a4.dreamhost.com> Message-ID: <14b7e5ef0604101635j1edd87a3jcb785e49dd7fa2d3@mail.gmail.com> It sounds reasonable in principle, but one big problem is that a logof blog spam tries very hard to look just like normal comments, and Isuspect that Bayes will have a hard time deciding if a comment thatcontains nothing but the words "good job!" is spam or not. On the other hand, 500-link drug-pushing monstrosities will be easy to spot :-). Scott On 4/10/06, Syed Uzair Aqeel <uzair at nairang.org> wrote:> While talking about http://www.lazyweb.org today, I mentioned that it might> be a good idea to port something like SpamBayes for blogs. One of the> responses I got was that Simon Cozens (a pretty prolific CPAN contributor)> started on a general-purpose spam engine based on the Mail::SpamAssassin> module:>> http://search.cpan.org/~simon/SpamMonkey-0.03/lib/SpamMonkey.pm>> Assuming the majority is opposed to Captcha, how does this sound?>> Uzair>> > -----Original Message-----> > From: typo-list-bounces at rubyforge.org [mailto:typo-list-> > bounces at rubyforge.org] On Behalf Of Piers Cawley> > Sent: Tuesday, March 07, 2006 4:12 PM> > To: typo-list at rubyforge.org> > Subject: Re: [typo] Typo vs. Captcha.> >> > "George Razvan NICA" <george.nica at gmail.com> writes:> >> > > Hi all,> > >> > > I was thinking of a solution of limiting comment spam by the use of a> > > captcha. As far as I could see there is a nice tutorial for Captcha &> > > Rails over at> > >> > > http://frankhale.org/CAPTCHA_RoR_Tutorial.html .> > >> > > Are there any plans of including such a thing into Typo?> >> > It'll be a cold day in hell before *I* implement a Captcha scheme in> > Typo, but I can't speak for the other maintainers.> >> > --> > Piers Cawley <pdcawley at bofh.org.uk>> > http://www.bofh.org.uk/> > _______________________________________________> > 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 scott at sigkill.org Mon Apr 10 19:35:49 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 10 Apr 2006 16:35:49 -0700 Subject: [typo] [Typo] broken tests when running rake? In-Reply-To: <cc4e85f30604101613t6d2664e1yec5198d740252225@mail.gmail.com> References: <cc4e85f30604101613t6d2664e1yec5198d740252225@mail.gmail.com> Message-ID: <14b7e5ef0604101635q133e4253u93cf5966cf068e0f@mail.gmail.com> rake migrate. Scott On 4/10/06, Steve Longdo <steve.longdo at gmail.com> wrote:> When running rake against r1004 I am seeing a lot of failures against MySQL> and Ruby 1.8.4. Is this the current state of things or should I not be> getting any errors?>> 207 tests, 197 assertions, 0 failures, 146 errors> rake aborted!> Test failures>> Most of the errors seem to relate to the blog_id column an example:>> ActiveRecord::StatementInvalid: Mysql::Error: Unknown column 'blog_id' in> 'field list': INSERT INTO contents (`updated_at`, `body`, `guid`, `url`,> `author`, `type`, `id`, `blog_id`, `article_id`, `created_at`, `email`)> VALUES ('2004-05-02 20:00:02', 'Comment body _italic_ *bold*',> 'b1i2n3g4o5t6i7v', ' www.google.com', 'John Bar', 'Comment', 15, 1, 14,> '2004-05-02 20:00:02', 'john.bar at google.com')>>> _______________________________________________> Typo-list mailing list> Typo-list at rubyforge.org> http://rubyforge.org/mailman/listinfo/typo-list>> From steve.longdo at gmail.com Mon Apr 10 19:55:43 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Mon, 10 Apr 2006 18:55:43 -0500 Subject: [typo] [Typo] broken tests when running rake? In-Reply-To: <14b7e5ef0604101635q133e4253u93cf5966cf068e0f@mail.gmail.com> References: <cc4e85f30604101613t6d2664e1yec5198d740252225@mail.gmail.com> <14b7e5ef0604101635q133e4253u93cf5966cf068e0f@mail.gmail.com> Message-ID: <cc4e85f30604101655o4eebd3bcmc80570deb2de619b@mail.gmail.com> Thanks Scott! I thought running rake db:test:prepare would take care of any migration needs. Also I notice it targets the DEV environment when I run it is this the intended behaviour? Anyway, that's got me further now only two tests fail in r1004. test_mt_supported_methods(BackendControllerTest): NoMethodError: You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occured while evaluating nil.length test_mt_supported_text_filters(BackendControllerTest): NoMethodError: You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occured while evaluating nil.length On 4/10/06, Scott Laird <scott at sigkill.org> wrote: > > rake migrate. > > Scott > On 4/10/06, Steve Longdo <steve.longdo at gmail.com> wrote:> When running > rake against r1004 I am seeing a lot of failures against MySQL> and Ruby > 1.8.4. Is this the current state of things or should I not be> getting > any errors?>> 207 tests, 197 assertions, 0 failures, 146 errors> rake > aborted!> Test failures>> Most of the errors seem to relate to the blog_id > column an example:>> ActiveRecord::StatementInvalid: Mysql::Error: Unknown > column 'blog_id' in> 'field list': INSERT INTO contents (`updated_at`, > `body`, `guid`, `url`,> `author`, `type`, `id`, `blog_id`, `article_id`, > `created_at`, `email`)> VALUES ('2004-05-02 20:00:02', 'Comment body > _italic_ *bold*',> 'b1i2n3g4o5t6i7v', ' www.google.com', 'John Bar', > 'Comment', 15, 1, 14,> '2004-05-02 20:00:02', 'john.bar at google.com')>>> > _______________________________________________> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060410/3780910a/attachment.htm From jeremy.torres at gmail.com Mon Apr 10 20:13:10 2006 From: jeremy.torres at gmail.com (Jeremy Torres) Date: Mon, 10 Apr 2006 20:13:10 -0400 Subject: [typo] Apache 2.2 As Proxy to Typo Running in Lighttpd Message-ID: <A2475B08-D109-4CA5-B871-CFC88D96BAB9@gmail.com> Thanks for the information, Bart. I got everything working, per your instructions. Now, one last question, regarding SSL. My ISP block port 80, but allows for port 443 (SSL). I can access typo just fine when running against port 443; however, when I enter the admin section of typo, (https://myweblog.com/blog/admin) I get redirected to port 80 via (http://myweblogc.com/admin). Any suggestions on this? Bart Braem wrote: > http://wiki.rubyonrails.com/rails/pages/ > HowtoSetupApacheProxyingToLighttpdWithFastCGI > > I wrote this howto on how to use it and it works perfectly... > > Seemed to me he was asking for the opposite--lighttpd on the front, proxying to Apache only when necessary for the legacy applications. mathew From victor-typo at carotena.net Tue Apr 11 03:18:37 2006 From: victor-typo at carotena.net (Victor Jalencas) Date: Tue, 11 Apr 2006 09:18:37 +0200 Subject: [typo] Passing info to sidebars In-Reply-To: <m2lkudjah7.fsf@obelisk.bofh.org.uk> References: <443AD66F.9010703@carotena.net> <m2lkudjah7.fsf@obelisk.bofh.org.uk> Message-ID: <443B584D.7040107@carotena.net> Excellent! thanks Piers! Victor Piers Cawley wrote: > Victor Jalencas <victor-typo at carotena.net> writes: > > >>Hi all, >> >> this is a question for the sidebar experts. I'm interested in having >>access, from the sidebars, to information from the main controller. >>I.e., I'd like to write a couple of sidebars for the article controller, >>and its display action, that show the main page article's trackbacks, or >> metadata, or comments count, or whatever. I could obtain the id from >>the request and do a search for it, but ideally I should be able to >>directly obtain the main controller's @article. >> >> Is there a way and I am missing something obvious, or should a >>mechanism be ideated to pass the @article from the main controller to >>the sidebars? I've tried using the flash object but doesn't work (or I'm >>not using it correctly). > > > The sidebar gets passed the 'contents' being rendered, which is a list > of the articles/pages/comments/whatever that's being displayed on the > current page. That's probably what you want. > > Take a look at how the Amazon sidebar works. > From bart.braem at gmail.com Tue Apr 11 03:31:58 2006 From: bart.braem at gmail.com (Bart Braem) Date: Tue, 11 Apr 2006 09:31:58 +0200 Subject: [typo] Apache 2.2 As Proxy to Typo Running in Lighttpd In-Reply-To: <A2475B08-D109-4CA5-B871-CFC88D96BAB9@gmail.com> References: <A2475B08-D109-4CA5-B871-CFC88D96BAB9@gmail.com> Message-ID: <b9bd37fd0604110031m6caf0b33h9c9beef789a17b86@mail.gmail.com> Strange, the instructions should work for all urls and subdirectories... Bart On 4/11/06, Jeremy Torres <jeremy.torres at gmail.com> wrote: > Thanks for the information, Bart. I got everything working, per your > instructions. Now, one last question, regarding SSL. My ISP block > port 80, but allows for port 443 (SSL). I can access typo just fine > when running against port 443; however, when I enter the admin > section of typo, (https://myweblog.com/blog/admin) I get redirected > to port 80 via (http://myweblogc.com/admin). > > Any suggestions on this? > > > Bart Braem wrote: > > > http://wiki.rubyonrails.com/rails/pages/ > > HowtoSetupApacheProxyingToLighttpdWithFastCGI > > > > I wrote this howto on how to use it and it works perfectly... > > > > > > Seemed to me he was asking for the opposite--lighttpd on the front, > proxying to Apache only when necessary for the legacy applications. > > > mathew > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- "May the source be with you" From kevin at sb.org Tue Apr 11 04:58:31 2006 From: kevin at sb.org (Kevin Ballard) Date: Tue, 11 Apr 2006 01:58:31 -0700 Subject: [typo] [Typo] broken tests when running rake? In-Reply-To: <cc4e85f30604101655o4eebd3bcmc80570deb2de619b@mail.gmail.com> References: <cc4e85f30604101613t6d2664e1yec5198d740252225@mail.gmail.com> <14b7e5ef0604101635q133e4253u93cf5966cf068e0f@mail.gmail.com> <cc4e85f30604101655o4eebd3bcmc80570deb2de619b@mail.gmail.com> Message-ID: <AEFA86F4-D9D2-404B-94BA-F4DFD14A8E06@sb.org> On Apr 10, 2006, at 4:55 PM, Steve Longdo wrote: > I thought running rake db:test:prepare would take care of any > migration needs. No, it just clones the dev schema to the test database. > Also I notice it targets the DEV environment when I run it is this > the intended behaviour? if you want to target production then use `rake migrate RAILS_ENV=production` -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060411/448da43a/attachment.bin From martin at b-worlds.net Tue Apr 11 05:51:41 2006 From: martin at b-worlds.net (Martin Blaha) Date: Tue, 11 Apr 2006 11:51:41 +0200 Subject: [typo] Domain access: www.domain.com/weblog/ works, www.domain.com/weblog doesn't In-Reply-To: <C1EA7287-D62D-4209-AC20-7DDD20A7D74D@trypticon.org> References: <8873090e0604080219w3a929244p1392d5a2dc1f8d5b@mail.gmail.com> <C1EA7287-D62D-4209-AC20-7DDD20A7D74D@trypticon.org> Message-ID: <8873090e0604110251h273c4a6bxc0acd9a70c57869c@mail.gmail.com> I've setup a permalink redirection via the site5.com administration panel, which unfortunately didn't fix the problem. I'm not sure if and how I could modify the Apache configuration on a shared hosting plan. Thanks anyway for your hint! On 4/10/06, Trejkaz <trejkaz at trypticon.org> wrote: > > > On 08/04/2006, at 19:19 PM, Martin Blaha wrote: > > Hi all! > Does anybody have a tip for me: I can reach my TYPO app via a domain call > like:"www.server.com/weblog/", but not via " www.server.com/weblog", which > returns 404 and 400 error (no slash at the end of the web address ...) > > My public/.htaccess file contains besides others: > > ReweriteBase /weblog/ > > I'm on the site5.com shared hosting plan. > > Any ideas? > > > What I would do in this situation is in Apache, set up a permanent > redirect from /weblog to /weblog/ . > > TX > > > _______________________________________________ > 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/20060411/ff18dab3/attachment-0001.htm From jon.borgthorsson at gmail.com Tue Apr 11 06:04:51 2006 From: jon.borgthorsson at gmail.com (Jon Gretar Borgthorsson) Date: Tue, 11 Apr 2006 10:04:51 +0000 Subject: [typo] Web search and robots Message-ID: <dbb6450e0604110304l7be37b0ao98a7729617014750@mail.gmail.com> I was just wondering if a built in support for dynamic robots.txt files and google sitemaps wouldn't be nice. I think that dynamically generating google sitemap files would really help users of typo to get their page out to the masses and controlling the robots.txt file could reduce load and keep unwanted content of the search engines. For example there is no need for google to be always searching the RSS feeds. Having some control over it in the admin section is something I would love. How about the rest? Robots.txt info: http://www.robotstxt.org/wc/robots.html http://www.pageresource.com/zine/robotstxt.htm Google Sitemaps info: https://www.google.com/webmasters/sitemaps/docs/en/navigation.html https://www.google.com/webmasters/sitemaps/docs/en/faq.html -- -------------- Jon Gretar Borgthorsson http://www.jongretar.net/ From jon.borgthorsson at gmail.com Tue Apr 11 06:53:20 2006 From: jon.borgthorsson at gmail.com (Jon Gretar Borgthorsson) Date: Tue, 11 Apr 2006 10:53:20 +0000 Subject: [typo] Controller stack got out of kilter! Message-ID: <dbb6450e0604110353o797b0b9bkd92cdc2337d16b01@mail.gmail.com> I decided to update both typo and rails. Rails is now 1.1.2. Then instead of svn updating my old typo directory i made a backup of it and removed it. Then I did a completely new svn update to a new directory. Just to make sure everything was clean. After a rake migrate i restarted the server and I got this error when trying to browse the site. The admin interface works fine. RuntimeError in ArticlesController#index Controller stack got out of kilter! RAILS_ROOT: /srv/www/jongretar.net Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/app/models/blog.rb:116:in `after' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:227:in `around_filter' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:401:in `call_filters' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:394:in `call_filters' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:389:in `after_action' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:369:in `perform_action_without_benchmark' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in `perform_action' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:381:in `process_without_filters' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:377:in `process_without_session_management_support' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in `process' #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:150:in `process_request' #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:54:in `process!' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/fcgi.rb:600:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/fcgi.rb:597:in `each_cgi' #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:53:in `process!' #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:23:in `process!' #{RAILS_ROOT}/public/dispatch.fcgi:24 Request Parameters: None Show session dump Response Headers: {"Status"=>"200 OK", "cookie"=>[], "Content-Type"=>"text/html", "Cache-Control"=>"no-cache"} -- -------------- Jon Gretar Borgthorsson http://www.jongretar.net/ From cedric at feelfree.homelinux.com Tue Apr 11 07:11:18 2006 From: cedric at feelfree.homelinux.com (cedric) Date: Tue, 11 Apr 2006 13:11:18 +0200 Subject: [typo] Controller stack got out of kilter! In-Reply-To: <dbb6450e0604110353o797b0b9bkd92cdc2337d16b01@mail.gmail.com> References: <dbb6450e0604110353o797b0b9bkd92cdc2337d16b01@mail.gmail.com> Message-ID: <200604111311.18541.cedric@feelfree.homelinux.com> got the same even with rails 1.1.1 Le Mardi 11 Avril 2006 12:53, Jon Gretar Borgthorsson a ?crit?: > I decided to update both typo and rails. Rails is now 1.1.2. > > Then instead of svn updating my old typo directory i made a backup of > it and removed it. Then I did a completely new svn update to a new > directory. Just to make sure everything was clean. After a rake > migrate i restarted the server and I got this error when trying to > browse the site. The admin interface works fine. > > > > RuntimeError in ArticlesController#index > > Controller stack got out of kilter! > RAILS_ROOT: /srv/www/jongretar.net > > Application Trace | Framework Trace | Full Trace > #{RAILS_ROOT}/app/models/blog.rb:116:in `after' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:227: >in `around_filter' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:401: >in `call_filters' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:394: >in `call_filters' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:389: >in `after_action' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:369: >in `perform_action_without_benchmark' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb >:69:in `perform_action_without_rescue' > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb >:69:in `perform_action_without_rescue' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in > `perform_action' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:381:in > `process_without_filters' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:377: >in `process_without_session_management_support' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/session_managem >ent.rb:117:in `process' > #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' > #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:150:in > `process_request' > #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:54:in `process!' > /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/fcgi.rb:600:in `each_cgi' > /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/fcgi.rb:597:in `each_cgi' > #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:53:in `process!' > #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:23:in `process!' > #{RAILS_ROOT}/public/dispatch.fcgi:24 > Request > > Parameters: None > > Show session dump > > Response > > Headers: {"Status"=>"200 OK", "cookie"=>[], > "Content-Type"=>"text/html", "Cache-Control"=>"no-cache"} > > > > > -- > -------------- > Jon Gretar Borgthorsson > http://www.jongretar.net/ > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From jon.borgthorsson at gmail.com Tue Apr 11 07:54:39 2006 From: jon.borgthorsson at gmail.com (Jon Gretar Borgthorsson) Date: Tue, 11 Apr 2006 11:54:39 +0000 Subject: [typo] Controller stack got out of kilter! In-Reply-To: <200604111311.18541.cedric@feelfree.homelinux.com> References: <dbb6450e0604110353o797b0b9bkd92cdc2337d16b01@mail.gmail.com> <200604111311.18541.cedric@feelfree.homelinux.com> Message-ID: <dbb6450e0604110454q5c1ffa37tf3688d1f9ab741c4@mail.gmail.com> Ok... Found it out. It was because of the last.fm sidebar plugin I had installed. Removing the sidebar plugins and reinstalling from svn did the trick. On 4/11/06, cedric <cedric at feelfree.homelinux.com> wrote: > got the same even with rails 1.1.1 > > Le Mardi 11 Avril 2006 12:53, Jon Gretar Borgthorsson a ?crit: > > I decided to update both typo and rails. Rails is now 1.1.2. > > > > Then instead of svn updating my old typo directory i made a backup of > > it and removed it. Then I did a completely new svn update to a new > > directory. Just to make sure everything was clean. After a rake > > migrate i restarted the server and I got this error when trying to > > browse the site. The admin interface works fine. > > > > > > > > RuntimeError in ArticlesController#index > > > > Controller stack got out of kilter! > > RAILS_ROOT: /srv/www/jongretar.net > > > > Application Trace | Framework Trace | Full Trace > > #{RAILS_ROOT}/app/models/blog.rb:116:in `after' > > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:227: > >in `around_filter' > > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:401: > >in `call_filters' > > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:394: > >in `call_filters' > > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:389: > >in `after_action' > > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:369: > >in `perform_action_without_benchmark' > > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb > >:69:in `perform_action_without_rescue' > > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' > > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb > >:69:in `perform_action_without_rescue' > > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in > > `perform_action' > > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:381:in > > `process_without_filters' > > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:377: > >in `process_without_session_management_support' > > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/session_managem > >ent.rb:117:in `process' > > #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' > > #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:150:in > > `process_request' > > #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:54:in `process!' > > /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/fcgi.rb:600:in `each_cgi' > > /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/fcgi.rb:597:in `each_cgi' > > #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:53:in `process!' > > #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:23:in `process!' > > #{RAILS_ROOT}/public/dispatch.fcgi:24 > > Request > > > > Parameters: None > > > > Show session dump > > > > Response > > > > Headers: {"Status"=>"200 OK", "cookie"=>[], > > "Content-Type"=>"text/html", "Cache-Control"=>"no-cache"} > > > > > > > > > > -- > > -------------- > > Jon Gretar Borgthorsson > > http://www.jongretar.net/ > > > > _______________________________________________ > > 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 > -- -------------- Jon Gretar Borgthorsson http://www.jongretar.net/ From peter at karlberg.org Tue Apr 11 13:53:45 2006 From: peter at karlberg.org (Peter Karlberg) Date: Tue, 11 Apr 2006 19:53:45 +0200 Subject: [typo] Submissiontime not working for comments Message-ID: <4F12C00C-5FAF-407E-B6CD-707EF28B6646@karlberg.org> I have a problem. In my blogg which uses Typo 2.6 comments get the wrong timestamp i.e. the first one could be right but the next can get the same as the first. This makes the display of comments a little bit strange becouse the order then becomes random. Is there a patch for this problem? Peter From peter at karlberg.org Tue Apr 11 14:18:59 2006 From: peter at karlberg.org (Peter Karlberg) Date: Tue, 11 Apr 2006 20:18:59 +0200 Subject: [typo] Forget about the date/time issue Message-ID: <69A0F0C3-D3D7-4E37-9CA2-2E5CBFFE3562@karlberg.org> I did a little digging in the list and found a thread named [typo] comments with created_at field wrong?. Hopefully it gives me a solution - at least I try before asking again. Peter From Samuel.Leibowitz at unisys.com Tue Apr 11 14:19:47 2006 From: Samuel.Leibowitz at unisys.com (Leibowitz, Samuel J) Date: Tue, 11 Apr 2006 14:19:47 -0400 Subject: [typo] Questions for a white paper involving a demo install of Typo Message-ID: <5E735516D527134997ABD465886BBDA63213A5@USTR-EXCH5.na.uis.unisys.com> All, I've been asked to put together a white paper about Ruby on Rails. Rather write yet another article with a simple proof-of-concept application tutorial, I thought it might be more interesting to talk about scaling issues. With that in mind, my current plan is to set up Typo in a multiple server environment, turn off caching, and start load testing it to see how many FCGI listeners on each box gets the best performance. The results would form the basis of the paper. My hope is that an article specifically about how Rails apps get deployed in high-volume, high-availability environments would be more interesting than another round of "now let's do script/generate scaffold..." I'd appreciate any feedback you might have to offer, both on whether or not you'd find such a paper interesting, and on any particular implementation issues that spring to mind. Maybe it'll even be useful if you happen to have a Typo-driven blog so popular that you need a half-dozen dedicated servers just to run it. ;) Many thanks for your time, Sam Leibowitz <Samuel.Leibowitz at Unisys.com> Comm Solution Development Unisys phone: 610.648.3702 From scott at sigkill.org Tue Apr 11 14:34:32 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 11 Apr 2006 11:34:32 -0700 Subject: [typo] Questions for a white paper involving a demo install of Typo In-Reply-To: <5E735516D527134997ABD465886BBDA63213A5@USTR-EXCH5.na.uis.unisys.com> References: <5E735516D527134997ABD465886BBDA63213A5@USTR-EXCH5.na.uis.unisys.com> Message-ID: <14b7e5ef0604111134kc2f5b19yf421db1542436042@mail.gmail.com> One suggestion: turn off all of the sidebars. The current sidebarimplementation has some performance issues with Typo with at leastsome versions of rails; I haven't benchmarked it recently. Scott On 4/11/06, Leibowitz, Samuel J <Samuel.Leibowitz at unisys.com> wrote:> All,>> I've been asked to put together a white paper about Ruby on Rails.> Rather write yet another article with a simple proof-of-concept> application tutorial, I thought it might be more interesting to talk> about scaling issues. With that in mind, my current plan is to set up> Typo in a multiple server environment, turn off caching, and start load> testing it to see how many FCGI listeners on each box gets the best> performance. The results would form the basis of the paper.>> My hope is that an article specifically about how Rails apps get> deployed in high-volume, high-availability environments would be more> interesting than another round of "now let's do script/generate> scaffold...">> I'd appreciate any feedback you might have to offer, both on whether or> not you'd find such a paper interesting, and on any particular> implementation issues that spring to mind. Maybe it'll even be useful> if you happen to have a Typo-driven blog so popular that you need a> half-dozen dedicated servers just to run it. ;)>> Many thanks for your time,>> Sam Leibowitz <Samuel.Leibowitz at Unisys.com>> Comm Solution Development> Unisys> phone: 610.648.3702>> _______________________________________________> Typo-list mailing list> Typo-list at rubyforge.org> http://rubyforge.org/mailman/listinfo/typo-list> From scott at sigkill.org Tue Apr 11 14:36:00 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 11 Apr 2006 11:36:00 -0700 Subject: [typo] Questions for a white paper involving a demo install of Typo In-Reply-To: <14b7e5ef0604111134kc2f5b19yf421db1542436042@mail.gmail.com> References: <5E735516D527134997ABD465886BBDA63213A5@USTR-EXCH5.na.uis.unisys.com> <14b7e5ef0604111134kc2f5b19yf421db1542436042@mail.gmail.com> Message-ID: <14b7e5ef0604111136j7bdb190et58f1ed6d066c1374@mail.gmail.com> Oh, and one other thing--if you use the current Typo trunk and runmemcached on your servers, then you *should* be able to use Rails'memcache fragment cache implementation, so you'll have a working cachespread across multiple front-end servers with correct cacheinvalidation. Scott On 4/11/06, Scott Laird <scott at sigkill.org> wrote:> One suggestion: turn off all of the sidebars. The current sidebar> implementation has some performance issues with Typo with at least> some versions of rails; I haven't benchmarked it recently.>>> Scott>> On 4/11/06, Leibowitz, Samuel J <Samuel.Leibowitz at unisys.com> wrote:> > All,> >> > I've been asked to put together a white paper about Ruby on Rails.> > Rather write yet another article with a simple proof-of-concept> > application tutorial, I thought it might be more interesting to talk> > about scaling issues. With that in mind, my current plan is to set up> > Typo in a multiple server environment, turn off caching, and start load> > testing it to see how many FCGI listeners on each box gets the best> > performance. The results would form the basis of the paper.> >> > My hope is that an article specifically about how Rails apps get> > deployed in high-volume, high-availability environments would be more> > interesting than another round of "now let's do script/generate> > scaffold..."> >> > I'd appreciate any feedback you might have to offer, both on whether or> > not you'd find such a paper interesting, and on any particular> > implementation issues that spring to mind. Maybe it'll even be useful> > if you happen to have a Typo-driven blog so popular that you need a> > half-dozen dedicated servers just to run it. ;)> >> > Many thanks for your time,> >> > Sam Leibowitz <Samuel.Leibowitz at Unisys.com>> > Comm Solution Development> > Unisys> > phone: 610.648.3702> >> > _______________________________________________> > Typo-list mailing list> > Typo-list at rubyforge.org> > http://rubyforge.org/mailman/listinfo/typo-list> >> From pdcawley at bofh.org.uk Tue Apr 11 14:39:36 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 11 Apr 2006 19:39:36 +0100 Subject: [typo] Questions for a white paper involving a demo install of Typo In-Reply-To: <14b7e5ef0604111134kc2f5b19yf421db1542436042@mail.gmail.com> (Scott Laird's message of "Tue, 11 Apr 2006 11:34:32 -0700") References: <5E735516D527134997ABD465886BBDA63213A5@USTR-EXCH5.na.uis.unisys.com> <14b7e5ef0604111134kc2f5b19yf421db1542436042@mail.gmail.com> Message-ID: <m2wtdwhs7r.fsf@obelisk.bofh.org.uk> "Scott Laird" <scott at sigkill.org> writes: > One suggestion: turn off all of the sidebars. The current > sidebarimplementation has some performance issues with Typo with at > leastsome versions of rails; I haven't benchmarked it recently. I believe that Rails 1.1 is supposed to have improved component performance. Which is nice. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From terry.donaghe at gmail.com Tue Apr 11 15:10:40 2006 From: terry.donaghe at gmail.com (Terry Donaghe) Date: Tue, 11 Apr 2006 12:10:40 -0700 Subject: [typo] Noob Typo Questions (uh oh!) Message-ID: <b68ab910604111210n6623517cu43365dd07820ef47@mail.gmail.com> Hi, I have my typo blog up and running now (http://typo.rubynoob.com), but I have a couple of questions. First, where's the best place to look for typo documentation? I don't see anything under documentation at: http://www.typosphere.org/trac/wiki except for some troubleshooting tips. Second, how do I determine which version of typo I'm running? I pulled it down using subversion using a command I found in a tutorial somewhere (I don't really know how to use subversion). Third, is it common for the sidebar functionality to freak out everytime you use it? When I add a new item to my sidebar and then publish it, the order of the existing items on my blog usually changes to a non-desired order. I'll often move stuff around to the way I like it and then when I go back in to fool with the sidebar itemms, their order will be changed yet again. Is this an expected behavior? If not, is there something I can do about it, aside from editting the rails code? Thanks for any answers! Terry -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060411/6358bce4/attachment.htm From dom at happygiraffe.net Tue Apr 11 15:19:43 2006 From: dom at happygiraffe.net (Dominic Mitchell) Date: Tue, 11 Apr 2006 20:19:43 +0100 Subject: [typo] Submissiontime not working for comments In-Reply-To: <4F12C00C-5FAF-407E-B6CD-707EF28B6646@karlberg.org> References: <4F12C00C-5FAF-407E-B6CD-707EF28B6646@karlberg.org> Message-ID: <20060411191943.GA45486@gimli.happygiraffe.net> On Tue, Apr 11, 2006 at 07:53:45PM +0200, Peter Karlberg wrote: > I have a problem. In my blogg which uses Typo 2.6 comments get the > wrong timestamp i.e. the first one could be right but the next can > get the same as the first. This makes the display of comments a > little bit strange becouse the order then becomes random. Is there a > patch for this problem? Are you using PostgreSQL and Rails 1.0? If so, there's a known bug, where it caches the default time for new records. I made a small patch which appears to be working ok for me so far: http://happygiraffe.net/blog/archives/2006/02/17/typo-times-fix Apparently it's fixed in Rails 1.1, but I haven't upgraded to check yet... -Dom From Samuel.Leibowitz at unisys.com Tue Apr 11 15:31:56 2006 From: Samuel.Leibowitz at unisys.com (Leibowitz, Samuel J) Date: Tue, 11 Apr 2006 15:31:56 -0400 Subject: [typo] Questions for a white paper involving a demo install ofTypo Message-ID: <5E735516D527134997ABD465886BBDA63213D3@USTR-EXCH5.na.uis.unisys.com> Wow, that was fast. Thanks for the replies. My intention was originally to disable caching because I thought the issue of how fast it could serve cached content wasn't as interesting as how fast it could do uncached content. I'd include a warning in the text that actual implementations would be considerably faster due to the presence of the cache, and possibly use memcached after the last run to give comparison numbers. I was going to run using 2.6.0_with-rails, since the folks I'm writing for really get queasy around anything with a whiff of "beta" around it. Deactivating the sidebars shouldn't be that much of a problem. Thanks again, Sam -----Original Message----- From: typo-list-bounces at rubyforge.org [mailto:typo-list-bounces at rubyforge.org] On Behalf Of Piers Cawley Sent: Tuesday, April 11, 2006 2:40 PM To: typo-list at rubyforge.org Subject: Re: [typo] Questions for a white paper involving a demo install ofTypo "Scott Laird" <scott at sigkill.org> writes: > One suggestion: turn off all of the sidebars. The current > sidebarimplementation has some performance issues with Typo with at > leastsome versions of rails; I haven't benchmarked it recently. I believe that Rails 1.1 is supposed to have improved component performance. Which is nice. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ _______________________________________________ Typo-list mailing list Typo-list at rubyforge.org http://rubyforge.org/mailman/listinfo/typo-list From meta at pobox.com Tue Apr 11 15:34:19 2006 From: meta at pobox.com (mathew) Date: Tue, 11 Apr 2006 14:34:19 -0500 Subject: [typo] Noob Typo Questions (uh oh!) In-Reply-To: <b68ab910604111210n6623517cu43365dd07820ef47@mail.gmail.com> References: <b68ab910604111210n6623517cu43365dd07820ef47@mail.gmail.com> Message-ID: <443C04BB.8010203@pobox.com> Terry Donaghe wrote: > First, where's the best place to look for typo documentation? Ah, the perennial question for most Ruby projects... > Third, is it common for the sidebar functionality to freak out > everytime you use it? I had some similar problems when I upgraded to trunk. It turned out I had some duplicate records in my database; I cleared the sidebars table and re-did my sidebars from scratch, and everything was OK after that. Not sure how the duplicates got there. mathew From drcforbin at gmail.com Tue Apr 11 15:45:18 2006 From: drcforbin at gmail.com (Ryan Williams) Date: Tue, 11 Apr 2006 15:45:18 -0400 Subject: [typo] Noob Typo Questions (uh oh!) In-Reply-To: <b68ab910604111210n6623517cu43365dd07820ef47@mail.gmail.com> References: <b68ab910604111210n6623517cu43365dd07820ef47@mail.gmail.com> Message-ID: <a5bbcba40604111245s1be794b1p8cd1a57af7c6de23@mail.gmail.com> As far as documentation goes, I think that the wiki is all there is...and this mailing list, of course. The 'svn info' command can be used to tell the rev number of your working copy. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060411/23fa4edd/attachment.htm From terry.donaghe at gmail.com Tue Apr 11 15:59:12 2006 From: terry.donaghe at gmail.com (Terry Donaghe) Date: Tue, 11 Apr 2006 12:59:12 -0700 Subject: [typo] Noob Typo Questions (uh oh!) In-Reply-To: <443C04BB.8010203@pobox.com> References: <b68ab910604111210n6623517cu43365dd07820ef47@mail.gmail.com> <443C04BB.8010203@pobox.com> Message-ID: <b68ab910604111259s2e942c93mbf0d5eec7712c7f6@mail.gmail.com> Hmmm... well, I'm using multiple "static" sidebar items to display lists and chicklets... Is that a no no? If so, how the heck do you do that then? As for docs, thats kind of what i figured, but it didn't hurt to ask. :) On 4/11/06, mathew <meta at pobox.com> wrote: > > Terry Donaghe wrote: > > First, where's the best place to look for typo documentation? > > Ah, the perennial question for most Ruby projects... > > > Third, is it common for the sidebar functionality to freak out > > everytime you use it? > > I had some similar problems when I upgraded to trunk. It turned out I > had some duplicate records in my database; I cleared the sidebars table > and re-did my sidebars from scratch, and everything was OK after that. > Not sure how the duplicates got there. > > > mathew > _______________________________________________ > 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/20060411/a8871f06/attachment.htm From terry.donaghe at gmail.com Tue Apr 11 16:00:03 2006 From: terry.donaghe at gmail.com (Terry Donaghe) Date: Tue, 11 Apr 2006 13:00:03 -0700 Subject: [typo] Noob Typo Questions (uh oh!) In-Reply-To: <a5bbcba40604111245s1be794b1p8cd1a57af7c6de23@mail.gmail.com> References: <b68ab910604111210n6623517cu43365dd07820ef47@mail.gmail.com> <a5bbcba40604111245s1be794b1p8cd1a57af7c6de23@mail.gmail.com> Message-ID: <b68ab910604111300q6e528c04m9beb133a398ca882@mail.gmail.com> Just run 'svn info' from the shell in my /rails/typo directory? Or somewhere else? On 4/11/06, Ryan Williams <drcforbin at gmail.com> wrote: > > As far as documentation goes, I think that the wiki is all there is...and > this mailing list, of course. > > The 'svn info' command can be used to tell the rev number of your working > copy. > > > _______________________________________________ > 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/20060411/3a597dab/attachment.htm From drcforbin at gmail.com Tue Apr 11 16:42:36 2006 From: drcforbin at gmail.com (Ryan Williams) Date: Tue, 11 Apr 2006 16:42:36 -0400 Subject: [typo] Noob Typo Questions (uh oh!) In-Reply-To: <b68ab910604111300q6e528c04m9beb133a398ca882@mail.gmail.com> References: <b68ab910604111210n6623517cu43365dd07820ef47@mail.gmail.com> <a5bbcba40604111245s1be794b1p8cd1a57af7c6de23@mail.gmail.com> <b68ab910604111300q6e528c04m9beb133a398ca882@mail.gmail.com> Message-ID: <a5bbcba40604111342t23aa6dc6mc27138822e2e5ad7@mail.gmail.com> Yes. If you change to a folder in your working copy, and run 'svn info', it will report (among other things) the revision of the current folder. You can also run 'svn info TARGET', specifying a working copy path or url to get info about another path or url. On 4/11/06, Terry Donaghe <terry.donaghe at gmail.com> wrote: > > Just run 'svn info' from the shell in my /rails/typo directory? Or > somewhere else? > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060411/5c4eec6e/attachment.htm From terry.donaghe at gmail.com Tue Apr 11 17:22:13 2006 From: terry.donaghe at gmail.com (Terry Donaghe) Date: Tue, 11 Apr 2006 14:22:13 -0700 Subject: [typo] Noob Typo Questions (uh oh!) In-Reply-To: <a5bbcba40604111342t23aa6dc6mc27138822e2e5ad7@mail.gmail.com> References: <b68ab910604111210n6623517cu43365dd07820ef47@mail.gmail.com> <a5bbcba40604111245s1be794b1p8cd1a57af7c6de23@mail.gmail.com> <b68ab910604111300q6e528c04m9beb133a398ca882@mail.gmail.com> <a5bbcba40604111342t23aa6dc6mc27138822e2e5ad7@mail.gmail.com> Message-ID: <b68ab910604111422t7423c151m2e01632c21d2c6ae@mail.gmail.com> Groovy - thanks Ryan! It appears that I pulled down the trunk (which I'm guessing is the "current" version) and my revision is 1001. I was going to ask more questions, but I found them answered here: http://www.typosphere.org/trac/wiki/DownloadCurrent I noticed that the current revision is 1005. I also noticed the line that says in the future I'll be able to do "svn update" Is there a current way to get the current stuff without messing up my blog? Just curious. Terry On 4/11/06, Ryan Williams <drcforbin at gmail.com> wrote: > > Yes. If you change to a folder in your working copy, and run 'svn info', > it will report (among other things) the revision of the current folder. > > You can also run 'svn info TARGET', specifying a working copy path or url > to get info about another path or url. > > > On 4/11/06, Terry Donaghe <terry.donaghe at gmail.com> wrote: > > > > Just run 'svn info' from the shell in my /rails/typo directory? Or > > somewhere else? > > > > > _______________________________________________ > 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/20060411/0e96528b/attachment-0001.htm From drcforbin at gmail.com Tue Apr 11 19:15:15 2006 From: drcforbin at gmail.com (Ryan Williams) Date: Tue, 11 Apr 2006 19:15:15 -0400 Subject: [typo] Noob Typo Questions (uh oh!) In-Reply-To: <b68ab910604111422t7423c151m2e01632c21d2c6ae@mail.gmail.com> References: <b68ab910604111210n6623517cu43365dd07820ef47@mail.gmail.com> <a5bbcba40604111245s1be794b1p8cd1a57af7c6de23@mail.gmail.com> <b68ab910604111300q6e528c04m9beb133a398ca882@mail.gmail.com> <a5bbcba40604111342t23aa6dc6mc27138822e2e5ad7@mail.gmail.com> <b68ab910604111422t7423c151m2e01632c21d2c6ae@mail.gmail.com> Message-ID: <a5bbcba40604111615h2c422392k922053d182169b8d@mail.gmail.com> Unless you've changed things significantly in your working copy, doing an svn update won't mess up your blog. Even if you've customized things, svn is usually good enough to still merge properly. It's a good idea to review changes made to your working copy before deploying them to your server, of course, and depending on the changes, it may be necessary to also run 'rake migrate' to update your database. But most of the time, updates won't break things. On 4/11/06, Terry Donaghe <terry.donaghe at gmail.com> wrote: > Is there a current way to get the current stuff without messing up my > blog? > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060411/8ffede9b/attachment.htm From kevin at sb.org Tue Apr 11 23:38:41 2006 From: kevin at sb.org (Kevin Ballard) Date: Tue, 11 Apr 2006 20:38:41 -0700 Subject: [typo] Questions for a white paper involving a demo install ofTypo In-Reply-To: <5E735516D527134997ABD465886BBDA63213D3@USTR-EXCH5.na.uis.unisys.com> References: <5E735516D527134997ABD465886BBDA63213D3@USTR-EXCH5.na.uis.unisys.com> Message-ID: <F8ED5487-1C0A-4F08-A293-F0B48FC00C1A@sb.org> 2.6.0? eek, that's ooooold. It's also using Rails 1.0 - 1.1 would probably be a lot more relevant for you. On Apr 11, 2006, at 12:31 PM, Leibowitz, Samuel J wrote: > I was going to run using 2.6.0_with-rails, since the folks I'm writing > for really get queasy around anything with a whiff of "beta" around > it. > Deactivating the sidebars shouldn't be that much of a problem. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060411/cb11f9c1/attachment.bin From qub333 at gmail.com Tue Apr 11 23:47:07 2006 From: qub333 at gmail.com (Kevin Kubasik) Date: Tue, 11 Apr 2006 20:47:07 -0700 Subject: [typo] Web search and robots In-Reply-To: <dbb6450e0604110304l7be37b0ao98a7729617014750@mail.gmail.com> References: <dbb6450e0604110304l7be37b0ao98a7729617014750@mail.gmail.com> Message-ID: <88d636060604112047g1a2f3915p2089d1f25108facd@mail.gmail.com> just for the record i would totaly second and love such a feature. -Kevin Kubasik On 4/11/06, Jon Gretar Borgthorsson <jon.borgthorsson at gmail.com> wrote: > I was just wondering if a built in support for dynamic robots.txt > files and google sitemaps wouldn't be nice. > I think that dynamically generating google sitemap files would really > help users of typo to get their page out to the masses and controlling > the robots.txt file could reduce load and keep unwanted content of the > search engines. For example there is no need for google to be always > searching the RSS feeds. > > Having some control over it in the admin section is something I would > love. How about the rest? > > > Robots.txt info: > http://www.robotstxt.org/wc/robots.html > http://www.pageresource.com/zine/robotstxt.htm > Google Sitemaps info: > https://www.google.com/webmasters/sitemaps/docs/en/navigation.html > https://www.google.com/webmasters/sitemaps/docs/en/faq.html > > > -- > -------------- > Jon Gretar Borgthorsson > http://www.jongretar.net/ > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Cheers, Kevin Kubasik http://blog.kubasik.net/ From bronson at rinspin.com Wed Apr 12 00:14:30 2006 From: bronson at rinspin.com (Scott Bronson) Date: Wed, 12 Apr 2006 00:14:30 -0400 Subject: [typo] [Typo] broken tests when running rake? In-Reply-To: <cc4e85f30604101655o4eebd3bcmc80570deb2de619b@mail.gmail.com> References: <cc4e85f30604101613t6d2664e1yec5198d740252225@mail.gmail.com> <14b7e5ef0604101635q133e4253u93cf5966cf068e0f@mail.gmail.com> <cc4e85f30604101655o4eebd3bcmc80570deb2de619b@mail.gmail.com> Message-ID: <1144815271.5655.39.camel@lyra.rinspin.com> On Mon, 2006-04-10 at 18:55 -0500, Steve Longdo wrote: > Anyway, that's got me further now only two tests fail in r1004. > > test_mt_supported_methods(BackendControllerTest): > NoMethodError: You have a nil object when you didn't expect it! > You might have expected an instance of Array. > The error occured while evaluating nil.length > > test_mt_supported_text_filters(BackendControllerTest): > NoMethodError: You have a nil object when you didn't expect it! > You might have expected an instance of Array. > The error occured while evaluating nil.length I'm getting the same failures. Has anyone looked into these? I'm on 1005 fwiw. - Scott From meta at pobox.com Wed Apr 12 14:03:55 2006 From: meta at pobox.com (mathew) Date: Wed, 12 Apr 2006 13:03:55 -0500 Subject: [typo] Questions for a white paper involving a demo install ofTypo In-Reply-To: <F8ED5487-1C0A-4F08-A293-F0B48FC00C1A@sb.org> References: <5E735516D527134997ABD465886BBDA63213D3@USTR-EXCH5.na.uis.unisys.com> <F8ED5487-1C0A-4F08-A293-F0B48FC00C1A@sb.org> Message-ID: <443D410B.5040302@pobox.com> Kevin Ballard wrote: > 2.6.0? eek, that's ooooold. 9 days old, to be precise, according to http://rubyforge.org/projects/typo/ It's also the most recent release. If the developers didn't want people using code that old, they'd make a newer release, wouldn't they? :-) mathew From george at sudarkoff.com Wed Apr 12 15:50:59 2006 From: george at sudarkoff.com (George Sudarkoff) Date: Wed, 12 Apr 2006 12:50:59 -0700 Subject: [typo] jabber_notify.rb error Message-ID: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> I keep getting this error. Any ideas as to why this is happening? I am running r977 (don't have time to update). ================================ NameError in Admin/content#new undefined local variable or method `logger' for JabberNotify:Class RAILS_ROOT: /home/sudarkoff/sites/typo Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/lib/jabber_notify.rb:17:in `send_message' #{RAILS_ROOT}/app/models/article.rb:140:in `send_notification_to_user' #{RAILS_ROOT}/app/models/article.rb:130:in `send_notifications' #{RAILS_ROOT}/app/models/article.rb:129:in `send_notifications' #{RAILS_ROOT}/app/controllers/admin/content_controller.rb:98:in `tidy_up_and_notify' #{RAILS_ROOT}/app/controllers/admin/content_controller.rb:88:in `new_or_edit' #{RAILS_ROOT}/app/controllers/admin/content_controller.rb:22:in `new' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/base.rb:853:in `perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/filters.rb:332:in `perform_action_without_benchmark' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/rescue.rb:82:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/base.rb:369:in `process_without_session_management_support' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/session_management.rb:116:in `process' /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb: 141:in `process_request' /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb: 53:in `process!' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:600:in `each_cgi' /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-1.0.0/lib/fcgi_handler.rb: 52:in `process!' /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb: 22:in `process!' #{RAILS_ROOT}/public/dispatch.fcgi:24 #{RAILS_ROOT}/lib/jabber_notify.rb:17:in `send_message' #{RAILS_ROOT}/app/models/article.rb:140:in `send_notification_to_user' #{RAILS_ROOT}/app/models/article.rb:130:in `send_notifications' #{RAILS_ROOT}/app/models/article.rb:129:in `send_notifications' #{RAILS_ROOT}/app/controllers/admin/content_controller.rb:98:in `tidy_up_and_notify' #{RAILS_ROOT}/app/controllers/admin/content_controller.rb:88:in `new_or_edit' #{RAILS_ROOT}/app/controllers/admin/content_controller.rb:22:in `new' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/base.rb:853:in `perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/filters.rb:332:in `perform_action_without_benchmark' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/rescue.rb:82:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/base.rb:369:in `process_without_session_management_support' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/session_management.rb:116:in `process' /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb: 141:in `process_request' /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb: 53:in `process!' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:600:in `each_cgi' /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-1.0.0/lib/fcgi_handler.rb: 52:in `process!' /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb: 22:in `process!' #{RAILS_ROOT}/public/dispatch.fcgi:24 Request Parameters: {...} Show session dump --- :user: !ruby/object:User attributes: name: ************ notify_via_jabber: "1" notify_via_email: "1" notify_watch_my_articles: id: "1" notify_on_comments: "1" jabber: ************ login: ************ password: ************ email: ************ notify_on_new_articles: "1" notify_contents: flash: !map:ActionController::Flash::FlashHash {} :return_to: Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} ================================ From kevin at sb.org Wed Apr 12 22:59:05 2006 From: kevin at sb.org (Kevin Ballard) Date: Wed, 12 Apr 2006 19:59:05 -0700 Subject: [typo] Questions for a white paper involving a demo install ofTypo In-Reply-To: <443D410B.5040302@pobox.com> References: <5E735516D527134997ABD465886BBDA63213D3@USTR-EXCH5.na.uis.unisys.com> <F8ED5487-1C0A-4F08-A293-F0B48FC00C1A@sb.org> <443D410B.5040302@pobox.com> Message-ID: <AF8A04D9-8C37-4D1C-B79B-CC58E9675AF3@sb.org> On Apr 12, 2006, at 11:03 AM, mathew wrote: > Kevin Ballard wrote: >> 2.6.0? eek, that's ooooold. > > 9 days old, to be precise, according to http://rubyforge.org/ > projects/typo/ Well, uh, that's an interesting timestamp there. 2.6.0 has been out for ages. > It's also the most recent release. If the developers didn't want > people > using code that old, they'd make a newer release, wouldn't they? :-) Speaking as a developer, I really want to get 4.0 out the door. Current trunk is perfectly usable, we just haven't finished quite everything we want in 4.0. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060412/a920f0e7/attachment.bin From pdcawley at bofh.org.uk Thu Apr 13 11:36:34 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Thu, 13 Apr 2006 16:36:34 +0100 Subject: [typo] jabber_notify.rb error In-Reply-To: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> (George Sudarkoff's message of "Wed, 12 Apr 2006 12:50:59 -0700") References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> Message-ID: <m2mzepxzb1.fsf@obelisk.bofh.org.uk> George Sudarkoff <george at sudarkoff.com> writes: > I keep getting this error. Any ideas as to why this is happening? I > am running r977 (don't have time to update). Can someone please just dike the entire jabber notification subsystem out? We'll start again from clean after 4.0. I'd do it myself, but I'm stuck doing paing work at the moment. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From trejkaz at trypticon.org Thu Apr 13 23:37:47 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Fri, 14 Apr 2006 13:37:47 +1000 Subject: [typo] jabber_notify.rb error In-Reply-To: <m2mzepxzb1.fsf@obelisk.bofh.org.uk> References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <m2mzepxzb1.fsf@obelisk.bofh.org.uk> Message-ID: <200604141337.50703.trejkaz@trypticon.org> On Friday 14 April 2006 01:36, Piers Cawley wrote: > George Sudarkoff <george at sudarkoff.com> writes: > > I keep getting this error. Any ideas as to why this is happening? I > > am running r977 (don't have time to update). > > Can someone please just dike the entire jabber notification subsystem > out? We'll start again from clean after 4.0. I'd do it myself, but I'm > stuck doing paing work at the moment. Alternatively could someone commit my patch which makes it all work? It's been on the trac for quite some time now. The main problem is that Typo went with Jabber4R, which is buggy. Replace that with XMPP4R, and everything works fine. TX P.S. If you're going to throw out Jabber notification, please throw out email notification too. I only use the Jabber one, after all, and can't imagine why anyone would want to be notified via email. ;-p -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ 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: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060414/c3c5e931/attachment.bin From pdcawley at bofh.org.uk Fri Apr 14 00:32:15 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 14 Apr 2006 05:32:15 +0100 Subject: [typo] jabber_notify.rb error In-Reply-To: <200604141337.50703.trejkaz@trypticon.org> (trejkaz@trypticon.org's message of "Fri, 14 Apr 2006 13:37:47 +1000") References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <m2mzepxzb1.fsf@obelisk.bofh.org.uk> <200604141337.50703.trejkaz@trypticon.org> Message-ID: <m2vetcydyo.fsf@obelisk.bofh.org.uk> Trejkaz <trejkaz at trypticon.org> writes: > On Friday 14 April 2006 01:36, Piers Cawley wrote: >> George Sudarkoff <george at sudarkoff.com> writes: >> > I keep getting this error. Any ideas as to why this is happening? I >> > am running r977 (don't have time to update). >> >> Can someone please just dike the entire jabber notification subsystem >> out? We'll start again from clean after 4.0. I'd do it myself, but I'm >> stuck doing paing work at the moment. > > Alternatively could someone commit my patch which makes it all work? It's > been on the trac for quite some time now. The main problem I have with the whole Jabber notification scheme is that it's almost entirely test free. I prefer to view what's in place as a spike, throw it away and start again test first with the benefit of extra understanding from the first, failed solution. As I've explained in my blog[1], I'm not totally averse (but getting more averse by the day) to committing changes without patches, but only when those changes are 'mine' because then I've at least got a chance of remembering my intent. Which is why I haven't committed the big podcasting patch either -- It's screaming out for a couple or three integration or functional tests to stand as an explanation of what the patch does. Without that, I haven't the faintest idea if what the patch does is the right thing, or just what it does. Show me tests and you show me what you intend. > The main problem is that Typo went with Jabber4R, which is buggy. Replace > that with XMPP4R, and everything works fine. I just checked, and there's a licensing problem with XMPP4R as well, which means we can't include it in the Typo distribution without changing Typo's license, which I'm not prepared to do. And I'm not prepared to add an external dependency either. Give me a patch, with tests, that degrades gracefully (it can simply turn jabber notification off) if the absence of XMPP4R and I'll jump at the chance to apply it. Until then, I'd far rather see it taken out for 4.0 rather than ship broken code. > P.S. If you're going to throw out Jabber notification, please throw > out email notification too. I only use the Jabber one, after all, > and can't imagine why anyone would want to be notified via > email. ;-p Meh! I just use the feed... -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Fri Apr 14 00:35:54 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 14 Apr 2006 05:35:54 +0100 Subject: [typo] jabber_notify.rb error In-Reply-To: <m2vetcydyo.fsf@obelisk.bofh.org.uk> (Piers Cawley's message of "Fri, 14 Apr 2006 05:32:15 +0100") References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <m2mzepxzb1.fsf@obelisk.bofh.org.uk> <200604141337.50703.trejkaz@trypticon.org> <m2vetcydyo.fsf@obelisk.bofh.org.uk> Message-ID: <m2r740ydsl.fsf@obelisk.bofh.org.uk> Piers Cawley <pdcawley at bofh.org.uk> writes: > extra understanding from the first, failed solution. As I've explained > in my blog[1], I'm not totally averse (but getting more averse by Oopsie. Forgot the footnote. Here it is: 1. http://www.bofh.org.uk/articles/2006/03/12/if-you-test-it-i-will-patch -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Fri Apr 14 02:05:35 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 14 Apr 2006 07:05:35 +0100 Subject: [typo] HTML structure Message-ID: <m2mzeoy9n4.fsf@obelisk.bofh.org.uk> So, I've been looking at Scribbish[1] and the CSS Zen Garden[2] and I like what I see. In particular, I like the idea of the hAtom microformat for our articles, and I really like the idea of making sure we have a robust semantic structure for our core HTML. Every time someone has to write rhtml in their themes I cringe slightly. So, I'm thinking that the whole Theming thing needs looking at. Here's a few ideas: * No more overriding layouts/default.rhtml just to add a couple of theme specific css files. We've already moved to having most of the layout's header generated by a helper method, it should not be beyond our wit to have it do something like: <%= render :partial => 'common/stylesheets.rhtml' %> as part of its strategy. * Nail down the basic semantic structure of our layout and have more of the individual divs rendered as partials (and hence more finely overrideable by a theme). Also, the 'partial' boundary might well be a good place to insert more granular fragment caching for better performance. * Make use of the hAtom microformat (and possibly other microformats for other bits and pieces, is there one for tag clouds yet?) * Get some feedback from (or become) CSS experts with an eye to designing a basic page structure that's flexible enough that most themes can simply provide a css file and a bunch of images. Check out the CSS Zen Garden for the sort of thing that has been achieved with 'pure' CSS. * As we're breaking themes already, let's break 'em good and proper so we can rebuild them stronger, better, faster... Thoughts? 1. http://quotedprintable.com/pages/scribbish 2. http://csszengarden.com/ -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From josh at hasmanythrough.com Fri Apr 14 02:27:41 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Thu, 13 Apr 2006 23:27:41 -0700 Subject: [typo] HTML structure In-Reply-To: <m2mzeoy9n4.fsf@obelisk.bofh.org.uk> References: <m2mzeoy9n4.fsf@obelisk.bofh.org.uk> Message-ID: <8FF39D8A-5E49-4173-8186-BFFA0B8B80A4@hasmanythrough.com> I'm a happy user of Scribbish. It's a great foundation, simply and easy to mod. I think it's great to use it as inspiration for an upgrade of the typo theme system. If you want to get CSS happy, I'll suggest generating CSS from ERb templates. I put together a simple solution for that in Rails - check out this article on my blog: http://blog.hasmanythrough.com/articles/2006/03/23/dirt-simple-rcss- templates The cool thing about using RCSS is you can parameterize style settings in the database and generate the CSS based on those values. The one thing I didn't like about how Scribbish does CSS is that it has so many files. Each reader hits my server six times just to get the CSS for one page! I ended up merging all the modular files into one, and even if it's not a big deal for my server my log files are smaller and easier for me to look at if I need to. But going with an RCSS based system you could generate one file easily. I haven't tried it, but I think my RCSS trick should support partials, which would allow for modular construction of the CSS with little effort. -- Josh Susser http://blog.hasmanythrough.com On Apr 13, 2006, at 11:05 PM, Piers Cawley wrote: > So, I've been looking at Scribbish[1] and the CSS Zen Garden[2] and I > like what I see. In particular, I like the idea of the hAtom > microformat for our articles, and I really like the idea of making > sure we have a robust semantic structure for our core HTML. Every time > someone has to write rhtml in their themes I cringe slightly. > > So, I'm thinking that the whole Theming thing needs looking at. Here's > a few ideas: > > * No more overriding layouts/default.rhtml just to add a couple of > theme specific css files. We've already moved to having most of > the layout's header generated by a helper method, it should not be > beyond our wit to have it do something like: > > <%= render :partial => 'common/stylesheets.rhtml' %> > > as part of its strategy. > > * Nail down the basic semantic structure of our layout and have > more of the > individual divs rendered as partials (and hence more finely > overrideable by a theme). Also, the 'partial' boundary might well > be a good place to insert more granular fragment caching for > better performance. > > * Make use of the hAtom microformat (and possibly other microformats > for other bits and pieces, is there one for tag clouds yet?) > > * Get some feedback from (or become) CSS experts with an eye to > designing a basic page structure that's flexible enough that most > themes can simply provide a css file and a bunch of images. Check > out the CSS Zen Garden for the sort of thing that has been > achieved with 'pure' CSS. > > * As we're breaking themes already, let's break 'em good and proper > so we can rebuild them stronger, better, faster... > > Thoughts? > > 1. http://quotedprintable.com/pages/scribbish > 2. http://csszengarden.com/ > -- > Piers Cawley <pdcawley at bofh.org.uk> > http://www.bofh.org.uk/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From trejkaz at trypticon.org Fri Apr 14 03:50:28 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Fri, 14 Apr 2006 17:50:28 +1000 Subject: [typo] jabber_notify.rb error In-Reply-To: <m2vetcydyo.fsf@obelisk.bofh.org.uk> References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <200604141337.50703.trejkaz@trypticon.org> <m2vetcydyo.fsf@obelisk.bofh.org.uk> Message-ID: <200604141750.31297.trejkaz@trypticon.org> On Friday 14 April 2006 14:32, Piers Cawley wrote: > I just checked, and there's a licensing problem with XMPP4R as well, > which means we can't include it in the Typo distribution without > changing Typo's license, which I'm not prepared to do. And I'm not > prepared to add an external dependency either. XMPP4R is released under the Ruby licence. I take it that Typo, a project written in Ruby itself, is incompatible with the Ruby licence. Nice bit of irony right there. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ 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: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060414/b3f6a349/attachment.bin From trejkaz at trypticon.org Fri Apr 14 04:00:17 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Fri, 14 Apr 2006 18:00:17 +1000 Subject: [typo] jabber_notify.rb error In-Reply-To: <m2r740ydsl.fsf@obelisk.bofh.org.uk> References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <m2vetcydyo.fsf@obelisk.bofh.org.uk> <m2r740ydsl.fsf@obelisk.bofh.org.uk> Message-ID: <200604141800.19811.trejkaz@trypticon.org> On Friday 14 April 2006 14:35, Piers Cawley wrote: > Piers Cawley <pdcawley at bofh.org.uk> writes: > > extra understanding from the first, failed solution. As I've explained > > in my blog[1], I'm not totally averse (but getting more averse by > > Oopsie. Forgot the footnote. Here it is: > > 1. http://www.bofh.org.uk/articles/2006/03/12/if-you-test-it-i-will-patch Just out of curiosity, how does one test a feature which by its very nature requires contact with a server somewhere? Is there a common Jabber server which unit tests might be able to connect to, which would always be present in order to test something like Jabber notifications? The same problem exists with mail notifications, naturally. One might say that you can stub the thing which sends the mail. But if you also stubbed the thing which sends the instant message, the existing notification for Jabber would seem to be working, because the broken code is inside the method you would need to stub. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ 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: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060414/c58c2d67/attachment.bin From rodgerd at diaspora.gen.nz Fri Apr 14 08:34:41 2006 From: rodgerd at diaspora.gen.nz (Rodger Donaldson) Date: Sat, 15 Apr 2006 00:34:41 +1200 Subject: [typo] Towards 4.0.0 In-Reply-To: <m2u09f8e6i.fsf@obelisk.bofh.org.uk> References: <m23bh0qqrn.fsf@obelisk.bofh.org.uk> <20060330192720.GA27468@diaspora.gen.nz> <m2u09f8e6i.fsf@obelisk.bofh.org.uk> Message-ID: <20060414123441.GA13923@diaspora.gen.nz> On Fri, Mar 31, 2006 at 04:51:17AM +0100, Piers Cawley wrote: > Rodger Donaldson <rodgerd at diaspora.gen.nz> writes: > > > On Thu, Mar 30, 2006 at 09:29:48AM +0100, Piers Cawley wrote: > >> > >> Again, I'm interested in everyone's input, but I'm particularly keen > >> to hear from anyone still running 2.6.0. > > > > Last time I tried a rake migrate on my test box it was a disaster > > area; I'm quite happy to do a dump of my prod 2.6 DB into a dev DB and > > redo if that will provide useful debugging. > > That would be handy. We're rather more confident of the migration > routes now that we use BareMigrations. Essentially, all the migrations > are now protected from changes in our model classes. Sure. [rodgerd at sacco typo]$ svn update [...] Updated external to revision 4210. Updated to revision 1021. [rodgerd at sacco typo]$ rake migrate (in /home/rodgerd/typo) rake aborted! undefined method `namespace' for main:Object ./Rakefile:10 Hmm. Not so good. [rodgerd at sacco typo]$ gem list --local *** LOCAL GEMS *** [...] rails (1.0.0) Web-application framework with template engine, control-flow layer, and ORM. rake (0.6.2) Ruby based make-like utility. [...] Hmm. Is this a problem with sitting on rails-1.0 as opposed to rails-1.1, the wrong version of rake, or something *really* dumb on my part? [rodgerd at sacco typo]$ sudo gem install rails Attempting local installation of 'rails' Local gem file not found: rails*.gem Attempting remote installation of 'rails' Updating Gem source index for: http://gems.rubyforge.org Install required dependency rake? [Yn] Install required dependency activesupport? [Yn] Install required dependency activerecord? [Yn] Install required dependency actionpack? [Yn] Install required dependency actionmailer? [Yn] Install required dependency actionwebservice? [Yn] Successfully installed rails-1.1.2 Successfully installed rake-0.7.1 Successfully installed activesupport-1.3.1 Successfully installed activerecord-1.14.2 Successfully installed actionpack-1.12.1 Successfully installed actionmailer-1.2.1 Successfully installed actionwebservice-1.1.2 [rodgerd at sacco typo]$ gem list *** LOCAL GEMS *** rails (1.1.2) Web-application framework with template engine, control-flow layer, and ORM. rake (0.7.1) Ruby based make-like utility. [rodgerd at sacco typo]$ rake migrate (in /home/rodgerd/typo) Rails does not work with Ruby version 1.8.3. Please upgrade to version 1.8.4 or downgrade to 1.8.2. Ack. So, I guess the DownloadCurrent page needs to note the dependency on rails 1.1 and/or rake 0.7. It's too late to upgrade all of ruby tonight 8). -- Rodger Donaldson rodgerd at diaspora.gen.nz "Not only does the English Language borrow words from other languages, it sometimes chases them down dark alleys, hits them over the head, and goes through their pockets." -- Eddy Peters From gpsnospam at gmail.com Fri Apr 14 09:47:16 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Fri, 14 Apr 2006 14:47:16 +0100 Subject: [typo] HTML structure In-Reply-To: <m2mzeoy9n4.fsf@obelisk.bofh.org.uk> References: <m2mzeoy9n4.fsf@obelisk.bofh.org.uk> Message-ID: <9E89A356-9002-4047-BFEA-B287BC4DEC30@gmail.com> On 14 Apr 2006, at 07:05, Piers Cawley wrote: > * No more overriding layouts/default.rhtml just to add a couple of > theme specific css files. We've already moved to having most of > the layout's header generated by a helper method, it should not be > beyond our wit to have it do something like: > <%= render :partial => 'common/stylesheets.rhtml' %> > > as part of its strategy. > > * Nail down the basic semantic structure of our layout and have > more of the > individual divs rendered as partials (and hence more finely > overrideable by a theme). Also, the 'partial' boundary might well > be a good place to insert more granular fragment caching for > better performance. > > * Make use of the hAtom microformat (and possibly other microformats > for other bits and pieces, is there one for tag clouds yet?) > > * Get some feedback from (or become) CSS experts with an eye to > designing a basic page structure that's flexible enough that most > themes can simply provide a css file and a bunch of images. Check > out the CSS Zen Garden for the sort of thing that has been > achieved with 'pure' CSS. > > * As we're breaking themes already, let's break 'em good and proper > so we can rebuild them stronger, better, faster... > > Thoughts? I don't understand what you're getting at here ... at all. And I've tried. Breaking themes has nothing to do with CSS. Rendering a sidebar has nothing to do with CSS, rendering the content has nothing to do with CSS. I could put my CSS on a wordpress install and it would look the same (after renaming my divs). That's the whole point of CSS - it's just the styling. My theme was broken because I had to change <%= render_component(:controller => ?sidebars/sidebar?, :action => ?display_plugins? %> to <%= render_sidebars %> in default.rhtml and that has nothing to do with how pretty my site looks (CSS) but how the sidebar is rendered (Typo code). Separate CSS and HTML in your mind. Why would you want to stop a themes overriding default.rhtml (if that's what you mean)? As that's a nice feature. Why are you talking about nailing down a basic structure of the layout? That's for a theme designer to do surely? I'm lost. Is it just me? Could be ;) I readily agree that something needs to be firmed out though because I'd put money on the fact that nearly every theme in the contest would be broken in trunk now. Gary From pdcawley at bofh.org.uk Fri Apr 14 10:08:51 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 14 Apr 2006 15:08:51 +0100 Subject: [typo] jabber_notify.rb error In-Reply-To: <200604141750.31297.trejkaz@trypticon.org> (trejkaz@trypticon.org's message of "Fri, 14 Apr 2006 17:50:28 +1000") References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <200604141337.50703.trejkaz@trypticon.org> <m2vetcydyo.fsf@obelisk.bofh.org.uk> <200604141750.31297.trejkaz@trypticon.org> Message-ID: <m2vetcuu4s.fsf@obelisk.bofh.org.uk> Trejkaz <trejkaz at trypticon.org> writes: > On Friday 14 April 2006 14:32, Piers Cawley wrote: >> I just checked, and there's a licensing problem with XMPP4R as well, >> which means we can't include it in the Typo distribution without >> changing Typo's license, which I'm not prepared to do. And I'm not >> prepared to add an external dependency either. > > XMPP4R is released under the Ruby licence. I take it that Typo, a project > written in Ruby itself, is incompatible with the Ruby licence. Nice bit of > irony right there. Ah... according to the RAA page I looked at, it was GPL licensed. However, on further investigation I see you're right. Oops. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From trejkaz at trypticon.org Fri Apr 14 10:17:46 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Sat, 15 Apr 2006 00:17:46 +1000 Subject: [typo] Theme URL layout Message-ID: <93222FA3-D326-414F-85A0-2AC16EA50E8D@trypticon.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I was doing some more theme development a while back. It turned out that a new feature was added somewhere in the site HTML which the Azure theme had updated and of course mine hadn't yet, which made the site look extremely bad for a moment. One thing that would be neat in themes is if we had some simple way to inherit from other themes. For instance, I might want to use Azure but replace the images and colours, or just change some fonts. However, I don't necessarily want to edit the Azure theme myself because then new changes might not merge in as expected. Normally, I would do this sort of thing by having my own theme's CSS include from the appropriate other theme's CSS. However, the way the URL is currently laid out, there is no path to the stylesheets or images stored in the other themes. If themes then started to structure their stylesheets (which most should, but not many do), it would then be possible to use the layout of one theme, the colour scheme of a second theme, and fonts from a completely separate theme again, all without having to hack apart someone else's CSS files. :-) TX -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (Darwin) iD8DBQFEP68UuMe8iwN+6nMRAjZrAJ9HneUFnWW3sBKdpdiAXBjQonsIrQCfUgV5 T3fBZb9NJIrivhbm0Qble1k= =+fCI -----END PGP SIGNATURE----- From trejkaz at trypticon.org Fri Apr 14 10:31:25 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Sat, 15 Apr 2006 00:31:25 +1000 Subject: [typo] jabber_notify.rb error In-Reply-To: <m2vetcuu4s.fsf@obelisk.bofh.org.uk> References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <200604141337.50703.trejkaz@trypticon.org> <m2vetcydyo.fsf@obelisk.bofh.org.uk> <200604141750.31297.trejkaz@trypticon.org> <m2vetcuu4s.fsf@obelisk.bofh.org.uk> Message-ID: <01C6E412-2B3C-4770-9475-0E6CED9822D6@trypticon.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 15/04/2006, at 00:08 AM, Piers Cawley wrote: > Trejkaz <trejkaz at trypticon.org> writes: > >> On Friday 14 April 2006 14:32, Piers Cawley wrote: >>> I just checked, and there's a licensing problem with XMPP4R as well, >>> which means we can't include it in the Typo distribution without >>> changing Typo's license, which I'm not prepared to do. And I'm not >>> prepared to add an external dependency either. >> >> XMPP4R is released under the Ruby licence. I take it that Typo, a >> project >> written in Ruby itself, is incompatible with the Ruby licence. >> Nice bit of >> irony right there. > > Ah... according to the RAA page I looked at, it was GPL > licensed. However, on further investigation I see you're right. Oops. Actually, on the subject of the GPL, what about bluecloth? vendor/ bluecloth/LICENCE is GPL2. TX -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (Darwin) iD8DBQFEP7JCuMe8iwN+6nMRAhwCAJ4+ulXUOAE1sdVO2gLl41yMdBGbOQCfUIYG th5LJ4PLzPVuGgEKBR+KkWY= =vCm+ -----END PGP SIGNATURE----- From gpsnospam at gmail.com Fri Apr 14 10:35:48 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Fri, 14 Apr 2006 15:35:48 +0100 Subject: [typo] Theme URL layout In-Reply-To: <93222FA3-D326-414F-85A0-2AC16EA50E8D@trypticon.org> References: <93222FA3-D326-414F-85A0-2AC16EA50E8D@trypticon.org> Message-ID: <7CD96DFD-31C6-4BE1-98AE-41EDA4B2A826@gmail.com> On 14 Apr 2006, at 15:17, Trejkaz wrote: > > For instance, I might want to use Azure but replace the images and > colours, or just change some fonts. However, I don't necessarily > want to edit the Azure theme myself because then new changes might > not merge in as expected. Normally, I would do this sort of thing by > having my own theme's CSS include from the appropriate other theme's > CSS. However, the way the URL is currently laid out, there is no > path to the stylesheets or images stored in the other themes. It's seriously easier to just copy the Azure folder, rename it and hack it yourself. > If themes then started to structure their stylesheets (which most > should, but not many do), it would then be possible to use the layout > of one theme, the colour scheme of a second theme, and fonts from a > completely separate theme again, all without having to hack apart > someone else's CSS files. :-) There's no way a theme designer is going to put the extra effort in to restructure their CSS just so you can cherry pick from it. I'm not a designer and I wouldn't. From steve.longdo at gmail.com Fri Apr 14 10:40:08 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Fri, 14 Apr 2006 09:40:08 -0500 Subject: [typo] Theme URL layout In-Reply-To: <93222FA3-D326-414F-85A0-2AC16EA50E8D@trypticon.org> References: <93222FA3-D326-414F-85A0-2AC16EA50E8D@trypticon.org> Message-ID: <cc4e85f30604140740he43c505t3387c8f1f35d7d06@mail.gmail.com> You can hook in other stylesheets using the public/stylesheets/user- styles.css which is loaded after azure.css allowing you to override/modify the styling it includes. I don't think this is ideal either I was just pointing it out :-) On 4/14/06, Trejkaz <trejkaz at trypticon.org> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I was doing some more theme development a while back. It turned out > that a new feature was added somewhere in the site HTML which the > Azure theme had updated and of course mine hadn't yet, which made the > site look extremely bad for a moment. > > One thing that would be neat in themes is if we had some simple way > to inherit from other themes. > > For instance, I might want to use Azure but replace the images and > colours, or just change some fonts. However, I don't necessarily > want to edit the Azure theme myself because then new changes might > not merge in as expected. Normally, I would do this sort of thing by > having my own theme's CSS include from the appropriate other theme's > CSS. However, the way the URL is currently laid out, there is no > path to the stylesheets or images stored in the other themes. > > If themes then started to structure their stylesheets (which most > should, but not many do), it would then be possible to use the layout > of one theme, the colour scheme of a second theme, and fonts from a > completely separate theme again, all without having to hack apart > someone else's CSS files. :-) > > TX > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2.2 (Darwin) > > iD8DBQFEP68UuMe8iwN+6nMRAjZrAJ9HneUFnWW3sBKdpdiAXBjQonsIrQCfUgV5 > T3fBZb9NJIrivhbm0Qble1k= > =+fCI > -----END PGP SIGNATURE----- > _______________________________________________ > 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/20060414/9e75dda4/attachment.htm From pdcawley at bofh.org.uk Fri Apr 14 10:59:06 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 14 Apr 2006 15:59:06 +0100 Subject: [typo] HTML structure In-Reply-To: <9E89A356-9002-4047-BFEA-B287BC4DEC30@gmail.com> (Gary Shewan's message of "Fri, 14 Apr 2006 14:47:16 +0100") References: <m2mzeoy9n4.fsf@obelisk.bofh.org.uk> <9E89A356-9002-4047-BFEA-B287BC4DEC30@gmail.com> Message-ID: <m2r740urt1.fsf@obelisk.bofh.org.uk> Gary Shewan <gpsnospam at gmail.com> writes: > On 14 Apr 2006, at 07:05, Piers Cawley wrote: > >> * No more overriding layouts/default.rhtml just to add a couple of >> theme specific css files. We've already moved to having most of >> the layout's header generated by a helper method, it should not be >> beyond our wit to have it do something like: >> <%= render :partial => 'common/stylesheets.rhtml' %> >> >> as part of its strategy. >> >> * Nail down the basic semantic structure of our layout and have >> more of the >> individual divs rendered as partials (and hence more finely >> overrideable by a theme). Also, the 'partial' boundary might well >> be a good place to insert more granular fragment caching for >> better performance. >> >> * Make use of the hAtom microformat (and possibly other microformats >> for other bits and pieces, is there one for tag clouds yet?) >> >> * Get some feedback from (or become) CSS experts with an eye to >> designing a basic page structure that's flexible enough that most >> themes can simply provide a css file and a bunch of images. Check >> out the CSS Zen Garden for the sort of thing that has been >> achieved with 'pure' CSS. >> >> * As we're breaking themes already, let's break 'em good and proper >> so we can rebuild them stronger, better, faster... >> >> Thoughts? > > I don't understand what you're getting at here ... at all. And I've > tried. Bah! You obviously haven't tried hard enough! > Breaking themes has nothing to do with CSS. Rendering a sidebar has > nothing to do with CSS, rendering the content has nothing to do with > CSS. I could put my CSS on a wordpress install and it would look the > same (after renaming my divs). That's the whole point of CSS - it's > just the styling. > > My theme was broken because I had to change > > <%= render_component(:controller => ?sidebars/sidebar?, > :action => ?display_plugins? %> > > to > > <%= render_sidebars %> > > in default.rhtml and that has nothing to do with how pretty my site > looks (CSS) but how the sidebar is rendered (Typo code). > > Separate CSS and HTML in your mind. Pointy end grandma. > Why would you want to stop a themes overriding default.rhtml (if > that's what you mean)? As that's a nice feature. I want to stop every theme and its brother *having* to override default.rhtml. It's a 'nice' feature, but we're definitely cracking nuts with sledgehammers if we end up overriding default.rhtml just because we want to change a stylesheet. If we have a default (rails) layout that goes something like: <!DOCTYPE html Blah Blah> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <%= render :partial => 'common/html_head' %> </head> <body id="<%= params[:controller].gsub('/', '-') %>"> <div id="header"> <%= render :partial => 'common/header' %> </div> <div id= "page"> <div id="content"> <%= yield %> </div> <div id="sidebar"> <%= render :partial => 'common/sidebar' %> </div> <br style="clear:both;" /> </div> </div> <div id="footer"> <%= render :partial => 'common/footer' %> </div> </html> And make the various 'common/*' partials overrideable by the theme, then we're already in the position that a theme designer can alter the structure of the various divs without having to repeat a bunch of boilerplate. > Why are you talking about nailing down a basic structure of the > layout? That's for a theme designer to do surely? No, I'm talking about nailing down the basic structure of the HTML we generate. Layout is done with CSS. The problem here is that the Rails concept of a layout clashes with the CSS concept of a layout. It's awfully easy to get the two confused (and my original post wasn't a model of clarity in this respect, for which I apologise). Take a look at the sort of thing that's achievable using nothing but CSS styling over at the CSS Zen Garden. My goal here is to have our default theme consist of nothing more than a couple or three stylesheets and have our basic, unthemed output be structurally sound enough that the majority of themes can do the same. At the very least we need to make sure that our unthemed output (including the core sidebars, which means I need to take a look at the Amazon contoller) is fully compliant with XHTML Strict. > I'm lost. > > Is it just me? Could be ;) > > I readily agree that something needs to be firmed out though because > I'd put money on the fact that nearly every theme in the contest > would be broken in trunk now. Well, if it uses sidebars, it's broken. And if it wants to use at least one of the plugins (can't remember which one) that needs a particular javascript included in the header, it's doubly broken. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Fri Apr 14 11:02:26 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 14 Apr 2006 16:02:26 +0100 Subject: [typo] Towards 4.0.0 In-Reply-To: <20060414123441.GA13923@diaspora.gen.nz> (Rodger Donaldson's message of "Sat, 15 Apr 2006 00:34:41 +1200") References: <m23bh0qqrn.fsf@obelisk.bofh.org.uk> <20060330192720.GA27468@diaspora.gen.nz> <m2u09f8e6i.fsf@obelisk.bofh.org.uk> <20060414123441.GA13923@diaspora.gen.nz> Message-ID: <m2mzeournh.fsf@obelisk.bofh.org.uk> Rodger Donaldson <rodgerd at diaspora.gen.nz> writes: > On Fri, Mar 31, 2006 at 04:51:17AM +0100, Piers Cawley wrote: >> Rodger Donaldson <rodgerd at diaspora.gen.nz> writes: >> >> > On Thu, Mar 30, 2006 at 09:29:48AM +0100, Piers Cawley wrote: >> >> >> >> Again, I'm interested in everyone's input, but I'm particularly keen >> >> to hear from anyone still running 2.6.0. >> > >> > Last time I tried a rake migrate on my test box it was a disaster >> > area; I'm quite happy to do a dump of my prod 2.6 DB into a dev DB and >> > redo if that will provide useful debugging. >> >> That would be handy. We're rather more confident of the migration >> routes now that we use BareMigrations. Essentially, all the migrations >> are now protected from changes in our model classes. > > Sure. [walkthrough of a failed upgrade elided] > Ack. So, I guess the DownloadCurrent page needs to note the > dependency on rails 1.1 and/or rake 0.7. It's too late to upgrade all > of ruby tonight 8). Drat! So it does, I shall get that sorted. We definitely depend on Rails 1.1, but an SVN download should fetch the right version of Rails through the magic of svn:externals. Sadly, we can't quite do the same thing for Rake. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From scott at sigkill.org Fri Apr 14 14:26:00 2006 From: scott at sigkill.org (Scott Laird) Date: Fri, 14 Apr 2006 11:26:00 -0700 Subject: [typo] jabber_notify.rb error In-Reply-To: <01C6E412-2B3C-4770-9475-0E6CED9822D6@trypticon.org> References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <200604141337.50703.trejkaz@trypticon.org> <m2vetcydyo.fsf@obelisk.bofh.org.uk> <200604141750.31297.trejkaz@trypticon.org> <m2vetcuu4s.fsf@obelisk.bofh.org.uk> <01C6E412-2B3C-4770-9475-0E6CED9822D6@trypticon.org> Message-ID: <14b7e5ef0604141126k307255aao1ca13893e0739961@mail.gmail.com> Er, then we have an old version. The current one is BSD. Scott On 4/14/06, Trejkaz <trejkaz at trypticon.org> wrote:> -----BEGIN PGP SIGNED MESSAGE-----> Hash: SHA1>>> On 15/04/2006, at 00:08 AM, Piers Cawley wrote:>> > Trejkaz <trejkaz at trypticon.org> writes:> >> >> On Friday 14 April 2006 14:32, Piers Cawley wrote:> >>> I just checked, and there's a licensing problem with XMPP4R as well,> >>> which means we can't include it in the Typo distribution without> >>> changing Typo's license, which I'm not prepared to do. And I'm not> >>> prepared to add an external dependency either.> >>> >> XMPP4R is released under the Ruby licence. I take it that Typo, a> >> project> >> written in Ruby itself, is incompatible with the Ruby licence.> >> Nice bit of> >> irony right there.> >> > Ah... according to the RAA page I looked at, it was GPL> > licensed. However, on further investigation I see you're right. Oops.>> Actually, on the subject of the GPL, what about bluecloth? vendor/> bluecloth/LICENCE is GPL2.>> TX>> -----BEGIN PGP SIGNATURE-----> Version: GnuPG v1.4.2.2 (Darwin)>> iD8DBQFEP7JCuMe8iwN+6nMRAhwCAJ4+ulXUOAE1sdVO2gLl41yMdBGbOQCfUIYG> th5LJ4PLzPVuGgEKBR+KkWY=> =vCm+> -----END PGP SIGNATURE-----> _______________________________________________> Typo-list mailing list> Typo-list at rubyforge.org> http://rubyforge.org/mailman/listinfo/typo-list> From pdcawley at bofh.org.uk Fri Apr 14 14:55:09 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 14 Apr 2006 19:55:09 +0100 Subject: [typo] jabber_notify.rb error In-Reply-To: <200604141800.19811.trejkaz@trypticon.org> (trejkaz@trypticon.org's message of "Fri, 14 Apr 2006 18:00:17 +1000") References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <m2vetcydyo.fsf@obelisk.bofh.org.uk> <m2r740ydsl.fsf@obelisk.bofh.org.uk> <200604141800.19811.trejkaz@trypticon.org> Message-ID: <m2irpcugvm.fsf@obelisk.bofh.org.uk> Trejkaz <trejkaz at trypticon.org> writes: > On Friday 14 April 2006 14:35, Piers Cawley wrote: >> Piers Cawley <pdcawley at bofh.org.uk> writes: >> > extra understanding from the first, failed solution. As I've explained >> > in my blog[1], I'm not totally averse (but getting more averse by >> >> Oopsie. Forgot the footnote. Here it is: >> >> 1. http://www.bofh.org.uk/articles/2006/03/12/if-you-test-it-i-will-patch > > Just out of curiosity, how does one test a feature which by its very nature > requires contact with a server somewhere? Is there a common Jabber server > which unit tests might be able to connect to, which would always be present > in order to test something like Jabber notifications? Am I correct in remembering that Jabber's a peer to peer protocol? Presumably you can just fire up a client object in some sort of accept connections mode and use that as your jabber server. I'd also suggest looking at how the XMPP4R tests themselves do it. Essentially, you need to check that typo is sending the right stuff to the library, so you might be able to get away with stubbing the entire connection. > The same problem exists with mail notifications, naturally. > > One might say that you can stub the thing which sends the mail. That's pretty much what we do. > But if you also stubbed the thing which sends the instant message, > the existing notification for Jabber would seem to be working, > because the broken code is inside the method you would need to stub. That being a method in the library yes? Presumably the library we're planning on replacing jabber4r with comes with its own test suite? If so, we just trust that it will do the right thing given the right input. What we don't have at the moment are any tests to ensure that it *does* get given the right input. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From arvind at grovernetwork.com Fri Apr 14 15:07:37 2006 From: arvind at grovernetwork.com (arvind s grover) Date: Fri, 14 Apr 2006 15:07:37 -0400 Subject: [typo] Typo-list Digest, Vol 13, Issue 19 In-Reply-To: <mailman.12694.1144942605.17981.typo-list@rubyforge.org> References: <mailman.12694.1144942605.17981.typo-list@rubyforge.org> Message-ID: <EC8E2E16-54B4-45DE-BDC4-7699535655B3@grovernetwork.com> I use 2.6 and have been very happy with it. I am a little jealous of everyone using the trunk who gets the latest/greatest. Is it advisable to change my installation? If so, how would I go about it? I don't want to risk taking down my site and not being able to get it back up! I guess I would install it in another folder and than changed the pointer to that new pub folder once it was working. That seems right. But are there tools to help with the article/db migration? > Message: 5 > Date: Wed, 12 Apr 2006 13:03:55 -0500 > From: mathew <meta at pobox.com> > Subject: Re: [typo] Questions for a white paper involving a demo > install ofTypo > To: typo-list at rubyforge.org > Message-ID: <443D410B.5040302 at pobox.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Kevin Ballard wrote: > >> 2.6.0? eek, that's ooooold. >> > > 9 days old, to be precise, according to http://rubyforge.org/ > projects/typo/ > > It's also the most recent release. If the developers didn't want > people > using code that old, they'd make a newer release, wouldn't they? :-) > > > mathew From ziplux at comcast.net Fri Apr 14 15:27:19 2006 From: ziplux at comcast.net (Jared Luxenberg) Date: Fri, 14 Apr 2006 15:27:19 -0400 Subject: [typo] svn:externals (was Re: Towards 4.0.0) In-Reply-To: <m2mzeournh.fsf@obelisk.bofh.org.uk> References: <m23bh0qqrn.fsf@obelisk.bofh.org.uk> <20060330192720.GA27468@diaspora.gen.nz> <m2u09f8e6i.fsf@obelisk.bofh.org.uk> <20060414123441.GA13923@diaspora.gen.nz> <m2mzeournh.fsf@obelisk.bofh.org.uk> Message-ID: <443FF797.8010500@comcast.net> > Rails 1.1, but an SVN download should fetch the right version of Rails > through the magic of svn:externals. Sadly, we can't quite do the same > thing for Rake. Is there a way to make it not grab Rails 1.1 if I already have it installed? - Jared From meta at pobox.com Fri Apr 14 15:58:56 2006 From: meta at pobox.com (mathew) Date: Fri, 14 Apr 2006 14:58:56 -0500 Subject: [typo] jabber_notify.rb error In-Reply-To: <m2irpcugvm.fsf@obelisk.bofh.org.uk> References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <m2vetcydyo.fsf@obelisk.bofh.org.uk> <m2r740ydsl.fsf@obelisk.bofh.org.uk> <200604141800.19811.trejkaz@trypticon.org> <m2irpcugvm.fsf@obelisk.bofh.org.uk> Message-ID: <443FFF00.7010900@pobox.com> Piers Cawley wrote: > Am I correct in remembering that Jabber's a peer to peer protocol? > Not really. It's a hybrid protocol--while peer-to-peer connections are used for some functions, the core presence and messaging involves connections to a server. > Presumably you can just fire up a client object in some sort of accept > connections mode and use that as your jabber server. > Unfortunately, the Jabber protocol is somewhat baroque. The designers decided to make it use stream-based XML, instead of plain text like most other Internet handshaking protocols. This makes it hard to build a Jabber server (or client for that matter)--you can't use validating XML parsers, for example, because you need to be able to parse fragments that don't constitute a complete document with a DTD. It's about the second worst Internet protocol I've seen. (The worst is SyncML.) Anyhow, I think it's pretty funny to be rejecting code based on lack of tests, when there's an almost complete lack of documentation. mathew From meta at pobox.com Fri Apr 14 16:08:38 2006 From: meta at pobox.com (mathew) Date: Fri, 14 Apr 2006 15:08:38 -0500 Subject: [typo] Typo-list Digest, Vol 13, Issue 19 In-Reply-To: <EC8E2E16-54B4-45DE-BDC4-7699535655B3@grovernetwork.com> References: <mailman.12694.1144942605.17981.typo-list@rubyforge.org> <EC8E2E16-54B4-45DE-BDC4-7699535655B3@grovernetwork.com> Message-ID: <44400146.6040009@pobox.com> arvind s grover wrote: > I use 2.6 and have been very happy with it. I am a little jealous of > everyone using the trunk who gets the latest/greatest. Is it > advisable to change my installation? If so, how would I go about it? > I don't want to risk taking down my site and not being able to get it > back up! Well, my experience is that when my web host upgraded to Rails 1.1, typo 2.6 broke. When I tried to upgrade to trunk, rake migrate didn't work. I spent most of an afternoon comparing database schemas and patching things up by typing raw SQL commands and quick Ruby scripts. Judging from the number of times I've seen people report problems with migrate on this list since joining, I'm far from alone. If I hadn't been forced to upgrade, I'd have waited for the next stable release. Hopefully someone plans to test a full 2.6.0 to wha.te.ver migration without going via trunk. mathew From edavis10 at gmail.com Fri Apr 14 20:26:40 2006 From: edavis10 at gmail.com (Eric Davis) Date: Fri, 14 Apr 2006 17:26:40 -0700 Subject: [typo] svn:externals (was Re: Towards 4.0.0) In-Reply-To: <443FF797.8010500@comcast.net> References: <m23bh0qqrn.fsf@obelisk.bofh.org.uk> <20060330192720.GA27468@diaspora.gen.nz> <m2u09f8e6i.fsf@obelisk.bofh.org.uk> <20060414123441.GA13923@diaspora.gen.nz> <m2mzeournh.fsf@obelisk.bofh.org.uk> <443FF797.8010500@comcast.net> Message-ID: <44403DC0.10205@gmail.com> Jared Luxenberg wrote: > Is there a way to make it not grab Rails 1.1 if I already have it installed? ~$ svn [update|checkout|export|..] --ignore-externals ~$ svn help update [...] --ignore-externals : ignore externals definitions Is that what you needed? Eric Davis From trejkaz at trypticon.org Fri Apr 14 22:06:05 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Sat, 15 Apr 2006 12:06:05 +1000 Subject: [typo] Theme URL layout In-Reply-To: <7CD96DFD-31C6-4BE1-98AE-41EDA4B2A826@gmail.com> References: <93222FA3-D326-414F-85A0-2AC16EA50E8D@trypticon.org> <7CD96DFD-31C6-4BE1-98AE-41EDA4B2A826@gmail.com> Message-ID: <200604151206.09220.trejkaz@trypticon.org> On Saturday 15 April 2006 00:35, Gary Shewan wrote: > On 14 Apr 2006, at 15:17, Trejkaz wrote: > > For instance, I might want to use Azure but replace the images and > > colours, or just change some fonts. However, I don't necessarily > > want to edit the Azure theme myself because then new changes might > > not merge in as expected. Normally, I would do this sort of thing by > > having my own theme's CSS include from the appropriate other theme's > > CSS. However, the way the URL is currently laid out, there is no > > path to the stylesheets or images stored in the other themes. > > It's seriously easier to just copy the Azure folder, rename it and > hack it yourself. No it's not. Copying is a hassle. As soon as Azure updates something, I would have to figure out what changed and merge those changes in. However, if all I did was include Azure and then change the fonts, any changes to other things would follow through. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ 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: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060415/572045ad/attachment.bin From kevin at sb.org Fri Apr 14 22:17:42 2006 From: kevin at sb.org (Kevin Ballard) Date: Fri, 14 Apr 2006 19:17:42 -0700 Subject: [typo] Typo-list Digest, Vol 13, Issue 19 In-Reply-To: <44400146.6040009@pobox.com> References: <mailman.12694.1144942605.17981.typo-list@rubyforge.org> <EC8E2E16-54B4-45DE-BDC4-7699535655B3@grovernetwork.com> <44400146.6040009@pobox.com> Message-ID: <5B8A181A-1A89-4C51-AC30-8B3CE5FB9713@sb.org> It's possible rake migrate broke because Rails 1.1 wants Rake 0.7, and if you still had 0.6.2 it could cause problems. In any case, instead of hand-patching your database, which people I've heard have done that usually end up having problems later on down the road, I suggest you hop over to irc://irc.freenode.net/#typo (using your favorite IRC client) and talk to us about it. That said, AFAIK migrations should be working fine for everybody now, even on SQLite. On Apr 14, 2006, at 1:08 PM, mathew wrote: > Well, my experience is that when my web host upgraded to Rails 1.1, > typo > 2.6 broke. When I tried to upgrade to trunk, rake migrate didn't > work. I > spent most of an afternoon comparing database schemas and patching > things up by typing raw SQL commands and quick Ruby scripts. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060414/453b7e98/attachment.bin From kevin at sb.org Fri Apr 14 22:19:10 2006 From: kevin at sb.org (Kevin Ballard) Date: Fri, 14 Apr 2006 19:19:10 -0700 Subject: [typo] Typo-list Digest, Vol 13, Issue 19 In-Reply-To: <EC8E2E16-54B4-45DE-BDC4-7699535655B3@grovernetwork.com> References: <mailman.12694.1144942605.17981.typo-list@rubyforge.org> <EC8E2E16-54B4-45DE-BDC4-7699535655B3@grovernetwork.com> Message-ID: <82109472-B105-444B-92ED-2147C909542D@sb.org> On Apr 14, 2006, at 12:07 PM, arvind s grover wrote: > I use 2.6 and have been very happy with it. I am a little jealous of > everyone using the trunk who gets the latest/greatest. Is it > advisable to change my installation? If so, how would I go about it? > I don't want to risk taking down my site and not being able to get it > back up! I guess I would install it in another folder and than > changed the pointer to that new pub folder once it was working. That > seems right. When I update my site I generally just trust it's not popular enough to matter ;) That said, Capistrano (formerly Switchtower) is a tool that was designed specifically for modifying/updating sites cleanly. You might want to look into it. > But are there tools to help with the article/db migration? rake migrate Note that under a production environment you want rake migrate RAILS_ENV=production. That said, while trunk is cool and great, we're very close to a 4.0 release, so you may want to hold off until that's ready. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060414/9c575127/attachment-0001.bin From pdcawley at bofh.org.uk Sat Apr 15 00:49:46 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sat, 15 Apr 2006 05:49:46 +0100 Subject: [typo] jabber_notify.rb error In-Reply-To: <443FFF00.7010900@pobox.com> (mathew's message of "Fri, 14 Apr 2006 14:58:56 -0500") References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <m2vetcydyo.fsf@obelisk.bofh.org.uk> <m2r740ydsl.fsf@obelisk.bofh.org.uk> <200604141800.19811.trejkaz@trypticon.org> <m2irpcugvm.fsf@obelisk.bofh.org.uk> <443FFF00.7010900@pobox.com> Message-ID: <m2d5fjl9xx.fsf@obelisk.bofh.org.uk> mathew <meta at pobox.com> writes: > Anyhow, I think it's pretty funny to be rejecting code based on lack of > tests, when there's an almost complete lack of documentation. Huh? Join the non sequitur club, we may not make sense but we do like pizza! -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From peter at realityforge.org Sat Apr 15 02:50:44 2006 From: peter at realityforge.org (Peter Donald) Date: Sat, 15 Apr 2006 16:50:44 +1000 Subject: [typo] HTML structure In-Reply-To: <m2mzeoy9n4.fsf@obelisk.bofh.org.uk> References: <m2mzeoy9n4.fsf@obelisk.bofh.org.uk> Message-ID: <125c0c0d0604142350j6259f94eye353d00607b1d0c1@mail.gmail.com> Hi, On 4/14/06, Piers Cawley <pdcawley at bofh.org.uk> wrote: > So, I've been looking at Scribbish[1] and the CSS Zen Garden[2] and I > like what I see. In particular, I like the idea of the hAtom > microformat for our articles, and I really like the idea of making > sure we have a robust semantic structure for our core HTML. Every time > someone has to write rhtml in their themes I cringe slightly. ... That sounds like a great idea. However as part of this move it may be a good idea to pull in some of themes that have been created for typo into a subversion repo somewhere. That way they can be adapted for the new system as it progresses and we wouldn't be in situation now where the theme contest consists of themes that are now no longer compatible with trunk. I would be happy to help maintain the three themes that I use and I am sure other people would be willing to put work into maintaining themes if there was some central location to do it in. -- Cheers, Peter Donald From gpsnospam at gmail.com Sat Apr 15 06:27:52 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sat, 15 Apr 2006 11:27:52 +0100 Subject: [typo] HTML structure In-Reply-To: <m2r740urt1.fsf@obelisk.bofh.org.uk> References: <m2mzeoy9n4.fsf@obelisk.bofh.org.uk> <9E89A356-9002-4047-BFEA-B287BC4DEC30@gmail.com> <m2r740urt1.fsf@obelisk.bofh.org.uk> Message-ID: <0BB0798A-F9FD-42F4-858C-4659410FFBEC@gmail.com> On 14 Apr 2006, at 15:59, Piers Cawley wrote: >> I don't understand what you're getting at here ... at all. And I've >> tried. > > Bah! You obviously haven't tried hard enough! True > I want to stop every theme and its brother *having* to override > default.rhtml. It's a 'nice' feature, but we're definitely cracking > nuts with sledgehammers if we end up overriding default.rhtml just > because we want to change a stylesheet. > > If we have a default (rails) layout that goes something like: > > <!DOCTYPE html Blah Blah> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <%= render :partial => 'common/html_head' %> > </head> > <body id="<%= params[:controller].gsub('/', '-') %>"> > <div id="header"> > <%= render :partial => 'common/header' %> > </div> > <div id= "page"> > <div id="content"> > <%= yield %> > </div> > <div id="sidebar"> > <%= render :partial => 'common/sidebar' %> > </div> > <br style="clear:both;" /> > </div> > </div> > <div id="footer"> > <%= render :partial => 'common/footer' %> > </div> > </html> > > And make the various 'common/*' partials overrideable by the theme, > then we're already in the position that a theme designer can alter the > structure of the various divs without having to repeat a bunch of > boilerplate. The dawn of a new day brings clarity :) I can see the benefit of that, definitely. But is it not _almost_ like doing the same thing as overriding default.rhtml ... 'cept in separate files? For instance, let's say I need to place my own meta tags, a custom div and a custom footer. At the moment that all goes in the themes default.rhtml. So in the future I'd have to put the meta tags in 'common/header', and I want the custom div before the content so I'd normally place that just before the content is called in default.rhtml ... would I place that at the top of 'content'? (There would be a 'common/content'?) The custom work for the footer would then go into 'common/footer' - obviously :) Now that's not about CSS. I haven't even styled any changes yet. But is that right? >> I'm lost. >> >> Is it just me? Could be ;) >> >> I readily agree that something needs to be firmed out though because >> I'd put money on the fact that nearly every theme in the contest >> would be broken in trunk now. > > Well, if it uses sidebars, it's broken. And if it wants to use at > least one of the plugins (can't remember which one) that needs a > particular javascript included in the header, it's doubly broken. > So yeah ... pretty much every one. I smell a new contest after the release of 4.0 Gary From gpsnospam at gmail.com Sat Apr 15 06:32:01 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sat, 15 Apr 2006 11:32:01 +0100 Subject: [typo] Theme URL layout In-Reply-To: <200604151206.09220.trejkaz@trypticon.org> References: <93222FA3-D326-414F-85A0-2AC16EA50E8D@trypticon.org> <7CD96DFD-31C6-4BE1-98AE-41EDA4B2A826@gmail.com> <200604151206.09220.trejkaz@trypticon.org> Message-ID: <7351EC07-427C-459E-B360-9D21EEDDC301@gmail.com> On 15 Apr 2006, at 03:06, Trejkaz wrote: > On Saturday 15 April 2006 00:35, Gary Shewan wrote: > > No it's not. Copying is a hassle. As soon as Azure updates > something, I > would have to figure out what changed and merge those changes in. > > However, if all I did was include Azure and then change the fonts, > any changes > to other things would follow through. But like I said Terjkaz, people aren't going to structure themes just to save you hassle ... they'd be very, very nice people if they did but designers tend to be ... 'protective' of their work (only right as well). Nobody is going to put in the extra work required just to save somebody else hassle. It truly is easier in the long run to work out what's happening and make the changes yourself. Painful and frustrating at times, but easier in the long run. Gary From gpsnospam at gmail.com Sat Apr 15 06:33:30 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sat, 15 Apr 2006 11:33:30 +0100 Subject: [typo] HTML structure In-Reply-To: <125c0c0d0604142350j6259f94eye353d00607b1d0c1@mail.gmail.com> References: <m2mzeoy9n4.fsf@obelisk.bofh.org.uk> <125c0c0d0604142350j6259f94eye353d00607b1d0c1@mail.gmail.com> Message-ID: <6E30D87D-8444-4B50-B326-D11110AFFD88@gmail.com> On 15 Apr 2006, at 07:50, Peter Donald wrote: > I am sure other people would be willing to put work into > maintaining themes if there was some central location to do it in. > I think that's called typogarden.com ;) Gary From peter at realityforge.org Sat Apr 15 07:18:46 2006 From: peter at realityforge.org (Peter Donald) Date: Sat, 15 Apr 2006 21:18:46 +1000 Subject: [typo] HTML structure In-Reply-To: <6E30D87D-8444-4B50-B326-D11110AFFD88@gmail.com> References: <m2mzeoy9n4.fsf@obelisk.bofh.org.uk> <125c0c0d0604142350j6259f94eye353d00607b1d0c1@mail.gmail.com> <6E30D87D-8444-4B50-B326-D11110AFFD88@gmail.com> Message-ID: <125c0c0d0604150418i782d55cwe18ccce902ce50b7@mail.gmail.com> Hi, On 4/15/06, Gary Shewan <gpsnospam at gmail.com> wrote: > On 15 Apr 2006, at 07:50, Peter Donald wrote: > > I am sure other people would be willing to put work into > > maintaining themes if there was some central location to do it in. > > > I think that's called typogarden.com ;) As far as I can tell that is just an unordered list of pointers to themes that no longer work. I guess I was talking about a subversion repo that contained a set of themes that are maintained in concert with typo development. Each theme would list which version(s) of typo it is compatible with and that way when you wanted a theme that worked you could look at this repo. Something like typogarden may work when the theme API is stable but until now it is just going to frustrate people when they try and use it IMHO. -- Cheers, Peter Donald From trejkaz at trypticon.org Sat Apr 15 07:30:39 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Sat, 15 Apr 2006 21:30:39 +1000 Subject: [typo] Theme URL layout In-Reply-To: <7351EC07-427C-459E-B360-9D21EEDDC301@gmail.com> References: <93222FA3-D326-414F-85A0-2AC16EA50E8D@trypticon.org> <200604151206.09220.trejkaz@trypticon.org> <7351EC07-427C-459E-B360-9D21EEDDC301@gmail.com> Message-ID: <200604152130.42280.trejkaz@trypticon.org> On Saturday 15 April 2006 20:32, Gary Shewan wrote: > On 15 Apr 2006, at 03:06, Trejkaz wrote: > > On Saturday 15 April 2006 00:35, Gary Shewan wrote: > > > > No it's not. Copying is a hassle. As soon as Azure updates > > something, I > > would have to figure out what changed and merge those changes in. > > > > However, if all I did was include Azure and then change the fonts, > > any changes > > to other things would follow through. > > But like I said Terjkaz, people aren't going to structure themes just > to save you hassle ... they'd be very, very nice people if they did > but designers tend to be ... 'protective' of their work (only right > as well). Nobody is going to put in the extra work required just to > save somebody else hassle. If the designer is following good code layout for their CSS in the first place (i.e. layout in one file, fonts in another file, colours and images in another file) then they wouldn't need to put any further effort in. As I frequently say during my day job, a web designer who doesn't lay things out in a maintainable fashion is not a designer, but a mere artist. > It truly is easier in the long run to work out what's happening and > make the changes yourself. Painful and frustrating at times, but > easier in the long run. Disagreed. Anything which requires constant attention in the long run can't possibly be easier than something which doesn't. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ 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: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060415/564209eb/attachment.bin From gpsnospam at gmail.com Sat Apr 15 07:37:02 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sat, 15 Apr 2006 12:37:02 +0100 Subject: [typo] HTML structure In-Reply-To: <125c0c0d0604150418i782d55cwe18ccce902ce50b7@mail.gmail.com> References: <m2mzeoy9n4.fsf@obelisk.bofh.org.uk> <125c0c0d0604142350j6259f94eye353d00607b1d0c1@mail.gmail.com> <6E30D87D-8444-4B50-B326-D11110AFFD88@gmail.com> <125c0c0d0604150418i782d55cwe18ccce902ce50b7@mail.gmail.com> Message-ID: <340E44B7-4924-47DD-8340-4DC90E429D9C@gmail.com> On 15 Apr 2006, at 12:18, Peter Donald wrote: > > As far as I can tell that is just an unordered list of pointers to > themes that no longer work. I guess I was talking about a subversion > repo that contained a set of themes that are maintained in concert > with typo development. Each theme would list which version(s) of typo > it is compatible with and that way when you wanted a theme that worked > you could look at this repo. Something like typogarden may work when > the theme API is stable but until now it is just going to frustrate > people when they try and use it IMHO. I think there's going to be/is work going on to sort out those themes. It's very much needed as all those themes will be broken with Typo 4.0. But it might be a suggestion you could put to those behind Typogarden. It's a good point about a svn repository, but I can just imagine the 'discussion' over which themes would be included :) Especially as there were a few noses out of joint after the competition result. In an ideal world designers would be altering their themes to keep pace, but to be honest Typo can change so rapidly that it would be a bit of a chore. Azure keeps stable so I just watch for changes in that. Gary From gpsnospam at gmail.com Sat Apr 15 08:01:16 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sat, 15 Apr 2006 13:01:16 +0100 Subject: [typo] Theme URL layout In-Reply-To: <200604152130.42280.trejkaz@trypticon.org> References: <93222FA3-D326-414F-85A0-2AC16EA50E8D@trypticon.org> <200604151206.09220.trejkaz@trypticon.org> <7351EC07-427C-459E-B360-9D21EEDDC301@gmail.com> <200604152130.42280.trejkaz@trypticon.org> Message-ID: <14F1F85B-BD4E-4874-95A2-E609BD9F13A7@gmail.com> On 15 Apr 2006, at 12:30, Trejkaz wrote: > > If the designer is following good code layout for their CSS in the > first place > (i.e. layout in one file, fonts in another file, colours and images in > another file) then they wouldn't need to put any further effort > in. As I > frequently say during my day job, a web designer who doesn't lay > things out > in a maintainable fashion is not a designer, but a mere artist. An admirable standard to set yourself, but a lot don't. That's not going to change anytime soon. Everybody has their own way of doing things. > > Disagreed. Anything which requires constant attention in the long > run can't > possibly be easier than something which doesn't. I put in the work to understand what my theme does. A poor example - when Piers posted the sidebar solution it took me two seconds to replace it. If I couldn't be bothered to have done that initial work to understand what was going on, and relied on other people to put the work in then I wouldn't have a clue and it would have took me ages to try and fix the issue or ask someone else to do it. Which is where your idea comes in. But. Bottom line is that people aren't going to comply to your prospective standard just to make your life easier. Can't see it happening. From trejkaz at trypticon.org Sat Apr 15 10:40:40 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Sun, 16 Apr 2006 00:40:40 +1000 Subject: [typo] Theme URL layout In-Reply-To: <14F1F85B-BD4E-4874-95A2-E609BD9F13A7@gmail.com> References: <93222FA3-D326-414F-85A0-2AC16EA50E8D@trypticon.org> <200604152130.42280.trejkaz@trypticon.org> <14F1F85B-BD4E-4874-95A2-E609BD9F13A7@gmail.com> Message-ID: <200604160040.45119.trejkaz@trypticon.org> On Saturday 15 April 2006 22:01, Gary Shewan wrote: > Bottom line is that people aren't going to comply to your prospective > standard just to make your life easier. Can't see it happening. Let's take a simple example which has happened in the past. Typo goes and adds a new sidebar which requires some new style. Two things could happen here. Either: 1. Every theme becomes broken because they haven't yet added any code to explicitly handle this new sidebar. Or: 2. Every theme still works because they're all inheriting from the base theme which at least has a sensible default style. It doesn't take a degree in astrophysics to see which of these two scenarios is better, and it would take a pretty narrow mind to think that this is "just making my life easier." The fact of the matter is, it would make life easier for every theme designer, not to mention every end user. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ 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: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060416/22765ec3/attachment-0001.bin From meta at pobox.com Sat Apr 15 11:42:15 2006 From: meta at pobox.com (mathew) Date: Sat, 15 Apr 2006 10:42:15 -0500 Subject: [typo] jabber_notify.rb error In-Reply-To: <m2d5fjl9xx.fsf@obelisk.bofh.org.uk> References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <m2vetcydyo.fsf@obelisk.bofh.org.uk> <m2r740ydsl.fsf@obelisk.bofh.org.uk> <200604141800.19811.trejkaz@trypticon.org> <m2irpcugvm.fsf@obelisk.bofh.org.uk> <443FFF00.7010900@pobox.com> <m2d5fjl9xx.fsf@obelisk.bofh.org.uk> Message-ID: <3ADFFDFC-EDCD-403E-8B6C-217CB73AACBF@pobox.com> On Apr 14, 2006, at 23:49 , Piers Cawley wrote: > mathew <meta at pobox.com> writes: >> Anyhow, I think it's pretty funny to be rejecting code based on >> lack of >> tests, when there's an almost complete lack of documentation. > > Huh? Join the non sequitur club, we may not make sense but we do like > pizza! Documentation is as essential to good software as tests. mathew From terry.donaghe at gmail.com Sat Apr 15 12:15:40 2006 From: terry.donaghe at gmail.com (Terry Donaghe) Date: Sat, 15 Apr 2006 09:15:40 -0700 Subject: [typo] Amazon Sidebar Component Broken? Message-ID: <b68ab910604150915i75ad56b0gb4a0be997c46df95@mail.gmail.com> Hi, I'm trying to figure out how to use the Amazon Sidebar component. Is it currently broken? I've tried every sort of Amazon link I can think of and I never get anything on my sidebar dealing with Amazon. Is there a proper way to set up my URLs so that they'll work? Here's what I've been using: http://www.amazon.com/exec/obidos/ASIN/097669400X/donaghehomepa-20 and just http://www.amazon.com/exec/obidos/ASIN/097669400X/ Neither of these cause anything to show up on the sidebar. Thanks for any clues here! Terry -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060415/55c879a1/attachment.htm From terry.donaghe at gmail.com Sat Apr 15 12:46:44 2006 From: terry.donaghe at gmail.com (Terry Donaghe) Date: Sat, 15 Apr 2006 09:46:44 -0700 Subject: [typo] Amazon Sidebar Component Broken? In-Reply-To: <b68ab910604150915i75ad56b0gb4a0be997c46df95@mail.gmail.com> References: <b68ab910604150915i75ad56b0gb4a0be997c46df95@mail.gmail.com> Message-ID: <b68ab910604150946j1d015808jbed88990bda0ec76@mail.gmail.com> This is the line of code that's confusing me: asin_list = params[:contents].to_a.inject([]) { |acc, item| acc | item.whiteboard[:asins].to_a } When I set a breakpoint after this line, asin_list always contains nothing. params[:contents] contains a ton of stuff including the html contents of my blog. asin_list = params[:contents].to_a.inject([]) { |acc, item| acc} returns nothing asin_list = params[:contents].to_a.inject([]) { |acc, item| item } returns pretty much the same thing as params[:contents] Toward the end of the string returned by the last asin_list above, there's this: "whiteboard" =>{} So, it looks to me that something should be setting something into this whiteboard, maybe. If I look at: asin_list = params[:contents].to_a.inject([]) { |acc, item| item.whiteboard} I get {} Similarly asin_list = params[:contents].to_a.inject([]) { |acc, item| item.whiteboard.to_a } returns [] So, what's the whiteboard, and how does stuff get into it? Terry asin_list = params[:contents].to_a.inject([]) { |acc, item| item.whiteboard[:asins].to_a } On 4/15/06, Terry Donaghe <terry.donaghe at gmail.com> wrote: > > Hi, > > I'm trying to figure out how to use the Amazon Sidebar component. Is it > currently broken? I've tried every sort of Amazon link I can think of and I > never get anything on my sidebar dealing with Amazon. Is there a proper way > to set up my URLs so that they'll work? Here's what I've been using: > > http://www.amazon.com/exec/obidos/ASIN/097669400X/donaghehomepa-20 > and just > http://www.amazon.com/exec/obidos/ASIN/097669400X/ > > Neither of these cause anything to show up on the sidebar. > > Thanks for any clues here! > > Terry > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060415/3c873d73/attachment.htm From terry.donaghe at gmail.com Sat Apr 15 13:07:41 2006 From: terry.donaghe at gmail.com (Terry Donaghe) Date: Sat, 15 Apr 2006 10:07:41 -0700 Subject: [typo] Amazon Sidebar Component Broken? In-Reply-To: <b68ab910604150946j1d015808jbed88990bda0ec76@mail.gmail.com> References: <b68ab910604150915i75ad56b0gb4a0be997c46df95@mail.gmail.com> <b68ab910604150946j1d015808jbed88990bda0ec76@mail.gmail.com> Message-ID: <b68ab910604151007u1c71c832lffcbe43cb0533699@mail.gmail.com> Ok - I figured out how to make it work. The only way I could get it to work was to choose a blog text filter which included the Amazon post processing filter. The Amazon Controller for the text filter plugin adds the asin to the whiteboard. So, after setting that up, to include an Amazon URL, you put in your anchor tag like this: <a href="amazon:097669400X"> and it turns into: <a href="http://www.amazon.com/exec/obidos/ASIN/097669400X/scottstuff-20"> With your own associate ID at the end. This was extremely not straightfoward. D'oh! On 4/15/06, Terry Donaghe <terry.donaghe at gmail.com> wrote: > > This is the line of code that's confusing me: > > asin_list = params[:contents].to_a.inject([]) { |acc, item| acc | > item.whiteboard[:asins].to_a } > > When I set a breakpoint after this line, asin_list always contains > nothing. > > params[:contents] contains a ton of stuff including the html contents of > my blog. > > asin_list = params[:contents].to_a.inject([]) { |acc, item| acc} > returns nothing > > asin_list = params[:contents].to_a.inject([]) { |acc, item| item } > returns pretty much the same thing as params[:contents] > > Toward the end of the string returned by the last asin_list above, there's > this: "whiteboard" =>{} > So, it looks to me that something should be setting something into this > whiteboard, maybe. > > If I look at: > asin_list = params[:contents].to_a.inject([]) { |acc, item| > item.whiteboard } > I get {} > > Similarly > asin_list = params[:contents].to_a.inject([]) { |acc, item| > item.whiteboard.to_a } > returns [] > > So, what's the whiteboard, and how does stuff get into it? > > Terry > > > asin_list = params[:contents].to_a.inject([]) { |acc, item| > item.whiteboard[:asins].to_a } > > > On 4/15/06, Terry Donaghe <terry.donaghe at gmail.com> wrote: > > > > Hi, > > > > I'm trying to figure out how to use the Amazon Sidebar component. Is it > > currently broken? I've tried every sort of Amazon link I can think of and I > > never get anything on my sidebar dealing with Amazon. Is there a proper way > > to set up my URLs so that they'll work? Here's what I've been using: > > > > http://www.amazon.com/exec/obidos/ASIN/097669400X/donaghehomepa-20 > > and just > > http://www.amazon.com/exec/obidos/ASIN/097669400X/ > > > > Neither of these cause anything to show up on the sidebar. > > > > Thanks for any clues here! > > > > Terry > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060415/8ad9ed46/attachment.htm From mattrose at folkwolf.net Sat Apr 15 13:28:38 2006 From: mattrose at folkwolf.net (Matt Rose) Date: Sat, 15 Apr 2006 13:28:38 -0400 Subject: [typo] Controller stack got out of kilter! In-Reply-To: <BA362C10-7BCE-4FDA-8A6F-3CB31CF97108@folkwolf.net> References: <BA362C10-7BCE-4FDA-8A6F-3CB31CF97108@folkwolf.net> Message-ID: <B76AEF2E-BC0A-4969-AED5-C58438F26E6D@folkwolf.net> On 15-Apr-06, at 1:10 PM, Matt Rose wrote: > I'm getting the exact same problem with my custom sidebar that I > wrote. > I tried rebuilding the controller from scratch, but I'm still > getting that error. > > any time I try to activate just the bare bones of the controller, I > get that error. > Here's the controller, can anyone help? > > $ cat feedsucker_controller.rb > class Plugins::Sidebars::FeedSuckerController < > Sidebars::ComponentPlugin > def self.display_name > "FeedSucker" > end > > def self.description > "blahblah" > end > > def self.default_config > { 'feed' => 'http://folkwolf.net/xml/atom10/feed.xml', > 'count' => '10' } > end > > def configure > end > end > > From trejkaz at trypticon.org Sat Apr 15 23:01:39 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Sun, 16 Apr 2006 13:01:39 +1000 Subject: [typo] jabber_notify.rb error In-Reply-To: <3ADFFDFC-EDCD-403E-8B6C-217CB73AACBF@pobox.com> References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <m2d5fjl9xx.fsf@obelisk.bofh.org.uk> <3ADFFDFC-EDCD-403E-8B6C-217CB73AACBF@pobox.com> Message-ID: <200604161301.41954.trejkaz@trypticon.org> On Sunday 16 April 2006 01:42, mathew wrote: > On Apr 14, 2006, at 23:49 , Piers Cawley wrote: > > mathew <meta at pobox.com> writes: > >> Anyhow, I think it's pretty funny to be rejecting code based on > >> lack of > >> tests, when there's an almost complete lack of documentation. > > > > Huh? Join the non sequitur club, we may not make sense but we do like > > pizza! > > Documentation is as essential to good software as tests. Actually, it's probably more essential, because without documentation telling you how things are supposed to work, there's no way to write new tests. ;-) TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ 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: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060416/1240c2ac/attachment.bin From josh at hasmanythrough.com Sat Apr 15 23:05:47 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Sat, 15 Apr 2006 20:05:47 -0700 Subject: [typo] jabber_notify.rb error In-Reply-To: <200604161301.41954.trejkaz@trypticon.org> References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <m2d5fjl9xx.fsf@obelisk.bofh.org.uk> <3ADFFDFC-EDCD-403E-8B6C-217CB73AACBF@pobox.com> <200604161301.41954.trejkaz@trypticon.org> Message-ID: <B9860AB4-3F94-4121-8318-A211209BF786@hasmanythrough.com> On Apr 15, 2006, at 8:01 PM, Trejkaz wrote: > On Sunday 16 April 2006 01:42, mathew wrote: >> On Apr 14, 2006, at 23:49 , Piers Cawley wrote: >>> mathew <meta at pobox.com> writes: >>>> Anyhow, I think it's pretty funny to be rejecting code based on >>>> lack of >>>> tests, when there's an almost complete lack of documentation. >>> >>> Huh? Join the non sequitur club, we may not make sense but we do >>> like >>> pizza! >> >> Documentation is as essential to good software as tests. > > Actually, it's probably more essential, because without > documentation telling > you how things are supposed to work, there's no way to write new > tests. ;-) Unless you have convinced yourself that you don't need documentation because your code is so readable and you have lots of tests that show what your code is supposed to do. I don't buy it though. -- Josh Susser http://blog.hasmanythrough.com From kevin at sb.org Sat Apr 15 23:52:45 2006 From: kevin at sb.org (Kevin Ballard) Date: Sat, 15 Apr 2006 20:52:45 -0700 Subject: [typo] Theme URL layout In-Reply-To: <200604160040.45119.trejkaz@trypticon.org> References: <93222FA3-D326-414F-85A0-2AC16EA50E8D@trypticon.org> <200604152130.42280.trejkaz@trypticon.org> <14F1F85B-BD4E-4874-95A2-E609BD9F13A7@gmail.com> <200604160040.45119.trejkaz@trypticon.org> Message-ID: <35FDE4D1-A623-458F-828D-BD78EBE6E13D@sb.org> That example is flawed. Sidebars define their own default layout, which themes can override if they want. On Apr 15, 2006, at 7:40 AM, Trejkaz wrote: > Let's take a simple example which has happened in the past. Typo > goes and > adds a new sidebar which requires some new style. > > Two things could happen here. Either: > > 1. Every theme becomes broken because they haven't yet added any > code to > explicitly handle this new sidebar. Or: > > 2. Every theme still works because they're all inheriting from > the base > theme which at least has a sensible default style. > > It doesn't take a degree in astrophysics to see which of these two > scenarios > is better, and it would take a pretty narrow mind to think that > this is "just > making my life easier." The fact of the matter is, it would make > life easier > for every theme designer, not to mention every end user. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060415/ca5ca7b9/attachment-0001.bin From trejkaz at trypticon.org Sun Apr 16 00:39:57 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Sun, 16 Apr 2006 14:39:57 +1000 Subject: [typo] Theme URL layout In-Reply-To: <35FDE4D1-A623-458F-828D-BD78EBE6E13D@sb.org> References: <93222FA3-D326-414F-85A0-2AC16EA50E8D@trypticon.org> <200604160040.45119.trejkaz@trypticon.org> <35FDE4D1-A623-458F-828D-BD78EBE6E13D@sb.org> Message-ID: <200604161440.01415.trejkaz@trypticon.org> On Sunday 16 April 2006 13:52, Kevin Ballard wrote: > That example is flawed. Sidebars define their own default layout, > which themes can override if they want. That's not how I remember it being back when the tag sidebar was added and I needed to go and add a bunch of CSS to make it work. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ 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: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060416/ca2d688b/attachment.bin From pdcawley at bofh.org.uk Sun Apr 16 11:49:27 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 16 Apr 2006 16:49:27 +0100 Subject: [typo] HTML structure In-Reply-To: <0BB0798A-F9FD-42F4-858C-4659410FFBEC@gmail.com> (Gary Shewan's message of "Sat, 15 Apr 2006 11:27:52 +0100") References: <m2mzeoy9n4.fsf@obelisk.bofh.org.uk> <9E89A356-9002-4047-BFEA-B287BC4DEC30@gmail.com> <m2r740urt1.fsf@obelisk.bofh.org.uk> <0BB0798A-F9FD-42F4-858C-4659410FFBEC@gmail.com> Message-ID: <m2psjha5bs.fsf@obelisk.bofh.org.uk> Gary Shewan <gpsnospam at gmail.com> writes: > On 14 Apr 2006, at 15:59, Piers Cawley wrote: >>> I don't understand what you're getting at here ... at all. And I've >>> tried. >> >> Bah! You obviously haven't tried hard enough! > > True > >> I want to stop every theme and its brother *having* to override >> default.rhtml. It's a 'nice' feature, but we're definitely cracking >> nuts with sledgehammers if we end up overriding default.rhtml just >> because we want to change a stylesheet. [...] > The dawn of a new day brings clarity :) Mmm... clarity... I like clarity. > I can see the benefit of that, definitely. But is it not _almost_ > like doing the same thing as overriding default.rhtml ... 'cept in > separate files? For instance, let's say I need to place my own meta > tags, a custom div and a custom footer. At the moment that all goes > in the themes default.rhtml. So in the future I'd have to put the > meta tags in 'common/header', and I want the custom div before the > content so I'd normally place that just before the content is called > in default.rhtml ... would I place that at the top of 'content'? > (There would be a 'common/content'?) The custom work for the footer > would then go into 'common/footer' - obviously :) Now that's not > about CSS. I haven't even styled any changes yet. But is that > right? Well, yes, and no. The benefit of overriding your footer in common/_footer.rhtml[1] and your header stuff in common/_sidebar.rhtml etc is that you don't have to copy quite so much crap (that might change, but we hope not) just to make your changes. And we'll probably arrange things so that the default versions will default to include theme/_extra_headers.html and so, assuming you're not making a major structural change, you get to write a partial which *only* has stuff specific to your theme with, with no boiler plate. The aim of the game is to apply the Hollywood Principle[2] to themes. It works well for the rest of Rails, so we should be able to make it work for themes as well. >>> I'm lost. >>> >>> Is it just me? Could be ;) >>> >>> I readily agree that something needs to be firmed out though because >>> I'd put money on the fact that nearly every theme in the contest >>> would be broken in trunk now. >> >> Well, if it uses sidebars, it's broken. And if it wants to use at >> least one of the plugins (can't remember which one) that needs a >> particular javascript included in the header, it's doubly broken. >> > > So yeah ... pretty much every one. I smell a new contest after the > release of 4.0 Speaking as someone with the graphic design sense of a teeny tiny kitten, I'd quite like the chance to win a Macbook too. And if there *is* another competition, can we please try and avoid bitterness this time? 1. Partials have a leading _, it's a Rails thing, I'm not entirely sure I understand why. 2. Don't call us, we'll call you -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Sun Apr 16 11:52:51 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 16 Apr 2006 16:52:51 +0100 Subject: [typo] jabber_notify.rb error In-Reply-To: <3ADFFDFC-EDCD-403E-8B6C-217CB73AACBF@pobox.com> (mathew's message of "Sat, 15 Apr 2006 10:42:15 -0500") References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <m2vetcydyo.fsf@obelisk.bofh.org.uk> <m2r740ydsl.fsf@obelisk.bofh.org.uk> <200604141800.19811.trejkaz@trypticon.org> <m2irpcugvm.fsf@obelisk.bofh.org.uk> <443FFF00.7010900@pobox.com> <m2d5fjl9xx.fsf@obelisk.bofh.org.uk> <3ADFFDFC-EDCD-403E-8B6C-217CB73AACBF@pobox.com> Message-ID: <m2irp9a564.fsf@obelisk.bofh.org.uk> mathew <meta at pobox.com> writes: > On Apr 14, 2006, at 23:49 , Piers Cawley wrote: >> mathew <meta at pobox.com> writes: >>> Anyhow, I think it's pretty funny to be rejecting code based on >>> lack of >>> tests, when there's an almost complete lack of documentation. >> >> Huh? Join the non sequitur club, we may not make sense but we do like >> pizza! > > Documentation is as essential to good software as tests. Bollocks. I'd take good tests over good documentation any day of the week. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Sun Apr 16 11:58:11 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 16 Apr 2006 16:58:11 +0100 Subject: [typo] Controller stack got out of kilter! In-Reply-To: <B76AEF2E-BC0A-4969-AED5-C58438F26E6D@folkwolf.net> (Matt Rose's message of "Sat, 15 Apr 2006 13:28:38 -0400") References: <BA362C10-7BCE-4FDA-8A6F-3CB31CF97108@folkwolf.net> <B76AEF2E-BC0A-4969-AED5-C58438F26E6D@folkwolf.net> Message-ID: <m2ejzxa4x8.fsf@obelisk.bofh.org.uk> Matt Rose <mattrose at folkwolf.net> writes: > On 15-Apr-06, at 1:10 PM, Matt Rose wrote: > >> I'm getting the exact same problem with my custom sidebar that I >> wrote. >> I tried rebuilding the controller from scratch, but I'm still >> getting that error. >> >> any time I try to activate just the bare bones of the controller, I >> get that error. >> Here's the controller, can anyone help? Your configure.rhtml is broken. Check out any of the configure.rthml files associated with the distributed sidebars and you'll noticed that they're lacking a bunch of annoying boilerplate. Ditch the equivalent boilerplate in your configure.rhtml and all manner of things will be well. Or, wait 'til I upload my latest patch to the sidebar system and ditch your configure.rhtml entirely (don't worry if you don't wait, the changes I'm currently working on don't break backwards compatibility -- I *had* to make a backwards incompatible change to make things work with IE6, which doesn't like nested forms). -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From meta at pobox.com Sun Apr 16 12:15:49 2006 From: meta at pobox.com (mathew) Date: Sun, 16 Apr 2006 11:15:49 -0500 Subject: [typo] jabber_notify.rb error In-Reply-To: <m2irp9a564.fsf@obelisk.bofh.org.uk> References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <m2vetcydyo.fsf@obelisk.bofh.org.uk> <m2r740ydsl.fsf@obelisk.bofh.org.uk> <200604141800.19811.trejkaz@trypticon.org> <m2irpcugvm.fsf@obelisk.bofh.org.uk> <443FFF00.7010900@pobox.com> <m2d5fjl9xx.fsf@obelisk.bofh.org.uk> <3ADFFDFC-EDCD-403E-8B6C-217CB73AACBF@pobox.com> <m2irp9a564.fsf@obelisk.bofh.org.uk> Message-ID: <4CD11577-C888-4D2A-82B1-A3C530832EA5@pobox.com> On Apr 16, 2006, at 10:52 , Piers Cawley wrote: > mathew <meta at pobox.com> writes: >> Documentation is as essential to good software as tests. > > Bollocks. I'd take good tests over good documentation any day of the > week. Well you're wrong, and we've just had a clear example of why you're wrong discussed on the list. No amount of unit tests was ever going to tell people that render_component was deprecated, and that render_sidebar should be used instead. Hence, people used render_component to render sidebars in all those fancy competition themes, and they all broke. End result: poor typo reliability. Documentation is as essential as unit tests when you have APIs being used by people who aren't the developers of the API. Anyone who doesn't see that is a hack. mathew From pdcawley at bofh.org.uk Sun Apr 16 13:33:21 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 16 Apr 2006 18:33:21 +0100 Subject: [typo] jabber_notify.rb error In-Reply-To: <4CD11577-C888-4D2A-82B1-A3C530832EA5@pobox.com> (mathew's message of "Sun, 16 Apr 2006 11:15:49 -0500") References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <m2vetcydyo.fsf@obelisk.bofh.org.uk> <m2r740ydsl.fsf@obelisk.bofh.org.uk> <200604141800.19811.trejkaz@trypticon.org> <m2irpcugvm.fsf@obelisk.bofh.org.uk> <443FFF00.7010900@pobox.com> <m2d5fjl9xx.fsf@obelisk.bofh.org.uk> <3ADFFDFC-EDCD-403E-8B6C-217CB73AACBF@pobox.com> <m2irp9a564.fsf@obelisk.bofh.org.uk> <4CD11577-C888-4D2A-82B1-A3C530832EA5@pobox.com> Message-ID: <m27j5pa0im.fsf@obelisk.bofh.org.uk> mathew <meta at pobox.com> writes: > On Apr 16, 2006, at 10:52 , Piers Cawley wrote: >> mathew <meta at pobox.com> writes: >>> Documentation is as essential to good software as tests. >> >> Bollocks. I'd take good tests over good documentation any day of the >> week. > > Well you're wrong, and we've just had a clear example of why you're > wrong discussed on the list. Well, up to a point. Yes, our public APIs could do with being better documented (and as you'll notice from another thread on this list, I'm working on making the whole theming API a good deal more understandable/explainable than it is now and I've just written[1] the beginnings of some documentation of the upcoming new style sidebar API), but that doesn't make your original observation anything but a non sequitur. Give me a codebase with good tests and lousy documentation and I can write the documentation reasonably quickly. Give me a codebase with apparently excellent documentation and no tests and I will have very little confidence that it does what the docs say. Which is why I'm far more insistent about tests than I am about docs. > No amount of unit tests was ever going to tell people that > render_component was deprecated, and that render_sidebar should be > used instead. Hence, people used render_component to render sidebars > in all those fancy competition themes, and they all broke. I don't think the render_component version was even deprecated at the time of the competition. It should have been, because forcing theme designers to drop in boilerplate structural code like that is just asking for trouble. I only broke it relatively recently because I've been rejigging the sidebar structure to make it slightly less detestable[2]. I'm pretty sure that I mentioned that render_sidebar was the preferred way when I added it, both here and in the change log. > End result: poor typo reliability. > > Documentation is as essential as unit tests when you have APIs being > used by people who aren't the developers of the API. Anyone who > doesn't see that is a hack. Because calling your interlocutor a hack is *always* going to convince him you're right. 1. http://www.bofh.org.uk/articles/2006/04/16/write-your-own-typo-sidebar 2. detestable: incabable of being automatically tested -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Sun Apr 16 14:38:10 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 16 Apr 2006 19:38:10 +0100 Subject: [typo] New style Sidebar API Message-ID: <m2zmil8iy5.fsf@obelisk.bofh.org.uk> Right, I've just made my last big batch of changes in the sidebar subsystem for a while (modulo any bug fixes that crop up as a result of this) and thought I'd better give you the heads up on them. First of all, and I can't stress this enough, if your sidebar's configure.rhtml looks anything like this: <%= form_tag ... %> <!-- Buncha inputs and labels --> <%= end_form_tag %> <%= observe_form ... %> then you MUST at least get rid of the form_tag and observe_form parts of it. Nested forms break browsers. Ahem. You might prefer to get rid of your configure.rhtml altogether though. Here's archives_controller.rb before the API changes class Plugins::Sidebars::ArchivesController < Sidebars::ComponentPlugin def self.display_name "Archives" end def self.description 'Displays links to monthly archives' end def self.default_config {'count' => 10, 'show_count' => true} end def content ... end def configure end end And here it is after: class Plugins::Sidebars::ArchivesController < Sidebars::ComponentPlugin display_name 'Archives' description 'Displays links to monthly archives' setting :show_count => true, :label => 'Show article counts', :input_type => :checkbox setting :count, 10, :label => 'Number of Months' def content ... end end Actually, I lied, it doesn't have a 'display_name' declaration because Sidebars::ComponentPlugin does a much better job of working out the default display name. And here's its configure.rhtml after the changes: <!-- this space intentionally left blank --> That's right, it doesn't actually have one because the setting declarations give enough information for us to build the configuration div automatically. There's a few wrinkles if you need a text area, group of radio buttons or a 'select' menu, but there are good examples of all of those to be found in 'xml_controller.rb', 'flickr_controller.rb' and 'static_controller.rb'. Sidebars still aren't being tested, but I think it might be *possible* to test them now. I'm also planning on writing a sidebar generator to make the sidebar author's life even easier, but that's probably way over on the 'sometime' milestone. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From meta at pobox.com Mon Apr 17 00:41:33 2006 From: meta at pobox.com (mathew) Date: Sun, 16 Apr 2006 23:41:33 -0500 Subject: [typo] jabber_notify.rb error In-Reply-To: <m27j5pa0im.fsf@obelisk.bofh.org.uk> References: <190BB37E-4B61-4724-9C60-088ACE91657B@sudarkoff.com> <m2vetcydyo.fsf@obelisk.bofh.org.uk> <m2r740ydsl.fsf@obelisk.bofh.org.uk> <200604141800.19811.trejkaz@trypticon.org> <m2irpcugvm.fsf@obelisk.bofh.org.uk> <443FFF00.7010900@pobox.com> <m2d5fjl9xx.fsf@obelisk.bofh.org.uk> <3ADFFDFC-EDCD-403E-8B6C-217CB73AACBF@pobox.com> <m2irp9a564.fsf@obelisk.bofh.org.uk> <4CD11577-C888-4D2A-82B1-A3C530832EA5@pobox.com> <m27j5pa0im.fsf@obelisk.bofh.org.uk> Message-ID: <44431C7D.8000300@pobox.com> Piers Cawley wrote: > Give me a codebase with good tests and lousy > documentation and I can write the documentation reasonably > quickly. Yes, but you haven't. And until you do, you'll have a bad codebase, because the API's requirements and contracts will be undocumented. This in turn will mean people won't feel confident using the code. If you're lucky, all you get is few 3rd party plugins or themes. If you're unlucky, you'll get duplicate code and bloat. > Give me a codebase with apparently excellent documentation > and no tests and I will have very little confidence that it does what > the docs say. Which is why I didn't say documentation was an alternative to unit tests. I view both as necessary. I'd point out that you're the one taking an extreme position here, apparently saying that only one of them is. > I'm pretty sure that I mentioned that render_sidebar > was the preferred way when I added it, both here and in the change > log. > Need I mention that change logs and mailing list traffic are not documentation? > Because calling your interlocutor a hack is *always* going to convince > him you're right. > On Apr 16, 2006, at 10:52 , Piers Cawley wrote: > Bollocks. Thank you, Mr Pot. mathew From psyonic at gmail.com Mon Apr 17 14:09:00 2006 From: psyonic at gmail.com (Tyler Prete) Date: Mon, 17 Apr 2006 12:09:00 -0600 Subject: [typo] Typo as a Google Summer of Code project? Message-ID: <f888de400604171109y7ab13a17xd87ea4545472df4c@mail.gmail.com> I'm not exactly sure who the best person to send this idea to would be, so I am just sending it to this list. My apologies if it does not belong on here. Google just announced their 2006 Summer of Code, and they are looking for mentor organizations. I am going to apply, and I would really love to work on something Ruby-related, such as Typo, and I'm sure there are other people with the same attitude. I am not exactly sure of the rules for organizations, but I think it would at least be worth looking into. Here is the link to the Mentor FAQ: http://code.google.com/soc/mentorfaq.html Thanks, --Tyler Prete P.S. I see that as of today, Ruby Central has registered as an organization, and is looking for ideas and mentors. I'm not sure if Typo could/would want to go through them but it is an idea. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060417/cccc9df7/attachment-0001.htm From scott at sigkill.org Mon Apr 17 14:25:22 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 17 Apr 2006 11:25:22 -0700 Subject: [typo] Typo as a Google Summer of Code project? In-Reply-To: <f888de400604171109y7ab13a17xd87ea4545472df4c@mail.gmail.com> References: <f888de400604171109y7ab13a17xd87ea4545472df4c@mail.gmail.com> Message-ID: <14b7e5ef0604171125m74b070d6jb97aadba7446b8a2@mail.gmail.com> I can help with this, but I don't have a clue what the rules are fororganizations. I can ask around inside of Google if I need to. Atthe very least, the sponsoring organization needs to exist as a legalentity, because they get paid $500 per project that is completed. Worst-case, Google itself can sponsor the project and I can act as amentor. If anyone has any good project ideas that would be good for asummer's worth of programming, let me know. Although, frankly, I suspect that someone could start from scratch andre-implement all of Typo in less time then that :-). Scott On 4/17/06, Tyler Prete <psyonic at gmail.com> wrote:>> I'm not exactly sure who the best person to send this idea to would be, so I> am just sending it to this list. My apologies if it does not belong on> here. Google just announced their 2006 Summer of Code, and they are looking> for mentor organizations. I am going to apply, and I would really love to> work on something Ruby-related, such as Typo, and I'm sure there are other> people with the same attitude. I am not exactly sure of the rules for> organizations, but I think it would at least be worth looking into.>> Here is the link to the Mentor FAQ:> http://code.google.com/soc/mentorfaq.html>> Thanks,> --Tyler Prete>> P.S. I see that as of today, Ruby Central has registered as an> organization, and is looking for ideas and mentors. I'm not sure if Typo> could/would want to go through them but it is an idea.>> _______________________________________________> Typo-list mailing list> Typo-list at rubyforge.org> http://rubyforge.org/mailman/listinfo/typo-list>> From peter at realityforge.org Mon Apr 17 21:59:12 2006 From: peter at realityforge.org (Peter Donald) Date: Tue, 18 Apr 2006 11:59:12 +1000 Subject: [typo] Typo as a Google Summer of Code project? In-Reply-To: <14b7e5ef0604171125m74b070d6jb97aadba7446b8a2@mail.gmail.com> References: <f888de400604171109y7ab13a17xd87ea4545472df4c@mail.gmail.com> <14b7e5ef0604171125m74b070d6jb97aadba7446b8a2@mail.gmail.com> Message-ID: <125c0c0d0604171859t6724953by2efedaeb194d8a36@mail.gmail.com> Hi, I think you should check out the eligibility requirements for mentor organizations via the mentor faq at http://code.google.com/soc/mentorfaq.html#5 - As far as I am aware the organization need not be a non-profit or even an organization (an individual qualifies as a mentor organization). On 4/18/06, Scott Laird <scott at sigkill.org> wrote: > I can help with this, but I don't have a clue what the rules are fororganizations. I can ask around inside of Google if I need to. Atthe very least, the sponsoring organization needs to exist as a legalentity, because they get paid $500 per project that is completed. Worst-case, Google itself can sponsor the project and I can act as amentor. If anyone has any good project ideas that would be good for asummer's worth of programming, let me know. > Although, frankly, I suspect that someone could start from scratch andre-implement all of Typo in less time then that :-). -- Cheers, Peter Donald From david.tunoheavy at gmail.com Tue Apr 18 08:51:07 2006 From: david.tunoheavy at gmail.com (=?UTF-8?Q?David_Verd=C3=BA?=) Date: Tue, 18 Apr 2006 13:51:07 +0100 Subject: [typo] typo 2.6 cache incompatible with utf-8 contains Message-ID: <2b979f3c0604180551x10b6e000nd52f883c34ae1ac@mail.gmail.com> Hello, I?m using 2.6 stable version with Rails 1.0 attached. I insert utf-8 contains in some views and posts and it displays well but, when some view is stored into cache and I make some changes (add a comment, a post..), typo displays utf-8 special characterers bad, like if it were latin1 charset. When I clear cache, all is displayed perfectly in utf-8. Why is it happen? I?m using fastcgi and I've also tryed to put @headers["Content-Type"] = "text/html; charset=utf-8" into application controller with a before_filter. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060418/83ff7159/attachment.htm From kheon at comcast.net Wed Apr 19 18:05:13 2006 From: kheon at comcast.net (Kyle Heon) Date: Wed, 19 Apr 2006 18:05:13 -0400 Subject: [typo] uninitialized constant Sidebars::SidebarController Message-ID: <200604192205.k3JM5H9R022389@rubyforge.org> I'm in the process of pushing a new build of my site to TextDrive and after I'd moved all files and run rake migrate (with success) I fired up lighttpd w/FCGI. Site loaded but then when I clicked on any link things blew up. I was able to recreate this locally, via WEBrick in production mode. The error details are below: ---[production.log]--- ActionView::TemplateError (uninitialized constant Sidebars::SidebarController) on line #38 of themes/kyleheon/layouts/default.rhtml: 35: <!-- right --> 36: <div id="right"> 37: <%= render :partial => "shared/search" %> 38: <%= render_component(:controller => 'sidebars/sidebar', :action => 'display_plugins') %> 39: </div> 40: 41: <!-- center --> vendor/rails/activesupport/lib/active_support/dependencies.rb:100:in `const_missing' vendor/rails/activesupport/lib/active_support/inflector.rb:161:in `module_eval' vendor/rails/activesupport/lib/active_support/inflector.rb:161:in `module_eval' vendor/rails/activesupport/lib/active_support/inflector.rb:161:in `constantize' vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb :59:in `constantize' vendor/rails/actionpack/lib/action_controller/components.rb:143:in `component_class' vendor/rails/actionpack/lib/action_controller/components.rb:133:in `component_response' vendor/rails/actionpack/lib/action_controller/components.rb:108:in `render_component_as_string' vendor/rails/actionpack/lib/action_controller/components.rb:107:in `component_logging_with_unfiltered_options' lib/rails_patch/components.rb:10:in `component_logging' vendor/rails/actionpack/lib/action_controller/components.rb:107:in `render_component_as_string' vendor/rails/actionpack/lib/action_controller/components.rb:44:in `send' vendor/rails/actionpack/lib/action_controller/components.rb:44:in `render_component' #{RAILS_ROOT}/themes/kyleheon/layouts/default.rhtml:38:in `_run_rhtml__home_kyle_ror_typo_themes_kyleheon_layouts_default' vendor/rails/actionpack/lib/action_view/base.rb:314:in `send' vendor/rails/actionpack/lib/action_view/base.rb:314:in `compile_and_render_template' vendor/rails/actionpack/lib/action_view/base.rb:290:in `render_template' vendor/rails/actionpack/lib/action_view/base.rb:249:in `render_file' app/helpers/theme_helper.rb:24:in `render_file' app/helpers/theme_helper.rb:17:in `each' app/helpers/theme_helper.rb:17:in `render_file' vendor/rails/actionpack/lib/action_controller/layout.rb:249:in `render_without_benchmark' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in `render' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in `measure' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in `render' app/controllers/articles_controller.rb:63:in `rescue_action_in_public' vendor/rails/actionpack/lib/action_controller/rescue.rb:33:in `rescue_action' vendor/rails/actionpack/lib/action_controller/rescue.rb:108:in `perform_action' vendor/rails/actionpack/lib/action_controller/base.rb:381:in `send' vendor/rails/actionpack/lib/action_controller/base.rb:381:in `process_without_filters' vendor/rails/actionpack/lib/action_controller/filters.rb:377:in `process_without_session_management_support' vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in `process' vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' vendor/rails/railties/lib/webrick_server.rb:115:in `handle_dispatch' vendor/rails/railties/lib/webrick_server.rb:81: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' vendor/rails/railties/lib/webrick_server.rb:67:in `dispatch' vendor/rails/railties/lib/commands/servers/webrick.rb:59 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require' vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in `require' vendor/rails/railties/lib/commands/server.rb:30 script/server:3:in `require' script/server:3 ---[/production.log]--- I'm not sure what the problem is. I'm running off the Typo trunk (rev 1026) which has Rails frozen at rev 4231. Please help. Kyle Heon kheon at comcast.net www.kyleheon.com From steve.longdo at gmail.com Wed Apr 19 18:18:38 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Wed, 19 Apr 2006 17:18:38 -0500 Subject: [typo] uninitialized constant Sidebars::SidebarController In-Reply-To: <200604192205.k3JM5H9R022389@rubyforge.org> References: <200604192205.k3JM5H9R022389@rubyforge.org> Message-ID: <cc4e85f30604191518y643c4207q56633427f8e5be9b@mail.gmail.com> render_component was replaced by <%= render sidebars %> That should fix your problem. You may also want to clear out your sessions table. On 4/19/06, Kyle Heon <kheon at comcast.net> wrote: > > I'm in the process of pushing a new build of my site to TextDrive and > after > I'd moved all files and run rake migrate (with success) I fired up > lighttpd > w/FCGI. Site loaded but then when I clicked on any link things blew up. > > I was able to recreate this locally, via WEBrick in production mode. The > error details are below: > > ---[production.log]--- > ActionView::TemplateError (uninitialized constant > Sidebars::SidebarController) on line #38 of > themes/kyleheon/layouts/default.rhtml: > 35: <!-- right --> > 36: <div id="right"> > 37: <%= render :partial => "shared/search" %> > 38: <%= render_component(:controller => 'sidebars/sidebar', > :action => 'display_plugins') %> > 39: </div> > 40: > 41: <!-- center --> > > vendor/rails/activesupport/lib/active_support/dependencies.rb:100:in > `const_missing' > vendor/rails/activesupport/lib/active_support/inflector.rb:161:in > `module_eval' > vendor/rails/activesupport/lib/active_support/inflector.rb:161:in > `module_eval' > vendor/rails/activesupport/lib/active_support/inflector.rb:161:in > `constantize' > > > vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb > :59:in `constantize' > vendor/rails/actionpack/lib/action_controller/components.rb:143:in > `component_class' > vendor/rails/actionpack/lib/action_controller/components.rb:133:in > `component_response' > vendor/rails/actionpack/lib/action_controller/components.rb:108:in > `render_component_as_string' > vendor/rails/actionpack/lib/action_controller/components.rb:107:in > `component_logging_with_unfiltered_options' > lib/rails_patch/components.rb:10:in `component_logging' > vendor/rails/actionpack/lib/action_controller/components.rb:107:in > `render_component_as_string' > vendor/rails/actionpack/lib/action_controller/components.rb:44:in > `send' > vendor/rails/actionpack/lib/action_controller/components.rb:44:in > `render_component' > #{RAILS_ROOT}/themes/kyleheon/layouts/default.rhtml:38:in > `_run_rhtml__home_kyle_ror_typo_themes_kyleheon_layouts_default' > vendor/rails/actionpack/lib/action_view/base.rb:314:in `send' > vendor/rails/actionpack/lib/action_view/base.rb:314:in > `compile_and_render_template' > vendor/rails/actionpack/lib/action_view/base.rb:290:in > `render_template' > vendor/rails/actionpack/lib/action_view/base.rb:249:in `render_file' > app/helpers/theme_helper.rb:24:in `render_file' > app/helpers/theme_helper.rb:17:in `each' > app/helpers/theme_helper.rb:17:in `render_file' > vendor/rails/actionpack/lib/action_controller/layout.rb:249:in > `render_without_benchmark' > vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in > `render' > vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in > `measure' > vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in > `render' > app/controllers/articles_controller.rb:63:in `rescue_action_in_public' > vendor/rails/actionpack/lib/action_controller/rescue.rb:33:in > `rescue_action' > vendor/rails/actionpack/lib/action_controller/rescue.rb:108:in > `perform_action' > vendor/rails/actionpack/lib/action_controller/base.rb:381:in `send' > vendor/rails/actionpack/lib/action_controller/base.rb:381:in > `process_without_filters' > vendor/rails/actionpack/lib/action_controller/filters.rb:377:in > `process_without_session_management_support' > > vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in > `process' > vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' > vendor/rails/railties/lib/webrick_server.rb:115:in `handle_dispatch' > vendor/rails/railties/lib/webrick_server.rb:81: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' > vendor/rails/railties/lib/webrick_server.rb:67:in `dispatch' > vendor/rails/railties/lib/commands/servers/webrick.rb:59 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require__' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require' > vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in > `require' > vendor/rails/railties/lib/commands/server.rb:30 > script/server:3:in `require' > script/server:3 > ---[/production.log]--- > > I'm not sure what the problem is. I'm running off the Typo trunk (rev > 1026) > which has Rails frozen at rev 4231. > > Please help. > > Kyle Heon > kheon at comcast.net > www.kyleheon.com > > > > _______________________________________________ > 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/20060419/da99f376/attachment-0001.htm From pdcawley at bofh.org.uk Wed Apr 19 19:06:40 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Thu, 20 Apr 2006 00:06:40 +0100 Subject: [typo] uninitialized constant Sidebars::SidebarController In-Reply-To: <cc4e85f30604191518y643c4207q56633427f8e5be9b@mail.gmail.com> (Steve Longdo's message of "Wed, 19 Apr 2006 17:18:38 -0500") References: <200604192205.k3JM5H9R022389@rubyforge.org> <cc4e85f30604191518y643c4207q56633427f8e5be9b@mail.gmail.com> Message-ID: <m2k69lp3lr.fsf@obelisk.bofh.org.uk> "Steve Longdo" <steve.longdo at gmail.com> writes: > render_component was replaced by <%= render sidebars %> That should > fix your problem. You may also want to clear out your sessions > table. That's <%= render_sidebars %> -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From kheon at comcast.net Wed Apr 19 19:38:13 2006 From: kheon at comcast.net (Kyle Heon) Date: Wed, 19 Apr 2006 19:38:13 -0400 Subject: [typo] uninitialized constant Sidebars::SidebarController In-Reply-To: <m2k69lp3lr.fsf@obelisk.bofh.org.uk> Message-ID: <200604192338.k3JNcH9R008033@rubyforge.org> Phew, that was an easy fix. Thanks! Kyle Heon kheon at comcast.net www.kyleheon.com -----Original Message----- From: Piers Cawley [mailto:pdcawley at bofh.org.uk] Sent: Wednesday, April 19, 2006 7:07 PM To: typo-list at rubyforge.org Cc: kheon at comcast.net Subject: Re: [typo] uninitialized constant Sidebars::SidebarController "Steve Longdo" <steve.longdo at gmail.com> writes: > render_component was replaced by <%= render sidebars %> That should > fix your problem. You may also want to clear out your sessions table. That's <%= render_sidebars %> -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From steve.longdo at gmail.com Wed Apr 19 20:37:31 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Wed, 19 Apr 2006 19:37:31 -0500 Subject: [typo] uninitialized constant Sidebars::SidebarController In-Reply-To: <m2k69lp3lr.fsf@obelisk.bofh.org.uk> References: <200604192205.k3JM5H9R022389@rubyforge.org> <cc4e85f30604191518y643c4207q56633427f8e5be9b@mail.gmail.com> <m2k69lp3lr.fsf@obelisk.bofh.org.uk> Message-ID: <cc4e85f30604191737o2778bd76l7a2e7ccccf01229c@mail.gmail.com> Sorry about that, Typo and typos are killing me today :-) On 4/19/06, Piers Cawley <pdcawley at bofh.org.uk> wrote: > > "Steve Longdo" <steve.longdo at gmail.com> writes: > > > render_component was replaced by <%= render sidebars %> That should > > fix your problem. You may also want to clear out your sessions > > table. > > That's <%= render_sidebars %> > > -- > Piers Cawley <pdcawley at bofh.org.uk> > http://www.bofh.org.uk/ > _______________________________________________ > 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/20060419/924908ae/attachment.htm From kheon at comcast.net Wed Apr 19 20:40:48 2006 From: kheon at comcast.net (Kyle Heon) Date: Wed, 19 Apr 2006 20:40:48 -0400 Subject: [typo] New style Sidebar API In-Reply-To: <m2zmil8iy5.fsf@obelisk.bofh.org.uk> Message-ID: <200604200040.k3K0ep9R024657@rubyforge.org> This is cool. Seeing as how I'm struggling through creating my first sidebar, any chance someone more in the know can update components\sidebars\README with updated details on how to create a sidebar? Kyle Heon kheon at comcast.net www.kyleheon.com -----Original Message----- From: typo-list-bounces at rubyforge.org [mailto:typo-list-bounces at rubyforge.org] On Behalf Of Piers Cawley Sent: Sunday, April 16, 2006 2:38 PM To: typo-list at rubyforge.org Subject: [typo] New style Sidebar API Right, I've just made my last big batch of changes in the sidebar subsystem for a while (modulo any bug fixes that crop up as a result of this) and thought I'd better give you the heads up on them. First of all, and I can't stress this enough, if your sidebar's configure.rhtml looks anything like this: <%= form_tag ... %> <!-- Buncha inputs and labels --> <%= end_form_tag %> <%= observe_form ... %> then you MUST at least get rid of the form_tag and observe_form parts of it. Nested forms break browsers. Ahem. You might prefer to get rid of your configure.rhtml altogether though. Here's archives_controller.rb before the API changes class Plugins::Sidebars::ArchivesController < Sidebars::ComponentPlugin def self.display_name "Archives" end def self.description 'Displays links to monthly archives' end def self.default_config {'count' => 10, 'show_count' => true} end def content ... end def configure end end And here it is after: class Plugins::Sidebars::ArchivesController < Sidebars::ComponentPlugin display_name 'Archives' description 'Displays links to monthly archives' setting :show_count => true, :label => 'Show article counts', :input_type => :checkbox setting :count, 10, :label => 'Number of Months' def content ... end end Actually, I lied, it doesn't have a 'display_name' declaration because Sidebars::ComponentPlugin does a much better job of working out the default display name. And here's its configure.rhtml after the changes: <!-- this space intentionally left blank --> That's right, it doesn't actually have one because the setting declarations give enough information for us to build the configuration div automatically. There's a few wrinkles if you need a text area, group of radio buttons or a 'select' menu, but there are good examples of all of those to be found in 'xml_controller.rb', 'flickr_controller.rb' and 'static_controller.rb'. Sidebars still aren't being tested, but I think it might be *possible* to test them now. I'm also planning on writing a sidebar generator to make the sidebar author's life even easier, but that's probably way over on the 'sometime' milestone. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ _______________________________________________ Typo-list mailing list Typo-list at rubyforge.org http://rubyforge.org/mailman/listinfo/typo-list From meta at pobox.com Fri Apr 21 14:30:08 2006 From: meta at pobox.com (mathew) Date: Fri, 21 Apr 2006 13:30:08 -0500 Subject: [typo] Defaults not observed--where to look? Message-ID: <444924B0.60307@pobox.com> My "Allow comments" and "Allow pings" defaults are getting ignored. I have both set to yes in the preferences, but when I create a new post they default to no. Where should I start trying to track down the cause of the problem? mathew From phil at cryer.us Fri Apr 21 14:49:32 2006 From: phil at cryer.us (phil) Date: Fri, 21 Apr 2006 13:49:32 -0500 Subject: [typo] trying to access Admin/pages -> Application Error (rails) Message-ID: <e10f714db4e9b25debcea2d96fca4964@pepe.cryer.us> I have a user whose site works perfectly, save for when he tries to edit Pages within the Admin section, where he gets the "Application Error (rails)" error. production.log doesn't show any errors, nor does Apache. I've done rm -rf public/* to have it regen, but same issue. He's running SVN from a few weeks back, updating to the latest doesn't fix it either (did this on a clone of the DB -- so he's still running on the older code now). Where can I look to fix this? Or how can I turn on 'debug' to see what's breaking? Also I have my typo site running next to it (different code/port) on the same box and it doesn't have any issues currently. Thanks P -- http://fak3r.com - you dont have to kick it From steve.longdo at gmail.com Fri Apr 21 15:09:56 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Fri, 21 Apr 2006 14:09:56 -0500 Subject: [typo] Defaults not observed--where to look? In-Reply-To: <444924B0.60307@pobox.com> References: <444924B0.60307@pobox.com> Message-ID: <cc4e85f30604211209x3f93b4a5n55f1e59690176087@mail.gmail.com> This was fixed in r1025: http://www.typosphere.org/trac/changeset/1025 On 4/21/06, mathew <meta at pobox.com> wrote: > > My "Allow comments" and "Allow pings" defaults are getting ignored. I > have both set to yes in the preferences, but when I create a new post > they default to no. > > Where should I start trying to track down the cause of the problem? > > > > mathew > _______________________________________________ > 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/20060421/ce2ad47a/attachment.htm From ssmith at fiveruns.com Fri Apr 21 15:37:11 2006 From: ssmith at fiveruns.com (Steven Smith) Date: Fri, 21 Apr 2006 14:37:11 -0500 Subject: [typo] trying to access Admin/pages -> Application Error (rails) In-Reply-To: <e10f714db4e9b25debcea2d96fca4964@pepe.cryer.us> References: <e10f714db4e9b25debcea2d96fca4964@pepe.cryer.us> Message-ID: <A65EC96C-2B53-451E-B962-C665E8778205@fiveruns.com> You might try removing any session files or the session db table. On Apr 21, 2006, at 1:49 PM, phil wrote: > I have a user whose site works perfectly, save for when he tries to > edit Pages within the Admin section, where he gets the "Application > Error (rails)" error. production.log doesn't show any errors, nor > does Apache. I've done rm -rf public/* to have it regen, but same > issue. He's running SVN from a few weeks back, updating to the > latest doesn't fix it either (did this on a clone of the DB -- so > he's still running on the older code now). Where can I look to fix > this? Or how can I turn on 'debug' to see what's breaking? > > Also I have my typo site running next to it (different code/port) > on the same box and it doesn't have any issues currently. > > Thanks > > P > -- > http://fak3r.com - you dont have to kick it > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From m at mongers.org Fri Apr 21 18:26:35 2006 From: m at mongers.org (Morten Liebach) Date: Sat, 22 Apr 2006 00:26:35 +0200 Subject: [typo] jabber_notify.rb error In-Reply-To: <44431C7D.8000300@pobox.com> References: <m2r740ydsl.fsf@obelisk.bofh.org.uk> <200604141800.19811.trejkaz@trypticon.org> <m2irpcugvm.fsf@obelisk.bofh.org.uk> <443FFF00.7010900@pobox.com> <m2d5fjl9xx.fsf@obelisk.bofh.org.uk> <3ADFFDFC-EDCD-403E-8B6C-217CB73AACBF@pobox.com> <m2irp9a564.fsf@obelisk.bofh.org.uk> <4CD11577-C888-4D2A-82B1-A3C530832EA5@pobox.com> <m27j5pa0im.fsf@obelisk.bofh.org.uk> <44431C7D.8000300@pobox.com> Message-ID: <20060421222635.GB8046@mongers.org> On 2006-04-16 23:41:33 -0500, mathew wrote: [snippety-snip] > Need I mention that change logs and mailing list traffic are not > documentation? On the subject of change logs; where's the commit message mailinglist for Typo? I haven't been able to find it, and I actually like to follow that kind of list, if it's there. Have a nice day Morten -- http://m.mongers.org/weblog/ From kheon at comcast.net Fri Apr 21 19:14:18 2006 From: kheon at comcast.net (Kyle Heon) Date: Fri, 21 Apr 2006 19:14:18 -0400 Subject: [typo] Rendering sidebars individually? Message-ID: <200604212314.k3LNEd9R008098@rubyforge.org> Is it possible to render individual components? I want to call different sidebars on different pages. Currently I've added logic to the view to show only when the action matches permalink. Basically what I want is to have a set of sidebars (category, search, static) show up on all pages except for the article detail (permalink). On that one I want to hide the others and show a custom sidebar (that displays meta data for the article). Any thoughts? Kyle Heon kheon at comcast.net www.kyleheon.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060421/728c9e1e/attachment.htm From kevin at sb.org Fri Apr 21 21:28:35 2006 From: kevin at sb.org (Kevin Ballard) Date: Fri, 21 Apr 2006 18:28:35 -0700 Subject: [typo] jabber_notify.rb error In-Reply-To: <20060421222635.GB8046@mongers.org> References: <m2r740ydsl.fsf@obelisk.bofh.org.uk> <200604141800.19811.trejkaz@trypticon.org> <m2irpcugvm.fsf@obelisk.bofh.org.uk> <443FFF00.7010900@pobox.com> <m2d5fjl9xx.fsf@obelisk.bofh.org.uk> <3ADFFDFC-EDCD-403E-8B6C-217CB73AACBF@pobox.com> <m2irp9a564.fsf@obelisk.bofh.org.uk> <4CD11577-C888-4D2A-82B1-A3C530832EA5@pobox.com> <m27j5pa0im.fsf@obelisk.bofh.org.uk> <44431C7D.8000300@pobox.com> <20060421222635.GB8046@mongers.org> Message-ID: <0CDA53B0-B4E8-45CC-81AA-7BD9809A51DA@sb.org> No mailing list, but you can get an RSS feed from Trac: http://typosphere.org/trac/timeline? changeset=on&max=50&daysback=90&format=rss On Apr 21, 2006, at 3:26 PM, Morten Liebach wrote: > On the subject of change logs; where's the commit message mailinglist > for Typo? > > I haven't been able to find it, and I actually like to follow that > kind > of list, if it's there. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060421/7e336698/attachment-0001.bin From chanezon at gmail.com Sat Apr 22 03:08:47 2006 From: chanezon at gmail.com (Patrick Chanezon) Date: Sat, 22 Apr 2006 00:08:47 -0700 Subject: [typo] Typo as a Google Summer of Code project? In-Reply-To: <ae6d32170604212355v7ac3d4f8tf9534b6d064d2bd8@mail.gmail.com> References: <f888de400604171109y7ab13a17xd87ea4545472df4c@mail.gmail.com> <ae6d32170604212355v7ac3d4f8tf9534b6d064d2bd8@mail.gmail.com> Message-ID: <ae6d32170604220008o4728919fl91e15eda9cf72e6c@mail.gmail.com> resending after resubscribing in typo-list with my gmail address. On 4/21/06, Patrick Chanezon <chanezon at gmail.com> wrote: > > Hi Tyler, > I'd be delighted to see some work done on Typo (this is the engine I use > for my blog). > I think it would be easier if you applied through rubycentral. > It would be good to have all the summer of code ruby projects gathered by > rubycentral. > > David Black created a page to gather proposals, you should add yours > there. > http://www.rubycentral.org/soc2006/ > > P@ > > On 4/17/06, Tyler Prete <psyonic at gmail.com> wrote: > > > I'm not exactly sure who the best person to send this idea to would be, > so I am just sending it to this list. My apologies if it does not belong on > here. Google just announced their 2006 Summer of Code, and they are looking > for mentor organizations. I am going to apply, and I would really love to > work on something Ruby-related, such as Typo, and I'm sure there are other > people with the same attitude. I am not exactly sure of the rules for > organizations, but I think it would at least be worth looking into. > > Here is the link to the Mentor FAQ: > http://code.google.com/soc/mentorfaq.html > > Thanks, > --Tyler Prete > > P.S. I see that as of today, Ruby Central has registered as an > organization, and is looking for ideas and mentors. I'm not sure if Typo > could/would want to go through them but it is an idea. > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > > > -- > Patrick Chanezon, AdWords API evangelist > http://blog.chanezon.com/ > http://www.google.com/apis/adwords/ > -- Patrick Chanezon, AdWords API evangelist http://blog.chanezon.com/ http://www.google.com/apis/adwords/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060422/b2c20fcb/attachment.htm From uzair at nairang.org Sat Apr 22 11:05:20 2006 From: uzair at nairang.org (Syed Uzair Aqeel) Date: Sat, 22 Apr 2006 16:05:20 +0100 Subject: [typo] Timezones Message-ID: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> Y'know, it'd be nice if I could specify a time offset in the admin interface so that my blog lived in the same timezone as me. I host with DreamHost, which is currently in PDT, whereas I'm in the UK. I know blog clients like Ecto (http://ecto.kung-foo.tv) allow one to set an offset, but I normally use either the Admin interface or the Performancing extension (http://performancing.com/) to post, and neither of those have a similar option. (To be fair, if you're not doing a 'Quick Post' one can adjust the time of publishing manually in the Admin interface, but it's tedious doing this for each blog entry). I suspect this would be a fairly simple fix, so I'll try throwing my creaky Ruby skillz at it. Uzair From meta at pobox.com Sat Apr 22 12:06:27 2006 From: meta at pobox.com (mathew) Date: Sat, 22 Apr 2006 11:06:27 -0500 Subject: [typo] Timezones In-Reply-To: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> References: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> Message-ID: <444A5483.5060300@pobox.com> Syed Uzair Aqeel wrote: > Y'know, it'd be nice if I could specify a time offset in the admin interface > so that my blog lived in the same timezone as me. I host with DreamHost, > which is currently in PDT, whereas I'm in the UK. I know blog clients like > Ecto (http://ecto.kung-foo.tv) allow one to set an offset, but I normally > use either the Admin interface or the Performancing extension > (http://performancing.com/) to post, and neither of those have a similar > option. (To be fair, if you're not doing a 'Quick Post' one can adjust the > time of publishing manually in the Admin interface, but it's tedious doing > this for each blog entry). > > I suspect this would be a fairly simple fix, so I'll try throwing my creaky > Ruby skillz at it. It's a lot less simple than it looks, because the underlying database doesn't have any time zone information, at least if you use the standard schemas provided. I've written calendar software, so I'm acutely aware of how many pitfalls there are. Suppose you start with a simple admin preference for time zone. So, now you know the user's time zone is -0600. Now you're faced with the problem of what to actually store in the database. Initially, you leave the code as is. The time and date for creation and modification are added by Rails, in the server's time zone. You simply adjust it to/from the user's time zone for web pages and forms, by using the preference time zone, and the server's time zone. Then you think: what if your web host has a problem or raises its prices, and you move to a different host? Or what happens when you move to a different time zone? Suddenly all the dates and times for stuff posted before you move will apparently change, relative to things posted after you move. You'll have to run through the entire database, changing the date and time stamps from the old server's time zone to the new server's time zone. Or if you move, you'll need to compute the difference between your old time zone and the server's time zone, compare that to the difference between your new time zone and the server's time zone, and use the difference between *those* values to process all your existing data. OK, that's not good. So, what if you use the preference to adjust the time on the form, but then store the adjusted time, in the user's time zone at the time of the posting? Time on form looks right, time on web page looks right, even if you change hosts or move. End of problem yes? Well, sorta. When you move the time stamps remain the same, but all you've really done is hide the problem--now there's a discontinuity in what they *mean*. The web site will be showing dates and times in time zone A before your move date, and in time zone B after your move date. Depending on how often you move, this could get very confusing. So you think a bit, and decide to store the date and time in a single time zone for all eternity. The obvious choice is UTC. You adjust times to and from UTC, based on the preference set in the admin interface. Move to a new time zone? Data's still all valid, just change the preference and every page of the web site snaps to the new time zone. Great. Then autumn arrives, and you drop out of Daylight Saving Time. Oops. Your post at 6pm in July now looks like you posted it at 5pm. So you decide the right thing to do is to adjust automatically for DST. How hard can that be, eh? The answer is, pretty damn hard. Take my case, for example. My data set goes back to 1987. Before 1997 I was in the UK, and during that time the UK set its DST changeover dates by Act of Parliament, so they were different from year to year. Then I moved to the US, for a different set of DST changeover dates. Then the US passed a law changing its DST as of next year. Luckily I didn't live in parts of Indiana, or there would have been times of my life when I didn't observe DST at all. (As it was, when I imported my data I passed each date/time stamp through an algorithm that worked out missing time zones based on my personal history.) So, to adjust UTC times in the database for DST, you need a general mechanism for specifying start date and end date of DST for all years for which there is data, as the dates change from year to year. If you've read this far, you may now understand why I modified the schema I use to actually record the time zone for each entry. This at least means my existing data remains intact, and new entries get timestamped with enough information to let me locate them in time in the future. All I need now is a way to use that information when generating the pages... The other option, of course, is to store *and display* everything in UTC. I gave that some serious consideration too, but didn't run with it as it would have required that I make code changes to typo--whereas changing the schema "just works" because of the magic of Rails. So before you start hacking code, I'd suggest that you think about the fact that (as I've explained above) UTC for storage and display is the only really viable option, assuming (a) you want time stamps to have consistent meaning on all pages of the site, (b) you don't want to reprocess your entire data set periodically, (c) you don't want to store time zone offsets in the database, and (d) you don't want to deal with the complexities of manual DST adjustment. When I'm elected supreme ruler of the world, I will do away with time zones and DST, and everyone will use UTC everywhere, on pain of imprisonment. Until then, good luck. mathew From uzair at nairang.org Sat Apr 22 12:42:14 2006 From: uzair at nairang.org (Syed Uzair Aqeel) Date: Sat, 22 Apr 2006 17:42:14 +0100 Subject: [typo] Timezones In-Reply-To: <444A5483.5060300@pobox.com> Message-ID: <20060422164217.7E64318537A@randymail-a3.dreamhost.com> Ahem, I hope you don't get elected any time soon then. I regularly shuttle between 4 timezones, and UTC would have me perpetually confused :) > OK, that's not good. So, what if you use the preference to adjust the > time on the form, but then store the adjusted time, in the user's time > zone at the time of the posting? Time on form looks right, time on web > page looks right, even if you change hosts or move. End of problem yes? > > Well, sorta. When you move the time stamps remain the same, but all > you've really done is hide the problem--now there's a discontinuity in > what they *mean*. The web site will be showing dates and times in time > zone A before your move date, and in time zone B after your move date. > Depending on how often you move, this could get very confusing. I don't think I've fully understood what you meant with the 'discontinuity in what they mean' bit, but I think this would be a generally acceptable scheme. If I'm not in my regular timezone, I certainly don't want the displayed timestamps for all my old posts to be recomputed in terms of my current timezone. I just want the next post to have the right timestamp with respect to where I am right now. Perhaps you can explain what you meant? As a compromise, how about storing time in UTC and the offset in use when the entry was posted? Or, more acceptable, the timezone code, eg. CST/EST/PDT. Also, an aside: one could use Date.GetTimezoneOffset() to figure out which timezone the user is writing from. I wouldn't be in favour of this myself, since it wouldn't be transparent. Cheers, Uzair From gpsnospam at gmail.com Sun Apr 23 06:27:00 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sun, 23 Apr 2006 11:27:00 +0100 Subject: [typo] Timezones In-Reply-To: <20060422164217.7E64318537A@randymail-a3.dreamhost.com> References: <20060422164217.7E64318537A@randymail-a3.dreamhost.com> Message-ID: <D5BD9610-E3FB-4F16-9D50-B362BEDA9AC6@gmail.com> On 22 Apr 2006, at 17:42, Syed Uzair Aqeel wrote: > > As a compromise, how about storing time in UTC and the offset in > use when > the entry was posted? Or, more acceptable, the timezone code, eg. > CST/EST/PDT. You should write a userstory about this on the wiki Syed. It certainly seems trickier than I would have guessed. It's a legacy issue because Typo was originally conceived to only work with the likes of Ecto and Marsedit ... and eh, the Windows equivalents. The admin interface was a later addition. Gary From pdcawley at bofh.org.uk Sun Apr 23 14:38:16 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 23 Apr 2006 19:38:16 +0100 Subject: [typo] Timezones In-Reply-To: <20060422164217.7E64318537A@randymail-a3.dreamhost.com> (Syed Uzair Aqeel's message of "Sat, 22 Apr 2006 17:42:14 +0100") References: <20060422164217.7E64318537A@randymail-a3.dreamhost.com> Message-ID: <m1zmicp27b.fsf@obelisk.bofh.org.uk> "Syed Uzair Aqeel" <uzair at nairang.org> writes: > As a compromise, how about storing time in UTC and the offset in use when > the entry was posted? Or, more acceptable, the timezone code, eg. > CST/EST/PDT. Time's a minefield and Timzone codes doubly so. It turns out they're not unique. One of Perl's wins is the work that Dave Rolsky did on the DateTime library (to the extent that every time I work with dates in Ruby I find myself wishing someone had ported DateTime). I'm all for stashing everything in GMT though. However, it's not something I'm going to lose any sleep over fixing; I'm happy enough with our delta based time reporting for comments and the likes. So long as articles are displayed in chronological order I'm pretty happy. Your mileage may vary of course, so patches are welcome. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From george at sudarkoff.com Sun Apr 23 15:08:59 2006 From: george at sudarkoff.com (George Sudarkoff) Date: Sun, 23 Apr 2006 12:08:59 -0700 Subject: [typo] Timezones In-Reply-To: <m1zmicp27b.fsf@obelisk.bofh.org.uk> References: <20060422164217.7E64318537A@randymail-a3.dreamhost.com> <m1zmicp27b.fsf@obelisk.bofh.org.uk> Message-ID: <a1527a090604231208o1069d49auc7b6ef021bb77dd0@mail.gmail.com> Storing time in UTC and not storing anything else makes perfect sence (to me) for two reasons. First, because UTC never changes. Second, because if we want to be really smart about it, we should display the time in the time zone of the _reader_. But really, as it's all oh so badly messed up in our heads (if you have relatives or friends you call often on the other side of the planet, you know what I'm talking about), as far as the relative order of articles and comments is preserved nothing else really matters all that much. On 4/23/06, Piers Cawley <pdcawley at bofh.org.uk> wrote: > > "Syed Uzair Aqeel" <uzair at nairang.org> writes: > > As a compromise, how about storing time in UTC and the offset in use > when > > the entry was posted? Or, more acceptable, the timezone code, eg. > > CST/EST/PDT. > > Time's a minefield and Timzone codes doubly so. It turns out they're > not unique. One of Perl's wins is the work that Dave Rolsky did on > the DateTime library (to the extent that every time I work with dates > in Ruby I find myself wishing someone had ported DateTime). I'm all > for stashing everything in GMT though. > > However, it's not something I'm going to lose any sleep over fixing; > I'm happy enough with our delta based time reporting for comments and > the likes. So long as articles are displayed in chronological order > I'm pretty happy. Your mileage may vary of course, so patches are welcome. > > -- > Piers Cawley <pdcawley at bofh.org.uk> > http://www.bofh.org.uk/ > _______________________________________________ > 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/20060423/dd8a71c2/attachment-0001.htm From trejkaz at trypticon.org Mon Apr 24 07:23:00 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Mon, 24 Apr 2006 21:23:00 +1000 Subject: [typo] Timezones In-Reply-To: <444A5483.5060300@pobox.com> References: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> <444A5483.5060300@pobox.com> Message-ID: <200604242123.02968.trejkaz@trypticon.org> On Sunday 23 April 2006 02:06, mathew wrote: > Suppose you start with a simple admin preference for time zone. So, now > you know the user's time zone is -0600. Now you're faced with the > problem of what to actually store in the database. You would store all times in UTC no matter what, so that when the user changes timezone, the application doesn't have to change every single database entry. No problem. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ 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: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060424/7326ffb2/attachment.bin From mail at paulhart.ca Mon Apr 24 09:43:27 2006 From: mail at paulhart.ca (Paul Hart) Date: Mon, 24 Apr 2006 09:43:27 -0400 Subject: [typo] Validations on Sidebars Message-ID: <444CD5FF.1000705@paulhart.ca> All, In my opinion, it would be very helpful if sidebars had the ability to perform validations on the admin side. I mentioned this to Piers on his website, and have now created a UserStory to go along with it: http://www.typosphere.org/trac/ticket/830 From the perspective of building a friendly blogging system, it would make sense to build in some sanity-checking where applicable. Comments anyone? I'd be keen on doing this myself, but I'm not sure how in-flux the sidebar code still is, and I don't really have any free cycles at the moment :( Paul From meta at pobox.com Mon Apr 24 11:01:12 2006 From: meta at pobox.com (mathew) Date: Mon, 24 Apr 2006 10:01:12 -0500 Subject: [typo] Timezones In-Reply-To: <200604242123.02968.trejkaz@trypticon.org> References: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> <444A5483.5060300@pobox.com> <200604242123.02968.trejkaz@trypticon.org> Message-ID: <444CE838.1030501@pobox.com> Trejkaz wrote: > On Sunday 23 April 2006 02:06, mathew wrote: > >> Suppose you start with a simple admin preference for time zone. So, now >> you know the user's time zone is -0600. Now you're faced with the >> problem of what to actually store in the database. >> > > You would store all times in UTC no matter what, so that when the user changes > timezone, the application doesn't have to change every single database entry. > No problem. Read the rest of the e-mail, where I consider that possibility and point out the problems it has. mathew From pdcawley at bofh.org.uk Mon Apr 24 12:24:48 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 24 Apr 2006 17:24:48 +0100 Subject: [typo] Timezones In-Reply-To: <444A5483.5060300@pobox.com> (mathew's message of "Sat, 22 Apr 2006 11:06:27 -0500") References: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> <444A5483.5060300@pobox.com> Message-ID: <m1y7xvosa7.fsf@obelisk.bofh.org.uk> mathew <meta at pobox.com> writes: > [a long explanation of why times and dates are hard] As soon as someone ports perl's DateTime[1] (which solves all mathew's issues and more; mathew forgot to mention leap seconds, time deltas where daylight savings is switching over and, oh, a bunch of other stuff) I'll happily switch to using it for Typo's dates. Until that happy day, I'll live with stashing everything as GMT (which may well not be what we do now, but patches welcome) and displaying with simple time deltas. 1. http://datetime.perl.org/ -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From malavoi at gmail.com Mon Apr 24 13:13:02 2006 From: malavoi at gmail.com (Bolo) Date: Mon, 24 Apr 2006 13:13:02 -0400 Subject: [typo] Wordpress Mu Message-ID: <5fa283580604241013i2c02e563sc63a25403760353a@mail.gmail.com> Hello all, i would like to know if with typo we can do something similar to that http://mu.wordpress.org/ thanks u -- http://www.blogdemoi.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060424/9b955fd1/attachment.htm From meta at pobox.com Mon Apr 24 13:56:39 2006 From: meta at pobox.com (mathew) Date: Mon, 24 Apr 2006 12:56:39 -0500 Subject: [typo] Timezones In-Reply-To: <m1y7xvosa7.fsf@obelisk.bofh.org.uk> References: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> <444A5483.5060300@pobox.com> <m1y7xvosa7.fsf@obelisk.bofh.org.uk> Message-ID: <444D1157.6010609@pobox.com> FWIW, I agree that storing everything as UTC is the best option in the immediate future. As I mentioned, I'd have taken that route myself, if it hadn't required code changes. mathew From scott at sigkill.org Mon Apr 24 14:02:57 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 24 Apr 2006 11:02:57 -0700 Subject: [typo] Timezones In-Reply-To: <444D1157.6010609@pobox.com> References: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> <444A5483.5060300@pobox.com> <m1y7xvosa7.fsf@obelisk.bofh.org.uk> <444D1157.6010609@pobox.com> Message-ID: <14b7e5ef0604241102p1770e5c1w55f72e4f10c5088@mail.gmail.com> Shouldn't running dispatch.fcgi with TZ=UTC solve this without code changes? Scott On 4/24/06, mathew <meta at pobox.com> wrote:> FWIW, I agree that storing everything as UTC is the best option in the> immediate future.>> As I mentioned, I'd have taken that route myself, if it hadn't required> code changes.>>> mathew> _______________________________________________> Typo-list mailing list> Typo-list at rubyforge.org> http://rubyforge.org/mailman/listinfo/typo-list> From mattrose at folkwolf.net Mon Apr 24 18:23:09 2006 From: mattrose at folkwolf.net (Matt Rose) Date: Mon, 24 Apr 2006 18:23:09 -0400 Subject: [typo] Wordpress Mu In-Reply-To: <5fa283580604241013i2c02e563sc63a25403760353a@mail.gmail.com> References: <5fa283580604241013i2c02e563sc63a25403760353a@mail.gmail.com> Message-ID: <D0ABE09F-A631-4D8A-83B2-D3AD7BB25CD1@folkwolf.net> I know it's on the roadmap for typo. I don't know if it has a specific time-frame or even version yet. I wouldn't mind working on this myself. Some of the database model is already in place, but I don't know how far along it is. Piers is probably the best person to ask On 24-Apr-06, at 1:13 PM, Bolo wrote: > Hello all, > > i would like to know if with typo we can do something similar to that > http://mu.wordpress.org/ > > thanks u > > -- > http://www.blogdemoi.com/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From marcus at tablesturned.com Mon Apr 24 18:35:02 2006 From: marcus at tablesturned.com (marcus estes) Date: Mon, 24 Apr 2006 15:35:02 -0700 Subject: [typo] Wordpress Mu In-Reply-To: <D0ABE09F-A631-4D8A-83B2-D3AD7BB25CD1@folkwolf.net> References: <5fa283580604241013i2c02e563sc63a25403760353a@mail.gmail.com> <D0ABE09F-A631-4D8A-83B2-D3AD7BB25CD1@folkwolf.net> Message-ID: <addf46cb0604241535q7601c5dcj9b22d863b112cc2f@mail.gmail.com> Lyceum may provide a better database model to emulate: http://lyceum.ibiblio.org/ marcus On 4/24/06, Matt Rose <mattrose at folkwolf.net> wrote: > > I know it's on the roadmap for typo. I don't know if it has a > specific time-frame or even version yet. I wouldn't mind working on > this myself. Some of the database model is already in place, but I > don't know how far along it is. Piers is probably the best person to > ask > > On 24-Apr-06, at 1:13 PM, Bolo wrote: > > > Hello all, > > > > i would like to know if with typo we can do something similar to that > > http://mu.wordpress.org/ > > > > thanks u > > > > -- > > http://www.blogdemoi.com/ > > _______________________________________________ > > 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 meta at pobox.com Mon Apr 24 19:24:43 2006 From: meta at pobox.com (mathew) Date: Mon, 24 Apr 2006 18:24:43 -0500 Subject: [typo] Timezones In-Reply-To: <14b7e5ef0604241102p1770e5c1w55f72e4f10c5088@mail.gmail.com> References: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> <444A5483.5060300@pobox.com> <m1y7xvosa7.fsf@obelisk.bofh.org.uk> <444D1157.6010609@pobox.com> <14b7e5ef0604241102p1770e5c1w55f72e4f10c5088@mail.gmail.com> Message-ID: <444D5E3B.1030401@pobox.com> Scott Laird wrote: > Shouldn't running dispatch.fcgi with TZ=UTC solve this without code changes? > You're right, at least as far as storing the data. So that just leaves the idea of having an admin preference for how to adjust UTC for display... mathew [ Why didn't I think of that? ] From trejkaz at trypticon.org Mon Apr 24 23:20:19 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Tue, 25 Apr 2006 13:20:19 +1000 Subject: [typo] Timezones In-Reply-To: <444CE838.1030501@pobox.com> References: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> <200604242123.02968.trejkaz@trypticon.org> <444CE838.1030501@pobox.com> Message-ID: <200604251320.21824.trejkaz@trypticon.org> On Tuesday 25 April 2006 01:01, mathew wrote: > Read the rest of the e-mail, where I consider that possibility and point > out the problems it has. There is a sum total of one problem with storing times in UTC, and that is the question of what to do when a single user posts from multiple timezones. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ 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: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060425/4a64f937/attachment.bin From meta at pobox.com Mon Apr 24 23:46:47 2006 From: meta at pobox.com (mathew) Date: Mon, 24 Apr 2006 22:46:47 -0500 Subject: [typo] Timezones In-Reply-To: <200604251320.21824.trejkaz@trypticon.org> References: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> <200604242123.02968.trejkaz@trypticon.org> <444CE838.1030501@pobox.com> <200604251320.21824.trejkaz@trypticon.org> Message-ID: <444D9BA7.20802@pobox.com> Trejkaz wrote: > On Tuesday 25 April 2006 01:01, mathew wrote: > >> Read the rest of the e-mail, where I consider that possibility and point >> out the problems it has. >> > > There is a sum total of one problem with storing times in UTC, and that is the > question of what to do when a single user posts from multiple timezones. No, that's not a problem. The problem is how to display the information. Generally speaking, you want it to be in a time zone that makes sense to users, which means you need user preferences. Even if you default to a specific time zone, you still have the issue of DST; see previous discussion. (Unless you're someone like me, in which case you'll happily put the info in ISO 8601 format in UTC and let the users learn to like it.) mathew From scott at sigkill.org Tue Apr 25 00:55:04 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 24 Apr 2006 21:55:04 -0700 Subject: [typo] Timezones In-Reply-To: <444D9BA7.20802@pobox.com> References: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> <200604242123.02968.trejkaz@trypticon.org> <444CE838.1030501@pobox.com> <200604251320.21824.trejkaz@trypticon.org> <444D9BA7.20802@pobox.com> Message-ID: <14b7e5ef0604242155k64625facgcd54abd24b094911@mail.gmail.com> On 4/24/06, mathew <meta at pobox.com> wrote:> Trejkaz wrote:> > On Tuesday 25 April 2006 01:01, mathew wrote:> >> >> Read the rest of the e-mail, where I consider that possibility and point> >> out the problems it has.> >>> >> > There is a sum total of one problem with storing times in UTC, and that is the> > question of what to do when a single user posts from multiple timezones.>> No, that's not a problem. The problem is how to display the information.> Generally speaking, you want it to be in a time zone that makes sense to> users, which means you need user preferences. Even if you default to a> specific time zone, you still have the issue of DST; see previous> discussion.>> (Unless you're someone like me, in which case you'll happily put the> info in ISO 8601 format in UTC and let the users learn to like it.) Or we could put it into the HTML is UTC and let the Javascriptreformat it to local time for readers. Oh, wait--don't we already dothat? Scott From uzair at nairang.org Tue Apr 25 06:29:30 2006 From: uzair at nairang.org (uzair at nairang.org) Date: Tue, 25 Apr 2006 03:29:30 -0700 (PDT) Subject: [typo] Timezones In-Reply-To: <444D5E3B.1030401@pobox.com> References: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> <444A5483.5060300@pobox.com> <m1y7xvosa7.fsf@obelisk.bofh.org.uk> <444D1157.6010609@pobox.com> <14b7e5ef0604241102p1770e5c1w55f72e4f10c5088@mail.gmail.com> <444D5E3B.1030401@pobox.com> Message-ID: <13748.139.149.1.203.1145960970.squirrel@readme.nairang.org> I really like this -- unfortunately it didn't seem to work when I tried it with WEBrick. I'm going to give it another go tonight. I did: 1. Kill lighttpd 2. export TZ=UTC (I run bash) 3. Start lighttpd Does that sound right? Thanks, Uzair > Scott Laird wrote: >> Shouldn't running dispatch.fcgi with TZ=UTC solve this without code >> changes? >> > > You're right, at least as far as storing the data. So that just leaves > the idea of having an admin preference for how to adjust UTC for > display... > > > mathew > [ Why didn't I think of that? ] > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From uzair at nairang.org Tue Apr 25 06:32:46 2006 From: uzair at nairang.org (uzair at nairang.org) Date: Tue, 25 Apr 2006 03:32:46 -0700 (PDT) Subject: [typo] Timezones In-Reply-To: <13748.139.149.1.203.1145960970.squirrel@readme.nairang.org> References: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> <444A5483.5060300@pobox.com> <m1y7xvosa7.fsf@obelisk.bofh.org.uk> <444D1157.6010609@pobox.com> <14b7e5ef0604241102p1770e5c1w55f72e4f10c5088@mail.gmail.com> <444D5E3B.1030401@pobox.com> <13748.139.149.1.203.1145960970.squirrel@readme.nairang.org> Message-ID: <18597.139.149.1.203.1145961166.squirrel@readme.nairang.org> Bah, I meant "I'm going to do"...anyway, that's pretty much what I did with WEBrick this morning (except I didn't already have an instance running). U. > I really like this -- unfortunately it didn't seem to work when I tried it > with WEBrick. I'm going to give it another go tonight. I did: > > 1. Kill lighttpd > 2. export TZ=UTC (I run bash) > 3. Start lighttpd > > Does that sound right? > > Thanks, > > Uzair > >> Scott Laird wrote: >>> Shouldn't running dispatch.fcgi with TZ=UTC solve this without code >>> changes? >>> >> >> You're right, at least as far as storing the data. So that just leaves >> the idea of having an admin preference for how to adjust UTC for >> display... >> >> >> mathew >> [ Why didn't I think of that? ] >> _______________________________________________ >> Typo-list mailing list >> Typo-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> > > From malavoi at gmail.com Tue Apr 25 06:50:13 2006 From: malavoi at gmail.com (Bolo) Date: Tue, 25 Apr 2006 06:50:13 -0400 Subject: [typo] Wordpress Mu In-Reply-To: <addf46cb0604241535q7601c5dcj9b22d863b112cc2f@mail.gmail.com> References: <5fa283580604241013i2c02e563sc63a25403760353a@mail.gmail.com> <D0ABE09F-A631-4D8A-83B2-D3AD7BB25CD1@folkwolf.net> <addf46cb0604241535q7601c5dcj9b22d863b112cc2f@mail.gmail.com> Message-ID: <5fa283580604250350jfabd23aw2ed9dbcbb2512ce3@mail.gmail.com> why it's better , can u explaine me ? 2006/4/24, marcus estes <marcus at tablesturned.com>: > > Lyceum may provide a better database model to emulate: > http://lyceum.ibiblio.org/ > > marcus > > On 4/24/06, Matt Rose <mattrose at folkwolf.net> wrote: > > > > I know it's on the roadmap for typo. I don't know if it has a > > specific time-frame or even version yet. I wouldn't mind working on > > this myself. Some of the database model is already in place, but I > > don't know how far along it is. Piers is probably the best person to > > ask > > > > On 24-Apr-06, at 1:13 PM, Bolo wrote: > > > > > Hello all, > > > > > > i would like to know if with typo we can do something similar to that > > > http://mu.wordpress.org/ > > > > > > thanks u > > > > > > -- > > > http://www.blogdemoi.com/ > > > _______________________________________________ > > > 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 > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- http://www.blogdemoi.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060425/20c73ade/attachment.htm From meta at pobox.com Tue Apr 25 14:20:38 2006 From: meta at pobox.com (mathew) Date: Tue, 25 Apr 2006 13:20:38 -0500 Subject: [typo] Timezones In-Reply-To: <14b7e5ef0604242155k64625facgcd54abd24b094911@mail.gmail.com> References: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> <200604242123.02968.trejkaz@trypticon.org> <444CE838.1030501@pobox.com> <200604251320.21824.trejkaz@trypticon.org> <444D9BA7.20802@pobox.com> <14b7e5ef0604242155k64625facgcd54abd24b094911@mail.gmail.com> Message-ID: <444E6876.4000903@pobox.com> Scott Laird wrote: > Or we could put it into the HTML is UTC and let the Javascriptreformat it to local time for readers. Oh, wait--don't we already dothat? Not on my version of trunk. I get the data stored as local-to-the-server time in the database, and reported in the server time zone on pages. mathew From codeblogger at gmail.com Tue Apr 25 14:56:06 2006 From: codeblogger at gmail.com (Codeblogger) Date: Tue, 25 Apr 2006 20:56:06 +0200 Subject: [typo] Timezones In-Reply-To: <444D1157.6010609@pobox.com> References: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> <444A5483.5060300@pobox.com> <m1y7xvosa7.fsf@obelisk.bofh.org.uk> <444D1157.6010609@pobox.com> Message-ID: <1a3b35960604251156s5d7fcbbcy1f692a78a309007a@mail.gmail.com> 2006/4/24, mathew <meta at pobox.com>: > > FWIW, I agree that storing everything as UTC is the best option in the > immediate future. > > Gnah, precise time is overrated. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060425/a99281fb/attachment.htm From pdcawley at bofh.org.uk Tue Apr 25 15:19:08 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 25 Apr 2006 20:19:08 +0100 Subject: [typo] XML renderings... Message-ID: <m18xptpioj.fsf@obelisk.bofh.org.uk> So, on another project, I've been playing with 'respond_to'[1] and it's *lovely*. I am seriously considering rejigging things so that our index type pages in articles_controller will all be responsible for generating rendering feeds and make the xml_controller simply act as a redirect to the new /articles based urls. Thoughts? 1. http://www.loudthinking.com/arc/000572.html -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From scott at sigkill.org Tue Apr 25 15:29:47 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 25 Apr 2006 12:29:47 -0700 Subject: [typo] XML renderings... In-Reply-To: <m18xptpioj.fsf@obelisk.bofh.org.uk> References: <m18xptpioj.fsf@obelisk.bofh.org.uk> Message-ID: <14b7e5ef0604251229n1a811156jf4c7a9aeb141f57@mail.gmail.com> I'm kind of conflicted on this one. The respond_to code is reallynice, I'm using it on a little toy that I wrote for work a coupleweeks ago. On the other hand, I hate changing URLs, and moving feedsis a pain in the neck. On the gripping hand, the basic code really*is* the same--select a bunch on content, and then render it. So I guess I can say that I can see arguments either way. Pick yourfavorite :-). Scott On 4/25/06, Piers Cawley <pdcawley at bofh.org.uk> wrote:> So, on another project, I've been playing with 'respond_to'[1] and it's> *lovely*. I am seriously considering rejigging things so that our> index type pages in articles_controller will all be responsible for> generating rendering feeds and make the xml_controller simply act as a> redirect to the new /articles based urls.>> Thoughts?>> 1. http://www.loudthinking.com/arc/000572.html>> --> Piers Cawley <pdcawley at bofh.org.uk>> http://www.bofh.org.uk/> _______________________________________________> Typo-list mailing list> Typo-list at rubyforge.org> http://rubyforge.org/mailman/listinfo/typo-list> From marcus at tablesturned.com Tue Apr 25 16:16:50 2006 From: marcus at tablesturned.com (marcus estes) Date: Tue, 25 Apr 2006 13:16:50 -0700 Subject: [typo] Wordpress Mu In-Reply-To: <5fa283580604250350jfabd23aw2ed9dbcbb2512ce3@mail.gmail.com> References: <5fa283580604241013i2c02e563sc63a25403760353a@mail.gmail.com> <D0ABE09F-A631-4D8A-83B2-D3AD7BB25CD1@folkwolf.net> <addf46cb0604241535q7601c5dcj9b22d863b112cc2f@mail.gmail.com> <5fa283580604250350jfabd23aw2ed9dbcbb2512ce3@mail.gmail.com> Message-ID: <addf46cb0604251316q777e9c86qe190a8ecaba6f642@mail.gmail.com> >From the Lyceum FAQ: "Q: What is the difference between Lyceum and WordPress MU? The main difference between Lyceum and MU is the database schema. MU creates a set of tables for each blog in a system. Lyceum uses a fixed number of tables for the entire system. In WordPress MU, every user must have a blog. In Lyceum, users and blogs are completely unrelated entities. Each blog can have arbitrary users, each with arbitrary permissions, and it is possible for a user to have no permissions on no blogs (this makes sense because a blog administrator may choose to only allow comments from users who are registered on the system). In Lyceum, each blog can turn (pre-aproved, admin-installed) plugins on and off as they like. We've also made a smattering of security and performance improvements to WordPress (some of which may or may not be applicable to the MU architecture). " On 4/25/06, Bolo <malavoi at gmail.com> wrote: > why it's better , can u explaine me ? > > 2006/4/24, marcus estes <marcus at tablesturned.com>: > > Lyceum may provide a better database model to emulate: > > http://lyceum.ibiblio.org/ > > > > marcus > > > > On 4/24/06, Matt Rose <mattrose at folkwolf.net > wrote: > > > > > > I know it's on the roadmap for typo. I don't know if it has a > > > specific time-frame or even version yet. I wouldn't mind working on > > > this myself. Some of the database model is already in place, but I > > > don't know how far along it is. Piers is probably the best person to > > > ask > > > > > > On 24-Apr-06, at 1:13 PM, Bolo wrote: > > > > > > > Hello all, > > > > > > > > i would like to know if with typo we can do something similar to that > > > > http://mu.wordpress.org/ > > > > > > > > thanks u > > > > > > > > -- > > > > http://www.blogdemoi.com/ > > > > _______________________________________________ > > > > 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 > > > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > -- > http://www.blogdemoi.com/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From jburks725 at gmail.com Tue Apr 25 22:19:58 2006 From: jburks725 at gmail.com (Jason Burks) Date: Tue, 25 Apr 2006 22:19:58 -0400 Subject: [typo] Posting with Ecto Message-ID: <9bbab4e0604251919u5a564472ib5876a66022a14dc@mail.gmail.com> I've recently been doing most of my posting with Ecto 2.4.1 on my Mac. I'm using the MovableType API and the latest SVN of Typo (just updated two hours ago). I've noticed that posting this way does not seem to invalidate the cache and therefore new posts do not show up right away. If I post an article through the web admin, it shows up on the front page immediately, as I would expect. If I go to the web admin after posting from Ecto I can see the article listed and it shows as published. I can even view the single article by clicking the link in the article list. However doing that still doesn't make the article appear on the front page. If I go back to the web admin and manually purge the cache, the article appears as expected. I've only been posting with Ecto for the past week or so, so I'm not sure if this used to work and has broken recently or if it never worked. Is anyone else seeing this behavior? Should I submit a bug report? I haven't looked into the fragment caching mechanism yet, so I'm not sure how simple this will be to fix "correctly." Certainly just purging the whole cache will work, but that's probably not the ideal solution. Regards, Jason Burks www.jasonburks.com From pdcawley at bofh.org.uk Wed Apr 26 00:56:40 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Wed, 26 Apr 2006 05:56:40 +0100 Subject: [typo] XML renderings... In-Reply-To: <14b7e5ef0604251229n1a811156jf4c7a9aeb141f57@mail.gmail.com> (Scott Laird's message of "Tue, 25 Apr 2006 12:29:47 -0700") References: <m18xptpioj.fsf@obelisk.bofh.org.uk> <14b7e5ef0604251229n1a811156jf4c7a9aeb141f57@mail.gmail.com> Message-ID: <m11wvlorxz.fsf@obelisk.bofh.org.uk> "Scott Laird" <scott at sigkill.org> writes: > I'm kind of conflicted on this one. The respond_to code is reallynice, I'm using it on a little toy that I wrote for work a coupleweeks ago. On the other hand, I hate changing URLs, and moving feedsis a pain in the neck. On the gripping hand, the basic code really*is* the same--select a bunch on content, and then render it. > So I guess I can say that I can see arguments either way. Pick > yourfavorite :-). For me, the DRY aspects of this are a huge win. If we can reduce the XML framework to a simple set of redirects that can be optionally turned on and off then new typo blogs can simply start up with the new url scheme, and us old farts can continue to serve up the URLs we've always served up. And every time we add a new index, we can just write the appropriate rxml files and be done. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Wed Apr 26 00:58:37 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Wed, 26 Apr 2006 05:58:37 +0100 Subject: [typo] Wordpress Mu In-Reply-To: <addf46cb0604251316q777e9c86qe190a8ecaba6f642@mail.gmail.com> (marcus estes's message of "Tue, 25 Apr 2006 13:16:50 -0700") References: <5fa283580604241013i2c02e563sc63a25403760353a@mail.gmail.com> <D0ABE09F-A631-4D8A-83B2-D3AD7BB25CD1@folkwolf.net> <addf46cb0604241535q7601c5dcj9b22d863b112cc2f@mail.gmail.com> <5fa283580604250350jfabd23aw2ed9dbcbb2512ce3@mail.gmail.com> <addf46cb0604251316q777e9c86qe190a8ecaba6f642@mail.gmail.com> Message-ID: <m1wtddndaa.fsf@obelisk.bofh.org.uk> "marcus estes" <marcus at tablesturned.com> writes: >>From the Lyceum FAQ: > > "Q: What is the difference between Lyceum and WordPress MU? > > The main difference between Lyceum and MU is the database schema. MU > creates a set of tables for each blog in a system. We're definitely not doing that. At all. Ever. Over my dead body. > Lyceum uses a fixed number of tables for the entire system. Much more sensible. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From malavoi at gmail.com Wed Apr 26 06:50:57 2006 From: malavoi at gmail.com (Bolo) Date: Wed, 26 Apr 2006 06:50:57 -0400 Subject: [typo] Wordpress Mu In-Reply-To: <m1wtddndaa.fsf@obelisk.bofh.org.uk> References: <5fa283580604241013i2c02e563sc63a25403760353a@mail.gmail.com> <D0ABE09F-A631-4D8A-83B2-D3AD7BB25CD1@folkwolf.net> <addf46cb0604241535q7601c5dcj9b22d863b112cc2f@mail.gmail.com> <5fa283580604250350jfabd23aw2ed9dbcbb2512ce3@mail.gmail.com> <addf46cb0604251316q777e9c86qe190a8ecaba6f642@mail.gmail.com> <m1wtddndaa.fsf@obelisk.bofh.org.uk> Message-ID: <5fa283580604260350v9c375f7k1e7c4a887c4ec01a@mail.gmail.com> We're definitely not doing that. At all. Ever. Over my dead body. u 're talking about schema or lyceeum 2006/4/26, Piers Cawley <pdcawley at bofh.org.uk>: > > "marcus estes" <marcus at tablesturned.com> writes: > > >>From the Lyceum FAQ: > > > > "Q: What is the difference between Lyceum and WordPress MU? > > > > The main difference between Lyceum and MU is the database schema. MU > > creates a set of tables for each blog in a system. > > We're definitely not doing that. At all. Ever. Over my dead body. > > > Lyceum uses a fixed number of tables for the entire system. > > Much more sensible. > -- > Piers Cawley <pdcawley at bofh.org.uk> > http://www.bofh.org.uk/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Bolo Michelin Blog [Flash & RoR] http://blog.developpez.com/?blog=30 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060426/c0a18d96/attachment.htm From kevin at sb.org Wed Apr 26 06:56:44 2006 From: kevin at sb.org (Kevin Ballard) Date: Wed, 26 Apr 2006 03:56:44 -0700 Subject: [typo] Wordpress Mu In-Reply-To: <5fa283580604260350v9c375f7k1e7c4a887c4ec01a@mail.gmail.com> References: <5fa283580604241013i2c02e563sc63a25403760353a@mail.gmail.com> <D0ABE09F-A631-4D8A-83B2-D3AD7BB25CD1@folkwolf.net> <addf46cb0604241535q7601c5dcj9b22d863b112cc2f@mail.gmail.com> <5fa283580604250350jfabd23aw2ed9dbcbb2512ce3@mail.gmail.com> <addf46cb0604251316q777e9c86qe190a8ecaba6f642@mail.gmail.com> <m1wtddndaa.fsf@obelisk.bofh.org.uk> <5fa283580604260350v9c375f7k1e7c4a887c4ec01a@mail.gmail.com> Message-ID: <ACDE3B2B-4DE0-4605-84C6-1B8C28C63616@sb.org> How would talking about Lyceum in this context make sense? It's not like Typo could "do" Lyceum. He was talking about the schema. On Apr 26, 2006, at 3:50 AM, Bolo wrote: > We're definitely not doing that. At all. Ever. Over my dead body. > > u 're talking about schema or lyceeum -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- 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/20060426/a91230c9/attachment.bin From trejkaz at trypticon.org Wed Apr 26 09:11:12 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Wed, 26 Apr 2006 23:11:12 +1000 Subject: [typo] Timezones In-Reply-To: <444D9BA7.20802@pobox.com> References: <20060422150521.BE7BCEEA91@randymail-a9.dreamhost.com> <200604251320.21824.trejkaz@trypticon.org> <444D9BA7.20802@pobox.com> Message-ID: <200604262311.15042.trejkaz@trypticon.org> On Tuesday 25 April 2006 13:46, mathew wrote: > No, that's not a problem. The problem is how to display the information. > Generally speaking, you want it to be in a time zone that makes sense to > users, which means you need user preferences. Even if you default to a > specific time zone, you still have the issue of DST; see previous > discussion. Funnily enough, Typo already says dates like "4 days ago" to the actual user. That is, unless you're talking about something in the admin interfaces. But user preferences wouldn't be a stretch in the admin preferences, as we already have email and Jabber ID in there. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ 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: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060426/9f4f5788/attachment.bin From scott at sigkill.org Wed Apr 26 23:21:52 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 26 Apr 2006 20:21:52 -0700 Subject: [typo] XML renderings... In-Reply-To: <m11wvlorxz.fsf@obelisk.bofh.org.uk> References: <m18xptpioj.fsf@obelisk.bofh.org.uk> <14b7e5ef0604251229n1a811156jf4c7a9aeb141f57@mail.gmail.com> <m11wvlorxz.fsf@obelisk.bofh.org.uk> Message-ID: <14b7e5ef0604262021t6eb38323iae169286835573f5@mail.gmail.com> A couple things: 1. How do we do both RSS and Atom feeds? 2. How does this interact with the Atom publishing protocol? I'vebeen dealing with the Google Calendar protocol lately, and it's moreor less the same as the Atom publishing protcol. It's a very nice,RESTful, way to do things. But it'd be nice if we could support itwithout having to fight with the new URL stuff. Yeah, I know this isa research question :-(. Scott --sooner or later, we're going to want to add Atom API support. It'sa very nice protocol On 4/25/06, Piers Cawley <pdcawley at bofh.org.uk> wrote:> "Scott Laird" <scott at sigkill.org> writes:>> > I'm kind of conflicted on this one. The respond_to code is reallynice, I'm using it on a little toy that I wrote for work a coupleweeks ago. On the other hand, I hate changing URLs, and moving feedsis a pain in the neck. On the gripping hand, the basic code really*is* the same--select a bunch on content, and then render it.> > So I guess I can say that I can see arguments either way. Pick> > yourfavorite :-).>> For me, the DRY aspects of this are a huge win. If we can reduce the> XML framework to a simple set of redirects that can be optionally> turned on and off then new typo blogs can simply start up with the new> url scheme, and us old farts can continue to serve up the URLs we've> always served up.>> And every time we add a new index, we can just write the appropriate> rxml files and be done.>> --> Piers Cawley <pdcawley at bofh.org.uk>> http://www.bofh.org.uk/> _______________________________________________> Typo-list mailing list> Typo-list at rubyforge.org> http://rubyforge.org/mailman/listinfo/typo-list> From drcforbin at gmail.com Thu Apr 27 00:03:06 2006 From: drcforbin at gmail.com (Ryan Williams) Date: Thu, 27 Apr 2006 00:03:06 -0400 Subject: [typo] Wordpress Mu In-Reply-To: <5fa283580604260350v9c375f7k1e7c4a887c4ec01a@mail.gmail.com> References: <5fa283580604241013i2c02e563sc63a25403760353a@mail.gmail.com> <D0ABE09F-A631-4D8A-83B2-D3AD7BB25CD1@folkwolf.net> <addf46cb0604241535q7601c5dcj9b22d863b112cc2f@mail.gmail.com> <5fa283580604250350jfabd23aw2ed9dbcbb2512ce3@mail.gmail.com> <addf46cb0604251316q777e9c86qe190a8ecaba6f642@mail.gmail.com> <m1wtddndaa.fsf@obelisk.bofh.org.uk> <5fa283580604260350v9c375f7k1e7c4a887c4ec01a@mail.gmail.com> Message-ID: <a5bbcba40604262103n29b63a4bk3f2fb2670149ae89@mail.gmail.com> I believe the discussion involved both schema and lyceum, so, if you're asking a question, then the answer is yes. On 4/26/06, Bolo <malavoi at gmail.com> wrote: >> We're definitely not doing that. At all. Ever. Over my dead body. > > u 're talking about schema or lyceeum From malavoi at gmail.com Thu Apr 27 06:48:06 2006 From: malavoi at gmail.com (Bolo) Date: Thu, 27 Apr 2006 06:48:06 -0400 Subject: [typo] Wordpress Mu In-Reply-To: <a5bbcba40604262103n29b63a4bk3f2fb2670149ae89@mail.gmail.com> References: <5fa283580604241013i2c02e563sc63a25403760353a@mail.gmail.com> <D0ABE09F-A631-4D8A-83B2-D3AD7BB25CD1@folkwolf.net> <addf46cb0604241535q7601c5dcj9b22d863b112cc2f@mail.gmail.com> <5fa283580604250350jfabd23aw2ed9dbcbb2512ce3@mail.gmail.com> <addf46cb0604251316q777e9c86qe190a8ecaba6f642@mail.gmail.com> <m1wtddndaa.fsf@obelisk.bofh.org.uk> <5fa283580604260350v9c375f7k1e7c4a887c4ec01a@mail.gmail.com> <a5bbcba40604262103n29b63a4bk3f2fb2670149ae89@mail.gmail.com> Message-ID: <5fa283580604270348h56c32b8an752a8f89b1404b46@mail.gmail.com> My origina question was it's possible to use like wordpress. But they explain me that lyceum is better. If i undertand all typo is not multi user and multi blog. I need to change it for do that 2006/4/27, Ryan Williams <drcforbin at gmail.com>: > > I believe the discussion involved both schema and lyceum, so, if > you're asking a question, then the answer is yes. > > On 4/26/06, Bolo <malavoi at gmail.com> wrote: > >> We're definitely not doing that. At all. Ever. Over my dead body. > > > > u 're talking about schema or lyceeum > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Bolo Michelin Blog [Flash & RoR] http://blog.developpez.com/?blog=30 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060427/5c7b2a2b/attachment.htm From meta at pobox.com Thu Apr 27 15:21:49 2006 From: meta at pobox.com (mathew) Date: Thu, 27 Apr 2006 14:21:49 -0500 Subject: [typo] XML renderings... In-Reply-To: <14b7e5ef0604262021t6eb38323iae169286835573f5@mail.gmail.com> References: <m18xptpioj.fsf@obelisk.bofh.org.uk> <14b7e5ef0604251229n1a811156jf4c7a9aeb141f57@mail.gmail.com> <m11wvlorxz.fsf@obelisk.bofh.org.uk> <14b7e5ef0604262021t6eb38323iae169286835573f5@mail.gmail.com> Message-ID: <445119CD.6010608@pobox.com> Scott Laird wrote: > A couple things: > 1. How do we do both RSS and Atom feeds? > Ruby XML Builder 2.0 was released recently. It now does automatic escaping. I don't find Atom or RSS to be complicated enough that it's worth using a special purpose library to *produce* them; they're just XML, after all. mathew From scott at sigkill.org Thu Apr 27 15:48:55 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 27 Apr 2006 12:48:55 -0700 Subject: [typo] XML renderings... In-Reply-To: <445119CD.6010608@pobox.com> References: <m18xptpioj.fsf@obelisk.bofh.org.uk> <14b7e5ef0604251229n1a811156jf4c7a9aeb141f57@mail.gmail.com> <m11wvlorxz.fsf@obelisk.bofh.org.uk> <14b7e5ef0604262021t6eb38323iae169286835573f5@mail.gmail.com> <445119CD.6010608@pobox.com> Message-ID: <14b7e5ef0604271248t72bddfa4y49d13ca0be628b74@mail.gmail.com> On 4/27/06, mathew <meta at pobox.com> wrote:> Scott Laird wrote:> > A couple things:> > 1. How do we do both RSS and Atom feeds?> >>> Ruby XML Builder 2.0 was released recently. It now does automatic> escaping. I don't find Atom or RSS to be complicated enough that it's> worth using a special purpose library to *produce* them; they're just> XML, after all. No, I mean if we move the Atom feed from /xml/... to /articles, anddistinguish between the Atom feed and the HTML feed via the Acceptheader, then how do we feed both Atom and RSS from the same URL? Scott From pdcawley at bofh.org.uk Thu Apr 27 17:29:53 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Thu, 27 Apr 2006 22:29:53 +0100 Subject: [typo] XML renderings... In-Reply-To: <14b7e5ef0604271248t72bddfa4y49d13ca0be628b74@mail.gmail.com> (Scott Laird's message of "Thu, 27 Apr 2006 12:48:55 -0700") References: <m18xptpioj.fsf@obelisk.bofh.org.uk> <14b7e5ef0604251229n1a811156jf4c7a9aeb141f57@mail.gmail.com> <m11wvlorxz.fsf@obelisk.bofh.org.uk> <14b7e5ef0604262021t6eb38323iae169286835573f5@mail.gmail.com> <445119CD.6010608@pobox.com> <14b7e5ef0604271248t72bddfa4y49d13ca0be628b74@mail.gmail.com> Message-ID: <m1vesulnam.fsf@obelisk.bofh.org.uk> "Scott Laird" <scott at sigkill.org> writes: > On 4/27/06, mathew <meta at pobox.com> wrote:> Scott Laird wrote:> > A > couple things:> > 1. How do we do both RSS and Atom feeds?> >>> > Ruby XML Builder 2.0 was released recently. It now does automatic> > escaping. I don't find Atom or RSS to be complicated enough that > it's> worth using a special purpose library to *produce* them; > they're just> XML, after all. > No, I mean if we move the Atom feed from /xml/... to /articles, > anddistinguish between the Atom feed and the HTML feed via the > Acceptheader, then how do we feed both Atom and RSS from the same > URL? DHH covers this in the article where he introduced them; you munge the request to have an appropriate Accepts and serve up 'application/xml+rss' and 'application/xml+atom' or whatever it is. And ideally we drop Atom 0.3 from our supported list. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From scott at sigkill.org Thu Apr 27 17:58:26 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 27 Apr 2006 14:58:26 -0700 Subject: [typo] XML renderings... In-Reply-To: <m1vesulnam.fsf@obelisk.bofh.org.uk> References: <m18xptpioj.fsf@obelisk.bofh.org.uk> <14b7e5ef0604251229n1a811156jf4c7a9aeb141f57@mail.gmail.com> <m11wvlorxz.fsf@obelisk.bofh.org.uk> <14b7e5ef0604262021t6eb38323iae169286835573f5@mail.gmail.com> <445119CD.6010608@pobox.com> <14b7e5ef0604271248t72bddfa4y49d13ca0be628b74@mail.gmail.com> <m1vesulnam.fsf@obelisk.bofh.org.uk> Message-ID: <14b7e5ef0604271458r7632637eob5520e154876f8e4@mail.gmail.com> On 4/27/06, Piers Cawley <pdcawley at bofh.org.uk> wrote:> "Scott Laird" <scott at sigkill.org> writes:> > No, I mean if we move the Atom feed from /xml/... to /articles,> > anddistinguish between the Atom feed and the HTML feed via the> > Acceptheader, then how do we feed both Atom and RSS from the same> > URL?>> DHH covers this in the article where he introduced them; you munge the> request to have an appropriate Accepts and serve up> 'application/xml+rss' and 'application/xml+atom' or whatever it is. I'm having a hard time finding this. Pointer? > And ideally we drop Atom 0.3 from our supported list. No problem, but I'd like to have at least *one* release with both,just for transition's sake. Also, using respond_to blows caching out of the water again. The pagecache is completely unsuitable for URLs that can feed either Atom orHTML, and the action cache will need a bit of work. Scott From meta at pobox.com Thu Apr 27 18:36:30 2006 From: meta at pobox.com (mathew) Date: Thu, 27 Apr 2006 17:36:30 -0500 Subject: [typo] XML renderings... In-Reply-To: <14b7e5ef0604271248t72bddfa4y49d13ca0be628b74@mail.gmail.com> References: <m18xptpioj.fsf@obelisk.bofh.org.uk> <14b7e5ef0604251229n1a811156jf4c7a9aeb141f57@mail.gmail.com> <m11wvlorxz.fsf@obelisk.bofh.org.uk> <14b7e5ef0604262021t6eb38323iae169286835573f5@mail.gmail.com> <445119CD.6010608@pobox.com> <14b7e5ef0604271248t72bddfa4y49d13ca0be628b74@mail.gmail.com> Message-ID: <4451476E.3050704@pobox.com> Scott Laird wrote: > No, I mean if we move the Atom feed from /xml/... to /articles, anddistinguish between the Atom feed and the HTML feed via the Acceptheader, then how do we feed both Atom and RSS from the same URL? Why do they have to be from the same URL? I must have missed that bit. Personally, I'd make /articles be Atom format, and have something like /articles?format=rss or /articles/rss for legacy RSS support. mathew From pdcawley at bofh.org.uk Fri Apr 28 03:02:20 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 28 Apr 2006 08:02:20 +0100 Subject: [typo] XML renderings... In-Reply-To: <4451476E.3050704@pobox.com> (mathew's message of "Thu, 27 Apr 2006 17:36:30 -0500") References: <m18xptpioj.fsf@obelisk.bofh.org.uk> <14b7e5ef0604251229n1a811156jf4c7a9aeb141f57@mail.gmail.com> <m11wvlorxz.fsf@obelisk.bofh.org.uk> <14b7e5ef0604262021t6eb38323iae169286835573f5@mail.gmail.com> <445119CD.6010608@pobox.com> <14b7e5ef0604271248t72bddfa4y49d13ca0be628b74@mail.gmail.com> <4451476E.3050704@pobox.com> Message-ID: <m1fyjykwsj.fsf@obelisk.bofh.org.uk> mathew <meta at pobox.com> writes: > Scott Laird wrote: >> No, I mean if we move the Atom feed from /xml/... to /articles, anddistinguish between the Atom feed and the HTML feed via the Acceptheader, then how do we feed both Atom and RSS from the same URL? > > Why do they have to be from the same URL? I must have missed that > bit. Here's ArticlesController#index def index @pages, @articles = paginate(:article, :per_page => this_blog.limit_article_display, :conditions => ['published = ? and contents.created_at < ? and blog_id = ?', true, Time.now, this_blog_id], :order_by => "contents.created_at DESC", :include => [:categories, :tags]) end Which is (with a couple of extra wrinkles, which can be ironed out) pretty much the same as what /xml/feed does (XmlController is actually slightly better factored than articles_controller, but it will break as soon as anyone adds a second blog). The issue isn't so much to do with serving Atom, RSS, and HTML from the same URL as it is with serving them from the same controller action, reducing the amount of duplicated effort in controllers (and avoiding the current problem where ArticlesController#index is multiblog safe, but XmlController#fetch_items -- which is what finds the things to be published -- isn't. > Personally, I'd make /articles be Atom format, and have something like > /articles?format=rss or /articles/rss for legacy RSS support. Definitely the first rather than the second of those options; that way a prefilter can grab the format variable and use it munge the headers. Here's ArticlesController#comment, rewritten to to use respond_to (and, incidentally, so that it'll work with non ajax commenting again) def comment return unless comment_args_are_valid? begin @article = this_blog.published_articles.find(params[:id]) @comment = @article.comments.build(params[:comment].merge({:ip => request.remote_ip, :published => true }) @comment.user = session[:user] @comment.save! add_to_cookies(:author, @comment.author) add_to_cookies(:url, @comment.url) respond_to |wants| do wants.js # AJAXy updating wants.html { display_article @article } end rescue STDERR.puts @comment.errors.inspect render_error(@comment) end end def comment_args_are_valid? if ! request.post? render_error "You can't GET a new comment!" return end unless @request.xhr? || this_blog.sp_allow_non_ajax_comments render_error("Please turn Javascript on and try again") return end end Hmm... you know, I really dislike all those 'render_error(...); return' things. I'm having bad thoughts... how do you think rails would react to a prefilter that looked like: def save_the_continuation callcc do |continuation| @filter_continuation = continuation true end # This is where @filter_continuation[some_value] will return to. # By returning false through this continuation, rails is fooled # into thinking that your filter chain failed (but any rendering # you did still gets done...) end Then, render_error would look like: def render_error(object = '', status = 500, return_point=@filter_continuation) @text = object.errors.full_messages.join(", ") rescue object.to_s @status = status respond_to |wants| do wants.js # For sensible error reporting of AJAX type requests wants.html { render :text => text, :status => status } end # Make the prefilter return false! return_point[false] unless return_point.nil? end I have the sneaking feeling that that would work rather well... I shall experiment when I have the tuits. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From ninuje at gmail.com Fri Apr 28 11:31:14 2006 From: ninuje at gmail.com (NiLuJe) Date: Fri, 28 Apr 2006 17:31:14 +0200 Subject: [typo] Outgoing trackbacks? Message-ID: <200604281731.14683.ninuje@gmail.com> Hello :) I'm using typo trunk (r1028), and I'm having a hard time trying to get outgoing trackbacks working... Do they actually work in current runk, and if so, how? There's no 'Trackback URL' entry in the article posting admin section, and typo doesn't seem to auto-detect trackback links when the article contains a link to another blog post, so I'm wondering how it's supposed to work... (I tested with a link to another typo trunk blog). Incoming trackbacks seems to work, according to a test with http://www.redalt.com/External/trackback.php. Thanks! :) From phil at cryer.us Fri Apr 28 12:26:17 2006 From: phil at cryer.us (phil) Date: Fri, 28 Apr 2006 11:26:17 -0500 Subject: [typo] OT: Scale With Rails Message-ID: <0282c4a5ddca1684448f9241ba61bdd1@pepe.cryer.us> http://www.scalewithrails.com/downloads/ScaleWithRails-April2006.pdf P -- http://fak3r.com - you dont have to kick it From pdcawley at bofh.org.uk Sat Apr 29 07:06:37 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sat, 29 Apr 2006 12:06:37 +0100 Subject: [typo] Thinking about caching Message-ID: <m1vessk5du.fsf@obelisk.bofh.org.uk> I've been thinking about how to get the benefits of page caching back without the pain of the same. It occurred to me that, for a snappy response to 'real' readers, we could probably get away with just caching the first page of /articles, articles/category/whatever, /articles/tag/whatever and so on, along with their associated feeds and the full articles. It's my gut feeling that the vast majority of hits are to the first page of an index, or directly to an article[1]. In order for this to work, we'd have to ensure that none of our links were ever generated in the form '/articles/tag/whatever?some_arg=...', but that's merely tedious, not necessarily a showstopper. However, there are problems with this approach because we've taken advantage of fragment caching to introduce goodies like time limited sidebars and future publication times[2]. One approach to cache sweeping, suggested by Tobi on IRC, is to have each request process fire off a sleeper thread, set to wake up at next expiry time (or in an hour say, whichever is sooner) and zap the cache. Because every dispatch thread would be doing this, it doesn't really matter if one of 'em gets killed before time, and a double expiry's not really a problem either, so what if the cache gets zapped twice, it'll still get rebuilt. Another possibility is to stick a bit of javascript in the default layout that fires off a request to some kind of uncached heartbeat action, so a page may get served up without touching typo (so the the browser gets a fast response) but typo still gets hit 'at leisure' so to speak and can do any posted cache sweeps/publication actions in a postfilter. I like this idea rather less, because it doesn't work for feeds, and it's the sort of suspicious javascript activity that gets apps a bad name. A third option is to have a separate process that gets fired from a cron script or something and handles any cache sweeping required, but I don't think that's going to fly for a lot of people using hosting services. Whatever option gets chosen, I reckon there's a case for unifying the handling of future events. Here's a sketch of a possible approach: class Trigger < ActiveRecord::Base belongs_to :pending_item, :polymorphic => true class << self def post_action(due_at, item, method='came_due') create!(:due_at => due_at, :pending_item => item, :method => method) fire end def fire destroy_all 'due_at < now()' true end end def destroy pending_item.send(method) end end This allows for arbitrary ActiveRecord based objects to post trigger requests. Then application could declare a post_filter that does 'Trigger.fire' at the end of every request. Here's an example of how Article could take advantage of triggers: class Article def before_create Trigger.post_action(published_at || created_at, self, 'publish!') end after_save :ping_on_publication def publish! unless published? self.published = true self.save! end end def published=(publication_state) if publication_state && unpublished? @just_published = true end self[:published] = publication_state end def ping_on_publication if @just_published send_notifications end end end (Note that there's no need to do the cache sweeping logic here because the cache sweeper already handles that) We'll have to do some fancy footwork to make sidebars work as pending_items, but there's virtue in making it happen. For instance, an aggregation sidebar could check to see if anything had changed in its target feed and only trigger a cache flush if there was something new. Note too that, with this interface, the cron option is easy -- the commandline to handle everything is: /typo_installation/script/runner -e production 'Trigger.fire' Which seems pretty cute to me. Thoughts? What have I missed? 1. I would really appreciate it if anyone who can be bothered would go through their typo logs and quickly check for the relative frequency of non search engine crawler hits on any index pages after the first. I'm guessing that there's a serious power law curve in effect here. 2. Using the 'created_at' field, which should really, really, really be published_at or some such -- overloading 'created_at' in this way is simply confusing. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From gpsnospam at gmail.com Sun Apr 30 07:57:52 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sun, 30 Apr 2006 12:57:52 +0100 Subject: [typo] Adding fixed content to feeds Message-ID: <A3414D5A-1632-46B0-BC4C-C57A9CDC39AF@gmail.com> How easy would it be to add fixed text to the end of each post in the feed? I don't mean in the actual post itself, but automagically inserted on publish - only in the feed. This could eventually lead to include advertising in feeds without the need to go through feedburner, but for right now it's a good way to add a disclaimer/license to posts. Scrapers are really annoying me right now. Gary