From trejkaz at trypticon.org Sun Oct 1 02:44:52 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Sun, 1 Oct 2006 15:44:52 +0900 Subject: [typo] /admin in https In-Reply-To: <14b7e5ef0609211323i40810170kfb198fc24b9003a4@mail.gmail.com> References: <14b7e5ef0609210725i1ae82c9eh4c595256f3e21849@mail.gmail.com> <14b7e5ef0609211323i40810170kfb198fc24b9003a4@mail.gmail.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 22/09/2006, at 05:23 AM, Scott Laird wrote: > That's part of the issue, but it'd be nice if *every* link to /admin > (or /accounts) used https while non-authenticated links still use > http. That's a bit harder to do from Apache. Part of the problem I had with this kind of trick from Apache was that the admin interface still links to various resources (stylesheets, image files) which are outside the /admin URL scheme. So I had to put in a whole set of extra rules to make those ones not auto-redirect back to http:, otherwise browsers would give a bunch of security warnings (displaying non-secure resource from secure page, etc.) TX -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFFH2PpuMe8iwN+6nMRAjxGAJkBBF2+c6bpEVuHwreOf8f64OWu3wCeNVRS BhUODYxqS2YLtufJIM0IlO0= =FbEW -----END PGP SIGNATURE----- From josh at hasmanythrough.com Sun Oct 1 13:19:05 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Sun, 1 Oct 2006 10:19:05 -0700 Subject: [typo] trac email spam Message-ID: <46EAD666-F9B1-4C29-A584-453A6AA860DF@hasmanythrough.com> Is the typo trac system configured to email this list every time a ticket changes state? If so, could that be changed? We're getting a lot of spam emails from that. There are other notification options in trac, including RSS feeds and email subscriptions. -- Josh Susser http://blog.hasmanythrough.com From linda at innovatesolutions.com Sun Oct 1 14:34:14 2006 From: linda at innovatesolutions.com (Linda Derezinski) Date: Sun, 1 Oct 2006 14:34:14 -0400 Subject: [typo] trac email spam In-Reply-To: <46EAD666-F9B1-4C29-A584-453A6AA860DF@hasmanythrough.com> Message-ID: <006f01c6e588$320d4040$0501000a@Aruba> I'm not seeing them, did you check the internet header to see how it is being delivered to you? (I get them via rss feed.) Linda Derezinski 443 506 9106 -----Original Message----- From: typo-list-bounces at rubyforge.org [mailto:typo-list-bounces at rubyforge.org] On Behalf Of Josh Susser Sent: Sunday, October 01, 2006 1:19 PM To: typo-list at rubyforge.org Subject: [typo] trac email spam Is the typo trac system configured to email this list every time a ticket changes state? If so, could that be changed? We're getting a lot of spam emails from that. There are other notification options in trac, including RSS feeds and email subscriptions. -- Josh Susser http://blog.hasmanythrough.com _______________________________________________ Typo-list mailing list Typo-list at rubyforge.org http://rubyforge.org/mailman/listinfo/typo-list From arsptr at internode.on.net Sun Oct 1 18:19:30 2006 From: arsptr at internode.on.net (Alastair Rankine) Date: Mon, 2 Oct 2006 08:19:30 +1000 Subject: [typo] Too many open files error during bulkops Message-ID: <394E6067-51A0-49CD-BC6C-A92E446B2903@internode.on.net> Here I am, killing spam again. I've let it accumulate for a couple of days so now I've got a fair bit. Only trouble is that the bulkops to confirm the spam results in the error below. Clearing out tmp/cache seems to fix the problem. Known bug? If not, I'll raise it on Trac. Errno::EMFILE (Too many open files - /home/alastair/typo/config/../ tmp/cache/META/DATA/ACTION_PARAM/ girtby.net/articles/permalink/comment=body [snip spam content]: /vendor/rails/actionpack/lib/action_controller/caching.rb:450:in `open' /vendor/rails/actionpack/lib/action_controller/caching.rb:450:in `search_dir' /vendor/rails/actionpack/lib/action_controller/caching.rb:454:in `search_dir' [...snip about two screenfuls...] /vendor/rails/actionpack/lib/action_controller/caching.rb:450:in `search_dir' /vendor/rails/actionpack/lib/action_controller/caching.rb:429:in `delete_matched' /vendor/rails/actionpack/lib/action_controller/caching.rb:317:in `expire_fragment' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 33:in `benchmark' /vendor/rails/actionpack/lib/action_controller/caching.rb:316:in `expire_fragment' /vendor/rails/actionpack/lib/action_controller/caching.rb:550:in `method_missing' /app/models/blog_sweeper.rb:16:in `expire_for' /app/models/blog_sweeper.rb:5:in `after_save' /vendor/rails/activerecord/lib/active_record/observer.rb:123:in `update' /usr/lib/ruby/1.8/observer.rb:185:in `notify_observers' /usr/lib/ruby/1.8/observer.rb:184:in `notify_observers' /vendor/rails/activerecord/lib/active_record/callbacks.rb:375:in `notify' /vendor/rails/activerecord/lib/active_record/callbacks.rb:339:in `callback' /vendor/rails/activerecord/lib/active_record/callbacks.rb:254:in `create_or_update' /vendor/rails/activerecord/lib/active_record/base.rb:1392:in `save_without_validation' /vendor/rails/activerecord/lib/active_record/validations.rb: 736:in `save_without_transactions' /vendor/rails/activerecord/lib/active_record/transactions.rb: 126:in `save' /vendor/rails/activerecord/lib/active_record/connection_adapters/ abstract/database_statements.rb:51:in `transaction' /vendor/rails/activerecord/lib/active_record/transactions.rb: 91:in `transaction' /vendor/rails/activerecord/lib/active_record/transactions.rb: 118:in `transaction' /vendor/rails/activerecord/lib/active_record/transactions.rb: 126:in `save' /app/models/feedback.rb:153:in `confirm_classification!' /app/controllers/admin/feedback_controller.rb:72:in `bulkops' /app/controllers/admin/feedback_controller.rb:71:in `bulkops' /vendor/rails/actionpack/lib/action_controller/base.rb:941:in `perform_action_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 69:in `perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 69:in `perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in `perform_action' /vendor/rails/actionpack/lib/action_controller/base.rb:408: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' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel/ rails.rb:66:in `process' /usr/lib/ruby/1.8/thread.rb:135:in `synchronize' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel/ rails.rb:64:in `process' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: 425:in `process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: 424:in `process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: 495:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: 494:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: 483:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: 774:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: 772:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/bin/mongrel_rails: 97:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel/ command.rb:163:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/bin/mongrel_rails:194 /usr/bin/mongrel_rails:18 From josh at hasmanythrough.com Sun Oct 1 21:29:07 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Sun, 1 Oct 2006 18:29:07 -0700 Subject: [typo] trac email spam In-Reply-To: <006f01c6e588$320d4040$0501000a@Aruba> References: <006f01c6e588$320d4040$0501000a@Aruba> Message-ID: <9DF14832-48E2-45E2-A9CB-6D6713539322@hasmanythrough.com> On Oct 1, 2006, at 11:34 AM, Linda Derezinski wrote: > I'm not seeing them, did you check the internet header to see how > it is > being delivered to you? Duh. Looking again with non-bleary eyes I saw they were all for the same ticket (#769), one I had commented on months ago but has now become a spam bucket. Is there any way to tell trac to stop sending me updates for a ticket? Sigh. -- Josh Susser http://blog.hasmanythrough.com > -----Original Message----- > From: typo-list-bounces at rubyforge.org > [mailto:typo-list-bounces at rubyforge.org] On Behalf Of Josh Susser > Sent: Sunday, October 01, 2006 1:19 PM > To: typo-list at rubyforge.org > Subject: [typo] trac email spam > > Is the typo trac system configured to email this list every time a > ticket changes state? If so, could that be changed? We're getting a > lot of spam emails from that. There are other notification options > in trac, including RSS feeds and email subscriptions. > > -- > Josh Susser > http://blog.hasmanythrough.com > > From scott at sigkill.org Mon Oct 2 13:17:38 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 2 Oct 2006 10:17:38 -0700 Subject: [typo] Typo spam filtering -- does any of it work? In-Reply-To: <200609301552.09173.fraser@georgetown.wehave.net> References: <7eeceb440609230757i5e793de6yc53c424ac356ed05@mail.gmail.com> <200609301552.09173.fraser@georgetown.wehave.net> Message-ID: <14b7e5ef0610021017l6e22a55bl5f5ef6e6832c03bf@mail.gmail.com> On 9/30/06, Fraser Campbell wrote: > On Saturday 23 September 2006 10:57, mathew wrote: > > > 1. I have max URLs set to 3, yet I just got spam that had well over 100 > > URLs in. > > > > 2. I have "phentermine" as a blacklist string, but... yes, hundreds of > > occurrences of that string in spam. > > > > I'm going to turn on Akismet, because it seems like none of typo's > > built-in spam protection code actually works. Might as well just rip > > it out. > > I'm not running the latest typo but I have no problems with spam. What did > the trick for me was to disable comments after 10 days. Prior to enabling > that I had dozens of spam posts per day, now it's one every few weeks (if > that). > > Disabling comments after a certain time period certainly isn't the most > elegant solution but at least for now it seems to work very well. > > My guess is that one of those image generators where user has to confirm > characters that are encoded in image would be the ultimate solution (does > typo 4 have that?). I *really* hate CAPTCHAs (the character-in-image things that you're talking about). They're a pain for *me* to solve half of the time, and they're an accessibility nightmare. Akismet has been flawless for me lately. One thing the original poster may wish to check--all of Typo's current spam filters still allow spam to be submitted, but if the comment fails the spam check then it's dropped into the DB flagged as spam and it's not displayed. Look at the feedback tab in the admin UI to filter things. Scott Scott From scott at sigkill.org Mon Oct 2 13:24:31 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 2 Oct 2006 10:24:31 -0700 Subject: [typo] Too many open files error during bulkops In-Reply-To: <394E6067-51A0-49CD-BC6C-A92E446B2903@internode.on.net> References: <394E6067-51A0-49CD-BC6C-A92E446B2903@internode.on.net> Message-ID: <14b7e5ef0610021024s233f323bg4e5ffc2ff56b6116@mail.gmail.com> I haven't seen this before. File a bug, I'll look at it when I can. Scott On 10/1/06, Alastair Rankine wrote: > Here I am, killing spam again. I've let it accumulate for a couple of > days so now I've got a fair bit. Only trouble is that the bulkops to > confirm the spam results in the error below. > > Clearing out tmp/cache seems to fix the problem. > > Known bug? If not, I'll raise it on Trac. > > > > Errno::EMFILE (Too many open files - /home/alastair/typo/config/../ > tmp/cache/META/DATA/ACTION_PARAM/ > girtby.net/articles/permalink/comment=body [snip spam content]: > /vendor/rails/actionpack/lib/action_controller/caching.rb:450:in > `open' > /vendor/rails/actionpack/lib/action_controller/caching.rb:450:in > `search_dir' > /vendor/rails/actionpack/lib/action_controller/caching.rb:454:in > `search_dir' > > [...snip about two screenfuls...] > > /vendor/rails/actionpack/lib/action_controller/caching.rb:450:in > `search_dir' > /vendor/rails/actionpack/lib/action_controller/caching.rb:429:in > `delete_matched' > /vendor/rails/actionpack/lib/action_controller/caching.rb:317:in > `expire_fragment' > /vendor/rails/actionpack/lib/action_controller/benchmarking.rb: > 33:in `benchmark' > /vendor/rails/actionpack/lib/action_controller/caching.rb:316:in > `expire_fragment' > /vendor/rails/actionpack/lib/action_controller/caching.rb:550:in > `method_missing' > /app/models/blog_sweeper.rb:16:in `expire_for' > /app/models/blog_sweeper.rb:5:in `after_save' > /vendor/rails/activerecord/lib/active_record/observer.rb:123:in > `update' > /usr/lib/ruby/1.8/observer.rb:185:in `notify_observers' > /usr/lib/ruby/1.8/observer.rb:184:in `notify_observers' > /vendor/rails/activerecord/lib/active_record/callbacks.rb:375:in > `notify' > /vendor/rails/activerecord/lib/active_record/callbacks.rb:339:in > `callback' > /vendor/rails/activerecord/lib/active_record/callbacks.rb:254:in > `create_or_update' > /vendor/rails/activerecord/lib/active_record/base.rb:1392:in > `save_without_validation' > /vendor/rails/activerecord/lib/active_record/validations.rb: > 736:in `save_without_transactions' > /vendor/rails/activerecord/lib/active_record/transactions.rb: > 126:in `save' > /vendor/rails/activerecord/lib/active_record/connection_adapters/ > abstract/database_statements.rb:51:in `transaction' > /vendor/rails/activerecord/lib/active_record/transactions.rb: > 91:in `transaction' > /vendor/rails/activerecord/lib/active_record/transactions.rb: > 118:in `transaction' > /vendor/rails/activerecord/lib/active_record/transactions.rb: > 126:in `save' > /app/models/feedback.rb:153:in `confirm_classification!' > /app/controllers/admin/feedback_controller.rb:72:in `bulkops' > /app/controllers/admin/feedback_controller.rb:71:in `bulkops' > /vendor/rails/actionpack/lib/action_controller/base.rb:941:in > `perform_action_without_filters' > /vendor/rails/actionpack/lib/action_controller/filters.rb:368:in > `perform_action_without_benchmark' > /vendor/rails/actionpack/lib/action_controller/benchmarking.rb: > 69:in `perform_action_without_rescue' > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' > /vendor/rails/actionpack/lib/action_controller/benchmarking.rb: > 69:in `perform_action_without_rescue' > /vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in > `perform_action' > /vendor/rails/actionpack/lib/action_controller/base.rb:408: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' > /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel/ > rails.rb:66:in `process' > /usr/lib/ruby/1.8/thread.rb:135:in `synchronize' > /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel/ > rails.rb:64:in `process' > /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: > 425:in `process_client' > /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: > 424:in `process_client' > /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: > 495:in `run' > /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: > 494:in `run' > /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: > 483:in `run' > /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: > 774:in `run' > /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: > 772:in `run' > /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/bin/mongrel_rails: > 97:in `run' > /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel/ > command.rb:163:in `run' > /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/bin/mongrel_rails:194 > /usr/bin/mongrel_rails:18 > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From ernieoporto at gmail.com Wed Oct 4 13:06:48 2006 From: ernieoporto at gmail.com (Ernie Oporto) Date: Wed, 4 Oct 2006 13:06:48 -0400 Subject: [typo] trac email spam In-Reply-To: <9DF14832-48E2-45E2-A9CB-6D6713539322@hasmanythrough.com> References: <006f01c6e588$320d4040$0501000a@Aruba> <9DF14832-48E2-45E2-A9CB-6D6713539322@hasmanythrough.com> Message-ID: I'm getting these a lot lately, too. I'd like to get off the mail list for those tickets I have made a comment on. On 10/1/06, Josh Susser wrote: > > > On Oct 1, 2006, at 11:34 AM, Linda Derezinski wrote: > > I'm not seeing them, did you check the internet header to see how > > it is > > being delivered to you? > > Duh. Looking again with non-bleary eyes I saw they were all for the > same ticket (#769), one I had commented on months ago but has now > become a spam bucket. Is there any way to tell trac to stop sending > me updates for a ticket? Sigh. > > -- > Josh Susser > http://blog.hasmanythrough.com > > > > > -----Original Message----- > > From: typo-list-bounces at rubyforge.org > > [mailto:typo-list-bounces at rubyforge.org] On Behalf Of Josh Susser > > Sent: Sunday, October 01, 2006 1:19 PM > > To: typo-list at rubyforge.org > > Subject: [typo] trac email spam > > > > Is the typo trac system configured to email this list every time a > > ticket changes state? If so, could that be changed? We're getting a > > lot of spam emails from that. There are other notification options > > in trac, including RSS feeds and email subscriptions. > > > > -- > > Josh Susser > > http://blog.hasmanythrough.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/20061004/27e7015d/attachment.html From scott at sigkill.org Wed Oct 4 15:16:51 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 4 Oct 2006 12:16:51 -0700 Subject: [typo] trac email spam In-Reply-To: References: <006f01c6e588$320d4040$0501000a@Aruba> <9DF14832-48E2-45E2-A9CB-6D6713539322@hasmanythrough.com> Message-ID: <14b7e5ef0610041216h72df5086yf1f9d86b4cede5dd@mail.gmail.com> I'm working on a solution, but it'll probably take a couple weeks before it's really ready for use. If I hear back from planetargon anytime soon, then we might be able to upgrade Trac again and make it stop spamming in the mean time. Scott On 10/4/06, Ernie Oporto wrote: > I'm getting these a lot lately, too. > I'd like to get off the mail list for those tickets I have made a comment > on. > > > On 10/1/06, Josh Susser < josh at hasmanythrough.com> wrote: > > > > On Oct 1, 2006, at 11:34 AM, Linda Derezinski wrote: > > > I'm not seeing them, did you check the internet header to see how > > > it is > > > being delivered to you? > > > > Duh. Looking again with non-bleary eyes I saw they were all for the > > same ticket (#769), one I had commented on months ago but has now > > become a spam bucket. Is there any way to tell trac to stop sending > > me updates for a ticket? Sigh. > > > > -- > > Josh Susser > > http://blog.hasmanythrough.com > > > > > > > > > -----Original Message----- > > > From: typo-list-bounces at rubyforge.org > > > [mailto:typo-list-bounces at rubyforge.org ] On Behalf Of Josh Susser > > > Sent: Sunday, October 01, 2006 1:19 PM > > > To: typo-list at rubyforge.org > > > Subject: [typo] trac email spam > > > > > > Is the typo trac system configured to email this list every time a > > > ticket changes state? If so, could that be changed? We're getting a > > > lot of spam emails from that. There are other notification options > > > in trac, including RSS feeds and email subscriptions. > > > > > > -- > > > Josh Susser > > > http://blog.hasmanythrough.com > > > > > > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > -- > Ernie > http://www.shokk.com/blog/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From inxs.hemant at gmail.com Fri Oct 6 01:34:34 2006 From: inxs.hemant at gmail.com (hemant kumar) Date: Fri, 6 Oct 2006 11:04:34 +0530 Subject: [typo] hosting multiple blogs with the same app Message-ID: <4525eaf8.6133b49c.1e03.5b40@mx.google.com> Hi All, I am modifying typo so as, I can host multiple blogs on the same typo. And its almost done, except that...i am stuck at one place. When a user posts a new article, depending upon current blog_id, I would like to set the blog_id attribute of @article object. So..in the admin/content_controller.rb: We have: def new_or_edit if request.post? set_article_author save_attachments logger.info("**** and blog id in article is #{@article.blog_id}") if @article.save set_article_categories set_the_flash redirect_to :action => 'show', :id => @article.id end end end So, just before the actual save, the value printed by logger.info is "**** and blog id in article is 2".But after @article.save is called...whatever may be the current blog_id, the value that gets stored in database is always 1. And I have no clue, why is this. Another pointer. new_or_edit calls a method "get_or_build_article", before actually saving article: when 'new' art = this_blog.articles.build logger.info("**** and blog id is #{this_blog.id}") art.allow_comments = this_blog.default_allow_comments art.allow_pings = this_blog.default_allow_pings art.published = true art so...the above code also prints blog_id as 2. But again...the value that goes in database is always 1. Any clues, why is this? gnufied From inxs.hemant at gmail.com Fri Oct 6 01:53:22 2006 From: inxs.hemant at gmail.com (hemant kumar) Date: Fri, 6 Oct 2006 11:23:22 +0530 Subject: [typo] hosting multiple blogs with the same app Message-ID: <4525ef5f.672cb424.23e5.75f5@mx.google.com> ok..i get it. I think content.rb is the one that is resetting the blog_ids just before the actual save. And I guess following call is the culprit: class Content < ActiveRecord::Base def initialize(*args) super(*args) set_default_blog end def set_default_blog if self.blog_id == nil or self.blog_id == 0 self.blog = Blog.default end end end Now...how do set some other values...there. -----Original Message----- From: hemant kumar [mailto:inxs.hemant at gmail.com] Sent: Friday, October 06, 2006 11:05 AM To: 'typo-list at rubyforge.org' Subject: hosting multiple blogs with the same app Hi All, I am modifying typo so as, I can host multiple blogs on the same typo. And its almost done, except that...i am stuck at one place. When a user posts a new article, depending upon current blog_id, I would like to set the blog_id attribute of @article object. So..in the admin/content_controller.rb: We have: def new_or_edit if request.post? set_article_author save_attachments logger.info("**** and blog id in article is #{@article.blog_id}") if @article.save set_article_categories set_the_flash redirect_to :action => 'show', :id => @article.id end end end So, just before the actual save, the value printed by logger.info is "**** and blog id in article is 2".But after @article.save is called...whatever may be the current blog_id, the value that gets stored in database is always 1. And I have no clue, why is this. Another pointer. new_or_edit calls a method "get_or_build_article", before actually saving article: when 'new' art = this_blog.articles.build logger.info("**** and blog id is #{this_blog.id}") art.allow_comments = this_blog.default_allow_comments art.allow_pings = this_blog.default_allow_pings art.published = true art so...the above code also prints blog_id as 2. But again...the value that goes in database is always 1. Any clues, why is this? gnufied From inxs.hemant at gmail.com Fri Oct 6 03:58:15 2006 From: inxs.hemant at gmail.com (hemant kumar) Date: Fri, 6 Oct 2006 13:28:15 +0530 Subject: [typo] hosting multiple blogs with the same app Message-ID: <45260ca4.2c6e4afd.1819.00fc@mx.google.com> Before save.... I tried setting following method call. doesn't work... :( @article.set_blog_id(this_blog.id) >From where does the content picks its blog_id? I am on Typo 4.0.0. -----Original Message----- From: hemant kumar [mailto:inxs.hemant at gmail.com] Sent: Friday, October 06, 2006 11:23 AM To: 'typo-list at rubyforge.org' Subject: RE: hosting multiple blogs with the same app ok..i get it. I think content.rb is the one that is resetting the blog_ids just before the actual save. And I guess following call is the culprit: class Content < ActiveRecord::Base def initialize(*args) super(*args) set_default_blog end def set_default_blog if self.blog_id == nil or self.blog_id == 0 self.blog = Blog.default end end end Now...how do set some other values...there. -----Original Message----- From: hemant kumar [mailto:inxs.hemant at gmail.com] Sent: Friday, October 06, 2006 11:05 AM To: 'typo-list at rubyforge.org' Subject: hosting multiple blogs with the same app Hi All, I am modifying typo so as, I can host multiple blogs on the same typo. And its almost done, except that...i am stuck at one place. When a user posts a new article, depending upon current blog_id, I would like to set the blog_id attribute of @article object. So..in the admin/content_controller.rb: We have: def new_or_edit if request.post? set_article_author save_attachments logger.info("**** and blog id in article is #{@article.blog_id}") if @article.save set_article_categories set_the_flash redirect_to :action => 'show', :id => @article.id end end end So, just before the actual save, the value printed by logger.info is "**** and blog id in article is 2".But after @article.save is called...whatever may be the current blog_id, the value that gets stored in database is always 1. And I have no clue, why is this. Another pointer. new_or_edit calls a method "get_or_build_article", before actually saving article: when 'new' art = this_blog.articles.build logger.info("**** and blog id is #{this_blog.id}") art.allow_comments = this_blog.default_allow_comments art.allow_pings = this_blog.default_allow_pings art.published = true art so...the above code also prints blog_id as 2. But again...the value that goes in database is always 1. Any clues, why is this? gnufied From scott at sigkill.org Fri Oct 6 14:17:26 2006 From: scott at sigkill.org (Scott Laird) Date: Fri, 6 Oct 2006 11:17:26 -0700 Subject: [typo] hosting multiple blogs with the same app In-Reply-To: <45260ca4.2c6e4afd.1819.00fc@mx.google.com> References: <45260ca4.2c6e4afd.1819.00fc@mx.google.com> Message-ID: <14b7e5ef0610061117k1bf9a278ubaf7bd1c3e4d87d3@mail.gmail.com> Try looking at the trunk--it has a number of multi-blog changes. This might Just Work. Scott On 10/6/06, hemant kumar wrote: > > Before save.... I tried setting following method call. doesn't work... :( > > @article.set_blog_id(this_blog.id) > > >From where does the content picks its blog_id? > > I am on Typo 4.0.0. > > > > -----Original Message----- > From: hemant kumar [mailto:inxs.hemant at gmail.com] > Sent: Friday, October 06, 2006 11:23 AM > To: 'typo-list at rubyforge.org' > Subject: RE: hosting multiple blogs with the same app > > > ok..i get it. > > I think content.rb is the one that is resetting the blog_ids just before the > actual save. > And I guess following call is the culprit: > > class Content < ActiveRecord::Base > def initialize(*args) > super(*args) > set_default_blog > end > > def set_default_blog > if self.blog_id == nil or self.blog_id == 0 > self.blog = Blog.default > end > end > > end > > Now...how do set some other values...there. > > -----Original Message----- > From: hemant kumar [mailto:inxs.hemant at gmail.com] > Sent: Friday, October 06, 2006 11:05 AM > To: 'typo-list at rubyforge.org' > Subject: hosting multiple blogs with the same app > > > Hi All, > > I am modifying typo so as, I can host multiple blogs on the same typo. > And its almost done, except that...i am stuck at one place. > > When a user posts a new article, depending upon current blog_id, I would > like to set the blog_id attribute of @article object. > > So..in the admin/content_controller.rb: > > We have: > > def new_or_edit > if request.post? > set_article_author > save_attachments > logger.info("**** and blog id in article is #{@article.blog_id}") > if @article.save > set_article_categories > set_the_flash > redirect_to :action => 'show', :id => @article.id > end > end > end > > So, just before the actual save, the value printed by logger.info is "**** > and blog id in article is 2".But after @article.save is called...whatever > may be the current blog_id, the value that gets stored in database is always > 1. And I have no clue, why is this. > > Another pointer. new_or_edit calls a method "get_or_build_article", before > actually saving article: > > when 'new' > art = this_blog.articles.build > logger.info("**** and blog id is #{this_blog.id}") > art.allow_comments = this_blog.default_allow_comments > art.allow_pings = this_blog.default_allow_pings > art.published = true > art > > > so...the above code also prints blog_id as 2. But again...the value that > goes in database is always 1. > > Any clues, why is this? > > > gnufied > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From aja at si.on.ca Fri Oct 6 17:11:40 2006 From: aja at si.on.ca (Anton J Aylward) Date: Fri, 06 Oct 2006 17:11:40 -0400 Subject: [typo] Follow-up :: Problems installing Typo 4.0.3 on Dreamhost In-Reply-To: <20ADD5B7-A9F0-4894-9B5D-745BCBF1B66C@pobox.com> References: <4514243C.9000006@si.on.ca> <20ADD5B7-A9F0-4894-9B5D-745BCBF1B66C@pobox.com> Message-ID: <4526C68C.3040401@si.on.ca> I got Typo running, though I still have a few problems. Things had moved on from the state of affairs of Aiden Bordner's blog. As noted elsewhere in this list, the main branch became unstable ... and other things. I downloaded and used as a baseline the 4.0.3 taz file from RubyForge and installed that. Having experimented with this on my home machine I found that I needed Ruby 1.8.4 to run it and Dreamhost only had 1.8.2. Never mind, I just compiled my own version of 1.8.4 and put it in ~/bin and ~/lib and updated $PATH. As Peter says, 'rake' was a disaster, so I created the db from shell. I played around with some themes and it works ... mostly. Some problems remain. The first is that I keep getting the 500 error message (see .htaccess) "

Application error

Typo failed to start properly". Sometimes a refresh fixes that, sometimes not. I've not found anything in the typo/rails log - except this in the apache logs [Fri Oct 06 12:22:47 2006] [error] [client 38.99.203.110] FastCGI: comm with (dynamic) server "~/typo/public/dispatch.fcgi" aborted: (first read) idle timeout (120 sec) [Fri Oct 06 12:22:47 2006] [error] [client 38.99.203.110] FastCGI: incomplete headers (0 bytes) received from server "~/typo/public/dispatch.fcgi" The second problem is abysmally poor performance. It can take anywhere from 30 seconds to to two minutes for a simple page to load. Repeated re-loads that make use of the image cache on firefox come out about 15 seconds if I strip out all the Amazon/Google stuff. Sometimes it may take 2-3 minutes before that 500 message. Or perhaps it locks up in that response with the fcgi not starting up By comparison, I set up a similar site using Dreamhosts' "one click install" of WordPress. Pages there take between 3 and 5 seconds to load. And that's without a persistent FCGI handler. Is PHP really that much faster? So I installed the "Load Time Analyzer" in firefox and looked what was happening. The 'waiting for' for the Typo to do its work is much much longer. Yes I am running 'production' so things should be faster, eh? Yes there is stuff in ~/typo/tmp/cache - but the reloads don't go any faster! The graph of the reload analysis shows that the wait time for typo at Dreamhost still predominates. I've commented out the ':active_record_store' session store in 'config/environment.rb' - I understand that this now defaults to the file system. However I don't see anything storing sessions in ~/typo/tmp/session or /tmp/ Rake is a disaster. As noted, the /usr/bin/rake takes forever to run. It then fails because its not using Ruby 1.8.4 !! However if I use the version of rake that does -- ~/bin/rake -- then it can't find some libraries: $ rake ~/bin/rake:9:in `require': no such file to load -- rubygems (LoadError) from ~/bin/rake:9 I don't feel battling to install my local copy of rubygems. So, there's probably a lot I don't know about ruby and rails in the above. If anyone can advise me I'd be grateful. Thanks. Peter Burkholder wrote: > Aiden Bordner's blog on the dreamhost install is absolutely > accurate. I suggest you undo what you can and start from scratch > following his instructions. Ruby 1.8.2 is okay with Typo and Rails. > Running 'rake' on dreamhost servers takes freakin' forever -- and I > mean like 5-10 minutes of _nothing_ happening. At one point I even > gave up and just ran the db scripts from the shell. > > --Peter > On Sep 22, 2006, at 11:58 AM, Anton J Aylward wrote: > >> Dreamhost has ruby 1.8.2. >> I don't think rails matters as its included with Typo. >> >> Right now I'm compiling 1.8.4 locally. >> >> Linda Derezinski wrote: >>> I know nothing about dreamhost what versions of ruby and rails are >>> you >>> running? >>> -Linda >>> >>> >>> On 9/22/06 8:18 AM, "Anton J Aylward" wrote: >>> >>>> Despite making use of such references as >>>> http://www.crazybarbour.com/blog/2006/03/16/setting-up-typo-on- >>>> dreamhost/ >>>> and >>>> http://blog.aidenbordner.com/articles/2006/07/24/getting- >>>> typo-4-0-0-running-on >>>> -dreamhost >>>> and >>>> http://www.masterofnil.com/articles/2006/08/07/installing- >>>> typo-4-0-1-on-dreamh >>>> ost >>>> and even http://fo64.com/articles/2005/10/19/typo-dreamhost >>>> I'm having no success. >>>> st >> >> > -- > Peter Burkholder > pburkholder at pobox.com > http://www.pburkholder.com > > -- For the time will come when men will not put up with sound doctrine. Instead, to suit their own desires, they will gather around them a great number of teachers to say what their itchingears want to hear. - II Timothy 4:3 From inxs.hemant at gmail.com Sat Oct 7 03:06:54 2006 From: inxs.hemant at gmail.com (hemant kumar) Date: Sat, 7 Oct 2006 12:36:54 +0530 Subject: [typo] hosting multiple blogs with the same app In-Reply-To: <14b7e5ef0610061117k1bf9a278ubaf7bd1c3e4d87d3@mail.gmail.com> Message-ID: <4527521d.6bbd3d2b.0938.fffff530@mx.google.com> Hi Scott, Thanks for the tip. Question #1: Since typo trac is down, I am not able to get the latest typo version. gem install, will I guess only fetch the latest stable code.So can you tell me the SVN location of the typo trunk. Question #2: As I told earlier...i am almost done with most of the changes that I wanted to do. And multiple blogs facility is almost working, except that...correct blog_id doesn't get saved when creating a new article. If I drop to mysql prompt and change the blog_id manually then everything works as a charm and here I mean everything. Each user gets his own sets of resources, articles, Avatars (my own little stupid hack), themes. There ain't any problems regarding permissions also. and stuff like: http://192.168.2.128:8002/gnufied http://192.168.2.128:8002/kurt works flawlessly. But currently I have to cook a hack I guess for changing blog_ids after save. If you can just point me, where exactly an article gets assigned blog_id, when its getting saved to the database, it would be very helpful. gnufied -----Original Message----- From: typo-list-bounces at rubyforge.org [mailto:typo-list-bounces at rubyforge.org] On Behalf Of Scott Laird Sent: Friday, October 06, 2006 11:47 PM To: typo-list at rubyforge.org Subject: Re: [typo] hosting multiple blogs with the same app Try looking at the trunk--it has a number of multi-blog changes. This might Just Work. Scott On 10/6/06, hemant kumar wrote: > > Before save.... I tried setting following method call. doesn't work... > :( > > @article.set_blog_id(this_blog.id) > > >From where does the content picks its blog_id? > > I am on Typo 4.0.0. > > > > -----Original Message----- > From: hemant kumar [mailto:inxs.hemant at gmail.com] > Sent: Friday, October 06, 2006 11:23 AM > To: 'typo-list at rubyforge.org' > Subject: RE: hosting multiple blogs with the same app > > > ok..i get it. > > I think content.rb is the one that is resetting the blog_ids just > before the actual save. > And I guess following call is the culprit: > > class Content < ActiveRecord::Base > def initialize(*args) > super(*args) > set_default_blog > end > > def set_default_blog > if self.blog_id == nil or self.blog_id == 0 > self.blog = Blog.default > end > end > > end > > Now...how do set some other values...there. > > -----Original Message----- > From: hemant kumar [mailto:inxs.hemant at gmail.com] > Sent: Friday, October 06, 2006 11:05 AM > To: 'typo-list at rubyforge.org' > Subject: hosting multiple blogs with the same app > > > Hi All, > > I am modifying typo so as, I can host multiple blogs on the same typo. > And its almost done, except that...i am stuck at one place. > > When a user posts a new article, depending upon current blog_id, I > would like to set the blog_id attribute of @article object. > > So..in the admin/content_controller.rb: > > We have: > > def new_or_edit > if request.post? > set_article_author > save_attachments > logger.info("**** and blog id in article is #{@article.blog_id}") > if @article.save > set_article_categories > set_the_flash > redirect_to :action => 'show', :id => @article.id > end > end > end > > So, just before the actual save, the value printed by logger.info is > "**** and blog id in article is 2".But after @article.save is > called...whatever may be the current blog_id, the value that gets > stored in database is always 1. And I have no clue, why is this. > > Another pointer. new_or_edit calls a method "get_or_build_article", > before actually saving article: > > when 'new' > art = this_blog.articles.build > logger.info("**** and blog id is #{this_blog.id}") > art.allow_comments = this_blog.default_allow_comments > art.allow_pings = this_blog.default_allow_pings > art.published = true > art > > > so...the above code also prints blog_id as 2. But again...the value > that goes in database is always 1. > > Any clues, why is this? > > > gnufied > > > _______________________________________________ > 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 gnufied at gmail.com Sat Oct 7 06:04:43 2006 From: gnufied at gmail.com (hemant kumar) Date: Sat, 7 Oct 2006 15:34:43 +0530 Subject: [typo] hosting multiple blogs with the same app In-Reply-To: <14b7e5ef0610061117k1bf9a278ubaf7bd1c3e4d87d3@mail.gmail.com> References: <45260ca4.2c6e4afd.1819.00fc@mx.google.com> <14b7e5ef0610061117k1bf9a278ubaf7bd1c3e4d87d3@mail.gmail.com> Message-ID: <300bf8010610070304h7b6d9f51nbc44e778d1f237f1@mail.gmail.com> Hi Scott, Thanks for the tip. Question #1: Since typo trac is down, I am not able to get the latest typo version. gem install, will I guess only fetch the latest stable code.So can you tell me the SVN location of the typo trunk. Question #2: As I told earlier...i am almost done with most of the changes that I wanted to do. And multiple blogs facility is almost working, except that...correct blog_id doesn't get saved when creating a new article. If I drop to mysql prompt and change the blog_id manually then everything works as a charm and here I mean everything. Each user gets his own sets of resources, articles, Avatars (my own little stupid hack), themes. There ain't any problems regarding permissions also. and stuff like: http://192.168.2.128:8002/gnufied http://192.168.2.128:8002/kurt works flawlessly. But currently I have to cook a hack I guess for changing blog_ids after save. If you can just point me, where exactly an article gets assigned blog_id, when its getting saved to the database, it would be very helpful. gnufied On 10/6/06, Scott Laird wrote: > > Try looking at the trunk--it has a number of multi-blog changes. This > might Just Work. > > > Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20061007/285e38be/attachment.html From gnufied at gmail.com Sat Oct 7 13:33:28 2006 From: gnufied at gmail.com (hemant kumar) Date: Sat, 7 Oct 2006 23:03:28 +0530 Subject: [typo] hosting multiple blogs with the same app In-Reply-To: <4527521d.6bbd3d2b.0938.fffff530@mx.google.com> References: <14b7e5ef0610061117k1bf9a278ubaf7bd1c3e4d87d3@mail.gmail.com> <4527521d.6bbd3d2b.0938.fffff530@mx.google.com> Message-ID: <300bf8010610071033q7d21a70dh9ba201f22d24493c@mail.gmail.com> On 10/7/06, hemant kumar wrote: > > Hi Scott, > > Thanks for the tip. > > Question #1: Since typo trac is down, I am not able to get the latest typo > version. gem install, will I guess only fetch the latest stable code.Socan > you tell me the SVN location of the typo trunk. > > Question #2: As I told earlier...i am almost done with most of the changes > that I wanted to do. And multiple blogs facility is almost working, except > that...correct blog_id doesn't get saved when creating a new article. If I > drop to mysql prompt and change the blog_id manually then everything works > as a charm and here I mean everything. Each user gets his own sets of > resources, articles, Avatars (my own little stupid hack), themes. > There ain't any problems regarding permissions also. > and stuff like: > > http://192.168.2.128:8002/gnufied > > http://192.168.2.128:8002/kurt > > works flawlessly. But currently I have to cook a hack I guess for changing > blog_ids after save. If you can just point me, where exactly an article > gets > assigned blog_id, when its getting saved to the database, it would be very > helpful. > > > gnufied Ok Scott, the problem is solved. Figured it out somehow..... Thanks for great work. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20061007/1c18d58a/attachment.html From stevelenti at 3pop.com Sun Oct 8 23:19:54 2006 From: stevelenti at 3pop.com (Steve Lenti) Date: Sun, 08 Oct 2006 21:19:54 -0600 Subject: [typo] Typo macro text plugin for YouTube Message-ID: <4529BFDA.6080100@3pop.com> Here is a stupid little macro plugin for typo I wrote so you can type and it will embed the youtube code into a post. It took all of two minutes but I would love to go further by maybe incorporating all the popular video sites. Let me know what you think. http://youdummy.net/blog/articles/2006/10/07/youtube-macro-text-plugin From scott at sigkill.org Mon Oct 9 13:40:43 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 9 Oct 2006 10:40:43 -0700 Subject: [typo] Typo macro text plugin for YouTube In-Reply-To: <4529BFDA.6080100@3pop.com> References: <4529BFDA.6080100@3pop.com> Message-ID: <14b7e5ef0610091040p19605633k9061add7ab00a091@mail.gmail.com> Ooh. Cool. Scott On 10/8/06, Steve Lenti wrote: > Here is a stupid little macro plugin for typo I wrote so you can type > and it will embed the youtube code into a > post. It took all of two minutes but I would love to go further by > maybe incorporating all the popular video sites. Let me know what you > think. > > http://youdummy.net/blog/articles/2006/10/07/youtube-macro-text-plugin > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From stevelenti at 3pop.com Mon Oct 9 15:31:24 2006 From: stevelenti at 3pop.com (Steve Lenti) Date: Mon, 09 Oct 2006 13:31:24 -0600 Subject: [typo] Flickr side bar fix... Message-ID: <452AA38C.5010400@3pop.com> I'm sure others have fixed this and maybe its already fixed in the unstable version, but here is my fix for the stable version that fixes the flickr sidebar because the feed has changed. http://youdummy.net/blog/articles/2006/10/09/fix-for-flickr-sidebar-plugin-in-typo -Steve From stevelenti at 3pop.com Mon Oct 9 17:29:15 2006 From: stevelenti at 3pop.com (Steve Lenti) Date: Mon, 09 Oct 2006 15:29:15 -0600 Subject: [typo] Typo macro text plugin for YouTube In-Reply-To: <14b7e5ef0610091040p19605633k9061add7ab00a091@mail.gmail.com> References: <4529BFDA.6080100@3pop.com> <14b7e5ef0610091040p19605633k9061add7ab00a091@mail.gmail.com> Message-ID: <452ABF2B.3080007@3pop.com> Thanks! Updated with a brand new version with lots of new features including support for Google Video. Check it out http://youdummy.net/blog/articles/2006/10/09/updated-video-macro-plugin-for-typo -Steve Scott Laird wrote: > Ooh. Cool. > > > Scott > > On 10/8/06, Steve Lenti wrote: > >> Here is a stupid little macro plugin for typo I wrote so you can type >> and it will embed the youtube code into a >> post. It took all of two minutes but I would love to go further by >> maybe incorporating all the popular video sites. Let me know what you >> think. >> >> http://youdummy.net/blog/articles/2006/10/07/youtube-macro-text-plugin >> _______________________________________________ >> 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/20061009/dc541efd/attachment.html From aja at si.on.ca Mon Oct 9 18:05:51 2006 From: aja at si.on.ca (Anton J Aylward) Date: Mon, 09 Oct 2006 18:05:51 -0400 Subject: [typo] Typo macro text plugin for YouTube In-Reply-To: <4529BFDA.6080100@3pop.com> References: <4529BFDA.6080100@3pop.com> Message-ID: <452AC7BF.3080904@si.on.ca> Cool. Maybe someone can use these models to write the equally useful "stupid little macro plugins" for Wikipedia (with a pull-down to set the language perhaps), and the other wiki 'sister projects': Wiktionary Dictionary and thesaurus Wikinews: Free-content news Wikiquote Collection of quotations Wikispecies Directory of species Or perhaps someone knows of an open 'quotd' server that we can put a wrapper around... Steve Lenti wrote: > Here is a stupid little macro plugin for typo I wrote so you can type > and it will embed the youtube code into a > post. It took all of two minutes but I would love to go further by > maybe incorporating all the popular video sites. Let me know what you > think. > > http://youdummy.net/blog/articles/2006/10/07/youtube-macro-text-plugin > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list -- Education is a better safeguard of liberty than a standing army. --Edward Everett From aja at si.on.ca Mon Oct 9 18:07:10 2006 From: aja at si.on.ca (Anton J Aylward) Date: Mon, 09 Oct 2006 18:07:10 -0400 Subject: [typo] Typo macro text plugin for YouTube In-Reply-To: <4529BFDA.6080100@3pop.com> References: <4529BFDA.6080100@3pop.com> Message-ID: <452AC80E.3040707@si.on.ca> Actually, here is a call to a quotes generator that you can put in a sidebar block http://www.quoteworld.org/add_quotes2your_site Visit there and grab the javascript they offer. -- Anton Aylward From inxs.hemant at gmail.com Tue Oct 10 03:22:14 2006 From: inxs.hemant at gmail.com (hemant kumar) Date: Tue, 10 Oct 2006 12:52:14 +0530 Subject: [typo] connecting to multiple databases and assocations and typo Message-ID: <452b4a2e.6e5fee55.0f49.78a4@mx.google.com> hi Scott, I am trying to integrate Typo with one of existing apps, and hence users table of typo I want to use from my existing app's database. So in typo: class User < ActiveRecord::Base establish_connection :users # normal typo kung-fu end Then there is a line in controller code, that is creating problems: @articles = Article.find( :all, :offset => @pages.current.offset, :limit => @pages.items_per_page, :order => "contents.published_at DESC", :include => [:categories, :tags, :user, :blog], #problem line :conditions => ['published = ? AND contents.published_at < ? AND blog_id = ?', true, Time.now, this_blog.id] The above line generates Mysql::Error saying users.country column is not found, though I know very well that, the column is there. So..if i remove the associations line (the line with :include), then everything works perfectly. So i think, when i use Associations, its not connecting to the other database for users table, it still connects to the existing one and hence not able to find country column there. Is it a bug in rails? What are my options? PS: Ignore it, if you have replied to this mail on rubyonrails mailing list. -- Our shadows taller than our Soul From inxs.hemant at gmail.com Tue Oct 10 03:58:44 2006 From: inxs.hemant at gmail.com (hemant kumar) Date: Tue, 10 Oct 2006 13:28:44 +0530 Subject: [typo] connecting to multiple databases and assocations and typo Message-ID: <452b52bc.1421e5ed.39b3.ffff888c@mx.google.com> Ok looks like, I am trying to do joins across databases and that's creating problems. So, I have removed :user from :include and the Typo works as usual...so I hope no problems. gnufied -----Original Message----- From: hemant kumar [mailto:inxs.hemant at gmail.com] Sent: Tuesday, October 10, 2006 12:52 PM To: 'typo-list at rubyforge.org' Subject: connecting to multiple databases and assocations and typo hi Scott, I am trying to integrate Typo with one of existing apps, and hence users table of typo I want to use from my existing app's database. So in typo: class User < ActiveRecord::Base establish_connection :users # normal typo kung-fu end Then there is a line in controller code, that is creating problems: @articles = Article.find( :all, :offset => @pages.current.offset, :limit => @pages.items_per_page, :order => "contents.published_at DESC", :include => [:categories, :tags, :user, :blog], #problem line :conditions => ['published = ? AND contents.published_at < ? AND blog_id = ?', true, Time.now, this_blog.id] The above line generates Mysql::Error saying users.country column is not found, though I know very well that, the column is there. So..if i remove the associations line (the line with :include), then everything works perfectly. So i think, when i use Associations, its not connecting to the other database for users table, it still connects to the existing one and hence not able to find country column there. Is it a bug in rails? What are my options? PS: Ignore it, if you have replied to this mail on rubyonrails mailing list. -- Our shadows taller than our Soul From stevelenti at 3pop.com Tue Oct 10 17:02:04 2006 From: stevelenti at 3pop.com (Steve Lenti) Date: Tue, 10 Oct 2006 15:02:04 -0600 Subject: [typo] Typo macro text plugin for YouTube In-Reply-To: <14b7e5ef0610091040p19605633k9061add7ab00a091@mail.gmail.com> References: <4529BFDA.6080100@3pop.com> <14b7e5ef0610091040p19605633k9061add7ab00a091@mail.gmail.com> Message-ID: <452C0A4C.7030605@3pop.com> Thanks! Updated with a brand new version with lots of new features including support for Google Video. Check it out http://youdummy.net/blog/articles/2006/10/09/updated-video-macro-plugin-for-typo -Steve Scott Laird wrote: > Ooh. Cool. > > > Scott > > On 10/8/06, Steve Lenti wrote: > >> Here is a stupid little macro plugin for typo I wrote so you can type >> and it will embed the youtube code into a >> post. It took all of two minutes but I would love to go further by >> maybe incorporating all the popular video sites. Let me know what you >> think. >> >> http://youdummy.net/blog/articles/2006/10/07/youtube-macro-text-plugin >> _______________________________________________ >> 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/20061010/394ffeae/attachment.html From snowblink at gmail.com Wed Oct 11 07:20:55 2006 From: snowblink at gmail.com (Jon Lim) Date: Wed, 11 Oct 2006 12:20:55 +0100 Subject: [typo] Flickr side bar fix... In-Reply-To: <452AA38C.5010400@3pop.com> References: <452AA38C.5010400@3pop.com> Message-ID: <751e526a0610110420o503c7829r12a2495126cd27bd@mail.gmail.com> Hi Steve, Has the feed has changed? It looks the same to me. Regards, Jon On 09/10/06, Steve Lenti wrote: > I'm sure others have fixed this and maybe its already fixed in the > unstable version, but here is my fix for the stable version that fixes > the flickr sidebar because the feed has changed. > > http://youdummy.net/blog/articles/2006/10/09/fix-for-flickr-sidebar-plugin-in-typo > > -Steve > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- http://www.snowblink.co.uk/ From gnufied at gmail.com Wed Oct 11 08:56:28 2006 From: gnufied at gmail.com (hemant kumar) Date: Wed, 11 Oct 2006 18:26:28 +0530 Subject: [typo] multiple blog problem Message-ID: <300bf8010610110556qc134e71r9517bb97c7948d64@mail.gmail.com> For implementing multiple blogs using typo, following piece of code from content.rb is proving to be a chicken and egg situation. Reason: Let's say i don't have any article in contents table and i log into the system, then it won't fetch the correct blog_id and blog object because it doesn't know the user_id and blog_id of current user, which is both available. Is there anyway, I can initialize blog and blog_id attributes of contents table, so that it can be called from outside? def initialize(*args) super(*args) set_default_blog end def set_default_blog if self.blog_id == nil or self.blog_id == 0 logger.info("############## Calling from model content.rb and user_id is #{self.user_id} and blog_id is #{self.blog_id}") self.blog = Blog.set_default_with_user(self.user_id) # self.blog = Blog.default was the old code end end with regards gnufied -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20061011/64e1ac2a/attachment.html From stevelenti at 3pop.com Wed Oct 11 16:04:25 2006 From: stevelenti at 3pop.com (Steve Lenti) Date: Wed, 11 Oct 2006 14:04:25 -0600 Subject: [typo] Flickr side bar fix... In-Reply-To: <751e526a0610110420o503c7829r12a2495126cd27bd@mail.gmail.com> References: <452AA38C.5010400@3pop.com> <751e526a0610110420o503c7829r12a2495126cd27bd@mail.gmail.com> Message-ID: <452D4E49.90401@3pop.com> Hey Jon, Well here is what happened to me. I downloaded the 4.0X branch from svn. I tried to enable the flickr side bar plugin on my blog and it didn't work. I couldn't figure it out and I saw that other people had it running on their blogs. I searched Google and this list but never found an answer. I decided to just fix it by comparing my feed to the the flick.rb. Well I got it fixed and published the fix. BUT..... The real reason I was having this issue is because the feed I was trying to load was http://api.flickr.com/services/feeds/photos_public.gne?id=51147901 at N00&format=rss_20 Notice that I forgot the trailing 0 it should read &format=rss200. So, by default if you don't type a correct format it defaults to Atom (which I should have noticed). So in effect I really didn't fix anything I just created a atom feed aggregator instead. Sorry for the confusion. I have also updated my blog entry to let everyone know. -Steve|| Jon Lim wrote: > Hi Steve, > > Has the feed has changed? > It looks the same to me. > > Regards, > Jon > > On 09/10/06, Steve Lenti wrote: > >> I'm sure others have fixed this and maybe its already fixed in the >> unstable version, but here is my fix for the stable version that fixes >> the flickr sidebar because the feed has changed. >> >> http://youdummy.net/blog/articles/2006/10/09/fix-for-flickr-sidebar-plugin-in-typo >> >> -Steve >> _______________________________________________ >> 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/20061011/3a9e76c4/attachment-0001.html From neuro at 7el.net Wed Oct 11 16:18:24 2006 From: neuro at 7el.net (Frederic de Villamil) Date: Wed, 11 Oct 2006 22:18:24 +0200 Subject: [typo] Typo, cache and http header Message-ID: <20D4CC7A-E672-4CFF-B1E2-9B0D0411821A@7el.net> Hello, I want to send http_headers according to the browser visiting my typo app. I have writen this small piece of code if @request.env["HTTP_ACCEPT"].index('application/xhtml+xml') @headers["Content-Type"] = "application/xhtml+xml; charset=utf-8" else @headers["Content-Type"] = "text/html; charset=utf-8" end If I place it in my theme (just before the doctype declaration), it seems that typo caches the result (which is not what I want). Any clue on where I can put that piece of code to have it send http headers without caching them ? Regards Frederic -- Fr?d?ric de Villamil "Quand tu veux chasser une belle fille, il vaut mieux commencer par draguer sa copine moche" -- pr?cepte de go. frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com From stevelenti at 3pop.com Wed Oct 11 22:16:36 2006 From: stevelenti at 3pop.com (Steve Lenti) Date: Wed, 11 Oct 2006 20:16:36 -0600 Subject: [typo] YouTube sidebar plugin Message-ID: <452DA584.4010505@3pop.com> Keeping with the YouTube theme for me this week here is a new sidebar plugin. Let me know if you need any help installing it. http://youdummy.net/blog/articles/2006/10/11/youtube-sidebar-plugin-for-typo -Steve From sterling at sterlinganderson.net Fri Oct 13 15:57:18 2006 From: sterling at sterlinganderson.net (Sterling Anderson) Date: Fri, 13 Oct 2006 14:57:18 -0500 Subject: [typo] Typo on Textdrive Message-ID: Is anyone running Typo on Textdrive? The damn thing keeps dying on me and I just got a slap on the wrist for setting up a cron job that was running a bash script that checked if it was running and relaunched if necessary. If you aren't on Textdrive are there any Typo friendly hosts? -- Sterling Anderson sterling [at] sterlinganderson.net http://sterlinganderson.net/ 608.239.8387 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20061013/b249cf9a/attachment.html From linda at innovatesolutions.com Fri Oct 13 16:20:04 2006 From: linda at innovatesolutions.com (Linda Derezinski) Date: Fri, 13 Oct 2006 16:20:04 -0400 Subject: [typo] Typo on Textdrive In-Reply-To: Message-ID: The good news is that I?m on TxD(nicola) and running typo The bad news for you is that it is highly customized Btw I too have a cron job checking to see if life is good ... How often did you have yours set to run? -Linda On 10/13/06 3:57 PM, "Sterling Anderson" wrote: > Is anyone running Typo on Textdrive? The damn thing keeps dying on me and I > just got a slap on the wrist for setting up a cron job that was running a bash > script that checked if it was running and relaunched if necessary. > > If you aren't on Textdrive are there any Typo friendly hosts? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20061013/1c85e6b8/attachment.html From paulrbrown at gmail.com Fri Oct 13 16:20:02 2006 From: paulrbrown at gmail.com (Paul Brown) Date: Fri, 13 Oct 2006 13:20:02 -0700 Subject: [typo] Typo on Textdrive In-Reply-To: References: Message-ID: <4249453d0610131320u96ac5b4s129a4a643a312465@mail.gmail.com> On 10/13/06, Sterling Anderson wrote: > Is anyone running Typo on Textdrive? The damn thing keeps dying on me and I > just got a slap on the wrist for setting up a cron job that was running a > bash script that checked if it was running and relaunched if necessary. I'm in a similar boat; things were good for a while, but now they're intolerable. Lots of 500s, lots of restarts. Typo is just too beefy to run on TextDrive in its current state. (In fact, I'm off writing a minimal personal personal publishing platform; I'd like something that fits in 5Mb of memory instead of 50Mb.) > If you aren't on Textdrive are there any Typo friendly hosts? DreamHost looks better, but YMMV. -- paulrbrown at gmail.com http://mult.ifario.us/ From jake at whoisjake.com Fri Oct 13 17:00:07 2006 From: jake at whoisjake.com (Jake Good) Date: Fri, 13 Oct 2006 16:00:07 -0500 Subject: [typo] Typo on Textdrive In-Reply-To: <4249453d0610131320u96ac5b4s129a4a643a312465@mail.gmail.com> References: <4249453d0610131320u96ac5b4s129a4a643a312465@mail.gmail.com> Message-ID: @Dreamhost We see lots of 500s on Typo unless you rewrite the dispatcher to ignore the requests to stop ;) It's an alright host... they have been having tons of network problems but they're very open about it. For toy sites and/or personal blogs, they can be cool... plus their diskspace + bandwidth for the price is tough to beat anywhere else. Lots of features for a shared host. Jake On Oct 13, 2006, at 3:20 PM, Paul Brown wrote: > On 10/13/06, Sterling Anderson wrote: >> Is anyone running Typo on Textdrive? The damn thing keeps dying on >> me and I >> just got a slap on the wrist for setting up a cron job that was >> running a >> bash script that checked if it was running and relaunched if >> necessary. > > I'm in a similar boat; things were good for a while, but now they're > intolerable. Lots of 500s, lots of restarts. Typo is just too beefy > to run on TextDrive in its current state. (In fact, I'm off writing a > minimal personal personal publishing platform; I'd like something that > fits in 5Mb of memory instead of 50Mb.) > >> If you aren't on Textdrive are there any Typo friendly hosts? > > DreamHost looks better, but YMMV. > > -- > paulrbrown at gmail.com > http://mult.ifario.us/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From steve.longdo at gmail.com Fri Oct 13 21:23:36 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Fri, 13 Oct 2006 20:23:36 -0500 Subject: [typo] Typo on Textdrive In-Reply-To: References: Message-ID: I did a little write up on this. The main memory hog is "sparklines" because of its dependency on RMagick. Removing the text filter for sparklines should do the trick. http://www.stevelongdo.com/articles/2006/08/04/typo-4-0-and-memory-reduction Also since patching RubyGems I have had wonderfully stable processes on TxD. My typo blog has gone for than a month without a restart. You will want to prune the log files once in a while though. "truncate -s -100M *.log" in the /log directory is nice for that. On 10/13/06, Sterling Anderson wrote: > > Is anyone running Typo on Textdrive? The damn thing keeps dying on me and > I just got a slap on the wrist for setting up a cron job that was running a > bash script that checked if it was running and relaunched if necessary. > > If you aren't on Textdrive are there any Typo friendly hosts? > > -- > Sterling Anderson > sterling [at] sterlinganderson.net > http://sterlinganderson.net/ > 608.239.8387 > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > -- Thanks, -Steve http://www.stevelongdo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20061013/23fa68c5/attachment.html From pdcawley at bofh.org.uk Sat Oct 14 02:28:29 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sat, 14 Oct 2006 07:28:29 +0100 Subject: [typo] Typo on Textdrive In-Reply-To: (Steve Longdo's message of "Fri, 13 Oct 2006 20:23:36 -0500") References: Message-ID: "Steve Longdo" writes: > I did a little write up on this. The main memory hog is "sparklines" > because of its dependency on RMagick. Removing the text filter for > sparklines should do the trick. Ah... sparklines. There's a feature that's driven more painful changes in Typo than almost anything. Does anyone actually use it? -- Piers Cawley http://www.bofh.org.uk/ From linda at innovatesolutions.com Sat Oct 14 06:04:51 2006 From: linda at innovatesolutions.com (=?UTF-8?B?TGluZGEgRGVyZXppbnNraQ==?=) Date: Sat, 14 Oct 2006 10:04:51 +0000 Subject: [typo] Typo on Textdrive In-Reply-To: References: Message-ID: <14331889-1160820375-cardhu_blackberry.rim.net-1397287506-@bxe008-cell01.bisx.prod.on.blackberry> We are using it, but not within the out of the box Typo. We have added SNA and use it to show the qactivity of connections -Linda 443 506 9106 Sent via BlackBerry -----Original Message----- From: Piers Cawley Date: Sat, 14 Oct 2006 07:28:29 To:typo-list at rubyforge.org Subject: Re: [typo] Typo on Textdrive "Steve Longdo" writes: > I did a little write up on this. The main memory hog is "sparklines" > because of its dependency on RMagick. Removing the text filter for > sparklines should do the trick. Ah... sparklines. There's a feature that's driven more painful changes in Typo than almost anything. Does anyone actually use it? -- Piers Cawley http://www.bofh.org.uk/ _______________________________________________ Typo-list mailing list Typo-list at rubyforge.org http://rubyforge.org/mailman/listinfo/typo-list From dom at happygiraffe.net Sun Oct 15 05:44:40 2006 From: dom at happygiraffe.net (Dominic Mitchell) Date: Sun, 15 Oct 2006 10:44:40 +0100 Subject: [typo] scribbish patch for css images Message-ID: <45320308.4080807@happygiraffe.net> I've just found that the scribbish CSS is slightly wrong -- it assumes your blog is at "/". This may be fixed in typo HEAD, but in case it isn't could somebody commit this? I would normally use the trac, but it's down at the moment... Thanks, -Dom -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: scribbish.patch Url: http://rubyforge.org/pipermail/typo-list/attachments/20061015/8d9b2e03/attachment-0001.pl From tannoiser at tenzione.it Sun Oct 15 06:25:30 2006 From: tannoiser at tenzione.it (Maurizio Lemmo - Tannoiser) Date: Sun, 15 Oct 2006 12:25:30 +0200 Subject: [typo] Typo macro text plugin for YouTube In-Reply-To: <452C0A4C.7030605@3pop.com> References: <4529BFDA.6080100@3pop.com> <14b7e5ef0610091040p19605633k9061add7ab00a091@mail.gmail.com> <452C0A4C.7030605@3pop.com> Message-ID: <20061015102530.GA11650@tannoiser.sytes.net> * marted? 10 ottobre 2006, alle 15:02, Steve Lenti scrive: > Updated with a brand new version with lots of new features including > support for Google Video. > > Check it out > > http://youdummy.net/blog/articles/2006/10/09/updated-video-macro-plugin-for-typo Hi Steve, I'm taking a look to your plugin. May I suggest an improve? The code for embedding youtube (and google also), is not xhtml compliant. It's not your fault, of course, it's came from youtube already "broken". The problem to me, is the use of tag. This tag is an Internet-Explorer only and not a valid tag for xhtml for what I know. I modified the suggested code from youtube in this way: from the one suggested from youtube (I pick a random video): in this: In this way, the xhtml code validate and run correctly (I'm not tested with IE beacause I'haven't one, but, the code is xhtml valid, so, I think it's had to work). With this in mind, I could suggest to modify your plugin in this way? If you think it's make sense, I could send you a patch. Nice plugin in any case. Bye, -- Maurizio - Tannoiser - Lemmo Founder Member of ERLUG http://erlug.linux.it ------------------------------------------------------------------------------- "You just come along with me and have a good time. The Galaxy's a fun place. You'll need to have this fish in your ear." "I beg your pardon?" - HHGG From pdcawley at bofh.org.uk Sun Oct 15 09:07:22 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 15 Oct 2006 14:07:22 +0100 Subject: [typo] scribbish patch for css images In-Reply-To: <45320308.4080807@happygiraffe.net> (Dominic Mitchell's message of "Sun, 15 Oct 2006 10:44:40 +0100") References: <45320308.4080807@happygiraffe.net> Message-ID: Dominic Mitchell writes: > I've just found that the scribbish CSS is slightly wrong -- it assumes > your blog is at "/". This may be fixed in typo HEAD, but in case it > isn't could somebody commit this? I would normally use the trac, but > it's down at the moment... > > Thanks, > -Dom > === themes/scribbish/stylesheets/application.css > ================================================================== > --- themes/scribbish/stylesheets/application.css (revision 1189) > +++ themes/scribbish/stylesheets/application.css (local) > @@ -12,7 +12,7 @@ > #content form.comments { display:none; } } > > body { > - background: url(/images/theme/background.gif) repeat-x left top; > + background: url(../../images/theme/background.gif) repeat-x left top; > font: normal 12px "lucida grande", verdana, arial, helvetica, sans-serif; > } > > === themes/scribbish/stylesheets/content.css > ================================================================== > --- themes/scribbish/stylesheets/content.css (revision 1189) > +++ themes/scribbish/stylesheets/content.css (local) > @@ -3,7 +3,7 @@ > --------------------------------------------------------------*/ > > #header { > - background: url(/images/theme/header_shadow.gif) repeat-x left bottom; > + background: url(../../images/theme/header_shadow.gif) repeat-x left bottom; > } > > #header a:link, > @@ -296,7 +296,7 @@ > } > > #sidebar .search .loading { > - background: url(/images/theme/spinner.gif) no-repeat left 50%; > + background: url(../../images/theme/spinner.gif) no-repeat left 50%; > margin: 1em 0; padding: 0 0 0 20px; > height: 15px; > } > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Sun Oct 15 09:07:50 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 15 Oct 2006 14:07:50 +0100 Subject: [typo] scribbish patch for css images In-Reply-To: <45320308.4080807@happygiraffe.net> (Dominic Mitchell's message of "Sun, 15 Oct 2006 10:44:40 +0100") References: <45320308.4080807@happygiraffe.net> Message-ID: Um... I meant to say, "Thanks, applied" but had a finger fart... -- Piers Cawley http://www.bofh.org.uk/ From stevelenti at 3pop.com Sun Oct 15 16:11:38 2006 From: stevelenti at 3pop.com (Steve Lenti) Date: Sun, 15 Oct 2006 14:11:38 -0600 Subject: [typo] Typo macro text plugin for YouTube In-Reply-To: <20061015102530.GA11650@tannoiser.sytes.net> References: <4529BFDA.6080100@3pop.com> <14b7e5ef0610091040p19605633k9061add7ab00a091@mail.gmail.com> <452C0A4C.7030605@3pop.com> <20061015102530.GA11650@tannoiser.sytes.net> Message-ID: <453295FA.4060600@3pop.com> Maurizio Lemmo - Tannoiser wrote: > * marted? 10 ottobre 2006, alle 15:02, Steve Lenti scrive: > >> Updated with a brand new version with lots of new features including >> support for Google Video. >> >> Check it out >> >> http://youdummy.net/blog/articles/2006/10/09/updated-video-macro-plugin-for-typo >> > > Hi Steve, > > I'm taking a look to your plugin. > > May I suggest an improve? The code for embedding youtube (and google > also), is not xhtml compliant. > > It's not your fault, of course, it's came from youtube already "broken". > The problem to me, is the use of tag. This tag is an > Internet-Explorer only and not a valid tag for xhtml for what I know. > > I modified the suggested code from youtube in this way: > > from the one suggested from youtube (I pick a random video): > > > > > > > > in this: > > > > > > > In this way, the xhtml code validate and run correctly (I'm not tested > with IE beacause I'haven't one, but, the code is xhtml valid, so, I > think it's had to work). > > With this in mind, I could suggest to modify your plugin in this way? > > If you think it's make sense, I could send you a patch. > > Nice plugin in any case. > > Bye, > > Thanks for the suggestion. I have made the changes and also updated my blog to reflect the changes and so that people can download the newest version. Check it out here. http://youdummy.net/blog/articles/2006/10/15/new-version-1-1-of-the-video-macro-plugin-for-typo -Steve From aja at si.on.ca Sun Oct 15 23:15:59 2006 From: aja at si.on.ca (Anton J Aylward) Date: Sun, 15 Oct 2006 23:15:59 -0400 Subject: [typo] Multi-blog support In-Reply-To: References: <200609301552.29037.fraser@georgetown.wehave.net> Message-ID: <4532F96F.9090408@si.on.ca> Piers Cawley wrote: > Fraser Campbell writes: > >> Hi, >> >> I have a number of blogs on typo 3 and I'd like to combine them into a single >> typo instance while still keeping the separate domain names (and different >> content under each domain). >> >> [...] > > I'm not entirely comfortable with a HABTM relationship between > articles and blogs. I'm more inclined to think in terms of a blog > having many articles, if only because it makes the interface and > access control issues substantially easier to deal with. I think you > might be better off with using categories to seperate subblogs, but > I'm open to being convinced otherwise. I'll take that up. I want to offer a different point of view. I run two blogs at one hosting provider. They are actually subdomains, but that that's beside the point - unless you note that I can create more subdomains (and hence more blogs!) for close to zero cost. I'd like to run one code-base without having to do 'fiddles' like symlink-ing almost everything except /config, and /public. Certainly true multi-blog support based on the URL would be great ... but Well, the separate /public means I can have different favicons and separate /files - the former is pretty near a requirement and the latter is very convenient when the blog themes differ. But certainly sharing a positing between blogs is of little value when the blogs have different subject-themes. Even if the have the same reference the different themes would mean different postings. If you know of a way to make it simple with symlink-ing or with the 4.0.3 code-base, please do let me know. Otherwise I'd welcome true multi-blog support. Please note the operative word - TRUE, not a hack that needs mucho hand crafting and crufting. -- Anton J Aylward, http://antonaylward.com - Emergent Properties From aja at si.on.ca Sun Oct 15 23:17:20 2006 From: aja at si.on.ca (Anton J Aylward) Date: Sun, 15 Oct 2006 23:17:20 -0400 Subject: [typo] Typo on Textdrive In-Reply-To: <4249453d0610131320u96ac5b4s129a4a643a312465@mail.gmail.com> References: <4249453d0610131320u96ac5b4s129a4a643a312465@mail.gmail.com> Message-ID: <4532F9C0.9040701@si.on.ca> Paul Brown wrote: > On 10/13/06, Sterling Anderson wrote: >> Is anyone running Typo on Textdrive? The damn thing keeps dying on me and I >> just got a slap on the wrist for setting up a cron job that was running a >> bash script that checked if it was running and relaunched if necessary. > > I'm in a similar boat; things were good for a while, but now they're > intolerable. Lots of 500s, lots of restarts. Typo is just too beefy > to run on TextDrive in its current state. (In fact, I'm off writing a > minimal personal personal publishing platform; I'd like something that > fits in 5Mb of memory instead of 50Mb.) > >> If you aren't on Textdrive are there any Typo friendly hosts? > > DreamHost looks better, but YMMV. Ah. If this is what I think it is then I've been having a similar problem on Dreamhost. The public/dispatch.fcgi doesn't seem to want to re-start reliably. That's with the patch described at http://blog.aidenbordner.com/articles/2006/07/24/getting-typo-4-0-0-running-on-dreamhost From pierocampanelli at gmail.com Mon Oct 16 03:40:25 2006 From: pierocampanelli at gmail.com (Piero Campanelli) Date: Mon, 16 Oct 2006 09:40:25 +0200 Subject: [typo] Scribbish comment from Internet Explorer / Safari Message-ID: <2d136d8c0610160040rc139d1bg4a5c2ff239f1eb0f@mail.gmail.com> Hi, I installed latest Type SVN Trunk (4.0.3) with a scribbish theme (I have modified theme only in font and some colors). Weird thing is that I can post comments only from Firefox. When I try to post comments from IE/Safari, Submit button becomes greyed and nothing happens. Has any find this problem? tnx -Piero -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20061016/9f73b498/attachment.html From pdcawley at bofh.org.uk Thu Oct 19 07:34:14 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Thu, 19 Oct 2006 12:34:14 +0100 Subject: [typo] Spam control again Message-ID: Would anyone be awfully upset if I removed the DNS blacklist based spam checking for the time being? I want to try and pluginize the various spam detectors so that it's easier to configure the sort of thing you want (and probably to configure the default published state, etc). The problem I have with the RBL stuff is that DNS lookups can take an age, and we're really not remotely threadsafe at this point, so it's not something that can really be backgrounded that effectively. Once I've got the plugin approach sorted, it shouldn't be too hard to add RBL checking back in or to write a *spit* CAPTCHA system. -- Piers Cawley http://www.bofh.org.uk/ From stevelenti at 3pop.com Thu Oct 19 10:38:19 2006 From: stevelenti at 3pop.com (Steve Lenti) Date: Thu, 19 Oct 2006 08:38:19 -0600 Subject: [typo] Awstats popular sidebar plugin Message-ID: <45378DDB.2090609@3pop.com> Just released a sidebar plugin to add a Popular section that lists your most read stories based on Awstats reports. Let me know what you think. http://youdummy.net/blog/articles/2006/10/19/popular-sidebar-plugin-for-typo-using-awstats -- Steve http://youdummy.net From josh at hasmanythrough.com Thu Oct 19 12:13:33 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Thu, 19 Oct 2006 09:13:33 -0700 Subject: [typo] Spam control again In-Reply-To: References: Message-ID: On Oct 19, 2006, at 4:34 AM, Piers Cawley wrote: > Would anyone be awfully upset if I removed the DNS blacklist based > spam checking for the time being? I want to try and pluginize the > various spam detectors so that it's easier to configure the sort of > thing you want (and probably to configure the default published state, > etc). I'd say don't break what's working until you have a replacement that works at least as well. That's what SVN branches are for. > The problem I have with the RBL stuff is that DNS lookups can take an > age, and we're really not remotely threadsafe at this point, so it's > not something that can really be backgrounded that effectively. Have you looked into using BackgrounDRb to do run the long tasks? You could easily run a worker to do the DNS lookup and complete the posting in a separate process. That might be good to incorporate into the Akismet check too, since that can take a long time as well. > Once I've got the plugin approach sorted, it shouldn't be too hard to > add RBL checking back in or to write a *spit* CAPTCHA system. KittenAuth! http://www.kittenauth.com/ -- Josh Susser http://blog.hasmanythrough.com From pdcawley at bofh.org.uk Thu Oct 19 12:57:07 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Thu, 19 Oct 2006 17:57:07 +0100 Subject: [typo] Spam control again In-Reply-To: (Josh Susser's message of "Thu, 19 Oct 2006 09:13:33 -0700") References: Message-ID: Josh Susser writes: > On Oct 19, 2006, at 4:34 AM, Piers Cawley wrote: >> Would anyone be awfully upset if I removed the DNS blacklist based >> spam checking for the time being? I want to try and pluginize the >> various spam detectors so that it's easier to configure the sort of >> thing you want (and probably to configure the default published state, >> etc). > > I'd say don't break what's working until you have a replacement that > works at least as well. That's what SVN branches are for. > >> The problem I have with the RBL stuff is that DNS lookups can take an >> age, and we're really not remotely threadsafe at this point, so it's >> not something that can really be backgrounded that effectively. > > Have you looked into using BackgrounDRb to do run the long tasks? The problem with that is that hosting companies are generally not overly keen on long running processes that *aren't* fcgi processes. At least, mine isn't and, as I'm sure you all realise, that's what's important. I suppose one approach is to trigger spam classification as an admin action and just any new messages into an authorization queue. > You could easily run a worker to do the DNS lookup and complete the > posting in a separate process. That might be good to incorporate > into the Akismet check too, since that can take a long time as well. > >> Once I've got the plugin approach sorted, it shouldn't be too hard to >> add RBL checking back in or to write a *spit* CAPTCHA system. > > KittenAuth! http://www.kittenauth.com/ Evil! -- Piers Cawley http://www.bofh.org.uk/ From scott at sigkill.org Thu Oct 19 12:09:04 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 19 Oct 2006 09:09:04 -0700 Subject: [typo] Spam control again In-Reply-To: References: Message-ID: <14b7e5ef0610190909k342aec0fy8f97de9e1ddff956@mail.gmail.com> It wouldn't bother me in the slightest. IMHO, most of the Typo spam filtering code is kind of nasty right now, but I didn't want to make big changes right before 4.0 came out. Go for it. I've been working on fixing our Trac problem, but work has completely eaten the last week of my life. Hopefully I'll be able to make more progress in the next few days. Scott On 10/19/06, Piers Cawley wrote: > Would anyone be awfully upset if I removed the DNS blacklist based > spam checking for the time being? I want to try and pluginize the > various spam detectors so that it's easier to configure the sort of > thing you want (and probably to configure the default published state, > etc). > > The problem I have with the RBL stuff is that DNS lookups can take an > age, and we're really not remotely threadsafe at this point, so it's > not something that can really be backgrounded that effectively. > > Once I've got the plugin approach sorted, it shouldn't be too hard to > add RBL checking back in or to write a *spit* CAPTCHA system. > > -- > Piers Cawley > http://www.bofh.org.uk/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From pdcawley at bofh.org.uk Fri Oct 20 00:54:50 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 20 Oct 2006 05:54:50 +0100 Subject: [typo] Spam control again In-Reply-To: <14b7e5ef0610190909k342aec0fy8f97de9e1ddff956@mail.gmail.com> (Scott Laird's message of "Thu, 19 Oct 2006 09:09:04 -0700") References: <14b7e5ef0610190909k342aec0fy8f97de9e1ddff956@mail.gmail.com> Message-ID: "Scott Laird" writes: > It wouldn't bother me in the slightest. IMHO, most of the Typo spam > filtering code is kind of nasty right now, but I didn't want to make > big changes right before 4.0 came out. Go for it. Good oh. > I've been working on fixing our Trac problem, but work has completely > eaten the last week of my life. Hopefully I'll be able to make more > progress in the next few days. Cool. -- Piers Cawley http://www.bofh.org.uk/ From neuro at 7el.net Mon Oct 23 04:11:48 2006 From: neuro at 7el.net (Frederic de Villamil) Date: Mon, 23 Oct 2006 10:11:48 +0200 Subject: [typo] "Send a trackback" field Message-ID: Hello, as trac is still down and I want to keep tracks of those things, I just post on the mailing list. We had someone asking for a "send a trackback to" field in the post interface, and it's true typo lacks such a functionnality. However, I don't know if it's that much a good idea to add such a functionnality when more and more blogging platforms (like typepad) disables trackbacks entries because of spam. Maybe there are some much more important things to do, aren't there ? Cheers, Frederic de Villamil -- Fr?d?ric de Villamil "Sadness is just another word for not enough coffee" -- Scott Adams frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com From trejkaz at trypticon.org Mon Oct 23 05:19:11 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Mon, 23 Oct 2006 19:19:11 +1000 Subject: [typo] "Send a trackback" field In-Reply-To: References: Message-ID: <200610231919.14959.trejkaz@trypticon.org> On Monday 23 October 2006 18:11, Frederic de Villamil wrote: > Hello, > > as trac is still down and I want to keep tracks of those things, I > just post on the mailing list. > > We had someone asking for a "send a trackback to" field in the post > interface, and it's true typo lacks such a functionnality. > > However, I don't know if it's that much a good idea to add such a > functionnality when more and more blogging platforms (like typepad) > disables trackbacks entries because of spam. Maybe there are some > much more important things to do, aren't there ? If your post is actually relevant to theirs in the first place (which is the point of trackbacks, IMO) then you should have a link to their site in the body somewhere. 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: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20061023/494ef081/attachment.bin From neuro at 7el.net Mon Oct 23 06:03:43 2006 From: neuro at 7el.net (Frederic de Villamil) Date: Mon, 23 Oct 2006 12:03:43 +0200 Subject: [typo] "Send a trackback" field In-Reply-To: <200610231919.14959.trejkaz@trypticon.org> References: <200610231919.14959.trejkaz@trypticon.org> Message-ID: Le 23 oct. 06 ? 11:19, Trejkaz a ?crit : > On Monday 23 October 2006 18:11, Frederic de Villamil wrote: >> Hello, >> >> as trac is still down and I want to keep tracks of those things, I >> just post on the mailing list. >> >> We had someone asking for a "send a trackback to" field in the post >> interface, and it's true typo lacks such a functionnality. >> >> However, I don't know if it's that much a good idea to add such a >> functionnality when more and more blogging platforms (like typepad) >> disables trackbacks entries because of spam. Maybe there are some >> much more important things to do, aren't there ? > > If your post is actually relevant to theirs in the first place > (which is the > point of trackbacks, IMO) then you should have a link to their site > in the > body somewhere. > > TX I know that, I was just transmiting a feature demand because it is a functionnality you can see on almost all blogging platform, and even though I don't think it's mandatory to have one, people using Typo may want to see it in their favourite blogging tool. Frederic -- Fr?d?ric de Villamil "Sadness is just another word for not enough coffee" -- Scott Adams frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com From gnufied at gmail.com Mon Oct 23 18:44:42 2006 From: gnufied at gmail.com (hemant kumar) Date: Tue, 24 Oct 2006 04:14:42 +0530 Subject: [typo] IE7 and Lucid theme Message-ID: <300bf8010610231544s754fbda0xd00aa0f499dc3371@mail.gmail.com> Did anyone see Lucid theme in IE7... Its completely broken...yes completely. I am currently working on a fix...if anyone else is working on the fix...let me know, we can share some ideas. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20061024/4e7af302/attachment.html From bryan at osesm.com Tue Oct 24 10:07:12 2006 From: bryan at osesm.com (Bryan Liles) Date: Tue, 24 Oct 2006 10:07:12 -0400 Subject: [typo] svn location? Message-ID: <639BF45E-F9C8-4CE3-A510-8F00982F50E3@osesm.com> What is the typo svn address? From pburkholder at pobox.com Tue Oct 24 11:17:22 2006 From: pburkholder at pobox.com (Peter Burkholder) Date: Tue, 24 Oct 2006 09:17:22 -0600 Subject: [typo] svn location? In-Reply-To: <639BF45E-F9C8-4CE3-A510-8F00982F50E3@osesm.com> References: <639BF45E-F9C8-4CE3-A510-8F00982F50E3@osesm.com> Message-ID: My 'svn info' reports svn://typosphere.org/typo/ Cheers, Peter On Oct 24, 2006, at 8:07 AM, Bryan Liles wrote: > What is the typo svn address? > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Peter Burkholder, Technology Consultant pburkholder at pobox.com +1-303-282-7738 http://www.pburkholder.com PGP Key Fingerprint: B473 C1CF D8B0 7941 8F95 7627 4785 86C9 F1F4 81DC PGP Key URL: http://pburkholder.com/gpg.txt From qeantk at gmail.com Tue Oct 24 16:39:50 2006 From: qeantk at gmail.com (Tim Connor) Date: Tue, 24 Oct 2006 14:39:50 -0600 Subject: [typo] Plugin for truly permanent permalinks, via prefixing the id In-Reply-To: <87965f690610241306x2356f5f3rab8b7ff72eb2920a@mail.gmail.com> References: <87965f690610241306x2356f5f3rab8b7ff72eb2920a@mail.gmail.com> Message-ID: <87965f690610241339w1ae8db0aicc37b60c8636a18a@mail.gmail.com> I made a plugin to prefix the ID to the title, in the permalink, so that you can edit your permalink at will. Of course it does all the appropriate things to find articles by the old links, too, to not invalidate the old permalinks. Anyone is welcome to grab it from http://code.google.com/p/typo-permalink-with-id/ or read more about it on that category in my blog: http://www.timocracy.com/articles/category/typo-permalink-with-id And the developers are welcome to mainline it, and thus make it obselete, if they like it. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20061024/453cff98/attachment.html From johncwang at gmail.com Tue Oct 24 17:58:19 2006 From: johncwang at gmail.com (John Wang) Date: Tue, 24 Oct 2006 14:58:19 -0700 Subject: [typo] Plugin for truly permanent permalinks, via prefixing the id In-Reply-To: <87965f690610241339w1ae8db0aicc37b60c8636a18a@mail.gmail.com> References: <87965f690610241306x2356f5f3rab8b7ff72eb2920a@mail.gmail.com> <87965f690610241339w1ae8db0aicc37b60c8636a18a@mail.gmail.com> Message-ID: <22a4faec0610241458h4cc9471h553cfe43c161f4dc@mail.gmail.com> On 10/24/06, Tim Connor wrote: > > I made a plugin to prefix the ID to the title, in the permalink, so that > you can edit your permalink at will. Of course it does all the appropriate > things to find articles by the old links, too, to not invalidate the old > permalinks. Anyone is welcome to grab it from http://code.google.com/p/typo-permalink-with-id/ > or read more about it on that category in my blog: > http://www.timocracy.com/articles/category/typo-permalink-with-id > > And the developers are welcome to mainline it, and thus make it obselete, > if they like it. > Very interesting. But if Typo is going to get a mainline feature to allowing old permalinks to continue working after updates, I'd prefer storing old permalinks and doing a redirect like MediaWiki, as opposed to putting a centrally allocated number in the URI. The URIs just look cleaner. -- John Wang http://www.dev411.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20061024/b38399b5/attachment-0001.html From qeantk at gmail.com Tue Oct 24 21:24:39 2006 From: qeantk at gmail.com (Tim Connor) Date: Tue, 24 Oct 2006 19:24:39 -0600 Subject: [typo] Plugin for truly permanent permalinks, via prefixing the id In-Reply-To: <22a4faec0610241458h4cc9471h553cfe43c161f4dc@mail.gmail.com> References: <87965f690610241306x2356f5f3rab8b7ff72eb2920a@mail.gmail.com> <87965f690610241339w1ae8db0aicc37b60c8636a18a@mail.gmail.com> <22a4faec0610241458h4cc9471h553cfe43c161f4dc@mail.gmail.com> Message-ID: <87965f690610241824i1fe3e9aic4afa645ebab5f63@mail.gmail.com> I went with this approach as a low hanging fruit, and if it stays a plugin forever, for those who want it, that's cool with me. I actually considered the centrally allocated number (the id) a bonus. This is more for keeping the handy date/title URI, but just tweaking it a tiny bit so that the text is editable, without invalidating the permalink. As for look of the URL, maybe it is a tiny bit more obscure, but I didn't really think it could be much so. Compare: old: http://www.timocracy.com/articles/2006/10/24/funny-rails-shirts-test-of-the-emergency-broadcast-system new: http://www.timocracy.com/articles/2006/10/24/24-funny-rails-shirts-test-of-the-emergency-broadcast-system Maybe it does loose the clarity of the date then? It wouldn't take too much work to make it new: http://www.timocracy.com/articles/2006/10/24/article-24-funny-rails-shirts-test-of-the-emergency-broadcast-systemor something similar. Now if someone wanted a more wiki-ish permalink scheme, it actually would be pretty easy*, I just like throwing the numeric ID in there, because nobody looks at blog URIs as much as wiki ones, since they are more likely to be interblog than intrablog, thus will have the whole domain and all that cruft (from the view of a human readable resource) in the link, anyways. I just took this, http://www.notsostupid.com/blog/2006/07/07/urls-on-rails/, and re-added the id, since we already have the rest of the slug. Thanks for the feedback. :D Tim *Hell, if there were demand, I might be tempted to design a fuller featured plugin that gave you a preference of permalink schemes. Tim On 10/24/06, John Wang wrote: > > On 10/24/06, Tim Connor wrote: > > > > I made a plugin to prefix the ID to the title, in the permalink, so that > > you can edit your permalink at will. Of course it does all the appropriate > > things to find articles by the old links, too, to not invalidate the old > > permalinks. Anyone is welcome to grab it from http://code.google.com/p/typo-permalink-with-id/ > > or read more about it on that category in my blog: > > http://www.timocracy.com/articles/category/typo-permalink-with-id > > > > And the developers are welcome to mainline it, and thus make it > > obselete, if they like it. > > > > Very interesting. But if Typo is going to get a mainline feature to > allowing old permalinks to continue working after updates, I'd prefer > storing old permalinks and doing a redirect like MediaWiki, as opposed to > putting a centrally allocated number in the URI. The URIs just look cleaner. > > > -- > John Wang > http://www.dev411.com/blog/ > _______________________________________________ > 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/20061024/60dddb86/attachment.html From arsptr at internode.on.net Wed Oct 25 04:36:04 2006 From: arsptr at internode.on.net (Alastair Rankine) Date: Wed, 25 Oct 2006 18:36:04 +1000 Subject: [typo] Spam DoS Message-ID: Hi Guys, My Typo blog has been so heavily spammed of late that my hosting provider took it off the air. I only convinced them to reinstate it after getting them to block the IP address ranges that were responsible for the bulk of the spam. The problem was excessive CPU and database usage. I have a shared hosting plan and it was, according to the hosting provider, "creating a 30-50% spike in CPU usage for a period of 10-40 seconds". So even though i had the Akismet spam detection active, and it was quite effective at marking incoming comments as suspected spam, it was the database hit that killed me. Some questions: 1. Does the RBL prevent the comment from going into the database in the first place? If the incoming spam were blocked by the RBL, would it have been an effective alternative to blocking the incoming connections with Apache configuration (which I don't have control over)? 2. Does it make sense to contribute the spammer's IP addresses back to an RBL? If so, how could this be done? 3. Can I do anything to help speed up the redevelopment of spam protection measures? I'm on double-secret probation with the hosting provider, and need to get some better protection in place (the IP block isn't going to hold them for long, dammit). 4. I thought I read somewhere (perhaps on this list) where someone had done an analysis of the amount of database traffic that resulted from a single comment, and that it was currently way too high. Does anyone else recall this? Is there any point analyzing this further? Thanks, From qeantk at gmail.com Wed Oct 25 14:31:14 2006 From: qeantk at gmail.com (Tim Connor) Date: Wed, 25 Oct 2006 12:31:14 -0600 Subject: [typo] Plugin for truly permanent permalinks, via prefixing the id In-Reply-To: <87965f690610241824i1fe3e9aic4afa645ebab5f63@mail.gmail.com> References: <87965f690610241306x2356f5f3rab8b7ff72eb2920a@mail.gmail.com> <87965f690610241339w1ae8db0aicc37b60c8636a18a@mail.gmail.com> <22a4faec0610241458h4cc9471h553cfe43c161f4dc@mail.gmail.com> <87965f690610241824i1fe3e9aic4afa645ebab5f63@mail.gmail.com> Message-ID: <87965f690610251131w6baa267bl9b244b08325ff3bc@mail.gmail.com> For those interested in this, a discussion on different/better worse ways of doing it seems to have moved to the comments in my blog: http://www.timocracy.com/articles/2006/10/24/25-typo-plugin-is-live-permalink-with-id-is-1-0ish#comments Tim On 10/24/06, Tim Connor wrote: > > I went with this approach as a low hanging fruit, and if it stays a plugin > forever, for those who want it, that's cool with me. I actually considered > the centrally allocated number (the id) a bonus. This is more for keeping > the handy date/title URI, but just tweaking it a tiny bit so that the text > is editable, without invalidating the permalink. As for look of the URL, > maybe it is a tiny bit more obscure, but I didn't really think it could be > much so. Compare: > > old: http://www.timocracy.com/articles/2006/10/24/funny-rails-shirts-test-of-the-emergency-broadcast-system > > new: http://www.timocracy.com/articles/2006/10/24/24-funny-rails-shirts-test-of-the-emergency-broadcast-system > > > Maybe it does loose the clarity of the date then? It wouldn't take too > much work to make it > > new: > http://www.timocracy.com/articles/2006/10/24/article-24-funny-rails-shirts-test-of-the-emergency-broadcast-systemor something similar. > > > Now if someone wanted a more wiki-ish permalink scheme, it actually would > be pretty easy*, I just like throwing the numeric ID in there, because > nobody looks at blog URIs as much as wiki ones, since they are more likely > to be interblog than intrablog, thus will have the whole domain and all that > cruft (from the view of a human readable resource) in the link, anyways. I > just took this, http://www.notsostupid.com/blog/2006/07/07/urls-on-rails/, > and re-added the id, since we already have the rest of the slug. > > Thanks for the feedback. :D > Tim > > *Hell, if there were demand, I might be tempted to design a fuller > featured plugin that gave you a preference of permalink schemes. > > Tim > > On 10/24/06, John Wang wrote: > > > On 10/24/06, Tim Connor wrote: > > > > > > I made a plugin to prefix the ID to the title, in the permalink, so > > > that you can edit your permalink at will. Of course it does all the > > > appropriate things to find articles by the old links, too, to not invalidate > > > the old permalinks. Anyone is welcome to grab it from http://code.google.com/p/typo-permalink-with-id/ > > > or read more about it on that category in my blog: > > > http://www.timocracy.com/articles/category/typo-permalink-with-id > > > > > > And the developers are welcome to mainline it, and thus make it > > > obselete, if they like it. > > > > > > > Very interesting. But if Typo is going to get a mainline feature to > > allowing old permalinks to continue working after updates, I'd prefer > > storing old permalinks and doing a redirect like MediaWiki, as opposed to > > putting a centrally allocated number in the URI. The URIs just look cleaner. > > > > > > -- > > John Wang > > http://www.dev411.com/blog/ > > _______________________________________________ > > 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/20061025/6d4222d1/attachment.html From qeantk at gmail.com Wed Oct 25 22:27:21 2006 From: qeantk at gmail.com (Tim Connor) Date: Wed, 25 Oct 2006 20:27:21 -0600 Subject: [typo] Typo comments not submitting in IE when using Scribbish theme Message-ID: <87965f690610251927p19da1dafhbbffaa3c644c15fa@mail.gmail.com> I know I found at least one old email about someone asking about this, but I never saw a fix, so I tracked down what was going wrong and made a quick workaround: http://www.timocracy.com/articles/2006/10/25/36-comments-not-working-in-typo-scribbish-theme -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20061025/7ea3132d/attachment.html From aja at si.on.ca Thu Oct 26 10:11:02 2006 From: aja at si.on.ca (Anton J Aylward) Date: Thu, 26 Oct 2006 10:11:02 -0400 Subject: [typo] Index of Articles Message-ID: <4540C1F6.8040907@si.on.ca> I'd like to have an index or list of recent articles for Typo. I've seen http://www.dev411.com/blog/2006/06/26/adding-a-toc-to-typo and http://blog.steelpixel.com/articles/2006/03/08/recent-posts-typo-plugin but have troubles ranging from a complete freeze to ... nothing. Are there any plans to include this kind of functionality in a future release of Typo? -- Anton J Aylward, CISSP, CISA System Integrity http://si.on.ca - System Integrity http://infosecblog.antonaylward.com - The InfoSec Blog From qeantk at gmail.com Thu Oct 26 13:19:53 2006 From: qeantk at gmail.com (Tim Connor) Date: Thu, 26 Oct 2006 11:19:53 -0600 Subject: [typo] Typo comments not submitting in IE when using Scribbish theme In-Reply-To: <87965f690610251927p19da1dafhbbffaa3c644c15fa@mail.gmail.com> References: <87965f690610251927p19da1dafhbbffaa3c644c15fa@mail.gmail.com> Message-ID: <87965f690610261019h5a98b0b3v88bfdbe017724483@mail.gmail.com> I actually fixed the bug properly now, so that the submit button still gets disabled: http://www.timocracy.com/articles/2006/10/26/43-fix-for-typo-scribbish-theme-v2-aka-disabling-a-submit-button-in-ie On 10/25/06, Tim Connor wrote: > > I know I found at least one old email about someone asking about this, but > I never saw a fix, so I tracked down what was going wrong and made a quick > workaround: > http://www.timocracy.com/articles/2006/10/25/36-comments-not-working-in- > typo-scribbish-theme > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20061026/52523da2/attachment-0001.html From pdcawley at bofh.org.uk Thu Oct 26 15:48:34 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Thu, 26 Oct 2006 20:48:34 +0100 Subject: [typo] Usage questions Message-ID: Is anyone using: * Email notification * Jabber notification I'm thinking of pulling them out and, if there's a loud enough outcry, adding them back with a rather better test suite than we have at the moment. BTW, if you want to follow what I'm doing, svn://typosphere.org/typo/experimental/restful is where I'm working on the edge rails compatible stuff. Word to the wise though: Don't install it from scratch, upgrade an existing database (or copy an existing database and upgrade the copy). -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Thu Oct 26 16:03:07 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Thu, 26 Oct 2006 21:03:07 +0100 Subject: [typo] Typo comments not submitting in IE when using Scribbish theme In-Reply-To: <87965f690610261019h5a98b0b3v88bfdbe017724483@mail.gmail.com> (Tim Connor's message of "Thu, 26 Oct 2006 11:19:53 -0600") References: <87965f690610251927p19da1dafhbbffaa3c644c15fa@mail.gmail.com> <87965f690610261019h5a98b0b3v88bfdbe017724483@mail.gmail.com> Message-ID: "Tim Connor" writes: > I actually fixed the bug properly now, so that the submit button still gets > disabled: > http://www.timocracy.com/articles/2006/10/26/43-fix-for-typo-scribbish-theme-v2-aka-disabling-a-submit-button-in-ie Thanks. Before I hit 'commit', did you test it with other browsers? -- Piers Cawley http://www.bofh.org.uk/ From andy at ciordia.info Thu Oct 26 16:38:03 2006 From: andy at ciordia.info (Andy Ciordia) Date: Thu, 26 Oct 2006 16:38:03 -0400 Subject: [typo] Usage questions In-Reply-To: References: Message-ID: I'd not know if people were commenting if I didn't have an email notification, so I'd appreciate it if _some_ form of notification was in there.. hell it could be on the login to admin or some other way but notifications are important. -a On Oct 26, 2006, at 3:48 PM, Piers Cawley wrote: > Is anyone using: > > * Email notification > * Jabber notification > > I'm thinking of pulling them out and, if there's a loud enough outcry, > adding them back with a rather better test suite than we have at the > moment. > > BTW, if you want to follow what I'm doing, > svn://typosphere.org/typo/experimental/restful is where I'm working on > the edge rails compatible stuff. Word to the wise though: Don't > install it from scratch, upgrade an existing database (or copy an > existing database and upgrade the copy). > > -- > Piers Cawley > http://www.bofh.org.uk/ From mikemondragon at gmail.com Thu Oct 26 16:50:53 2006 From: mikemondragon at gmail.com (Mike Mondragon) Date: Thu, 26 Oct 2006 13:50:53 -0700 Subject: [typo] Usage questions In-Reply-To: References: Message-ID: <967d3b9a0610261350x7f25fd3cp8a422a5983edbe0c@mail.gmail.com> On 10/26/06, Piers Cawley wrote: > > Is anyone using: > > * Email notification > * Jabber notification > > I'm thinking of pulling them out and, if there's a loud enough outcry, > adding them back with a rather better test suite than we have at the > moment. I use the email notification feature, this post on the hotfusion blog is how my set up works as well: http://www.hotfusion.org/articles/2006/09/25/getting-email-notifications-to-work-in-typo > BTW, if you want to follow what I'm doing, > svn://typosphere.org/typo/experimental/restful is where I'm working on > the edge rails compatible stuff. Word to the wise though: Don't > install it from scratch, upgrade an existing database (or copy an > existing database and upgrade the copy). I'm just learning the typo system, I'll try to get up to speed and follow your work in the experimental branch. -- > Piers Cawley > http://www.bofh.org.uk/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Mike Mondragon http://mondragon.cc/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20061026/34f3fc5c/attachment.html From stevelenti at 3pop.com Thu Oct 26 16:55:00 2006 From: stevelenti at 3pop.com (Steve Lenti) Date: Thu, 26 Oct 2006 14:55:00 -0600 Subject: [typo] Usage questions In-Reply-To: References: Message-ID: <454120A4.9090108@3pop.com> I use email notification new comment notification. -Steve Piers Cawley wrote: > Is anyone using: > > * Email notification > * Jabber notification > > I'm thinking of pulling them out and, if there's a loud enough outcry, > adding them back with a rather better test suite than we have at the > moment. > > BTW, if you want to follow what I'm doing, > svn://typosphere.org/typo/experimental/restful is where I'm working on > the edge rails compatible stuff. Word to the wise though: Don't > install it from scratch, upgrade an existing database (or copy an > existing database and upgrade the copy). > > From neuro at 7el.net Thu Oct 26 17:04:11 2006 From: neuro at 7el.net (Frederic de Villamil) Date: Thu, 26 Oct 2006 23:04:11 +0200 Subject: [typo] Usage questions In-Reply-To: References: Message-ID: <1DA004D0-D5D0-4797-A2DF-CFDDABEFFE61@7el.net> I use email notification which is a really nice feature to know when someone has posted a comment. It should be nice to have the same for accepted trackbacks, and maybe a digest of classified as spam items Chhers Frederic Le 26 oct. 06 ? 22:38, Andy Ciordia a ?crit : > I'd not know if people were commenting if I didn't have an email > notification, so I'd appreciate it if _some_ form of notification was > in there.. hell it could be on the login to admin or some other way > but notifications are important. > > -a > > On Oct 26, 2006, at 3:48 PM, Piers Cawley wrote: > >> Is anyone using: >> >> * Email notification >> * Jabber notification >> >> I'm thinking of pulling them out and, if there's a loud enough >> outcry, >> adding them back with a rather better test suite than we have at the >> moment. >> >> BTW, if you want to follow what I'm doing, >> svn://typosphere.org/typo/experimental/restful is where I'm >> working on >> the edge rails compatible stuff. Word to the wise though: Don't >> install it from scratch, upgrade an existing database (or copy an >> existing database and upgrade the copy). >> >> -- >> Piers Cawley >> http://www.bofh.org.uk/ > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list -- Fr?d?ric de Villamil "Sadness is just another word for not enough coffee" -- Scott Adams frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com From jake at whoisjake.com Thu Oct 26 17:04:27 2006 From: jake at whoisjake.com (Jake Good) Date: Thu, 26 Oct 2006 16:04:27 -0500 Subject: [typo] Usage questions In-Reply-To: References: Message-ID: <17E5F1F1-6B78-4AC8-A196-3F7DE53CE8C5@whoisjake.com> I like the email for commenting, but I don't really need to know if I write my own article. jake On Oct 26, 2006, at 3:38 PM, Andy Ciordia wrote: > I'd not know if people were commenting if I didn't have an email > notification, so I'd appreciate it if _some_ form of notification was > in there.. hell it could be on the login to admin or some other way > but notifications are important. > > -a > > On Oct 26, 2006, at 3:48 PM, Piers Cawley wrote: > >> Is anyone using: >> >> * Email notification >> * Jabber notification >> >> I'm thinking of pulling them out and, if there's a loud enough >> outcry, >> adding them back with a rather better test suite than we have at the >> moment. >> >> BTW, if you want to follow what I'm doing, >> svn://typosphere.org/typo/experimental/restful is where I'm >> working on >> the edge rails compatible stuff. Word to the wise though: Don't >> install it from scratch, upgrade an existing database (or copy an >> existing database and upgrade the copy). >> >> -- >> Piers Cawley >> http://www.bofh.org.uk/ > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From tannoiser at tenzione.it Thu Oct 26 18:04:38 2006 From: tannoiser at tenzione.it (Maurizio Lemmo - Tannoiser) Date: Fri, 27 Oct 2006 00:04:38 +0200 Subject: [typo] Usage questions In-Reply-To: <454120A4.9090108@3pop.com> References: <454120A4.9090108@3pop.com> Message-ID: <20061026220437.GA20106@tannoiser.sytes.net> * gioved? 26 ottobre 2006, alle 14:55, Steve Lenti scrive: > I use email notification new comment notification. me too! Off Topic: Steve, I sent you a couple of mail, with a little patch for video_controller. Your antispam software is too agressive, maybe? ;) -- Maurizio - Tannoiser - Lemmo Founder Member of ERLUG http://erlug.linux.it ------------------------------------------------------------------------------- Xander: "You're gonna' die. And I'm gonna' be there." --Buffy the Vampire Slayer: Killed By Death From qeantk at gmail.com Thu Oct 26 18:38:11 2006 From: qeantk at gmail.com (Tim Connor) Date: Thu, 26 Oct 2006 16:38:11 -0600 Subject: [typo] Typo comments not submitting in IE when using Scribbish theme In-Reply-To: References: <87965f690610251927p19da1dafhbbffaa3c644c15fa@mail.gmail.com> <87965f690610261019h5a98b0b3v88bfdbe017724483@mail.gmail.com> Message-ID: <87965f690610261538o17132249uce9de02afdb3d8b0@mail.gmail.com> Just IE 6, Firefox, and Safari. It's a pretty simple bit of javascript that should work in all browsers. Any .js supporting browser will let you trigger the onsubmit( ) manually, and as far as I remember they will all respect a "return false" as well, wether it's on a link a submit button, a form, or whatever. Tim On 10/26/06, Piers Cawley wrote: > > "Tim Connor" writes: > > > I actually fixed the bug properly now, so that the submit button still > gets > > disabled: > > > http://www.timocracy.com/articles/2006/10/26/43-fix-for-typo-scribbish-theme-v2-aka-disabling-a-submit-button-in-ie > > Thanks. Before I hit 'commit', did you test it with other browsers? > > -- > Piers Cawley > 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/20061026/fafceb64/attachment.html From dapatil at nerdshack.com Thu Oct 26 21:12:41 2006 From: dapatil at nerdshack.com (Darshan Patil) Date: Thu, 26 Oct 2006 21:12:41 -0400 Subject: [typo] Index of Articles In-Reply-To: <4540C1F6.8040907@si.on.ca> References: <4540C1F6.8040907@si.on.ca> Message-ID: <45415D09.8090806@nerdshack.com> See http://scattrbrain.com/articles/2006/09/10/typo-recent-articles-sidebar Anton J Aylward wrote: > I'd like to have an index or list of recent articles for Typo. > > I've seen http://www.dev411.com/blog/2006/06/26/adding-a-toc-to-typo and > http://blog.steelpixel.com/articles/2006/03/08/recent-posts-typo-plugin but > have troubles ranging from a complete freeze to ... nothing. > > Are there any plans to include this kind of functionality in a future > release of Typo? > -- Darshan Patil "The trouble with work is that it interferes with living." - Peter Mckill 1968 http://www.scattrbrain.com From pdcawley at bofh.org.uk Fri Oct 27 02:29:22 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 27 Oct 2006 07:29:22 +0100 Subject: [typo] Typo comments not submitting in IE when using Scribbish theme In-Reply-To: <87965f690610261538o17132249uce9de02afdb3d8b0@mail.gmail.com> (Tim Connor's message of "Thu, 26 Oct 2006 16:38:11 -0600") References: <87965f690610251927p19da1dafhbbffaa3c644c15fa@mail.gmail.com> <87965f690610261019h5a98b0b3v88bfdbe017724483@mail.gmail.com> <87965f690610261538o17132249uce9de02afdb3d8b0@mail.gmail.com> Message-ID: "Tim Connor" writes: > Just IE 6, Firefox, and Safari. It's a pretty simple bit of javascript that > should work in all browsers. Any .js supporting browser will let you > trigger the onsubmit( ) manually, and as far as I remember they will all > respect a "return false" as well, wether it's on a link a submit button, a > form, or whatever. Cool. Thanks, applied. -- Piers Cawley http://www.bofh.org.uk/ From trejkaz at trypticon.org Fri Oct 27 04:48:39 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Fri, 27 Oct 2006 18:48:39 +1000 Subject: [typo] Usage questions In-Reply-To: References: Message-ID: <200610271848.42070.trejkaz@trypticon.org> On Friday 27 October 2006 05:48, Piers Cawley wrote: > Is anyone using: > > * Email notification > * Jabber notification I use Jabber notification but frankly the existing code is so broken that I completely gutted mine and replaced it with my own code. 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: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20061027/57efbcd8/attachment.bin From pdcawley at bofh.org.uk Fri Oct 27 07:53:56 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 27 Oct 2006 12:53:56 +0100 Subject: [typo] Usage questions In-Reply-To: <200610271848.42070.trejkaz@trypticon.org> (trejkaz@trypticon.org's message of "Fri, 27 Oct 2006 18:48:39 +1000") References: <200610271848.42070.trejkaz@trypticon.org> Message-ID: Trejkaz writes: > On Friday 27 October 2006 05:48, Piers Cawley wrote: >> Is anyone using: >> >> * Email notification >> * Jabber notification > > I use Jabber notification but frankly the existing code is so broken that I > completely gutted mine and replaced it with my own code. Heh. My feeling as well. Right now, I'm investigating instance caching using cached_model (nice, but somewhat limited, easy to use without memcached) or acts_as_cached (also nice, somewhat more flexible, but has memcached assumptions baked in fairly deep). From my initial investigations, it looks like instance caching can save a fair amount of roundtripping to the databas. For instance, using cached_model on just the Blog object, with an in process memory cache that gets wiped every query, eliminated 7 queries from the front page of a test blog with only 3 articles in it. Some judicious use of acts_as_as_cacheable for caching associations (*carefully*) has the potential to save even more I think... Once I've done that, I shall mostly likely be removing Jabber notifications completely and (probably) simplifying mail notifications quite a bit too. Then I'll see about readding Jabber stuff using xmpp.rb or whatever it's called and building a decent test suite for notifications in the process. It looks like Edge rails is pushing some *lovely* stuff down the pipe by the way. I shall want to roll the edgy changes I've been making on the experimental branch into the main line as soon as we've decided what 4.1 is going to be and have released it. Probably Typo + instance caching + slimmed down notifications at a minimum, but I'm open to other suggestions. -- Piers Cawley http://www.bofh.org.uk/ From josh at hasmanythrough.com Fri Oct 27 11:11:59 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Fri, 27 Oct 2006 08:11:59 -0700 Subject: [typo] Usage questions In-Reply-To: References: Message-ID: On Oct 26, 2006, at 12:48 PM, Piers Cawley wrote: > Is anyone using: > > * Email notification > * Jabber notification > > I'm thinking of pulling them out and, if there's a loud enough outcry, > adding them back with a rather better test suite than we have at the > moment. I rely on email notifications heavily. If you're going to be showing them some love, I'd like to see some flexibility in the notification email content. Like, on a multi-user blog, include the name of the author in the email. I've been meaning to work on that for a while - we'll see if I have the time to get to it this year, heh. -- Josh Susser http://blog.hasmanythrough.com From kevwil at gmail.com Fri Oct 27 11:34:18 2006 From: kevwil at gmail.com (Kevin Williams) Date: Fri, 27 Oct 2006 09:34:18 -0600 Subject: [typo] Usage questions In-Reply-To: References: Message-ID: <683a886f0610270834y2793dc6cqd3c39c57eddbc38f@mail.gmail.com> I use the email notifications to know when comments have been posted. It helps to keep me from neglecting my blog and getting too busy with other stuff. :) On 10/27/06, Josh Susser wrote: > > On Oct 26, 2006, at 12:48 PM, Piers Cawley wrote: > > Is anyone using: > > > > * Email notification > > * Jabber notification > > > > I'm thinking of pulling them out and, if there's a loud enough outcry, > > adding them back with a rather better test suite than we have at the > > moment. > > I rely on email notifications heavily. If you're going to be showing > them some love, I'd like to see some flexibility in the notification > email content. Like, on a multi-user blog, include the name of the > author in the email. I've been meaning to work on that for a while - > we'll see if I have the time to get to it this year, heh. > > -- > Josh Susser > http://blog.hasmanythrough.com > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Cheers, Kevin Williams http://www.almostserio.us/ "Any sufficiently advanced technology is indistinguishable from Magic." - Arthur C. Clarke From pdcawley at bofh.org.uk Fri Oct 27 14:58:34 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 27 Oct 2006 19:58:34 +0100 Subject: [typo] Usage questions In-Reply-To: <683a886f0610270834y2793dc6cqd3c39c57eddbc38f@mail.gmail.com> (Kevin Williams's message of "Fri, 27 Oct 2006 09:34:18 -0600") References: <683a886f0610270834y2793dc6cqd3c39c57eddbc38f@mail.gmail.com> Message-ID: "Kevin Williams" writes: > I use the email notifications to know when comments have been posted. > It helps to keep me from neglecting my blog and getting too busy with > other stuff. :) Is anyone using it to notify anyone who *isn't* a typo administrator? The support code appears to be there, but it hasn't had a great deal of TLC. -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Fri Oct 27 15:06:45 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 27 Oct 2006 20:06:45 +0100 Subject: [typo] New commit. Instance caching. Message-ID: As many of you may have noticed, we hit the database rather a lot when we're rendering pages. Which is bad, especially when queries are repeated. So, I've added cached_model to our vendor directory and made a few classes inherit from it. Making Blog inherit from CachedModel managed to reduce the number of queries for a 3 article test blog's front page from 35 to 28 queries. Which can't be bad. TextFilter and User are also cached, but the performance improvement isn't quite so good. Out of the box, we use an in process memory cache, but it shouldn't be remotely hard to switch it over to use a shared memcached cache if you can run it on your server. Enjoy. -- Piers Cawley http://www.bofh.org.uk/ From dapatil at nerdshack.com Fri Oct 27 22:48:48 2006 From: dapatil at nerdshack.com (Darshan Patil) Date: Fri, 27 Oct 2006 22:48:48 -0400 Subject: [typo] checkin question Message-ID: <4542C510.6090404@nerdshack.com> Hi, How do I submit patches for typo ? The trac page is down. Thanks, Darshan -- Darshan Patil http://scattrbrain.com "The trouble with work is that it interferes with living." - Peter Mckill 1968 From josh at hasmanythrough.com Sat Oct 28 02:38:31 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Fri, 27 Oct 2006 23:38:31 -0700 Subject: [typo] Usage questions In-Reply-To: References: <683a886f0610270834y2793dc6cqd3c39c57eddbc38f@mail.gmail.com> Message-ID: <24CB14E9-7383-41DF-B414-DAC5EF51B313@hasmanythrough.com> On Oct 27, 2006, at 11:58 AM, Piers Cawley wrote: > "Kevin Williams" writes: > >> I use the email notifications to know when comments have been posted. >> It helps to keep me from neglecting my blog and getting too busy with >> other stuff. :) > > Is anyone using it to notify anyone who *isn't* a typo administrator? > The support code appears to be there, but it hasn't had a great deal > of TLC. Well, sort of. I've got everyone in my company in our Typo as a user, so that they can get email updates of new posts. It would be nice to have different levels of users: admin, can-post, can- comment, gets-email-updates, etc. -- Josh Susser http://blog.hasmanythrough.com From aja at si.on.ca Sat Oct 28 10:44:23 2006 From: aja at si.on.ca (Anton J Aylward) Date: Sat, 28 Oct 2006 10:44:23 -0400 Subject: [typo] Usage questions In-Reply-To: <24CB14E9-7383-41DF-B414-DAC5EF51B313@hasmanythrough.com> References: <683a886f0610270834y2793dc6cqd3c39c57eddbc38f@mail.gmail.com> <24CB14E9-7383-41DF-B414-DAC5EF51B313@hasmanythrough.com> Message-ID: <45436CC7.1080504@si.on.ca> Josh Susser wrote: > [...] It would be > nice to have different levels of users: admin, can-post, can- > comment, gets-email-updates, etc. > Shades of WordPress! Oh My! No doubt we have a lot we can learn from other Blog software. When describing typo/rails to friends and showing them how easy it is - just a .rhtml file and a .rb file, I get told that typo is obviously not as popular as WordPress because "its no fun for hackers". I presume they are talking of the more obsessive kind who focus more on the process of coding (the twiddly bits) than on the deliverables. There are HUNDREDS of plugins for WordPress. Well OK many of them duplicate functionality and duplicate functionality that Rails already has or that are of interest to very few. But all-or-nothing access control is something that makes me stop and wonder. Yes, a mode where Typo is a bit more like a CMS, where they are authors (who generate content) and editors (who mark it 'published') and an administrator with God-like power.... But there are also "policy" questions. Who deals with 'approving' comments? So I'd like to help Piers by proposing a more comprehensive response that just the single question he asked. What added functionality do you NEED (not would 'like' but _need_) ? What added functionality do you NOT need ? Perhaps we need a Yes/no/don't-care poll plugin! Yes No Functionality |X| | | EMail notification | | | | Jabber notification | | |x| Yes/no poll plugin -- Anton J Aylward, CISSP, CISA System Integrity http://emergence.antonaylward.com - Emergent Properties From pdcawley at bofh.org.uk Sat Oct 28 17:51:09 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sat, 28 Oct 2006 22:51:09 +0100 Subject: [typo] checkin question In-Reply-To: <4542C510.6090404@nerdshack.com> (Darshan Patil's message of "Fri, 27 Oct 2006 22:48:48 -0400") References: <4542C510.6090404@nerdshack.com> Message-ID: Darshan Patil writes: > Hi, > How do I submit patches for typo ? > The trac page is down. Yeah, sorry about that. Here is good for now. -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Sat Oct 28 17:51:48 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sat, 28 Oct 2006 22:51:48 +0100 Subject: [typo] Usage questions In-Reply-To: <24CB14E9-7383-41DF-B414-DAC5EF51B313@hasmanythrough.com> (Josh Susser's message of "Fri, 27 Oct 2006 23:38:31 -0700") References: <683a886f0610270834y2793dc6cqd3c39c57eddbc38f@mail.gmail.com> <24CB14E9-7383-41DF-B414-DAC5EF51B313@hasmanythrough.com> Message-ID: Josh Susser writes: > On Oct 27, 2006, at 11:58 AM, Piers Cawley wrote: > >> "Kevin Williams" writes: >> >>> I use the email notifications to know when comments have been posted. >>> It helps to keep me from neglecting my blog and getting too busy with >>> other stuff. :) >> >> Is anyone using it to notify anyone who *isn't* a typo administrator? >> The support code appears to be there, but it hasn't had a great deal >> of TLC. > > Well, sort of. I've got everyone in my company in our Typo as a > user, so that they can get email updates of new posts. It would be > nice to have different levels of users: admin, can-post, can- > comment, gets-email-updates, etc. That one's post 4.1 I think. But it's definitely on my todo list as well. -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Sat Oct 28 18:21:40 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sat, 28 Oct 2006 23:21:40 +0100 Subject: [typo] Gah! Sodding bloody typo! Message-ID: So, for the second time I've managed to zap a bunch of perfectly valid comments in the feedback pane. For my next programming trick, I shall be throwing up a confirmation box if you try and delete any ham. Watch the trunk! -- Piers Cawley http://www.bofh.org.uk/ From qeantk at gmail.com Sun Oct 29 02:13:53 2006 From: qeantk at gmail.com (Tim Connor) Date: Sun, 29 Oct 2006 01:13:53 -0600 Subject: [typo] additional robots.txt entries Message-ID: <87965f690610290013r3cdc8ad1j8e9f04d9144a9801@mail.gmail.com> Any chance we could get the trackback urls added to the robots.txt disallow (with any appropriate user-agent filtering needed to let trackbacks still work, if any trackback supporting blogs even read the robots.txt file) , so the googlebot will leave them alone? Personally, I think the feeds should be added to, but maybe people disagree. I just know I'm tired of googling things and getting the xml version, myself. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20061029/609211a8/attachment.html From trejkaz at trypticon.org Sun Oct 29 02:58:53 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Sun, 29 Oct 2006 17:58:53 +1000 Subject: [typo] Usage questions In-Reply-To: References: <200610271848.42070.trejkaz@trypticon.org> Message-ID: <200610291858.56138.trejkaz@trypticon.org> On Friday 27 October 2006 21:53, Piers Cawley wrote: > Once I've done that, I shall mostly likely be removing Jabber > notifications completely and (probably) simplifying mail notifications > quite a bit too. Then I'll see about readding Jabber stuff using > xmpp.rb or whatever it's called and building a decent test suite for > notifications in the process. Action Messenger ;-) 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: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20061029/4c7d0e55/attachment.bin From arsptr at internode.on.net Sun Oct 29 19:30:15 2006 From: arsptr at internode.on.net (Alastair Rankine) Date: Mon, 30 Oct 2006 11:30:15 +1100 Subject: [typo] Gah! Sodding bloody typo! In-Reply-To: References: Message-ID: On 29/10/2006, at 9:21 AM, Piers Cawley wrote: > So, for the second time I've managed to zap a bunch of perfectly valid > comments in the feedback pane. > > For my next programming trick, I shall be throwing up a confirmation > box if you try and delete any ham. Watch the trunk! IMHO confirmation boxes are almost always the wrong answer to a given usability problem. In general you almost always end up training the users to automatically click the confirmation box in addition to the destructive action. In this case though I guess that deleting ham is not a very common operation so that the training effect will be minimal. Still, are there alternatives available? I am assuming that you were deleting ham that was selected using the select all function, but the first screenful of comments were all spam? Is that right? Or is there some other scenario? An alternative in this case might be to have a Select All / Select Spam / Select Suspected Ham buttons, which would select only the appropriate comments on the current page. Perhaps also a Delete All Spam button which would operate independently of the currently- selected comments? From meta at pobox.com Mon Oct 30 12:28:19 2006 From: meta at pobox.com (mathew) Date: Mon, 30 Oct 2006 11:28:19 -0600 Subject: [typo] Gah! Sodding bloody typo! In-Reply-To: References: Message-ID: <7eeceb440610300928p29a32ad3r4ec05ca8a43694c8@mail.gmail.com> On 10/29/06, Alastair Rankine wrote: > IMHO confirmation boxes are almost always the wrong answer to a given > usability problem. Yes, and there are some fairly obvious usability problems with the interface in 4.0. When I go to the Feedback area, "Delete checked items" and "Confirm classification of checked items" are right next to each other. My preference would be to have two columns of radio buttons instead of one column of checkboxes. Color one column red for the spam, and the other one green for the ham, and label the buttons too for accessibility reasons. (Green eggs and ham?) Once you've checked one or more controls, a single "Apply manual classifications" button would process all of them. With that interface, I can go through the comments top to bottom in a single pass, click one button, and be done. Furthermore, the most damage you can do with a single mistaken click is flag one comment incorrectly, and that can only happen if you don't notice the mistake until you push the "apply" button. The "things you can do" links could then be replaced with as "Mark suspected spam as spam" and "Mark suspected ham as ham". So if the classification engine works, you can click those two links then hit the button to apply the suspected classifications as-is. In fact, you could consider just making the radio buttons for non-manually-classified items default to the auto classification, and get rid of the "things you can do" section entirely. So then you're down to 1 button and 2 columns of radio buttons, pretty idiot-proof I think. Is this suggestion clear, or would it help if I drew a mockup? mathew -- From josh at hasmanythrough.com Mon Oct 30 17:18:53 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Mon, 30 Oct 2006 14:18:53 -0800 (PST) Subject: [typo] Typo on Mongrel in a subdir Message-ID: <63855.157.22.41.20.1162246734.squirrel@webmail.hasmanythrough.com> I'm looking to run Typo as part of a website. I want to use Mongrel (proxied behind Apache) and put typo in the blog/ subdir, so URLs to Typo will look like: example.com/blog example.com/blog/articles/2006/10/30/whatever I see that there is now a --prefix option in Mongrel to set the subdir in the URL, and Scott Laird's email exchange with Zed back in July implies that this will just take care of everything, except for hardcoded links. My question is, has anyone got this setup working with Typo? Any tricks to the setup in Apache or Mongrel besides the --prefix? thanks! -- Josh Susser http://blog.hasmanythrough.com From mikemondragon at gmail.com Mon Oct 30 18:34:07 2006 From: mikemondragon at gmail.com (Mike Mondragon) Date: Mon, 30 Oct 2006 15:34:07 -0800 Subject: [typo] Typo on Mongrel in a subdir In-Reply-To: <63855.157.22.41.20.1162246734.squirrel@webmail.hasmanythrough.com> References: <63855.157.22.41.20.1162246734.squirrel@webmail.hasmanythrough.com> Message-ID: <967d3b9a0610301534r2e0d37dfta8bf926dabdf0ab2@mail.gmail.com> On 10/30/06, Josh Susser wrote: > > I'm looking to run Typo as part of a website. I want to use Mongrel > (proxied behind Apache) and put typo in the blog/ subdir, so URLs to Typo > will look like: > > example.com/blog > example.com/blog/articles/2006/10/30/whatever > > I see that there is now a --prefix option in Mongrel to set the subdir in > the URL, and Scott Laird's email exchange with Zed back in July implies > that this will just take care of everything, except for hardcoded links. > My question is, has anyone got this setup working with Typo? Any tricks > to the setup in Apache or Mongrel besides the --prefix? > > thanks! > > -- > Josh Susser > http://blog.hasmanythrough.com > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > This is how I did it on a Gentoo box "Typo 4.0 + Apache2 + MySQL + Gentoo" http://mondragon.cc/blog/articles/2006/10/24/typo-4-0-apache2-mysql-gentoo -- Mike Mondragon http://mondragon.cc/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20061030/657930d2/attachment.html From stevelenti at 3pop.com Mon Oct 30 18:50:38 2006 From: stevelenti at 3pop.com (Steve Lenti) Date: Mon, 30 Oct 2006 16:50:38 -0700 Subject: [typo] Typo on Mongrel in a subdir In-Reply-To: <63855.157.22.41.20.1162246734.squirrel@webmail.hasmanythrough.com> References: <63855.157.22.41.20.1162246734.squirrel@webmail.hasmanythrough.com> Message-ID: <45468FCE.5000808@3pop.com> I have a short write-up on this http://youdummy.net/blog/articles/2006/10/04/howto-install-typo I run my blog under a /blog/ dir -Steve Josh Susser wrote: > I'm looking to run Typo as part of a website. I want to use Mongrel > (proxied behind Apache) and put typo in the blog/ subdir, so URLs to Typo > will look like: > > example.com/blog > example.com/blog/articles/2006/10/30/whatever > > I see that there is now a --prefix option in Mongrel to set the subdir in > the URL, and Scott Laird's email exchange with Zed back in July implies > that this will just take care of everything, except for hardcoded links. > My question is, has anyone got this setup working with Typo? Any tricks > to the setup in Apache or Mongrel besides the --prefix? > > thanks! > > From vemon388 at gmail.com Mon Oct 30 22:25:24 2006 From: vemon388 at gmail.com (Levi McCallum) Date: Mon, 30 Oct 2006 17:25:24 -1000 Subject: [typo] Killed my theme Message-ID: Hey guys, I was just updating my theme, and I think I broke it, this is my main index.rthml view. See if you go to my blog, http://evilmac.org/ , the articles don't show, could you show me what is wrong with this?
>
> <% i = 1 %> > <% for article in @articles -%> > <% > responses = article.trackbacks.size + article.comments.size > responses = 'no' if responses == 0 > %> >
>

<%= article_link article.title, article > %>

> <%= article.body_html %> >
> Posted at <%= article.created_at.strftime("%I").to_i.to_s > + article.created_at.strftime("%p").downcase + article.created_at.strftime(" > on %m/%d/%y") %> | <%= category_links article %> | <%= responses %> > responses | <%= article_link 'read on', article > %> >
>
> <%= '
' if i == 2 %> > <% if i == 2; i = 1; else i = 2; end %> > <% end -%> > >
> <% unless @pages.item_count <= config[:limit_article_display] %> >

Older posts: <%= pagination_links @pages, > :params => { :action => @controller.action_name } %>

> <% end -%> > >
>
>
> -- Levi McCallum Web Developer & Student http://evilmac.org/ or http://humblepixel.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20061030/284756cf/attachment-0001.html From kevin.fullerton at shotgun-suicide.co.uk Tue Oct 31 03:48:46 2006 From: kevin.fullerton at shotgun-suicide.co.uk (Kevin Fullerton) Date: Tue, 31 Oct 2006 08:48:46 +0000 Subject: [typo] Patch for Xbox Live Gamer Card Message-ID: <20061031084846.GZ11422@gateway.home.shotgun-suicide.co.uk> Hi there, Just started using Typo, loving it so far. I've put the Xbox Live Gamer Card plugin on my install, but it was causing the page to not be validated as XHTML, so I've patched the view with the fix. Cheers! Kevin Fullerton -------------- next part -------------- Index: vendor/plugins/xbox_sidebar/views/content.rhtml =================================================================== --- vendor/plugins/xbox_sidebar/views/content.rhtml (revision 1281) +++ vendor/plugins/xbox_sidebar/views/content.rhtml (working copy) @@ -1,2 +1,2 @@

Xbox Live Gamer Card

- +