From pdcawley at bofh.org.uk Tue Aug 1 05:07:09 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 01 Aug 2006 10:07:09 +0100 Subject: [typo] More medium/long term Typo goals Message-ID: Remember this: http://www.mail-archive.com/typo-list at rubyforge.org/msg02284.html Well, once I've checked in my current local branch which implements a feedback specific state machine, we'll have hit most of those goals, so it's time to think about a few more. Outstanding/Short Term ---------------------- * Finish working through the implications of the new state machine based content 'state'. Essentially, 'published?', 'spam?' and a few other flags are now delegated to the content's state. Any behaviours on an object that do anything like: if self.published? ... end should have the '...' turned into a method on the state objects and get rewritten as self.state.meaningful_name_for_some_behaviour * Something similar applies to some of the things the controllers are doing. Structural code (where controllers treat objects as nothing more than data structures) is anathema, behaviour should be pushed to the model where it makes sense. Controllers shouldn't access the state directly, so state dependent behaviour should be pushed to the model first and then delegated to the state object. * Various of the delegated query methods could usefully be added to the model's table, to help with searching. For instance, it would be useful for the feedback page to list only those items which are probably spam. Which means adding 'spam' and 'classification_is_certain' (lousy name, need to find something better) booleans to the contents table to help with searching. (Controllers don't (and shoudln't) know about the state objects, they just know about the query methods, so we need flag fields corresponding to the query methods which can be used as find conditions) * Make page caching work right. Still on my todo list, but not quite so urgent as it was. It's in this section because it's one of the things that haven't yet been done from the last goals post. * Give the theming section a long hard look. Yay! We have Scribbish in the core now. However, theming still needs looking at. Wouldn't it be great if you could just drop a theme in vendor/plugins and have it appear in Typo's list? Wouldn't it be handy to support theme specific configuration? Woudln't it be useful if all this was documented? * Blog settings. Hmm... * Text filters not being controllers. Scott's doing some work on making url_for work without having to get at the current controllers all the time. Once that's done it should be a great deal easier to turn textfilters into models. Again, it would be good to be able to write textfilters so they could be dropped into vendor/plugins New stuff --------- * Authentication. I've posted about this before, but we should really support, at the very least, OpenID as well as our own internal users table. * Authorization. Once we can authenticate, we can authorize. Some blogs might choose require authentication before allowing anyone to comment, or automatically mark any unauthenticated comments as PresumedSpam * Pluggable Spam classification. Right now, when feedback is created, it's in the 'Unclassified' state. Saving it 'collapses' it to one of 'PresumedSpam' or 'PresumedHam'. The method for doing this classification is currently hardwired. First we check our own Spam Protection library, then, if it's turned on, we ask Akismet. Which is all very well, but what happens if we decide we want to use Authentication as a factor in classification? What if someone writes a captcha plugin (which gets no nearer to Typo than vendor/plugins dammit)? So, we need to think about making the classification system into a dynamic pipeline attached to the blog. My current thinking is that this would be configured like sidebars are now (though possibly not at the model level, about which more later). The administrator would be presented with handy drag and drop interface and drag classification tools into a pipeline. So, I might have a pipeline that looks like: is_logged_in -> article_age -> blacklist -> akismet While someone else could have captcha -> article_age -> blacklist -> presume_ham each engine in the chain would look at the feedback and return one of :ham, :spam or nil, where returning a symbol halts the classification process, otherwise the feedback goes to the next classifier in the chain. Something similar could be done at the point that spam is firmly classified by the administrator; each engine would have their #report_as_spam/ham(feedback) method called and they'd do the reporting as they chose. * Multiblogging. I'm so in two minds about this. I think it's going to happen, and I *don't* think it's going to have an enormous impact on the performance or copmlexity of the rest of typo. Introducing the blog object has proved to be The Right Thing, for all its teething problems. * RESTful API. I like REST. It just makes sense to me. But Typo isn't all that RESTful. Article permalinks are, of course, sacrosanct, but pretty much everything else is fair game. In the long term, I'd like to see the back of admin/* in favour of moving administrative behaviour up into top level controllers and slightly more complicated access control. This is definitely branch territory, if only because the support for the sort of thing I'm thinking of has only recently gone into edge rails. * Migrations. Migrating is hard. It's hard to keep the migration scripts up to date. So, I propose firming up the various message posting protocols we have, documenting them, and then sticking to them both in our controllers and any migrations we use. I envisage using something like the Atom API as our basic posting protocol. * Implement the Atom API. * Use the rails plugins directory. If you write textfilter, or a sidebar, you want some easy way of distributing it. And we want not to have to stick it in the core distribution. It seems that the best way to do this is to enable writing plugins that can be installed in the same way as any other rails plugin. I *think* that this can already be done, but it's completely undocumented. We need to investigate this and, if it will work with the current state of the art, we need to write generate tasks to allow a plugin developer to do: ./script/generate sidebar|textfilter|theme and have a framework dropped in place so she can get on with the hard work of making it do something interesting. * Investigate other blogging engines' plugin architectures. See if we're missing any capabilities and what we'd need to do to import any useful stuff into Typo. Hmm... that'll probably do for now. Did I miss anything? -- Piers Cawley http://www.bofh.org.uk/ From arsptr at internode.on.net Tue Aug 1 08:13:37 2006 From: arsptr at internode.on.net (Alastair Rankine) Date: Tue, 1 Aug 2006 22:13:37 +1000 Subject: [typo] More medium/long term Typo goals In-Reply-To: References: Message-ID: <3ABA782F-9D05-40BC-8D5C-C6013462BBBB@internode.on.net> On 01/08/2006, at 7:07 PM, Piers Cawley wrote: > * Finish working through the implications of the new state machine > based content 'state'. Essentially, 'published?', 'spam?' and a few This looks great, but I would like to see this reflected in the admin interface. Particularly with spam - Wordpress' Akismet plugin does a great job of not only filtering out the spam but holding it in limbo in case of false positives. Typo does this but it's a bit counterintuitive from an administration perspective - they're not marked as presumed spam, merely unpublished. It took me a while to realise that real comments were being published and that spam was being held. Also it seems that you (blog admin) need to go and remove unpublished (ie spam) comments periodically. They seem to appear on the articles otherwise. Or am I doing something wrong? > * Investigate other blogging engines' plugin architectures. See if > we're missing any capabilities and what we'd need to do to import > any useful stuff into Typo. As a recent wordpress convert, I have some experience with that blogging engines' plugin architecture. And I have to say that while it does encourage a large ecosystem of plugins, it also required a lot of work in putting the extensibility points into the base. From my experience, many plugins (still) require manual tweaking of themes and/or the wordpress base to make work right. Not all is well with the wordpress plugin architecture, is the lesson to be learned from posts such as this one: http:// www.somethinkodd.com/oddthinking/2005/12/08/wordpress-and-text-encoding/ > Hmm... that'll probably do for now. Did I miss anything? Some other suggestions: * Ability to configure multi-column sidebars * A wordpress-like "dashboard" of recent comments, incoming links, stats (number of articles, comments, etc) * Ability to specify a license on a per-page or per-article basis (with a blog-wide default obviously) which would generate the right HTML and RDF for easy inclusion in themes. I'm thinking specifically of making it easy to add a creative commons license to a blog. I for one am happy to see lots of action on Typo lately. And I hope to be able to contribute something back. Part of the reason for converting to Typo was to get up to speed on rails. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060801/8c68e031/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/typo-list/attachments/20060801/8c68e031/attachment.bin From eric.sendelbach at gmail.com Tue Aug 1 09:03:30 2006 From: eric.sendelbach at gmail.com (Eric Sendelbach) Date: Tue, 1 Aug 2006 09:03:30 -0400 Subject: [typo] Typo's memory footprint Message-ID: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> I am hosting my blog on Textdrive and they have a 48 meg limit on process usage. After that it just gets whacked. On a fresh restart with Typo 4.0.0 its SIZE is 36016K and its RES is 33452K. A couple hits on the main page tack on around 4 more megs and about 90% of the time just editing an article will push it over the top. Pre 4.0.0 I was running on trunk and did not experience this problem. Maybe I was hovering at the limit and didn't realize it. My install of Typo is sitting behind lighttpd/fastcgi. Does anybody on the list know if turning off or abstaining from the use of certain features will help relieve how much memory is consumed? In the spirit of Piers' email to look at more mid/long term goals, I think that memory consumption is definitely something that could be looked at, at least to offer some way of working with a lighter memory footprint. From kyleheon at gmail.com Tue Aug 1 09:17:38 2006 From: kyleheon at gmail.com (Kyle Heon) Date: Tue, 1 Aug 2006 09:17:38 -0400 Subject: [typo] Typo's memory footprint In-Reply-To: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> Message-ID: I upgraded my install to Typo 4 when it came out on TextDrive and haven't noticed my site go down since. I'm a Linux newbie so how does one tell how much memory is being used? I'm also using FastCGI behind lighttpd. On 8/1/06, Eric Sendelbach wrote: > I am hosting my blog on Textdrive and they have a 48 meg limit on > process usage. After that it just gets whacked. On a fresh restart > with Typo 4.0.0 its SIZE is 36016K and its RES is 33452K. A couple > hits on the main page tack on around 4 more megs and about 90% of the > time just editing an article will push it over the top. Pre 4.0.0 I > was running on trunk and did not experience this problem. Maybe I was > hovering at the limit and didn't realize it. My install of Typo is > sitting behind lighttpd/fastcgi. > > Does anybody on the list know if turning off or abstaining from the > use of certain features will help relieve how much memory is consumed? > In the spirit of Piers' email to look at more mid/long term goals, I > think that memory consumption is definitely something that could be > looked at, at least to offer some way of working with a lighter memory > footprint. > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From pdcawley at bofh.org.uk Tue Aug 1 09:39:32 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 01 Aug 2006 14:39:32 +0100 Subject: [typo] More medium/long term Typo goals In-Reply-To: <3ABA782F-9D05-40BC-8D5C-C6013462BBBB@internode.on.net> (Alastair Rankine's message of "Tue, 1 Aug 2006 22:13:37 +1000") References: <3ABA782F-9D05-40BC-8D5C-C6013462BBBB@internode.on.net> Message-ID: Alastair Rankine writes: > On 01/08/2006, at 7:07 PM, Piers Cawley wrote: > >> * Finish working through the implications of the new state machine >> based content 'state'. Essentially, 'published?', 'spam?' and a few > > This looks great, but I would like to see this reflected in the admin > interface. Particularly with spam - Wordpress' Akismet plugin does a > great job of not only filtering out the spam but holding it in limbo > in case of false positives. Typo does this but it's a bit > counterintuitive from an administration perspective - they're not > marked as presumed spam, merely unpublished. It took me a while to > realise that real comments were being published and that spam was > being held. Except that's changed with the last checkin. Now the presumed stuff is marked as Spam? and Ham? and the confirmed stuff is marked as Spam and Ham. > Also it seems that you (blog admin) need to go and remove unpublished > (ie spam) comments periodically. They seem to appear on the articles > otherwise. Or am I doing something wrong? They shouldn't be appearing on the articles (assuming they were posted after the spam checking code went in). And one thing I mean to add is an option to say that marking something as definite spam should just report that to Akismet and then delete the feedback. > Some other suggestions: > > * Ability to configure multi-column sidebars Wah! I knew I'd missed something. > * A wordpress-like "dashboard" of recent comments, incoming links, > stats (number of articles, comments, etc) Hmm... we're not doing much in the way of intelligent stats gathering yet, so I'm not sure how easy 'incoming links' would be to do, but I like the idea of a dashboard. > * Ability to specify a license on a per-page or per-article basis > (with a blog-wide default obviously) which would generate the right > HTML and RDF for easy inclusion in themes. I'm thinking specifically > of making it easy to add a creative commons license to a blog. The problem with per-article licensing is how you sort out the licensing of the front page. Probably doable with a sidebar that works in a similar fashion to the current amazon sidebar (walks the list of contents being rendered on the current page extracting book citations/links and then builds the sidebar). But I'm still not sure how it would *choose* the frontpage license. Ho hum. Worth thinking about though. Here's one I forgot: * Investigate splitting the contents table into 'contents' (for pages and articles) and 'feedback' for comments and incoming trackbacks. The tricky part would be doing the split, and deciding whether it's a requirement to maintain article ids (if you do decide to do that, you enter a twisty little maze of RDBMSes, all different, as you try to make sure that new ids get generated correctly once you've done the conversion) or to break any /articles/read/n type links. I'm beginning to think we need to do this, articles and feedback have a fair amount in common, but the differences are becoming more distinct with each migration. -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Tue Aug 1 09:44:58 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 01 Aug 2006 14:44:58 +0100 Subject: [typo] Typo's memory footprint In-Reply-To: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> (Eric Sendelbach's message of "Tue, 1 Aug 2006 09:03:30 -0400") References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> Message-ID: "Eric Sendelbach" writes: > I am hosting my blog on Textdrive and they have a 48 meg limit on > process usage. After that it just gets whacked. On a fresh restart > with Typo 4.0.0 its SIZE is 36016K and its RES is 33452K. A couple > hits on the main page tack on around 4 more megs and about 90% of the > time just editing an article will push it over the top. Pre 4.0.0 I > was running on trunk and did not experience this problem. Maybe I was > hovering at the limit and didn't realize it. My install of Typo is > sitting behind lighttpd/fastcgi. > > Does anybody on the list know if turning off or abstaining from the > use of certain features will help relieve how much memory is consumed? > In the spirit of Piers' email to look at more mid/long term goals, I > think that memory consumption is definitely something that could be > looked at, at least to offer some way of working with a lighter memory > footprint. I could be wrong (and I probably am, but we don't have any particualrly great tools for investigating this), but I think Scott's changes to the filter chain and caching have got rid of the big memory leak, but the new, highly inclusive optimized SQL for getting content which tends to pull in the world right at the start (reducing the hits on the database, no bad thing) means that the process gets very big rather quickly, but then doesn't get a great deal bigger after that. I don't think it's going to slim down very much I'm afraid. -- Piers Cawley http://www.bofh.org.uk/ From steve.longdo at gmail.com Tue Aug 1 11:53:04 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Tue, 1 Aug 2006 10:53:04 -0500 Subject: [typo] Typo's memory footprint In-Reply-To: References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> Message-ID: I have the same experience with TextDrive as Eric. I notice that memory use jumps 10 MB just by entering the admin console. I've found that removing references to Sparklines helps the memory use stay under the threshold. I removed the sparklines_textfilter.rb and removed the reference to vendor/sparklines in environment.rb. Also removing any sidebars that you don't use from the component directory helps. On 8/1/06, Piers Cawley wrote: > > "Eric Sendelbach" writes: > > > I am hosting my blog on Textdrive and they have a 48 meg limit on > > process usage. After that it just gets whacked. On a fresh restart > > with Typo 4.0.0 its SIZE is 36016K and its RES is 33452K. A couple > > hits on the main page tack on around 4 more megs and about 90% of the > > time just editing an article will push it over the top. Pre 4.0.0 I > > was running on trunk and did not experience this problem. Maybe I was > > hovering at the limit and didn't realize it. My install of Typo is > > sitting behind lighttpd/fastcgi. > > > > Does anybody on the list know if turning off or abstaining from the > > use of certain features will help relieve how much memory is consumed? > > In the spirit of Piers' email to look at more mid/long term goals, I > > think that memory consumption is definitely something that could be > > looked at, at least to offer some way of working with a lighter memory > > footprint. > > I could be wrong (and I probably am, but we don't have any > particualrly great tools for investigating this), but I think Scott's > changes to the filter chain and caching have got rid of the big memory > leak, but the new, highly inclusive optimized SQL for getting content > which tends to pull in the world right at the start (reducing the hits > on the database, no bad thing) means that the process gets very big > rather quickly, but then doesn't get a great deal bigger after that. > > I don't think it's going to slim down very much I'm afraid. > > -- > Piers Cawley > http://www.bofh.org.uk/ > _______________________________________________ > 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/20060801/10638f77/attachment-0001.html From rasputnik at gmail.com Tue Aug 1 12:23:24 2006 From: rasputnik at gmail.com (Dick Davies) Date: Tue, 1 Aug 2006 17:23:24 +0100 Subject: [typo] Typo's memory footprint In-Reply-To: References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> Message-ID: <3f1760608010923q76fe29afo38f3a736ac6290ca@mail.gmail.com> On 01/08/06, Steve Longdo wrote: > I have the same experience with TextDrive as Eric. I notice that memory use > jumps 10 MB just by entering the admin console. > > I've found that removing references to Sparklines helps the memory use stay > under the threshold. I removed the sparklines_textfilter.rb and removed the > reference to vendor/sparklines in environment.rb. Also removing any > sidebars that you don't use from the component directory helps. Just the fact of a sidebar existing bumping memory usage seems broken to me - is that a bug or just The Way Things Are? More generally, how hard would it be to have knobs to disable unused features? -- Rasputin :: Jack of All Trades - Master of Nuns http://number9.hellooperator.net/ From steve.longdo at gmail.com Tue Aug 1 12:36:34 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Tue, 1 Aug 2006 11:36:34 -0500 Subject: [typo] Typo's memory footprint In-Reply-To: <3f1760608010923q76fe29afo38f3a736ac6290ca@mail.gmail.com> References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> <3f1760608010923q76fe29afo38f3a736ac6290ca@mail.gmail.com> Message-ID: It is a funtion of the sidebar and textfilter controller where it dynamically loads all files in the directories into memory: Dir["#{RAILS_ROOT}/components/plugins/sidebars/[_a-z]*.rb"].each do |f| require_dependency f end So it is cool because when new plugins are added they automagically load up, but unfortunate when, like Sparklines, they have a large overhead associated. As for knobs, you could have something that wrote a more specific regular expression for the load instead of just [_a-z]*.rb... On 8/1/06, Dick Davies wrote: > > On 01/08/06, Steve Longdo wrote: > > I have the same experience with TextDrive as Eric. I notice that memory > use > > jumps 10 MB just by entering the admin console. > > > > I've found that removing references to Sparklines helps the memory use > stay > > under the threshold. I removed the sparklines_textfilter.rb and removed > the > > reference to vendor/sparklines in environment.rb. Also removing any > > sidebars that you don't use from the component directory helps. > > Just the fact of a sidebar existing bumping memory usage seems broken > to me - is that a bug or just The Way Things Are? > > More generally, how hard would it be to have knobs to disable unused > features? > > -- > Rasputin :: Jack of All Trades - Master of Nuns > http://number9.hellooperator.net/ > _______________________________________________ > 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/20060801/782d540f/attachment.html From pdcawley at bofh.org.uk Tue Aug 1 12:40:04 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 01 Aug 2006 17:40:04 +0100 Subject: [typo] Typo's memory footprint In-Reply-To: (Steve Longdo's message of "Tue, 1 Aug 2006 11:36:34 -0500") References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> <3f1760608010923q76fe29afo38f3a736ac6290ca@mail.gmail.com> Message-ID: "Steve Longdo" writes: > It is a funtion of the sidebar and textfilter controller where it > dynamically loads all files in the directories into memory: > > Dir["#{RAILS_ROOT}/components/plugins/sidebars/[_a-z]*.rb"].each do |f| > require_dependency f > end > > So it is cool because when new plugins are added they automagically load up, > but unfortunate when, like Sparklines, they have a large overhead > associated. > > As for knobs, you could have something that wrote a more specific regular > expression for the load instead of just [_a-z]*.rb... This is something that could be helped by the mooted move of sidebar plugins to vendor/plugins. Essentially you'd only need to install those sidebars you use. -- Piers Cawley http://www.bofh.org.uk/ From meta at pobox.com Tue Aug 1 12:45:38 2006 From: meta at pobox.com (mathew) Date: Tue, 01 Aug 2006 11:45:38 -0500 Subject: [typo] Typo's memory footprint In-Reply-To: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> Message-ID: <44CF8532.2040001@pobox.com> Eric Sendelbach wrote: > I am hosting my blog on Textdrive and they have a 48 meg limit on > process usage. After that it just gets whacked. On a fresh restart > with Typo 4.0.0 its SIZE is 36016K and its RES is 33452K. I'm seeing size = 51592 and vsize = 63856 for each dispatch.cgi process using lighttpd and fastcgi, so consider yourself lucky :-) I actually had to move up to a higher level of hosting in order to keep running typo, costing me significant cash. To make up for it, I'm now running tracks on the same hosting, and I hope to run a wiki too as soon as I can find or build one I consider suitable. (I'm not wild about instiki.) mathew From codejoy at gmail.com Tue Aug 1 13:45:29 2006 From: codejoy at gmail.com (Shane Thomas) Date: Tue, 1 Aug 2006 11:45:29 -0600 Subject: [typo] type azure theme errors Message-ID: <67bcabf80608011045h214e1e1esdd1b4567905c0ba3@mail.gmail.com> I am really new to typo (so if this has been said before i apologize, still figuring out ruby forge's mailing lists). I have the Azure theme installed on my host and for the most part things are running well! But I noticed strange errors on my blog (www.thomasonrails.com) when I click on categories with nothing in them, the typo application (maybe its the theme?) does not handle that gracefully and takes me to : Application error (Rails) and I wasn't sure what was causing this, it seems to me that it should be built into to handle a link request to a category that has 0 articles in it. Once in a while I get he same error, just trying to comment. Is there something I am doing wrong?? I have the latest SVN trunk of typo...not sure if there was more configuration or setting up i Had to do beyond what this tutorial told me to do: http://www.hostingrails.com/forums/wiki_thread/3 I would like to add that I tried new themese (some really cool ones from the theme contest) and the above issues are magnified 10 fold with these themes. Though, I am not sure what all work is required installing new themes... So any suggestions or help on getting up and running or at least more stable with the Azure theme? :) Thanks, Shane -- -------------------------- Sites: Web (Rails) http://www.thomasonrails.com Photography http://www.thomascustomdigital.com Game Coding http://www.viciousbytes.com photo fun http://www.flickr.com/photos/codejoy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060801/c1bd444a/attachment.html From steve.longdo at gmail.com Tue Aug 1 15:20:27 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Tue, 1 Aug 2006 14:20:27 -0500 Subject: [typo] Typo's memory footprint In-Reply-To: References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> <3f1760608010923q76fe29afo38f3a736ac6290ca@mail.gmail.com> Message-ID: What needs to happen to transistion out of the current component model into the vendor/plugin model? I have heard the new routing code allows plugins to register named routes when they are loaded into a parent app. This would allow for sidebars that could have more than one "content page". On 8/1/06, Piers Cawley wrote: > > "Steve Longdo" writes: > > > It is a funtion of the sidebar and textfilter controller where it > > dynamically loads all files in the directories into memory: > > > > Dir["#{RAILS_ROOT}/components/plugins/sidebars/[_a-z]*.rb"].each do |f| > > require_dependency f > > end > > > > So it is cool because when new plugins are added they automagically load > up, > > but unfortunate when, like Sparklines, they have a large overhead > > associated. > > > > As for knobs, you could have something that wrote a more specific > regular > > expression for the load instead of just [_a-z]*.rb... > > This is something that could be helped by the mooted move of sidebar > plugins to vendor/plugins. Essentially you'd only need to install > those sidebars you use. > > -- > Piers Cawley > http://www.bofh.org.uk/ > _______________________________________________ > 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/20060801/c76d8fa7/attachment.html From pdcawley at bofh.org.uk Tue Aug 1 15:43:31 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 01 Aug 2006 20:43:31 +0100 Subject: [typo] Typo's memory footprint In-Reply-To: (Steve Longdo's message of "Tue, 1 Aug 2006 14:20:27 -0500") References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> <3f1760608010923q76fe29afo38f3a736ac6290ca@mail.gmail.com> Message-ID: "Steve Longdo" writes: > What needs to happen to transistion out of the current component model into > the vendor/plugin model? Someone needs to work out if it can be done, document how its done and move some of the offending plugins out. > I have heard the new routing code allows plugins to register named routes > when they are loaded into a parent app. This would allow for sidebars that > could have more than one "content page". I'm not entirely sure they'd be much use to sidebars tbh. Sidebar controllers can already have more than one action/content page. -- Piers Cawley http://www.bofh.org.uk/ From noisebar at gmail.com Tue Aug 1 22:36:00 2006 From: noisebar at gmail.com (Simon Lin) Date: Tue, 1 Aug 2006 20:36:00 -0600 Subject: [typo] No email sent for new content Message-ID: Hi guys, Any idea why there is no email sent when there is new content? I did configure Typo to use a valid email address on my hosting company. Thanks. Simon Lin Software Consultant (403) 618-9303 noisebar at gmail.com http://www.simonlin.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060801/1f18489f/attachment-0001.html From anildigital at gmail.com Tue Aug 1 23:14:17 2006 From: anildigital at gmail.com (Anil Wadghule) Date: Wed, 2 Aug 2006 08:44:17 +0530 Subject: [typo] No email sent for new content In-Reply-To: References: Message-ID: I face the same problem, can somebody explain about it? On 8/2/06, Simon Lin wrote: > > Hi guys, > > Any idea why there is no email sent when there is new content? I did > configure Typo to use a valid email address on my hosting company. > > Thanks. > > Simon Lin > Software Consultant > (403) 618-9303 > noisebar at gmail.com > http://www.simonlin.ca > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > -- Don't live to geek; geek to live. http://anildigital.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060802/edbd92b4/attachment.html From jake at whoisjake.com Wed Aug 2 09:58:17 2006 From: jake at whoisjake.com (Jake Good) Date: Wed, 02 Aug 2006 08:58:17 -0500 Subject: [typo] No email sent for new content In-Reply-To: References: Message-ID: <44D0AF79.8080602@whoisjake.com> You have to make sure that your mail.yml file is filled out... Anil Wadghule wrote: > I face the same problem, can somebody explain about it? > > On 8/2/06, *Simon Lin* > wrote: > > Hi guys, > > Any idea why there is no email sent when there is new content? I > did configure Typo to use a valid email address on my hosting > company. > > Thanks. > > Simon Lin > Software Consultant > (403) 618-9303 > noisebar at gmail.com > http://www.simonlin.ca > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > > > -- > Don't live to geek; geek to live. > http://anildigital.blogspot.com > ------------------------------------------------------------------------ > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From dom at happygiraffe.net Wed Aug 2 10:15:11 2006 From: dom at happygiraffe.net (Dominic Mitchell) Date: Wed, 2 Aug 2006 15:15:11 +0100 Subject: [typo] Yay for spam protection! Message-ID: <20060802141511.GA72039@gimli.happygiraffe.net> I've just upgraded to typo 4.0.0 and I'm *hugely* pleased with the spam protection bits: % egrep '^Moderating comment as spam!' /var/log/httpd-error.log-2006-08-0* | wc -l 138 That's a day and a half. So much less work to do! -Dom From noisebar at gmail.com Wed Aug 2 10:21:32 2006 From: noisebar at gmail.com (Simon Lin) Date: Wed, 2 Aug 2006 08:21:32 -0600 Subject: [typo] No email sent for new content In-Reply-To: <44D0AF79.8080602@whoisjake.com> References: <44D0AF79.8080602@whoisjake.com> Message-ID: That might be it. Thanks. BTW, maybe we should tell Scott to remove his password from the default file. :-) On 8/2/06, Jake Good wrote: > You have to make sure that your mail.yml file is filled out... > > Anil Wadghule wrote: > > I face the same problem, can somebody explain about it? > > > > On 8/2/06, *Simon Lin* > > wrote: > > > > Hi guys, > > > > Any idea why there is no email sent when there is new content? I > > did configure Typo to use a valid email address on my hosting > > company. > > > > Thanks. > > > > Simon Lin > > Software Consultant > > (403) 618-9303 > > noisebar at gmail.com > > http://www.simonlin.ca > > > > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > -- > > Don't live to geek; geek to live. > > http://anildigital.blogspot.com > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Simon Lin Software Consultant (403) 618-9303 noisebar at gmail.com http://www.simonlin.ca From mail at paulbarry.com Wed Aug 2 10:41:52 2006 From: mail at paulbarry.com (Paul Barry) Date: Wed, 2 Aug 2006 10:41:52 -0400 Subject: [typo] Typo's memory footprint In-Reply-To: <44CF8532.2040001@pobox.com> References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> <44CF8532.2040001@pobox.com> Message-ID: FYI, I have having a serious memory leak using typo 3.99.x (I think .4, can't remember). It was so bad I couldn't even ssh into VPS account and I had to get the sysadmin to restart my "server". Anyway, I just upgraded to 4.00, couldn't have been any easier. Taking at look at the memory usage, it looks like this in "ps aux": Right after starting: root 3395 31.0 25.9 27732 24608 ? S 10:31 0:02 /usr/bin/ruby /usr/bin/mongrel_rails start After first hit to home page: root 3395 5.7 26.3 28120 24980 ? S 10:31 0:02 /usr/bin/ruby /usr/bin/mongrel_rails start After first posted article: root 3395 16.4 36.9 37900 34984 ? R 10:31 1:00 /usr/bin/ruby /usr/bin/mongrel_rails start Seems to have leveled off at the last level. I'll let you know if I continue to have problems or if the memory leak is indeed solved with 4.00. I'm using apache2 mod_proxy, mongrel and sqlite on a FC4 VPS host. On 8/1/06, mathew wrote: > > Eric Sendelbach wrote: > > I am hosting my blog on Textdrive and they have a 48 meg limit on > > process usage. After that it just gets whacked. On a fresh restart > > with Typo 4.0.0 its SIZE is 36016K and its RES is 33452K. > > I'm seeing size = 51592 and vsize = 63856 for each dispatch.cgi process > using lighttpd and fastcgi, so consider yourself lucky :-) > > I actually had to move up to a higher level of hosting in order to keep > running typo, costing me significant cash. To make up for it, I'm now > running tracks on the same hosting, and I hope to run a wiki too as soon > as I can find or build one I consider suitable. (I'm not wild about > instiki.) > > > mathew > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060802/8155d151/attachment.html From mail at paulbarry.com Wed Aug 2 10:57:35 2006 From: mail at paulbarry.com (Paul Barry) Date: Wed, 2 Aug 2006 10:57:35 -0400 Subject: [typo] How do I use content notification and feedback tab? Message-ID: In the announcement for typo 4 here: http://scottstuff.net/blog/articles/2006/07/22/typo-4-0-0 Tow of the new features mentioned are: 1. Email and/or Jabber notification of new content, including comments and trackbacks. 2. Improved spam management. There's a "Feedback" tab in the admin interface that lists all comments and trackbacks so they can be bulk-deleted. In addition, Typo can now use Akismet for spam filtering. I have upgraded to typo 4.0. I don't see a feedback table and when someone makes a comment, I don't receive an email even when I have my email address filed in to the field "Email address to use in From: field when Typo sends mail:". -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060802/fe44da2f/attachment.html From ernieoporto at gmail.com Wed Aug 2 12:18:45 2006 From: ernieoporto at gmail.com (Ernie Oporto) Date: Wed, 2 Aug 2006 12:18:45 -0400 Subject: [typo] migrating from trunk 1004 to 1186 In-Reply-To: References: Message-ID: Worked beautifully. Thanks! The new admin interface is much prettier, too. Good work guys! On 7/29/06, Kevin Ballard wrote: > > Again, that command is `rake migrate RAILS_ENV=your_environment` > > -Kevin > > > -- Ernie http://www.shokk.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060802/8946586c/attachment.html From scott at sigkill.org Wed Aug 2 12:55:00 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 2 Aug 2006 09:55:00 -0700 Subject: [typo] More medium/long term Typo goals In-Reply-To: References: Message-ID: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> I mostly agree with Piers. Here's a short version of my list (short, because I'm on vacation this week): * Finish the url_for cleanup. All Content model objects should support a permalink_url (or similar) method that returns a link to the permalink for the object. Maybe an edit_url and delete_url, too--that'd clean up some of the views. * Helper cleanup--there are zillions of duplicate ways to get URLs and so forth buried in out helpers. Clean them up, standardize, optimize, and document. * Add rdoc where appropriate. * Query optimization--the front page (sans sidebars) should take 3 queries: blog_id, article count, page 1 article bodies. We're down to ~30 now, from 300 late in the 4.0 dev cycle. Sidebars should be cleaned up where possible, so they're fast. * Optimization. Faster, faster, faster. With less RAM. * Remove components. They were a nice idea. At least according to the Rails docs. However, it's unclear that anyone else uses them for anything. We've certainly found substantial bugs in them that no one else caught. Plus, they're slow. Make it possible to bundle sidebars, themes, and text filters into Rails plugins, and build some sort of infrastructure to make this easy for users. Then move most of the non-core sidebars out of the main tree. * Clean up the admin UI. Everyone has ideas on this. I'd love to see a few mockups. * Threaded comments. I miss mine. I have a model that is fairly simple, I'll show it to people later. * OpenID consumer and producer. Typo should be able to use OpenID to authenticate comment posters *and* act as an OpenID producer so people can use their blog as their identity. * Lightweight permissions model. I'd like to be able to keep commenter preferences in the user table, so we can send out email notifications when people follow up on their comments. I *DON'T* want a 50-table complex permissions model. * Multiblog support. Ignoring the permissions problem, we're 95% of the way there already. * Better Jabber/XMPP support. I'd love to be able to send Atom over XMPP. There's a spec for it out, although it has issues. I'd really *love* to merge OpenID, some sort of Typo registry website, and XMPP to make cross-Typo comments and trackbacks much more powerful then they are now. * Atom Publishing Protocol. I love the Atom publishing protocol. Go play with the Google Calendar API for an example of what APP is able to do. There's a bit of a problem with it and Typo, though--our text filter model doesn't really fit into APP's view of the world. I talked with Tim Bray about it a bit at OSCON, and I think I see a way out. * Standardized import and export scripts. I'd *love* to be able to say 'typo import /some/path wordpress /tmp/foo'. Similarly, we could standardize some sort of Atom-based Typo export format. In all honesty, I don't expect to get most of this done for 4.1. I'd be happy if we could do a bit of permissions work, fix the URLs, ditch components, and speed things up. I'd really like to have 4.1 out during 2006. Scott On 8/1/06, Piers Cawley wrote: > Remember this: > > http://www.mail-archive.com/typo-list at rubyforge.org/msg02284.html > > Well, once I've checked in my current local branch which implements a > feedback specific state machine, we'll have hit most of those goals, > so it's time to think about a few more. > > Outstanding/Short Term > ---------------------- > > * Finish working through the implications of the new state machine > based content 'state'. Essentially, 'published?', 'spam?' and a few > other flags are now delegated to the content's state. Any behaviours > on an object that do anything like: > > if self.published? > ... > end > > should have the '...' turned into a method on the state objects and > get rewritten as > > self.state.meaningful_name_for_some_behaviour > > * Something similar applies to some of the things the controllers are > doing. Structural code (where controllers treat objects as nothing > more than data structures) is anathema, behaviour should be pushed > to the model where it makes sense. Controllers shouldn't access the > state directly, so state dependent behaviour should be pushed to the > model first and then delegated to the state object. > > * Various of the delegated query methods could usefully be added to > the model's table, to help with searching. For instance, it would be > useful for the feedback page to list only those items which are > probably spam. Which means adding 'spam' and > 'classification_is_certain' (lousy name, need to find something > better) booleans to the contents table to help with > searching. (Controllers don't (and shoudln't) know about the state > objects, they just know about the query methods, so we need flag > fields corresponding to the query methods which can be used as find > conditions) > > * Make page caching work right. Still on my todo list, but not quite > so urgent as it was. It's in this section because it's one of the > things that haven't yet been done from the last goals post. > > * Give the theming section a long hard look. Yay! We have Scribbish in > the core now. However, theming still needs looking at. Wouldn't it be great > if you could just drop a theme in vendor/plugins and have it appear > in Typo's list? Wouldn't it be handy to support theme specific > configuration? Woudln't it be useful if all this was documented? > > * Blog settings. Hmm... > > * Text filters not being controllers. > Scott's doing some work on making url_for work without having to get > at the current controllers all the time. Once that's done it should > be a great deal easier to turn textfilters into models. Again, it > would be good to be able to write textfilters so they could be > dropped into vendor/plugins > > New stuff > --------- > > * Authentication. I've posted about this before, but we should really > support, at the very least, OpenID as well as our own internal users > table. > > * Authorization. Once we can authenticate, we can authorize. Some > blogs might choose require authentication before allowing anyone to > comment, or automatically mark any unauthenticated comments as > PresumedSpam > > * Pluggable Spam classification. Right now, when feedback is created, > it's in the 'Unclassified' state. Saving it 'collapses' it to one of > 'PresumedSpam' or 'PresumedHam'. The method for doing this > classification is currently hardwired. First we check our own Spam > Protection library, then, if it's turned on, we ask Akismet. > > Which is all very well, but what happens if we decide we want to use > Authentication as a factor in classification? What if someone writes > a captcha plugin (which gets no nearer to Typo than vendor/plugins > dammit)? > > So, we need to think about making the classification system into a > dynamic pipeline attached to the blog. My current thinking is that > this would be configured like sidebars are now (though possibly not > at the model level, about which more later). The administrator would > be presented with handy drag and drop interface and drag > classification tools into a pipeline. So, I might have a pipeline > that looks like: > > is_logged_in -> article_age -> blacklist -> akismet > > While someone else could have > > captcha -> article_age -> blacklist -> presume_ham > > each engine in the chain would look at the feedback and return one > of :ham, :spam or nil, where returning a symbol halts the > classification process, otherwise the feedback goes to the next > classifier in the chain. Something similar could be done at the > point that spam is firmly classified by the administrator; each > engine would have their #report_as_spam/ham(feedback) method > called and they'd do the reporting as they chose. > > * Multiblogging. I'm so in two minds about this. I think it's going to > happen, and I *don't* think it's going to have an enormous impact > on the performance or copmlexity of the rest of typo. Introducing > the blog object has proved to be The Right Thing, for all its > teething problems. > > * RESTful API. I like REST. It just makes sense to me. But Typo > isn't all that RESTful. Article permalinks are, of course, > sacrosanct, but pretty much everything else is fair game. In the > long term, I'd like to see the back of admin/* in favour of moving > administrative behaviour up into top level controllers and slightly > more complicated access control. This is definitely branch > territory, if only because the support for the sort of thing I'm > thinking of has only recently gone into edge rails. > > * Migrations. Migrating is hard. It's hard to keep the migration > scripts up to date. So, I propose firming up the various message > posting protocols we have, documenting them, and then sticking to > them both in our controllers and any migrations we use. I envisage > using something like the Atom API as our basic posting protocol. > > * Implement the Atom API. > > * Use the rails plugins directory. If you write textfilter, or a > sidebar, you want some easy way of distributing it. And we want not > to have to stick it in the core distribution. It seems that the best > way to do this is to enable writing plugins that can be installed in > the same way as any other rails plugin. I *think* that this can > already be done, but it's completely undocumented. We need to > investigate this and, if it will work with the current state of the > art, we need to write generate tasks to allow a plugin developer to > do: > > ./script/generate sidebar|textfilter|theme > > and have a framework dropped in place so she can get on with the > hard work of making it do something interesting. > > * Investigate other blogging engines' plugin architectures. See if > we're missing any capabilities and what we'd need to do to import > any useful stuff into Typo. > > Hmm... that'll probably do for now. Did I miss anything? > > -- > Piers Cawley > http://www.bofh.org.uk/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From ian.w.white at gmail.com Wed Aug 2 14:58:46 2006 From: ian.w.white at gmail.com (Ian White) Date: Wed, 2 Aug 2006 19:58:46 +0100 Subject: [typo] Typo 4.0: Comments link dissapeared Message-ID: Hi List, New user of Typo here, using 4.0. It looks great, but there's one small problem - There are no links to make comments on articles (on eitehr the index or the individual article pages). I enabled spam protection, then turned it off to see if that was the culprit - but no difference. Has anyone else experienced this? Or am I just missing something blindingly obvious? Cheers, Ian White From kevin at sb.org Wed Aug 2 15:02:45 2006 From: kevin at sb.org (Kevin Ballard) Date: Wed, 2 Aug 2006 12:02:45 -0700 Subject: [typo] More medium/long term Typo goals In-Reply-To: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> Message-ID: <20060802190245.GD12822@rupee.dreamhost.com> Just a heads up, while I do intend on getting back into working on new Typo development (I know I've been doing barely anything lately), but for the next 3 weeks or so I'm going to be away (WWDC, vacation, etc). I may be on #typo a little, but a lot of the time I won't be around. I'll still respond to email, though. -- Kevin Ballard http://kevin.sb.org kevin at sb.org From kevin at sb.org Wed Aug 2 15:04:26 2006 From: kevin at sb.org (Kevin Ballard) Date: Wed, 2 Aug 2006 12:04:26 -0700 Subject: [typo] Typo 4.0: Comments link dissapeared In-Reply-To: References: Message-ID: <20060802190426.GE12822@rupee.dreamhost.com> I suspect you have comments turned off for the article. In the blog settings you can set the default value for new articles, and in the article itself, in the Advanced section, you can set whether that particular article allows comments or trackbacks. On Wed, Aug 02, 2006 at 07:58:46PM +0100, Ian White wrote: > Hi List, > > New user of Typo here, using 4.0. > > It looks great, but there's one small problem - There are no links to > make comments on articles (on eitehr the index or the individual > article pages). > > I enabled spam protection, then turned it off to see if that was the > culprit - but no difference. > > Has anyone else experienced this? Or am I just missing something > blindingly obvious? > > Cheers, > Ian White > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Kevin Ballard http://kevin.sb.org kevin at sb.org From mail at paulbarry.com Wed Aug 2 15:50:44 2006 From: mail at paulbarry.com (Paul Barry) Date: Wed, 2 Aug 2006 15:50:44 -0400 Subject: [typo] Typo 4.0: Comments link dissapeared In-Reply-To: References: Message-ID: Do you have "Enable comments by default" on the main settings page of the admin interface checked? On 8/2/06, Ian White wrote: > > Hi List, > > New user of Typo here, using 4.0. > > It looks great, but there's one small problem - There are no links to > make comments on articles (on eitehr the index or the individual > article pages). > > I enabled spam protection, then turned it off to see if that was the > culprit - but no difference. > > Has anyone else experienced this? Or am I just missing something > blindingly obvious? > > Cheers, > Ian White > _______________________________________________ > 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/20060802/2d5667b6/attachment.html From joshknowles at gmail.com Wed Aug 2 16:35:55 2006 From: joshknowles at gmail.com (Josh Knowles) Date: Wed, 2 Aug 2006 13:35:55 -0700 Subject: [typo] Version Controling Modifications Message-ID: When running off Typo-Trunk what is the recommended way to store modifications to core or theme within SVN? Normally one would use SVN:Externals to link in some external libraries, such as vendor/rails, but how are people managing to run off trunk, and version control their bug-fixes, theme changes, etc? Thanks! Josh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060802/152a49ce/attachment.html From dom at happygiraffe.net Wed Aug 2 16:43:33 2006 From: dom at happygiraffe.net (Dominic Mitchell) Date: Wed, 02 Aug 2006 21:43:33 +0100 Subject: [typo] Version Controling Modifications In-Reply-To: References: Message-ID: <44D10E75.9030008@happygiraffe.net> Josh Knowles wrote: > When running off Typo-Trunk what is the recommended way to store > modifications to core or theme within SVN? Normally one would use > SVN:Externals to link in some external libraries, such as vendor/rails, > but how are people managing to run off trunk, and version control their > bug-fixes, theme changes, etc? There are two ways to do this. 1. You can use vendor branches in subversion. More info from the svn book: http://svnbook.red-bean.com/en/1.1/ch07s05.html 2. Look at using svk . This will let you take a copy of the typo trunk and carry on checking in your own changes as well. You'll still be able to separate out the two. I've just switched from vendor branches to svk and I really recommend it . svk can be a pain to install, as it has a lot of dependencies, but if you're on Debian or FreeBSD, it's prepackaged anyway. But I did have real troubles maintaining a vendor branch using svn. -Dom From phil.toland at gmail.com Wed Aug 2 16:44:09 2006 From: phil.toland at gmail.com (Phillip Toland) Date: Wed, 2 Aug 2006 15:44:09 -0500 Subject: [typo] Version Controling Modifications In-Reply-To: References: Message-ID: <69f191ca0608021344g5aa16c2cpc373979557203794@mail.gmail.com> On 8/2/06, Josh Knowles wrote: > When running off Typo-Trunk what is the recommended way to store > modifications to core or theme within SVN? Normally one would use > SVN:Externals to link in some external libraries, such as vendor/rails, but > how are people managing to run off trunk, and version control their > bug-fixes, theme changes, etc? I don't know about "recommended", but I use Darcs and a script called tailor that lets me synchronize with typo SVN. I am actually just putting the finishing touches on a blog post describing my setup. Look for it at http://fiatdev.com/ in the next day or so. Also, you can use SVK to do the same thing. See http://scottstuff.net/blog/articles/2005/07/07/distributed-development-with-svk. The SVK setup is probably a little simpler to get set up, but I think that the Darcs method is more usable. Phil From ian.w.white at gmail.com Wed Aug 2 16:44:26 2006 From: ian.w.white at gmail.com (Ian White) Date: Wed, 2 Aug 2006 21:44:26 +0100 Subject: [typo] Typo 4.0: Comments link dissapeared In-Reply-To: References: Message-ID: Thanks Paul, Kevin, It was indeed in the 'Advanced Options' in the article itself. Thanks for helping, shucks. Cheers, Ian White From kevwil at gmail.com Wed Aug 2 16:49:16 2006 From: kevwil at gmail.com (Kevin Williams) Date: Wed, 2 Aug 2006 14:49:16 -0600 Subject: [typo] Version Controling Modifications In-Reply-To: References: Message-ID: <683a886f0608021349x23398a3ey6921454688e0c147@mail.gmail.com> I'm using SVK. I have a mirror of typo trunk, then a local branch. I treat the local branch as my SVN repository, and I deploy from there via capistrano. All my extra files and junk are committed to that local branch, which can be synced with my trunk mirror with one command. It feels a bit awkward, still, but it's the only thing I could come up with. On 8/2/06, Josh Knowles wrote: > When running off Typo-Trunk what is the recommended way to store > modifications to core or theme within SVN? Normally one would use > SVN:Externals to link in some external libraries, such as vendor/rails, but > how are people managing to run off trunk, and version control their > bug-fixes, theme changes, etc? > > Thanks! > > Josh > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > -- Cheers, Kevin "Any sufficiently advanced technology is indistinguishable from Magic." - Arthur C. Clarke From joshknowles at gmail.com Wed Aug 2 16:54:36 2006 From: joshknowles at gmail.com (Josh Knowles) Date: Wed, 2 Aug 2006 13:54:36 -0700 Subject: [typo] Version Controling Modifications In-Reply-To: References: Message-ID: On 8/2/06, Josh Knowles wrote: > > When running off Typo-Trunk what is the recommended way to store > modifications to core or theme within SVN? Normally one would use > SVN:Externals to link in some external libraries, such as vendor/rails, but > how are people managing to run off trunk, and version control their > bug-fixes, theme changes, etc? > Thanks for the quick responses! I've been meaning to check out SVK, looks like I have a good reason to now. Josh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060802/93d6fe5d/attachment.html From anildigital at gmail.com Thu Aug 3 13:30:51 2006 From: anildigital at gmail.com (Anil Wadghule) Date: Thu, 3 Aug 2006 23:00:51 +0530 Subject: [typo] Trailing slash problem! Message-ID: hey http://anilw.info/blog/ works bot http://anilw.info/blog not Give me the solution http://anilw.info -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060803/40d88f1a/attachment.html From kevin at sb.org Thu Aug 3 13:51:27 2006 From: kevin at sb.org (Kevin Ballard) Date: Thu, 3 Aug 2006 10:51:27 -0700 Subject: [typo] Trailing slash problem! In-Reply-To: References: Message-ID: <20060803175127.GA24587@rupee.dreamhost.com> That's entirely because of how your server is configured. Go fix your server config. On Thu, Aug 03, 2006 at 11:00:51PM +0530, Anil Wadghule wrote: > hey http://anilw.info/blog/ works bot http://anilw.info/blog not > Give me the solution > > http://anilw.info > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list -- Kevin Ballard http://kevin.sb.org kevin at sb.org From pdcawley at bofh.org.uk Thu Aug 3 18:20:40 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Thu, 03 Aug 2006 23:20:40 +0100 Subject: [typo] More medium/long term Typo goals In-Reply-To: <20060802190245.GD12822@rupee.dreamhost.com> (Kevin Ballard's message of "Wed, 2 Aug 2006 12:02:45 -0700") References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <20060802190245.GD12822@rupee.dreamhost.com> Message-ID: Kevin Ballard writes: > Just a heads up, while I do intend on getting back into working on new > Typo development (I know I've been doing barely anything lately), but > for the next 3 weeks or so I'm going to be away (WWDC, vacation, etc). I > may be on #typo a little, but a lot of the time I won't be around. I'll > still respond to email, though. Continuing that theme, I'm off to Sidmouth Folk Festival 'til Tuesday, when I'll stick my nose in at the London Ruby Users Group meeting. Expect me back on the Typo horse on Thursday or Friday next week when I may be starting what I'm thinking of as a 'new sidebars' branch with a todo list that goes something like: 1. Get rid of all the current sidebars and any infrastructure that supports them, simply support the current helper method for displaying them (I don't want to break my themes, but the helper will probably just respond with 'this space intentionally left blank' for the time being. 2. Experiment with various ways of providing sidebars that don't use components to do their magic. Which thought is, even now, hurting my head. 3. Work out which one is least horrible and most testable. 4. Commit it to the trunk, port our currently supported sidebars to the new scheme and make everyone who has their own sidebars to support cry. 5. Wait 'til everyone has stopped crying and ported their sidebars 6. Write a handy adapter that makes old style sidebars work with the new scheme. Please note that steps 2 through 6 are *highly* speculative. -- Piers Cawley http://www.bofh.org.uk/ From arsptr at internode.on.net Fri Aug 4 06:00:23 2006 From: arsptr at internode.on.net (Alastair Rankine) Date: Fri, 4 Aug 2006 20:00:23 +1000 Subject: [typo] More medium/long term Typo goals In-Reply-To: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> Message-ID: <7B1AD006-AF1C-4498-8ADB-1979D6B5A6E3@internode.on.net> On 03/08/2006, at 2:55 AM, Scott Laird wrote: > I mostly agree with Piers. Here's a short version of my list (short, > because I'm on vacation this week): [... snip a fantastic list of enhancements ...] Is there any low-hanging fruit for rails- and typo- newbies to attempt? I'm willing to have a look at Atom-based exporting (seeing as I raised it on your blog :), on the assumption that it is not too much like rocket science. I'm intending to just wade in, hacking and slashing, but any suggestions appreciated. From arsptr at internode.on.net Fri Aug 4 06:32:45 2006 From: arsptr at internode.on.net (Alastair Rankine) Date: Fri, 4 Aug 2006 20:32:45 +1000 Subject: [typo] Delicious sidebar oops Message-ID: <841D3E67-D1A8-412B-BCC8-90D6DFD89685@internode.on.net> Currently the "group by date" setting in the delicious sidebar does not seem to have any effect: it's always on. I think the reason is that the value in @sb_config['groupdate'] evaluates to "0" or "1", both strings and hence both true according to Ruby (any Perl programmers out there want to own up to this one? :). I guess a proper fix would be to map this setting to a boolean, but I don't know much about how sidebars are configured, so I've got a bit of a brute force fix instead, comments appreciated. typo $ svn diff components/plugins/sidebars/delicious/content.rhtml Index: components/plugins/sidebars/delicious/content.rhtml =================================================================== --- components/plugins/sidebars/delicious/content.rhtml (revision 1193) +++ components/plugins/sidebars/delicious/content.rhtml (working copy) @@ -1,8 +1,8 @@ <% if @delicious -%>

<%=h @delicious.title %>

- <% (@sb_config['groupdate'] ? @delicious.days : [{ :container => @delicious.items }]).each do |group| -%> - <% if @sb_config['groupdate'] -%> + <% (@sb_config['groupdate'] != "0" ? @delicious.days : [{ :container => @delicious.items }]).each do |group| -%> + <% if @sb_config['groupdate'] != "0" -%> <%=h group[:date].to_s.to_date.strftime("%b % d") %> <% end -%>
    From mail at paulbarry.com Fri Aug 4 07:53:45 2006 From: mail at paulbarry.com (Paul Barry) Date: Fri, 4 Aug 2006 07:53:45 -0400 Subject: [typo] Typo's memory footprint In-Reply-To: References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> <44CF8532.2040001@pobox.com> Message-ID: A few days later here's where it's at: root 3395 0.3 53.3 53616 50524 ? S Aug02 9:37 /usr/bin/ruby /usr/bin/mongrel_rails start Seems to be creeping up. Is this a memory leak or just normal? Is anyone else seeing this? On 8/2/06, Paul Barry wrote: > > FYI, I have having a serious memory leak using typo 3.99.x (I think .4, > can't remember). It was so bad I couldn't even ssh into VPS account and I > had to get the sysadmin to restart my "server". Anyway, I just upgraded to > 4.00, couldn't have been any easier. Taking at look at the memory usage, > it looks like this in "ps aux": > > Right after starting: > root 3395 31.0 25.9 27732 24608 ? S 10:31 0:02 > /usr/bin/ruby /usr/bin/mongrel_rails start > > After first hit to home page: > root 3395 5.7 26.3 28120 24980 ? S 10:31 0:02 > /usr/bin/ruby /usr/bin/mongrel_rails start > > After first posted article: > root 3395 16.4 36.9 37900 34984 ? R 10:31 1:00 > /usr/bin/ruby /usr/bin/mongrel_rails start > Seems to have leveled off at the last level. I'll let you know if I > continue to have problems or if the memory leak is indeed solved with 4.00. > I'm using apache2 mod_proxy, mongrel and sqlite on a FC4 VPS host. > > > > > On 8/1/06, mathew wrote: > > > > Eric Sendelbach wrote: > > > I am hosting my blog on Textdrive and they have a 48 meg limit on > > > process usage. After that it just gets whacked. On a fresh restart > > > with Typo 4.0.0 its SIZE is 36016K and its RES is 33452K. > > > > I'm seeing size = 51592 and vsize = 63856 for each dispatch.cgi process > > using lighttpd and fastcgi, so consider yourself lucky :-) > > > > I actually had to move up to a higher level of hosting in order to keep > > running typo, costing me significant cash. To make up for it, I'm now > > running tracks on the same hosting, and I hope to run a wiki too as soon > > as I can find or build one I consider suitable. (I'm not wild about > > instiki.) > > > > > > mathew > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060804/196daffd/attachment.html From mikekey at frii.com Fri Aug 4 21:12:50 2006 From: mikekey at frii.com (Mike Key) Date: Fri, 4 Aug 2006 19:12:50 -0600 Subject: [typo] (no subject) Message-ID: <0AAAF808-2884-4AB7-A2FB-CA33AEDB6529@frii.com> I just installed typo 4.0.0 on a new system with mysql as the database. I attempted to make my initial post and got the below error in the apache error log. I am using ecto 2.4.1 and have setup the site with the following: API: Movable Type Endpoint: http://www.mysite.com/blog/backend/xmlrpc The error: Casting of method parameters failed RuntimeError (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id): /app/models/content.rb:171:in `text_filter=' /app/apis/meta_weblog_service.rb:99:in `newPost' /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/ action_web_service/invocation.rb:144:in `perform_invocation_without_interception' /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/ action_web_service/invocation.rb:138:in `perform_invocation' /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/ action_web_service/dispatcher/abstract.rb:43:in `web_service_filtered_invoke' /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/ action_web_service/dispatcher/abstract.rb:38:in `web_service_delegated_invoke' /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/ action_web_service/dispatcher/abstract.rb:57:in `web_service_invoke' /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/ action_web_service/dispatcher/abstract.rb:22:in `invoke_web_service_request' /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/ action_web_service/dispatcher/action_controller_dispatcher.rb:53:in `dispatch_web_service_request' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/ action_web_service/dispatcher/action_controller_dispatcher.rb:51:in `dispatch_web_service_request' (eval):1:in `xmlrpc' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/base.rb:910:in `perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/filters.rb:368:in `perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/rescue.rb:82:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/base.rb:381:in `process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/filters.rb:377:in `process_without_session_management_support' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/session_management.rb:117:in `process' /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb:38:in `dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb: 150:in `process_request' /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb: 54:in `process!' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./ fcgi.rb:600:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb: 53:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/ fcgi_handler.rb:23:in `process!' /home/piratemk/public_html/blog/ dispatch.fcgi:24 Thanks for any help. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060804/913e2232/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2522 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060804/913e2232/attachment-0001.bin From alce at mac.com Sat Aug 5 04:58:49 2006 From: alce at mac.com (Juan Alvarez) Date: Sat, 5 Aug 2006 03:58:49 -0500 Subject: [typo] test failed while attempting to install Message-ID: <01C79868-2A2B-476E-865F-6DD7641B0416@mac.com> Hello, I just downloaded typo gem 4.0 and installed typo on mac osx 10.4.7 I receive the following message: Cleaning out Typo's cache Running tests. This may take a minute or two ***** Tests failed ***** ** Please run 'rake test' by hand in your install directory. ** Report problems to the Typo mailing list. ***** Tests failed ***** Starting Typo on port 4674 I then ran the tests manually and these were the results: 1) Error: test_signup(AccountsControllerTest): ActiveRecord::StatementInvalid: TypeError: no implicit conversion from nil to integer: PRAGMA table_info(notifications) . . 2) Failure: test_create(Admin::ContentControllerTest) [./test/functional/admin/ content_controller_test.rb:79]: <1> expected but was <0>. 3) Error: test_request_fires_triggers(Admin::ContentControllerTest): NoMethodError: You have a nil object when you didn't expect it! The error occured while evaluating nil.publish! 4) Failure: test_new(Admin::PagesControllerTest) [./test/functional/admin/ pages_controller_test.rb:60]: response is not a redirection to all of the options supplied (redirection is <{:action=>"show", :id=>0}>), difference: <{:id=>19}> 5) Error: test_blogger_new_post(BackendControllerTest): ActiveRecord::RecordNotFound: Couldn't find Article with ID=0 . . 6) Error: test_blogger_new_post_no_title(BackendControllerTest): ActiveRecord::RecordNotFound: Couldn't find Article with ID=0 . . 7) Error: test_blogger_new_post_with_categories(BackendControllerTest): ActiveRecord::RecordNotFound: Couldn't find Article with ID=0 206 tests, 766 assertions, 2 failures, 7 errors rake aborted! Test failures Is there something wrong whith the app or am i doing something wrong? Thank you From meta at pobox.com Sat Aug 5 11:48:40 2006 From: meta at pobox.com (mathew) Date: Sat, 5 Aug 2006 10:48:40 -0500 Subject: [typo] Application Error (Rails) from poison spam comment in Typo 4.0 Message-ID: I had another comment which caused Application Error (Rails) when I tried to delete it from the admin interface. It looks as if the e-mail address entered was: "compliant Content-Transfer-Encoding: 8bit with: ac4371ed0c0b451d71976078950c6937 Content-Type: text/plain Subject: etworks is to: buletmann at aol.com" I'm a bit surprised Typo apparently doesn't check for at least basic validity of addresses. Anyhow, how can I best extract and report the necessary data to enable these kinds of bugs to be located and squashed? There didn't seem to be anything useful in any of the log files. mathew From andy at ciordia.info Sat Aug 5 15:42:56 2006 From: andy at ciordia.info (Andy Ciordia) Date: Sat, 5 Aug 2006 15:42:56 -0400 Subject: [typo] 4.0 Migration Issues, FC4, Mysql Message-ID: Coming from an svn of 2.6, think I was <=1099 .. mysql-4.1.20-1.FC4.1 ruby-libs-1.8.4-3.fc4 ruby-1.8.4-3.fc4 Trying to just upgrade into 4.0 gem caused: ## Migrating Typo's database to newest release rake aborted! Multiple migrations have the version number 1 (See full trace by running task with --trace) /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/rails-installer.rb: 386:in `migrate': Migration failed (RailsInstaller::InstallFailed) from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ rails-installer.rb:520:in `in_directory' from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ rails-installer.rb:384:in `migrate' from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ rails-installer.rb:86:in `install_sequence' from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ rails-installer.rb:61:in `install' from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ rails-installer/commands.rb:54:in `command' from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ rails-installer.rb:491:in `execute_command' from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/bin/typo:37 from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/ active_support/dependencies.rb:140:in `load' from /usr/bin/typo:18 ## If this has no good calls, is there any way to do a import the data to a fresh install? I dumped my db before all of this. -a From mikekey at frii.com Sat Aug 5 23:55:48 2006 From: mikekey at frii.com (Mike Key) Date: Sat, 5 Aug 2006 21:55:48 -0600 Subject: [typo] 4.0.0 API endpoint failing Message-ID: <924BF23D-51C3-4921-A6CD-C612D9C8CC3C@frii.com> Can anyone provide any insight here. I finally have 4.0.0 working well except I still get an error with ecto. So I tried to connect to the endpoint through a browser and get this error: Errno::ENOENT (No such file or directory - getcwd): /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/routing.rb:269:in `expand_path' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/routing.rb:269:in `safe_load_paths' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/routing.rb:268:in `safe_load_paths' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/routing.rb:280:in `attempt_load' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/routing.rb:237:in `traverse_to_controller' generated/routing/recognition.rb:413:in `recognize_path' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/routing.rb:510:in `recognize!' /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb:38:in `dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb: 150:in `process_request' /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb: 54:in `process!' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./ fcgi.rb:600:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb: 53:in `process!' /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/ fcgi_handler.rb:23:in `process!' /REMOVED/MY/PATH/dispatch.fcgi:24 This seems to be the only thing not working and I have a hunch its my issue but I have taken the same steps as I did when using 2.6 (on a different server). Thanks for any help. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060805/14d07f2e/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2522 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060805/14d07f2e/attachment.bin From kevin at sb.org Sun Aug 6 02:24:05 2006 From: kevin at sb.org (Kevin Ballard) Date: Sat, 5 Aug 2006 23:24:05 -0700 Subject: [typo] More medium/long term Typo goals In-Reply-To: <7B1AD006-AF1C-4498-8ADB-1979D6B5A6E3@internode.on.net> References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <7B1AD006-AF1C-4498-8ADB-1979D6B5A6E3@internode.on.net> Message-ID: <20060806062405.GI24448@rupee.dreamhost.com> Actually, we have atom exporting already (I assume by exporting you mean a feed). The atom support we need is the atom blog API. I have a branch sitting around (on the comptuer in a box winging its way back to MA that I won't see for two weeks) that was intended to work on that, but I didn't get much work done back then. If nobody's taken it up in the next few weeks I may re-start my attempt. On Fri, Aug 04, 2006 at 08:00:23PM +1000, Alastair Rankine wrote: > On 03/08/2006, at 2:55 AM, Scott Laird wrote: > > > I mostly agree with Piers. Here's a short version of my list (short, > > because I'm on vacation this week): > > [... snip a fantastic list of enhancements ...] > > Is there any low-hanging fruit for rails- and typo- newbies to > attempt? I'm willing to have a look at Atom-based exporting (seeing > as I raised it on your blog :), on the assumption that it is not too > much like rocket science. > > I'm intending to just wade in, hacking and slashing, but any > suggestions appreciated. -- Kevin Ballard http://kevin.sb.org kevin at sb.org http://www.tildesoft.com From lists at holsman.net Sun Aug 6 23:58:19 2006 From: lists at holsman.net (Ian Holsman) Date: Mon, 7 Aug 2006 13:58:19 +1000 Subject: [typo] trying to install using the typo script Message-ID: <8E5AA52A-66F5-41E8-B5EB-A15E204B6A23@holsman.net> Hi. I'm trying to install typo on a shared host, and am having some issues. first.. i installed the required gems in my home directory.. that worked fine, and they all live in $HOME/ruby but when I try to run "typo" to install the things I run into a little problem. $ ~/ruby/bin/typo /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:204:in `report_activate_error': Could not find RubyGem typo (> 0) (Gem::LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:141:in `activate' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:37:in `require_gem_with_options' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:31:in `require_gem' i've tried changing LOAD_PATH to various things in te ruby/ directory with no joy. any hints? regards Ian. -- Ian Holsman Ian at Holsman.net http://VC-chat.com It's what the VC's talk about -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060807/a2fb2d97/attachment-0001.html From steve.longdo at gmail.com Mon Aug 7 00:59:02 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Sun, 6 Aug 2006 23:59:02 -0500 Subject: [typo] trying to install using the typo script In-Reply-To: <8E5AA52A-66F5-41E8-B5EB-A15E204B6A23@holsman.net> References: <8E5AA52A-66F5-41E8-B5EB-A15E204B6A23@holsman.net> Message-ID: Scott had an example for shared host installation, make sure to check out his comment too... http://scottstuff.net/blog/articles/2006/07/28/how-to-install-gems-when-youre-not-root -- Thanks, -Steve http://www.stevelongdo.com On 8/6/06, Ian Holsman wrote: > > Hi. > I'm trying to install typo on a shared host, and am having some issues. > > first.. i installed the required gems in my home directory.. that worked > fine, and they all live in $HOME/ruby > > but when I try to run "typo" to install the things I run into a little > problem. > > $ ~/ruby/bin/typo > /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:204:in > `report_activate_error': Could not find RubyGem typo (> 0) (Gem::LoadError) > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:141:in > `activate' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:37:in > `require_gem_with_options' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:31:in > `require_gem' > > i've tried changing LOAD_PATH to various things in te ruby/ directory with > no joy. > > any hints? > > regards > Ian. > -- > Ian Holsman > Ian at Holsman.net > http://VC-chat.com It's what the VC's talk about > > > > > > > _______________________________________________ > 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/20060806/898bcd2b/attachment.html From lists at holsman.net Mon Aug 7 01:51:40 2006 From: lists at holsman.net (Ian Holsman) Date: Mon, 7 Aug 2006 15:51:40 +1000 Subject: [typo] trying to install using the typo script In-Reply-To: References: <8E5AA52A-66F5-41E8-B5EB-A15E204B6A23@holsman.net> Message-ID: <580DE5B0-5A8B-4549-90A6-F4E81E18EBD4@holsman.net> Thanks. I was missing the GEM_PATH variable. On 07/08/2006, at 2:59 PM, Steve Longdo wrote: > Scott had an example for shared host installation, make sure to > check out his comment too... > http://scottstuff.net/blog/articles/2006/07/28/how-to-install-gems- > when-youre-not-root > -- > Thanks, > -Steve > http://www.stevelongdo.com > > On 8/6/06, Ian Holsman wrote: > Hi. > > I'm trying to install typo on a shared host, and am having some > issues. > > first.. i installed the required gems in my home directory.. that > worked fine, and they all live in $HOME/ruby > > but when I try to run "typo" to install the things I run into a > little problem. > > $ ~/ruby/bin/typo > /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:204:in > `report_activate_error': Could not find RubyGem typo (> 0) > (Gem::LoadError) > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:141:in > `activate' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:37:in > `require_gem_with_options' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:31:in > `require_gem' > > i've tried changing LOAD_PATH to various things in te ruby/ > directory with no joy. > > any hints? > > regards > Ian. > -- > Ian Holsman > Ian at Holsman.net > http://VC-chat.com It's what the VC's talk about > > > > > > > _______________________________________________ > 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 -- Ian Holsman Ian at Holsman.net join http://gyspsyjobs.com the marketplace for django developers -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060807/621b1e67/attachment.html From arsptr at internode.on.net Mon Aug 7 07:56:21 2006 From: arsptr at internode.on.net (Alastair Rankine) Date: Mon, 7 Aug 2006 21:56:21 +1000 Subject: [typo] Atom exporting In-Reply-To: <20060806062405.GI24448@rupee.dreamhost.com> References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <7B1AD006-AF1C-4498-8ADB-1979D6B5A6E3@internode.on.net> <20060806062405.GI24448@rupee.dreamhost.com> Message-ID: <9C5712EA-8541-4777-90A2-12067A7609A7@internode.on.net> On 06/08/2006, at 4:24 PM, Kevin Ballard wrote: > Actually, we have atom exporting already (I assume by exporting you > mean > a feed). Actually, I meant more than just a feed. I don't know about anyone else, but I find it a lot easier to put my data somewhere that I know I will be able to get it out again. This applies especially for web applications hosted by third-parties, where export facilities are a must before I'll even look at it, but I believe it is generally a good practice. The ability to export is something that is missing from Typo. You can get your data out again, but it's in the database schema du jour. Hence the motivation for an export facility for Typo. This is an escape hatch, if you will, for migration to an unspecified future blogging platform. At present there is no common interchange format for blog content. The closest we get is Atom, and I'm not even sure whether that is entirely suitable for representing all of the interesting content of a blog. Anyway I think it's worth having a crack at it. Unlike the current Atom feed, the Atom export facility would: a) include a complete archive, that is all of the articles, pages, comments, trackbacks, etc in the blog b) use the 'raw' formatting (eg markdown) instead of HTML c) probably ignore attachments (unless someone has a better idea?) On Scott's blog I mentioned the possibility that this could be expanded to fill the role of a backup/restore format, and he was fairly sure he wanted these to be completely separate. Which seems reasonable. From codejnki at codejnki.com Mon Aug 7 08:13:40 2006 From: codejnki at codejnki.com (Patrick Stockton) Date: Mon, 7 Aug 2006 08:13:40 -0400 Subject: [typo] Live search static pages Message-ID: <9303b0400608070513w77bea239q7bce6aaf745220c8@mail.gmail.com> I'm starting to get a collection of static pages on my web site and was wondering if there was a way for the live search to actually be able to search that content. I see a diff on the typoTrack but it is nearly a year old so I didn't know if there were changes since then. Thanks. -- Apathy would be my policy, if I cared. http://www.codejnki.com From mail at paulbarry.com Mon Aug 7 09:42:40 2006 From: mail at paulbarry.com (Paul Barry) Date: Mon, 7 Aug 2006 09:42:40 -0400 Subject: [typo] Typo's memory footprint In-Reply-To: References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> <44CF8532.2040001@pobox.com> Message-ID: Almost a week later here's what the memory usage looks like: root 3395 0.1 58.0 76412 54980 ? S Aug02 14:07 /usr/bin/ruby /usr/bin/mongrel_rails start So no one else is having problems with this? I gonna have to put in a cron job to restart this weekly, since it's obviously leaking memory. On 8/4/06, Paul Barry wrote: > > A few days later here's where it's at: > > root 3395 0.3 53.3 53616 50524 ? S Aug02 9:37 > /usr/bin/ruby /usr/bin/mongrel_rails start > > Seems to be creeping up. Is this a memory leak or just normal? Is anyone > else seeing this? > > > On 8/2/06, Paul Barry < mail at paulbarry.com> wrote: > > > > FYI, I have having a serious memory leak using typo 3.99.x (I think .4, > > can't remember). It was so bad I couldn't even ssh into VPS account and I > > had to get the sysadmin to restart my "server". Anyway, I just upgraded to > > 4.00, couldn't have been any easier. Taking at look at the memory > > usage, it looks like this in "ps aux": > > > > Right after starting: > > root 3395 31.0 25.9 27732 24608 ? S 10:31 0:02 > > /usr/bin/ruby /usr/bin/mongrel_rails start > > > > After first hit to home page: > > root 3395 5.7 26.3 28120 24980 ? S 10:31 0:02 > > /usr/bin/ruby /usr/bin/mongrel_rails start > > > > After first posted article: > > root 3395 16.4 36.9 37900 34984 ? R 10:31 1:00 > > /usr/bin/ruby /usr/bin/mongrel_rails start > > Seems to have leveled off at the last level. I'll let you know if I > > continue to have problems or if the memory leak is indeed solved with > > 4.00. I'm using apache2 mod_proxy, mongrel and sqlite on a FC4 VPS > > host. > > > > > > > > > > On 8/1/06, mathew wrote: > > > > > > Eric Sendelbach wrote: > > > > I am hosting my blog on Textdrive and they have a 48 meg limit on > > > > process usage. After that it just gets whacked. On a fresh restart > > > > with Typo 4.0.0 its SIZE is 36016K and its RES is 33452K. > > > > > > I'm seeing size = 51592 and vsize = 63856 for each dispatch.cgiprocess > > > using lighttpd and fastcgi, so consider yourself lucky :-) > > > > > > I actually had to move up to a higher level of hosting in order to > > > keep > > > running typo, costing me significant cash. To make up for it, I'm now > > > running tracks on the same hosting, and I hope to run a wiki too as > > > soon > > > as I can find or build one I consider suitable. (I'm not wild about > > > instiki.) > > > > > > > > > mathew > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060807/efb4e7a9/attachment-0001.html From eric.sendelbach at gmail.com Mon Aug 7 10:03:27 2006 From: eric.sendelbach at gmail.com (Eric Sendelbach) Date: Mon, 7 Aug 2006 10:03:27 -0400 Subject: [typo] Typo's memory footprint In-Reply-To: References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> <44CF8532.2040001@pobox.com> Message-ID: <2fbd26cb0608070703y61d937d6wd5eb5edd91c5a479@mail.gmail.com> Yes, I am still having problems with this, but nobody seems to worry too much about it. Unfortunately for me TextDrive would have killed the process a LONG time ago when it went over 48 megs. I suppose I could do the same with a cron job and monitor memory usage, but it would have to restart every 3 minutes or so and I don't think I nor the nice folks at TextDrive would like that too much. :) Since TextDrive is supposed to be the premier RoR host and Typo the premier RoR blogging software, it only seems natural that the two should play nice together. On 8/7/06, Paul Barry wrote: > > Almost a week later here's what the memory usage looks like: > > root 3395 0.1 58.0 76412 54980 ? S Aug02 14:07 > /usr/bin/ruby /usr/bin/mongrel_rails start > > So no one else is having problems with this? I gonna have to put in a > cron job to restart this weekly, since it's obviously leaking memory. > > On 8/4/06, Paul Barry wrote: > > > > A few days later here's where it's at: > > > > root 3395 0.3 53.3 53616 50524 ? S Aug02 9:37 > > /usr/bin/ruby /usr/bin/mongrel_rails start > > > > Seems to be creeping up. Is this a memory leak or just normal? Is > > anyone else seeing this? > > > > > > On 8/2/06, Paul Barry < mail at paulbarry.com> wrote: > > > > > > FYI, I have having a serious memory leak using typo 3.99.x (I think > > > .4, can't remember). It was so bad I couldn't even ssh into VPS account and > > > I had to get the sysadmin to restart my "server". Anyway, I just upgraded > > > to 4.00, couldn't have been any easier. Taking at look at the memory > > > usage, it looks like this in "ps aux": > > > > > > Right after starting: > > > root 3395 31.0 25.9 27732 24608 ? S 10:31 0:02 > > > /usr/bin/ruby /usr/bin/mongrel_rails start > > > > > > After first hit to home page: > > > root 3395 5.7 26.3 28120 24980 ? S 10:31 0:02 > > > /usr/bin/ruby /usr/bin/mongrel_rails start > > > > > > After first posted article: > > > root 3395 16.4 36.9 37900 34984 ? R 10:31 1:00 > > > /usr/bin/ruby /usr/bin/mongrel_rails start > > > Seems to have leveled off at the last level. I'll let you know if I > > > continue to have problems or if the memory leak is indeed solved with > > > 4.00. I'm using apache2 mod_proxy, mongrel and sqlite on a FC4 VPS > > > host. > > > > > > > > > > > > > > > On 8/1/06, mathew wrote: > > > > > > > > Eric Sendelbach wrote: > > > > > I am hosting my blog on Textdrive and they have a 48 meg limit on > > > > > process usage. After that it just gets whacked. On a fresh restart > > > > > > > > > with Typo 4.0.0 its SIZE is 36016K and its RES is 33452K. > > > > > > > > I'm seeing size = 51592 and vsize = 63856 for each dispatch.cgiprocess > > > > using lighttpd and fastcgi, so consider yourself lucky :-) > > > > > > > > I actually had to move up to a higher level of hosting in order to > > > > keep > > > > running typo, costing me significant cash. To make up for it, I'm > > > > now > > > > running tracks on the same hosting, and I hope to run a wiki too as > > > > soon > > > > as I can find or build one I consider suitable. (I'm not wild about > > > > instiki.) > > > > > > > > > > > > mathew > > > > _______________________________________________ > > > > Typo-list mailing list > > > > Typo-list at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > -- Eric Sendelbach 229 Fulton St Indianapolis, IN 46202 317.965.2071 (cell) http://www.ericsendelbach.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060807/c20387e1/attachment.html From orava at iki.fi Mon Aug 7 10:05:21 2006 From: orava at iki.fi (Petri Wessman) Date: Mon, 07 Aug 2006 17:05:21 +0300 Subject: [typo] Markup pluings with raw HTML disabled into base? Message-ID: <44D748A1.9040300@iki.fi> Hi, I just started playing around with Typo, very nice (and it being built on Rails is another layer of coolness :). Where the PHP of Wordpress gave me an "aaagh!" reaction, here it's actually fun to look under the hood and tinker :). Anyway, I noticed that the default setup doesn't include a text filter that filters out raw HTML. It seems to me that allowing default Markdown (for example) in blog comments would be pretty dangerous, there are a lot of nasty things you can inject with that, especially Javascript ones. So I added a version of the Markdown plugin for my own blog, with raw HTML filtered out, using: BlueCloth.new(text.gsub(%r{}, ''), :filter_html, :filter_styles).to_html in the relevant portion. Works and makes me feel a bit safer, at least. I was just wondering if it would make sense to add "no raw HTML" versions of the text filters to the default Typo package? Not everyone wants to or can hack Ruby code, and I'm a bit worried that lots of people will just enable normal markdown/textile markup for their comments and as a side effect be vulnerable to various sorts of attacks and annoyances. //Petri From meta at pobox.com Mon Aug 7 10:24:26 2006 From: meta at pobox.com (mathew) Date: Mon, 07 Aug 2006 09:24:26 -0500 Subject: [typo] Typo's memory footprint In-Reply-To: References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> <44CF8532.2040001@pobox.com> Message-ID: <44D74D1A.3020708@pobox.com> Paul Barry wrote: > Almost a week later here's what the memory usage looks like: > > root 3395 0.1 58.0 76412 54980 ? S Aug02 14:07 > /usr/bin/ruby /usr/bin/mongrel_rails start > > So no one else is having problems with this? I gonna have to put in a > cron job to restart this weekly, since it's obviously leaking memory. One of my dispatch.cgis has gone up to 58128 70392, the other has gone down to 49308 61572. I think the one that's elevated is because I'm logged in to tracks, however. I don't use Mongrel, maybe that's the difference? mathew From steve.longdo at gmail.com Mon Aug 7 11:22:53 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Mon, 7 Aug 2006 10:22:53 -0500 Subject: [typo] Typo's memory footprint In-Reply-To: <44D74D1A.3020708@pobox.com> References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> <44CF8532.2040001@pobox.com> <44D74D1A.3020708@pobox.com> Message-ID: I've done a quick write up about this on my blog. I've also been doing some preliminary memory profiling. I'll be writing more about that soon. http://www.stevelongdo.com/articles/2006/08/04/typo-4-0-and-memory-reduction -- Thanks, -Steve http://www.stevelongdo.com On 8/7/06, mathew wrote: > > Paul Barry wrote: > > Almost a week later here's what the memory usage looks like: > > > > root 3395 0.1 58.0 76412 54980 ? S Aug02 14:07 > > /usr/bin/ruby /usr/bin/mongrel_rails start > > > > So no one else is having problems with this? I gonna have to put in a > > cron job to restart this weekly, since it's obviously leaking memory. > > One of my dispatch.cgis has gone up to 58128 70392, the other has gone > down to 49308 61572. I think the one that's elevated is because I'm > logged in to tracks, however. > > I don't use Mongrel, maybe that's the difference? > > > mathew > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060807/4db3afaf/attachment.html From scott at sigkill.org Mon Aug 7 11:28:09 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 7 Aug 2006 08:28:09 -0700 Subject: [typo] Typo's memory footprint In-Reply-To: References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> <44CF8532.2040001@pobox.com> <44D74D1A.3020708@pobox.com> Message-ID: <14b7e5ef0608070828y7ab7b7bfx2cdd90ce615cc854@mail.gmail.com> Thanks. Memory leak debugging with Rails is difficult. Unfortunately, slower leaks are even harder to find and harder to verify as fixed, but we'll find it and fix it. Scott On 8/7/06, Steve Longdo wrote: > I've done a quick write up about this on my blog. I've also been doing some > preliminary memory profiling. I'll be writing more about that soon. > > http://www.stevelongdo.com/articles/2006/08/04/typo-4-0-and-memory-reduction > > > -- > Thanks, > -Steve > http://www.stevelongdo.com > > On 8/7/06, mathew wrote: > > Paul Barry wrote: > > > Almost a week later here's what the memory usage looks like: > > > > > > root 3395 0.1 58.0 76412 54980 ? S Aug02 14:07 > > > /usr/bin/ruby /usr/bin/mongrel_rails start > > > > > > So no one else is having problems with this? I gonna have to put in a > > > cron job to restart this weekly, since it's obviously leaking memory. > > > > One of my dispatch.cgis has gone up to 58128 70392, the other has gone > > down to 49308 61572. I think the one that's elevated is because I'm > > logged in to tracks, however. > > > > I don't use Mongrel, maybe that's the difference? > > > > > > mathew > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From meta at pobox.com Mon Aug 7 11:30:37 2006 From: meta at pobox.com (mathew) Date: Mon, 07 Aug 2006 10:30:37 -0500 Subject: [typo] Typo's memory footprint In-Reply-To: <2fbd26cb0608070703y61d937d6wd5eb5edd91c5a479@mail.gmail.com> References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> <44CF8532.2040001@pobox.com> <2fbd26cb0608070703y61d937d6wd5eb5edd91c5a479@mail.gmail.com> Message-ID: <44D75C9D.4090004@pobox.com> Eric Sendelbach wrote: > Yes, I am still having problems with this, but nobody seems to worry > too much about it. Unfortunately for me TextDrive would have killed > the process a LONG time ago when it went over 48 megs. I suppose I > could do the same with a cron job and monitor memory usage, but it > would have to restart every 3 minutes or so and I don't think I nor > the nice folks at TextDrive would like that too much. :) Present them with that choice! "Hey, would you rather I restart my Rails process every few minutes to keep it under 48 MB, or would you rather relax your memory limits a bit?" :-) mathew From scott at sigkill.org Mon Aug 7 11:36:05 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 7 Aug 2006 08:36:05 -0700 Subject: [typo] Atom exporting In-Reply-To: <9C5712EA-8541-4777-90A2-12067A7609A7@internode.on.net> References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <7B1AD006-AF1C-4498-8ADB-1979D6B5A6E3@internode.on.net> <20060806062405.GI24448@rupee.dreamhost.com> <9C5712EA-8541-4777-90A2-12067A7609A7@internode.on.net> Message-ID: <14b7e5ef0608070836q387b34f4k4d6f9dbbe1428eaf@mail.gmail.com> I'd love to see an Atom-based blog export/import standard. Does anyone know any of the WP guys? It seems to me that the rational thing to do would be to have a "pure" Atom feed, including HTML for each entry, and then add an 'export' namespace and use tags like '' to include the original markup, as well as other fields that don't map into standard Atom (comments open, trackbacks, etc). I'm not sure if static content, comments, and trackbacks would be better as more entries with a special type flag or as their own tag. I suspect that we could get a few prominent non-Typo XML people involved in this pretty quickly, if we can sit down and produce a first draft of the standard. Scott On 8/7/06, Alastair Rankine wrote: > On 06/08/2006, at 4:24 PM, Kevin Ballard wrote: > > > Actually, we have atom exporting already (I assume by exporting you > > mean > > a feed). > > Actually, I meant more than just a feed. > > I don't know about anyone else, but I find it a lot easier to put my > data somewhere that I know I will be able to get it out again. This > applies especially for web applications hosted by third-parties, > where export facilities are a must before I'll even look at it, but I > believe it is generally a good practice. The ability to export is > something that is missing from Typo. You can get your data out again, > but it's in the database schema du jour. > > Hence the motivation for an export facility for Typo. This is an > escape hatch, if you will, for migration to an unspecified future > blogging platform. > > At present there is no common interchange format for blog content. > The closest we get is Atom, and I'm not even sure whether that is > entirely suitable for representing all of the interesting content of > a blog. Anyway I think it's worth having a crack at it. > > Unlike the current Atom feed, the Atom export facility would: > a) include a complete archive, that is all of the articles, pages, > comments, trackbacks, etc in the blog > b) use the 'raw' formatting (eg markdown) instead of HTML > c) probably ignore attachments (unless someone has a better idea?) > > On Scott's blog I mentioned the possibility that this could be > expanded to fill the role of a backup/restore format, and he was > fairly sure he wanted these to be completely separate. Which seems > reasonable. > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From jburks725 at gmail.com Mon Aug 7 11:41:24 2006 From: jburks725 at gmail.com (Jason Burks) Date: Mon, 7 Aug 2006 11:41:24 -0400 Subject: [typo] Problem with permalink URLs on latest trunk (1193) Message-ID: <9bbab4e0608070841r1525ea1fl962f5a3bda61affa@mail.gmail.com> I'm having a problem with permalinks on the latest trunk (r1193) that I need help tracking down. I'm pretty sure I know what's going on, I just don't know how to fix it. The URL for my blog is www.jasonburks.com. That displays as http://www.jasonburks.com/ when you visit the site. The problem is that, on the latest trunk, it now gives permalink URLs for articles and such as http://www.jasonburks.com//articles/... If I click on the permalink (http://www.jasonburks.com//articles/2006/08/04/off-to-maine for example) I get a page not found error, as expected. If I manually edit that URL to remove one of the two slashes before articles, then the page loads fine and all of the permalink URLs (for comments, trackbacks, etc) are written correctly with a single slash. Looking at the HTML source, they're being written using just a path, with no protocol or host (i.e. path-only set to true). The categories and tags permalinks still work because the code to build those URLs (in the articles helper code) seems to use the path-only = true as well. I have not found the anologous code for generating the articles permalinks. There are so levels of abstraction in the article permalink code that I simply have not found where they're actually built. Can someone help with this situation? I don't remember seeing this situation with svn trunk from a week or so ago, so this is a relatively new problem. Sorry for the confusing explanation...I've been staring a Rails spaghetti for an hour and am having trouble stringing together full sentences. ;-) Thanks, Jason Burks From scott at sigkill.org Mon Aug 7 11:45:19 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 7 Aug 2006 08:45:19 -0700 Subject: [typo] Markup pluings with raw HTML disabled into base? In-Reply-To: <44D748A1.9040300@iki.fi> References: <44D748A1.9040300@iki.fi> Message-ID: <14b7e5ef0608070845u8c6a85ah9d2b49eae6f7f5b2@mail.gmail.com> We always filter the raw HTML in comments, no matter which filter is used. Look at body_html_postprocess in app/models/comment.rb. Scott On 8/7/06, Petri Wessman wrote: > Hi, I just started playing around with Typo, very nice (and it being > built on Rails is another layer of coolness :). Where the PHP of > Wordpress gave me an "aaagh!" reaction, here it's actually fun to look > under the hood and tinker :). > > Anyway, I noticed that the default setup doesn't include a text filter > that filters out raw HTML. It seems to me that allowing default Markdown > (for example) in blog comments would be pretty dangerous, there are a > lot of nasty things you can inject with that, especially Javascript ones. > > So I added a version of the Markdown plugin for my own blog, with raw > HTML filtered out, using: > > BlueCloth.new(text.gsub(%r{}, ''), :filter_html, > :filter_styles).to_html > > in the relevant portion. Works and makes me feel a bit safer, at least. > > I was just wondering if it would make sense to add "no raw HTML" > versions of the text filters to the default Typo package? Not everyone > wants to or can hack Ruby code, and I'm a bit worried that lots of > people will just enable normal markdown/textile markup for their > comments and as a side effect be vulnerable to various sorts of attacks > and annoyances. > > //Petri > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Mon Aug 7 11:47:47 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 7 Aug 2006 08:47:47 -0700 Subject: [typo] Problem with permalink URLs on latest trunk (1193) In-Reply-To: <9bbab4e0608070841r1525ea1fl962f5a3bda61affa@mail.gmail.com> References: <9bbab4e0608070841r1525ea1fl962f5a3bda61affa@mail.gmail.com> Message-ID: <14b7e5ef0608070847i7ab08d95x170296a322e9ab54@mail.gmail.com> I've been on vacation a week, and I haven't had a chance to look over the change logs yet, but what happens if you go to the admin settings and strip the trailing '/' off of the 'cannonical server url' field? Scott On 8/7/06, Jason Burks wrote: > I'm having a problem with permalinks on the latest trunk (r1193) that > I need help tracking down. I'm pretty sure I know what's going on, I > just don't know how to fix it. > > The URL for my blog is www.jasonburks.com. That displays as > http://www.jasonburks.com/ when you visit the site. The problem is > that, on the latest trunk, it now gives permalink URLs for articles > and such as http://www.jasonburks.com//articles/... If I click on the > permalink (http://www.jasonburks.com//articles/2006/08/04/off-to-maine > for example) I get a page not found error, as expected. If I manually > edit that URL to remove one of the two slashes before articles, then > the page loads fine and all of the permalink URLs (for comments, > trackbacks, etc) are written correctly with a single slash. Looking > at the HTML source, they're being written using just a path, with no > protocol or host (i.e. path-only set to true). > > The categories and tags permalinks still work because the code to > build those URLs (in the articles helper code) seems to use the > path-only = true as well. I have not found the anologous code for > generating the articles permalinks. There are so levels of > abstraction in the article permalink code that I simply have not found > where they're actually built. Can someone help with this situation? > I don't remember seeing this situation with svn trunk from a week or > so ago, so this is a relatively new problem. Sorry for the confusing > explanation...I've been staring a Rails spaghetti for an hour and am > having trouble stringing together full sentences. ;-) > > Thanks, > Jason Burks > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Mon Aug 7 11:50:01 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 7 Aug 2006 08:50:01 -0700 Subject: [typo] test failed while attempting to install In-Reply-To: <01C79868-2A2B-476E-865F-6DD7641B0416@mac.com> References: <01C79868-2A2B-476E-865F-6DD7641B0416@mac.com> Message-ID: <14b7e5ef0608070850v7718d9cck74b4d16e8584f486@mail.gmail.com> Yes, the sqlite3-ruby GEM is broken on systems that don't come with SWIG (http://www.swig.org). Try installing swig and then re-installing sqlite3-ruby; that should fix this bug. Scott On 8/5/06, Juan Alvarez wrote: > Hello, > > I just downloaded typo gem 4.0 and installed typo on mac osx 10.4.7 > I receive the following message: > > Cleaning out Typo's cache > Running tests. This may take a minute or two > ***** Tests failed ***** > ** Please run 'rake test' by hand in your install directory. > ** Report problems to the Typo mailing list. > ***** Tests failed ***** > Starting Typo on port 4674 > > I then ran the tests manually and these were the results: > > 1) Error: > test_signup(AccountsControllerTest): > ActiveRecord::StatementInvalid: TypeError: no implicit conversion > from nil to integer: PRAGMA table_info(notifications) > . > . > 2) Failure: > test_create(Admin::ContentControllerTest) [./test/functional/admin/ > content_controller_test.rb:79]: > <1> expected but was > <0>. > > 3) Error: > test_request_fires_triggers(Admin::ContentControllerTest): > NoMethodError: You have a nil object when you didn't expect it! > The error occured while evaluating nil.publish! > > 4) Failure: > test_new(Admin::PagesControllerTest) [./test/functional/admin/ > pages_controller_test.rb:60]: > response is not a redirection to all of the options supplied > (redirection is <{:action=>"show", :id=>0}>), difference: <{:id=>19}> > > 5) Error: > test_blogger_new_post(BackendControllerTest): > ActiveRecord::RecordNotFound: Couldn't find Article with ID=0 > . > . > 6) Error: > test_blogger_new_post_no_title(BackendControllerTest): > ActiveRecord::RecordNotFound: Couldn't find Article with ID=0 > . > . > 7) Error: > test_blogger_new_post_with_categories(BackendControllerTest): > ActiveRecord::RecordNotFound: Couldn't find Article with ID=0 > > 206 tests, 766 assertions, 2 failures, 7 errors > rake aborted! > Test failures > > Is there something wrong whith the app or am i doing something wrong? > > Thank you > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Mon Aug 7 11:51:22 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 7 Aug 2006 08:51:22 -0700 Subject: [typo] (no subject) In-Reply-To: <0AAAF808-2884-4AB7-A2FB-CA33AEDB6529@frii.com> References: <0AAAF808-2884-4AB7-A2FB-CA33AEDB6529@frii.com> Message-ID: <14b7e5ef0608070851p6531742en5607dc448e805c24@mail.gmail.com> Can you file this as a bug against 4.0.0 in trac (http://typosphere.org/trac)? Thanks. Scott On 8/4/06, Mike Key wrote: > > I just installed typo 4.0.0 on a new system with mysql as the database. I > attempted to make my initial post and got the below error in the apache > error log. I am using ecto 2.4.1 and have setup the site with the > following: > > API: Movable Type > Endpoint: http://www.mysite.com/blog/backend/xmlrpc > > The error: > > Casting of method parameters failed > > > RuntimeError (Called id for nil, which would mistakenly be 4 -- if you > really wanted the id of nil, use object_id): > /app/models/content.rb:171:in `text_filter=' > /app/apis/meta_weblog_service.rb:99:in `newPost' > > /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/action_web_service/invocation.rb:144:in > `perform_invocation_without_interception' > > /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/action_web_service/invocation.rb:138:in > `perform_invocation' > > /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/action_web_service/dispatcher/abstract.rb:43:in > `web_service_filtered_invoke' > > /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/action_web_service/dispatcher/abstract.rb:38:in > `web_service_delegated_invoke' > > /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/action_web_service/dispatcher/abstract.rb:57:in > `web_service_invoke' > > /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/action_web_service/dispatcher/abstract.rb:22:in > `invoke_web_service_request' > > /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/action_web_service/dispatcher/action_controller_dispatcher.rb:53:in > `dispatch_web_service_request' > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' > > /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/action_web_service/dispatcher/action_controller_dispatcher.rb:51:in > `dispatch_web_service_request' > (eval):1:in `xmlrpc' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/base.rb:910:in > `perform_action_without_filters' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/filters.rb:368:in > `perform_action_without_benchmark' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/benchmarking.rb:69:in > `perform_action_without_rescue' > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/benchmarking.rb:69:in > `perform_action_without_rescue' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/rescue.rb:82:in > `perform_action' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/base.rb:381:in > `process_without_filters' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/filters.rb:377:in > `process_without_session_management_support' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/session_management.rb:117:in > `process' > > /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb:38:in > `dispatch' > > /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:150:in > `process_request' > > /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:54:in > `process!' > /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:600:in > `each_cgi' > > /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in > `each_cgi' > > /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:53:in > `process!' > /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:23:in > `process!' > /home/piratemk/public_html/blog/dispatch.fcgi:24 > > > Thanks for any help. > > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > From scott at sigkill.org Mon Aug 7 11:52:17 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 7 Aug 2006 08:52:17 -0700 Subject: [typo] 4.0.0 API endpoint failing In-Reply-To: <924BF23D-51C3-4921-A6CD-C612D9C8CC3C@frii.com> References: <924BF23D-51C3-4921-A6CD-C612D9C8CC3C@frii.com> Message-ID: <14b7e5ef0608070852h39b33beekc3c1318500aa121@mail.gmail.com> Which URL were you using? Scott On 8/5/06, Mike Key wrote: > > > > Can anyone provide any insight here. I finally have 4.0.0 working well > except I still get an error with ecto. So I tried to connect to the > endpoint through a browser and get this error: > > > > Errno::ENOENT (No such file or directory - getcwd): > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:269:in > `expand_path' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:269:in > `safe_load_paths' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:268:in > `safe_load_paths' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:280:in > `attempt_load' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:237:in > `traverse_to_controller' > generated/routing/recognition.rb:413:in > `recognize_path' > > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:510:in > `recognize!' > > /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb:38:in > `dispatch' > > /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:150:in > `process_request' > > /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:54:in > `process!' > /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:600:in > `each_cgi' > > /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in > `each_cgi' > > /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:53:in > `process!' > /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:23:in > `process!' /REMOVED/MY/PATH/dispatch.fcgi:24 > > > > > > This seems to be the only thing not working and I have a hunch its my issue > but I have taken the same steps as I did when using 2.6 (on a different > server). > > > Thanks for any help. > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > From scott at sigkill.org Mon Aug 7 11:53:14 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 7 Aug 2006 08:53:14 -0700 Subject: [typo] Live search static pages In-Reply-To: <9303b0400608070513w77bea239q7bce6aaf745220c8@mail.gmail.com> References: <9303b0400608070513w77bea239q7bce6aaf745220c8@mail.gmail.com> Message-ID: <14b7e5ef0608070853k232f8b20w66f20e344702aeba@mail.gmail.com> We'll probably revisit this late in the 4.1 cycle. For now, you'll have to do it yourself. Sorry :-(. Scott On 8/7/06, Patrick Stockton wrote: > I'm starting to get a collection of static pages on my web site and > was wondering if there was a way for the live search to actually be > able to search that content. > > I see a diff on the typoTrack but it is nearly a year old so I didn't > know if there were changes since then. > > Thanks. > > -- > Apathy would be my policy, if I cared. > http://www.codejnki.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Mon Aug 7 11:58:34 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 7 Aug 2006 08:58:34 -0700 Subject: [typo] Delicious sidebar oops In-Reply-To: <841D3E67-D1A8-412B-BCC8-90D6DFD89685@internode.on.net> References: <841D3E67-D1A8-412B-BCC8-90D6DFD89685@internode.on.net> Message-ID: <14b7e5ef0608070858l72fc86a3n48bfa648484a8f80@mail.gmail.com> This is a known half-fixed bug in the trunk, post 4.0.0. Before the half-fix, it was impossible to disable checkboxes that defaulted to true. So we're making some progress, but we aren't there yet. It's easy to fix, but finding a clean fix is proving difficult. Plus, everyone's been on vacation lately. We'll get it fixed and release 4.0.1 later this week. Scott On 8/4/06, Alastair Rankine wrote: > Currently the "group by date" setting in the delicious sidebar does > not seem to have any effect: it's always on. > > I think the reason is that the value in @sb_config['groupdate'] > evaluates to "0" or "1", both strings and hence both true according > to Ruby (any Perl programmers out there want to own up to this one? :). > > I guess a proper fix would be to map this setting to a boolean, but I > don't know much about how sidebars are configured, so I've got a bit > of a brute force fix instead, comments appreciated. > > > typo $ svn diff components/plugins/sidebars/delicious/content.rhtml > Index: components/plugins/sidebars/delicious/content.rhtml > =================================================================== > --- components/plugins/sidebars/delicious/content.rhtml (revision 1193) > +++ components/plugins/sidebars/delicious/content.rhtml (working copy) > @@ -1,8 +1,8 @@ > <% if @delicious -%> >
    >

    <%=h > @delicious.title %>

    > - <% (@sb_config['groupdate'] ? @delicious.days : [{ :container => > @delicious.items }]).each do |group| -%> > - <% if @sb_config['groupdate'] -%> > + <% (@sb_config['groupdate'] != "0" ? @delicious.days : > [{ :container => @delicious.items }]).each do |group| -%> > + <% if @sb_config['groupdate'] != "0" -%> > <%=h group[:date].to_s.to_date.strftime("%b % > d") %> > <% end -%> >
      > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Mon Aug 7 12:01:44 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 7 Aug 2006 09:01:44 -0700 Subject: [typo] Trailing slash problem! In-Reply-To: <20060803175127.GA24587@rupee.dreamhost.com> References: <20060803175127.GA24587@rupee.dreamhost.com> Message-ID: <14b7e5ef0608070901k5a3e9bedhbba8b7554675f616@mail.gmail.com> Specifically, this is an issue with Apache or whichever server you're using. There's a clean fix out there somewhere, but the simple ugly fix is to redirect from /blog to /blog/. Frankly, that's what Apache will do for you if it's configured right, so adding a redirect line isn't *that* ugly :-). Scott On 8/3/06, Kevin Ballard wrote: > That's entirely because of how your server is configured. > Go fix your server config. > > On Thu, Aug 03, 2006 at 11:00:51PM +0530, Anil Wadghule wrote: > > > hey http://anilw.info/blog/ works bot http://anilw.info/blog not > > Give me the solution > > > > http://anilw.info > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > -- > Kevin Ballard > http://kevin.sb.org > kevin at sb.org > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From jburks725 at gmail.com Mon Aug 7 12:43:36 2006 From: jburks725 at gmail.com (Jason Burks) Date: Mon, 7 Aug 2006 12:43:36 -0400 Subject: [typo] Problem with permalink URLs on latest trunk (1193) In-Reply-To: <14b7e5ef0608070847i7ab08d95x170296a322e9ab54@mail.gmail.com> References: <9bbab4e0608070841r1525ea1fl962f5a3bda61affa@mail.gmail.com> <14b7e5ef0608070847i7ab08d95x170296a322e9ab54@mail.gmail.com> Message-ID: <9bbab4e0608070943n75ed9d2bi6d7409472ab9d8f2@mail.gmail.com> Scott, Hope you enjoyed your vacation! You're right, stripping the slash from the canonical server url field in admin seems to have fixed the issue. When did that field show up in the admin screen? I don't remember it being there before...but then I've been known to miss stupid things like that while looking for a fix in the code. :-( Thanks, Jason On 8/7/06, Scott Laird wrote: > I've been on vacation a week, and I haven't had a chance to look over > the change logs yet, but what happens if you go to the admin settings > and strip the trailing '/' off of the 'cannonical server url' field? > > > Scott > > On 8/7/06, Jason Burks wrote: > > I'm having a problem with permalinks on the latest trunk (r1193) that > > I need help tracking down. I'm pretty sure I know what's going on, I > > just don't know how to fix it. > > > > The URL for my blog is www.jasonburks.com. That displays as > > http://www.jasonburks.com/ when you visit the site. The problem is > > that, on the latest trunk, it now gives permalink URLs for articles > > and such as http://www.jasonburks.com//articles/... If I click on the > > permalink (http://www.jasonburks.com//articles/2006/08/04/off-to-maine > > for example) I get a page not found error, as expected. If I manually > > edit that URL to remove one of the two slashes before articles, then > > the page loads fine and all of the permalink URLs (for comments, > > trackbacks, etc) are written correctly with a single slash. Looking > > at the HTML source, they're being written using just a path, with no > > protocol or host (i.e. path-only set to true). > > > > The categories and tags permalinks still work because the code to > > build those URLs (in the articles helper code) seems to use the > > path-only = true as well. I have not found the anologous code for > > generating the articles permalinks. There are so levels of > > abstraction in the article permalink code that I simply have not found > > where they're actually built. Can someone help with this situation? > > I don't remember seeing this situation with svn trunk from a week or > > so ago, so this is a relatively new problem. Sorry for the confusing > > explanation...I've been staring a Rails spaghetti for an hour and am > > having trouble stringing together full sentences. ;-) > > > > Thanks, > > Jason Burks > > _______________________________________________ > > 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 mikekey at frii.com Mon Aug 7 13:05:34 2006 From: mikekey at frii.com (Mike Key) Date: Mon, 7 Aug 2006 11:05:34 -0600 Subject: [typo] 4.0.0 API endpoint failing In-Reply-To: <14b7e5ef0608070852h39b33beekc3c1318500aa121@mail.gmail.com> References: <924BF23D-51C3-4921-A6CD-C612D9C8CC3C@frii.com> <14b7e5ef0608070852h39b33beekc3c1318500aa121@mail.gmail.com> Message-ID: <96A5A521-01F8-40AA-939A-3F4C835492B4@frii.com> http://mysite.com/backend/xmlrpc I get the error when I put that URL in the browser. Can't seem to figure out what it can't find. --- MiKey On Aug 7, 2006, at 9:52 AM, Scott Laird wrote: > Which URL were you using? > > > Scott > > On 8/5/06, Mike Key wrote: >> >> >> >> Can anyone provide any insight here. I finally have 4.0.0 working >> well >> except I still get an error with ecto. So I tried to connect to the >> endpoint through a browser and get this error: >> >> >> >> Errno::ENOENT (No such file or directory - getcwd): >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ >> action_controller/routing.rb:269:in >> `expand_path' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ >> action_controller/routing.rb:269:in >> `safe_load_paths' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ >> action_controller/routing.rb:268:in >> `safe_load_paths' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ >> action_controller/routing.rb:280:in >> `attempt_load' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ >> action_controller/routing.rb:237:in >> `traverse_to_controller' >> generated/routing/recognition.rb:413:in >> `recognize_path' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ >> action_controller/routing.rb:510:in >> `recognize!' >> >> /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb:38:in >> `dispatch' >> >> /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:150:in >> `process_request' >> >> /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:54:in >> `process!' >> /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:600:in >> `each_cgi' >> >> /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in >> `each_cgi' >> >> /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:53:in >> `process!' >> /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:23:in >> `process!' /REMOVED/MY/PATH/dispatch.fcgi:24 >> >> >> >> >> >> This seems to be the only thing not working and I have a hunch its >> my issue >> but I have taken the same steps as I did when using 2.6 (on a >> different >> server). >> >> >> Thanks for any help. >> >> >> >> >> _______________________________________________ >> 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 -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2522 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060807/c3caf106/attachment.bin From steve.longdo at gmail.com Tue Aug 8 02:37:38 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Tue, 8 Aug 2006 01:37:38 -0500 Subject: [typo] Typo's memory footprint In-Reply-To: <14b7e5ef0608070828y7ab7b7bfx2cdd90ce615cc854@mail.gmail.com> References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> <44CF8532.2040001@pobox.com> <44D74D1A.3020708@pobox.com> <14b7e5ef0608070828y7ab7b7bfx2cdd90ce615cc854@mail.gmail.com> Message-ID: I posted a follow up showing some more specfic memory hogs. I haven't been able to get anyone involved with RubyGems to clue me into why it needs so much memory, yet. Anyone that reads this and can provide me some insight as the runtime shenanigans of RubyGems please do leave a comment on my site or feel free to send me an email directly mocking me :-) The post: http://www.stevelongdo.com/articles/2006/08/08/rubygems-dependency-management-and-memory-use -- Thanks, -Steve http://www.stevelongdo.com On 8/7/06, Scott Laird wrote: > > Thanks. Memory leak debugging with Rails is difficult. > Unfortunately, slower leaks are even harder to find and harder to > verify as fixed, but we'll find it and fix it. > > > Scott > > On 8/7/06, Steve Longdo wrote: > > I've done a quick write up about this on my blog. I've also been doing > some > > preliminary memory profiling. I'll be writing more about that soon. > > > > > http://www.stevelongdo.com/articles/2006/08/04/typo-4-0-and-memory-reduction > > > > > > -- > > Thanks, > > -Steve > > http://www.stevelongdo.com > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060808/8fe9636f/attachment.html From orava at iki.fi Tue Aug 8 02:52:18 2006 From: orava at iki.fi (Petri Wessman) Date: Tue, 08 Aug 2006 09:52:18 +0300 Subject: [typo] Markup pluings with raw HTML disabled into base? In-Reply-To: <14b7e5ef0608070845u8c6a85ah9d2b49eae6f7f5b2@mail.gmail.com> References: <44D748A1.9040300@iki.fi> <14b7e5ef0608070845u8c6a85ah9d2b49eae6f7f5b2@mail.gmail.com> Message-ID: <44D834A2.9050006@iki.fi> Scott Laird wrote: > We always filter the raw HTML in comments, no matter which filter is > used. Look at body_html_postprocess in app/models/comment.rb. > Scott Ah, silly me for not checking that out -- should have guessed that was taken care of. Never mind then. :) //Petri From arsptr at internode.on.net Tue Aug 8 07:38:34 2006 From: arsptr at internode.on.net (Alastair Rankine) Date: Tue, 8 Aug 2006 21:38:34 +1000 Subject: [typo] Atom exporting In-Reply-To: <14b7e5ef0608070836q387b34f4k4d6f9dbbe1428eaf@mail.gmail.com> References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <7B1AD006-AF1C-4498-8ADB-1979D6B5A6E3@internode.on.net> <20060806062405.GI24448@rupee.dreamhost.com> <9C5712EA-8541-4777-90A2-12067A7609A7@internode.on.net> <14b7e5ef0608070836q387b34f4k4d6f9dbbe1428eaf@mail.gmail.com> Message-ID: On 08/08/2006, at 1:36 AM, Scott Laird wrote: > I'd love to see an Atom-based blog export/import standard. Does > anyone know any of the WP guys? Sorry I don't. And not to put a downer on this idea but one of the reasons I migrated to Typo from WP was that WP had been sitting still with its Atom support (it is still on 0.3 AFAIK). But yes we should get the other blogging engines involved. > It seems to me that the rational thing to do would be to have a "pure" > Atom feed, including HTML for each entry, and then add an 'export' > namespace and use tags like '' to include the > original markup, as well as other fields that don't map into standard > Atom (comments open, trackbacks, etc). Yep, except probably "typo:" might be a more appropriate namespace prefix (yes I know these aren't signficant :). Also, using the original source of each entry could be used instead of the resulting HTML and it would still be valid Atom. This might be simpler for the user to select whether they want the raw or cooked (ie HTML) content to be included in their export, rather than have the importer work out which of two alternative representations is more compatible. > I'm not sure if static > content, comments, and trackbacks would be better as more entries with > a special type flag or as their own tag. Yes, another tricky one. Comments and trackbacks would also need to indicate which article (or page?) they are attached to. > I suspect that we could get a few prominent non-Typo XML people > involved in this pretty quickly, if we can sit down and produce a > first draft of the standard. Agree. I can volunteer to make a start on this. From andy at ciordia.info Tue Aug 8 08:21:56 2006 From: andy at ciordia.info (Andy Ciordia) Date: Tue, 8 Aug 2006 08:21:56 -0400 Subject: [typo] 4.0 Migration Issues, FC4, Mysql In-Reply-To: References: Message-ID: No insights on this? Any known way of installing a fresh copy and getting a 2.6 database in there? I'm afraid that in order to install/ upgrade I had to break history and I am caught squarely in limbo unable to go forward and unable to return to what I had. -a On Aug 5, 2006, at 3:42 PM, Andy Ciordia wrote: > Coming from an svn of 2.6, think I was <=1099 .. > mysql-4.1.20-1.FC4.1 > ruby-libs-1.8.4-3.fc4 > ruby-1.8.4-3.fc4 > > Trying to just upgrade into 4.0 gem caused: > ## > Migrating Typo's database to newest release > rake aborted! > Multiple migrations have the version number 1 > > (See full trace by running task with --trace) > /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/rails-installer.rb: > 386:in `migrate': Migration failed (RailsInstaller::InstallFailed) > from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ > rails-installer.rb:520:in `in_directory' > from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ > rails-installer.rb:384:in `migrate' > from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ > rails-installer.rb:86:in `install_sequence' > from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ > rails-installer.rb:61:in `install' > from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ > rails-installer/commands.rb:54:in `command' > from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ > rails-installer.rb:491:in `execute_command' > from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/bin/typo:37 > from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/ > active_support/dependencies.rb:140:in `load' > from /usr/bin/typo:18 > ## > > If this has no good calls, is there any way to do a import the data > to a fresh install? I dumped my db before all of this. > > -a From arsptr at internode.on.net Tue Aug 8 08:44:53 2006 From: arsptr at internode.on.net (Alastair Rankine) Date: Tue, 8 Aug 2006 22:44:53 +1000 Subject: [typo] Atom exporting In-Reply-To: References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <7B1AD006-AF1C-4498-8ADB-1979D6B5A6E3@internode.on.net> <20060806062405.GI24448@rupee.dreamhost.com> <9C5712EA-8541-4777-90A2-12067A7609A7@internode.on.net> <14b7e5ef0608070836q387b34f4k4d6f9dbbe1428eaf@mail.gmail.com> Message-ID: <4EEAECE4-CF3D-4621-ACBE-3017BD87C9D5@internode.on.net> On 08/08/2006, at 9:38 PM, I wrote: > Yep, except probably "typo:" might be a more appropriate namespace > prefix ... but not if we want this to be used by other blogging engines, which is of course the point of the exercise. Sorry I don't know where my head was when I suggested that. I agree to go with "export:" as a namespace prefix for now. From scott at sigkill.org Tue Aug 8 09:43:03 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 8 Aug 2006 06:43:03 -0700 Subject: [typo] 4.0 Migration Issues, FC4, Mysql In-Reply-To: References: Message-ID: <14b7e5ef0608080643r1c955082k8c5d5e9309d241c2@mail.gmail.com> You should just be able to download the tar/zip file over the top of your existing installation and run 'rake migrate'. Scott On 8/8/06, Andy Ciordia wrote: > No insights on this? Any known way of installing a fresh copy and > getting a 2.6 database in there? I'm afraid that in order to install/ > upgrade I had to break history and I am caught squarely in limbo > unable to go forward and unable to return to what I had. > > -a > > On Aug 5, 2006, at 3:42 PM, Andy Ciordia wrote: > > > Coming from an svn of 2.6, think I was <=1099 .. > > mysql-4.1.20-1.FC4.1 > > ruby-libs-1.8.4-3.fc4 > > ruby-1.8.4-3.fc4 > > > > Trying to just upgrade into 4.0 gem caused: > > ## > > Migrating Typo's database to newest release > > rake aborted! > > Multiple migrations have the version number 1 > > > > (See full trace by running task with --trace) > > /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/rails-installer.rb: > > 386:in `migrate': Migration failed (RailsInstaller::InstallFailed) > > from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ > > rails-installer.rb:520:in `in_directory' > > from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ > > rails-installer.rb:384:in `migrate' > > from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ > > rails-installer.rb:86:in `install_sequence' > > from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ > > rails-installer.rb:61:in `install' > > from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ > > rails-installer/commands.rb:54:in `command' > > from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ > > rails-installer.rb:491:in `execute_command' > > from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/bin/typo:37 > > from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/ > > active_support/dependencies.rb:140:in `load' > > from /usr/bin/typo:18 > > ## > > > > If this has no good calls, is there any way to do a import the data > > to a fresh install? I dumped my db before all of this. > > > > -a > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Tue Aug 8 09:44:48 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 8 Aug 2006 06:44:48 -0700 Subject: [typo] Atom exporting In-Reply-To: <4EEAECE4-CF3D-4621-ACBE-3017BD87C9D5@internode.on.net> References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <7B1AD006-AF1C-4498-8ADB-1979D6B5A6E3@internode.on.net> <20060806062405.GI24448@rupee.dreamhost.com> <9C5712EA-8541-4777-90A2-12067A7609A7@internode.on.net> <14b7e5ef0608070836q387b34f4k4d6f9dbbe1428eaf@mail.gmail.com> <4EEAECE4-CF3D-4621-ACBE-3017BD87C9D5@internode.on.net> Message-ID: <14b7e5ef0608080644t6fe8226ela343b5f8279d25ec@mail.gmail.com> :-). I know a few of the 6A folks, but I'm not sure that they're the right place to start with this. There *has* to be a blog-implementers list out there somewhere. Scott On 8/8/06, Alastair Rankine wrote: > On 08/08/2006, at 9:38 PM, I wrote: > > > Yep, except probably "typo:" might be a more appropriate namespace > > prefix > > ... but not if we want this to be used by other blogging engines, > which is of course the point of the exercise. > > Sorry I don't know where my head was when I suggested that. > > I agree to go with "export:" as a namespace prefix for now. > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Tue Aug 8 09:47:52 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 8 Aug 2006 06:47:52 -0700 Subject: [typo] Typo's memory footprint In-Reply-To: References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> <44CF8532.2040001@pobox.com> <44D74D1A.3020708@pobox.com> <14b7e5ef0608070828y7ab7b7bfx2cdd90ce615cc854@mail.gmail.com> Message-ID: <14b7e5ef0608080647o342ba521lea3ccffd526338e8@mail.gmail.com> I'll bring this up at tonight's Seattle Ruby Hacking Night--I suspect that someone there knows the internals of rubygems well enough to help fix the problem. Scott On 8/7/06, Steve Longdo wrote: > I posted a follow up showing some more specfic memory hogs. I haven't been > able to get anyone involved with RubyGems to clue me into why it needs so > much memory, yet. Anyone that reads this and can provide me some insight as > the runtime shenanigans of RubyGems please do leave a comment on my site or > feel free to send me an email directly mocking me :-) > > The post: > http://www.stevelongdo.com/articles/2006/08/08/rubygems-dependency-management-and-memory-use > > -- > > Thanks, > -Steve > http://www.stevelongdo.com > > > On 8/7/06, Scott Laird wrote: > > Thanks. Memory leak debugging with Rails is difficult. > > Unfortunately, slower leaks are even harder to find and harder to > > verify as fixed, but we'll find it and fix it. > > > > > > Scott > > > > On 8/7/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > I've done a quick write up about this on my blog. I've also been doing > some > > > preliminary memory profiling. I'll be writing more about that soon. > > > > > > > http://www.stevelongdo.com/articles/2006/08/04/typo-4-0-and-memory-reduction > > > > > > > > > -- > > > Thanks, > > > -Steve > > > http://www.stevelongdo.com > > > > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From andy at ciordia.info Tue Aug 8 10:08:07 2006 From: andy at ciordia.info (Andy Ciordia) Date: Tue, 8 Aug 2006 10:08:07 -0400 Subject: [typo] 4.0 Migration Issues, FC4, Mysql In-Reply-To: <14b7e5ef0608080643r1c955082k8c5d5e9309d241c2@mail.gmail.com> References: <14b7e5ef0608080643r1c955082k8c5d5e9309d241c2@mail.gmail.com> Message-ID: After getting rake migrate to run I get the following in the production logs: ActiveRecord::StatementInvalid (Mysql::Error: Table 'typo.blogs' doesn't exist: SELECT * FROM blogs ORDER BY id LIMIT 1): .//vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract_adapter.rb:120:in `log' .//vendor/rails/activerecord/lib/active_record/ connection_adapters/mysql_adapter.rb:184:in `execute' .//vendor/rails/activerecord/lib/active_record/ connection_adapters/mysql_adapter.rb:336:in `select' .//vendor/rails/activerecord/lib/active_record/ connection_adapters/mysql_adapter.rb:175:in `select_all' .//vendor/rails/activerecord/lib/active_record/base.rb:390:in `find_by_sql' .//vendor/rails/activerecord/lib/active_record/base.rb:924:in `find_every' .//vendor/rails/activerecord/lib/active_record/base.rb:918:in `find_initial' .//vendor/rails/activerecord/lib/active_record/ base.rb:380:in `find' .//app/models/blog.rb:121:in `default' .//app/controllers/application.rb:50:in `this_blog' .//app/controllers/content_controller.rb:76:in `theme_layout' [........snip] Database not get migrated properly? -a On Aug 8, 2006, at 9:43 AM, Scott Laird wrote: > You should just be able to download the tar/zip file over the top of > your existing installation and run 'rake migrate'. > > > Scott > > On 8/8/06, Andy Ciordia wrote: >> No insights on this? Any known way of installing a fresh copy and >> getting a 2.6 database in there? I'm afraid that in order to >> install/ >> upgrade I had to break history and I am caught squarely in limbo >> unable to go forward and unable to return to what I had. >> >> -a >> >> On Aug 5, 2006, at 3:42 PM, Andy Ciordia wrote: >> >>> Coming from an svn of 2.6, think I was <=1099 .. >>> mysql-4.1.20-1.FC4.1 >>> ruby-libs-1.8.4-3.fc4 >>> ruby-1.8.4-3.fc4 >>> >>> Trying to just upgrade into 4.0 gem caused: >>> ## >>> Migrating Typo's database to newest release >>> rake aborted! >>> Multiple migrations have the version number 1 >>> >>> (See full trace by running task with --trace) >>> /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/rails- >>> installer.rb: >>> 386:in `migrate': Migration failed (RailsInstaller::InstallFailed) >>> from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ >>> rails-installer.rb:520:in `in_directory' >>> from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ >>> rails-installer.rb:384:in `migrate' >>> from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ >>> rails-installer.rb:86:in `install_sequence' >>> from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ >>> rails-installer.rb:61:in `install' >>> from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ >>> rails-installer/commands.rb:54:in `command' >>> from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/./installer/ >>> rails-installer.rb:491:in `execute_command' >>> from /usr/lib/ruby/gems/1.8/gems/typo-4.0.0/bin/typo:37 >>> from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/ >>> active_support/dependencies.rb:140:in `load' >>> from /usr/bin/typo:18 >>> ## >>> >>> If this has no good calls, is there any way to do a import the data >>> to a fresh install? I dumped my db before all of this. >>> >>> -a >> From dom at happygiraffe.net Tue Aug 8 11:28:34 2006 From: dom at happygiraffe.net (Dominic Mitchell) Date: Tue, 8 Aug 2006 16:28:34 +0100 Subject: [typo] Atom exporting In-Reply-To: <4EEAECE4-CF3D-4621-ACBE-3017BD87C9D5@internode.on.net> References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <7B1AD006-AF1C-4498-8ADB-1979D6B5A6E3@internode.on.net> <20060806062405.GI24448@rupee.dreamhost.com> <9C5712EA-8541-4777-90A2-12067A7609A7@internode.on.net> <14b7e5ef0608070836q387b34f4k4d6f9dbbe1428eaf@mail.gmail.com> <4EEAECE4-CF3D-4621-ACBE-3017BD87C9D5@internode.on.net> Message-ID: <20060808152834.GA26763@gimli.happygiraffe.net> On Tue, Aug 08, 2006 at 10:44:53PM +1000, Alastair Rankine wrote: > On 08/08/2006, at 9:38 PM, I wrote: > > > Yep, except probably "typo:" might be a more appropriate namespace > > prefix > > ... but not if we want this to be used by other blogging engines, > which is of course the point of the exercise. > > Sorry I don't know where my head was when I suggested that. > > I agree to go with "export:" as a namespace prefix for now. No. You go with "FGYRKJY" as the prefix (because it doesn't matter) and "http://some.where.central/export" as the namespace URI. :-) -Dom From scott at sigkill.org Tue Aug 8 11:30:53 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 8 Aug 2006 08:30:53 -0700 Subject: [typo] Atom exporting In-Reply-To: <20060808152834.GA26763@gimli.happygiraffe.net> References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <7B1AD006-AF1C-4498-8ADB-1979D6B5A6E3@internode.on.net> <20060806062405.GI24448@rupee.dreamhost.com> <9C5712EA-8541-4777-90A2-12067A7609A7@internode.on.net> <14b7e5ef0608070836q387b34f4k4d6f9dbbe1428eaf@mail.gmail.com> <4EEAECE4-CF3D-4621-ACBE-3017BD87C9D5@internode.on.net> <20060808152834.GA26763@gimli.happygiraffe.net> Message-ID: <14b7e5ef0608080830l517e230vfb11c076af17e228@mail.gmail.com> On 8/8/06, Dominic Mitchell wrote: > On Tue, Aug 08, 2006 at 10:44:53PM +1000, Alastair Rankine wrote: > > On 08/08/2006, at 9:38 PM, I wrote: > > > > > Yep, except probably "typo:" might be a more appropriate namespace > > > prefix > > > > ... but not if we want this to be used by other blogging engines, > > which is of course the point of the exercise. > > > > Sorry I don't know where my head was when I suggested that. > > > > I agree to go with "export:" as a namespace prefix for now. > > No. You go with "FGYRKJY" as the prefix (because it doesn't matter) and > "http://some.where.central/export" as the namespace URI. :-) :-). Scott From frederic at juliana-multimedia.com Tue Aug 8 11:49:59 2006 From: frederic at juliana-multimedia.com (=?ISO-8859-15?Q?Fr=E9d=E9ric_Massot?=) Date: Tue, 08 Aug 2006 17:49:59 +0200 Subject: [typo] Impossible access to BE Message-ID: <44D8B2A7.1010904@juliana-multimedia.com> Hi, I installed TYPO3 (source and dummy 4.0.1) without problem on Debian, I modified the group and the permissions of the four directories indicated in file "INSTALL.TXT". The symlink "typo3_src" is good. The Install Tool was connected to the database, created the tables. The page "BASIC Configuration" does not give any errors. And I cannot connect myself to BE. I always have the message : "Your login attempt did not succeed". I tested with the username "admin" and the password "password", without success. I use Firefox and Mozilla on Debian. I created from the page "Database Analyser" a new "admin" user with the login "toto" and the password "toto", a new row in the table "be_users" was added for the column "username". And I cannot connect to BE with this username ! :o( Can you help me so that I can connect myself to BE ? Regards. -- ============================================== | FREDERIC MASSOT | | http://www.juliana-multimedia.com | | mailto:frederic at juliana-multimedia.com | ===========================Debian=GNU/Linux=== From kyleheon at gmail.com Tue Aug 8 11:54:33 2006 From: kyleheon at gmail.com (Kyle Heon) Date: Tue, 8 Aug 2006 11:54:33 -0400 Subject: [typo] Impossible access to BE In-Reply-To: <44D8B2A7.1010904@juliana-multimedia.com> References: <44D8B2A7.1010904@juliana-multimedia.com> Message-ID: I think you have the wrong list. This is Typo, a blogging app written for Ruby on Rails. Typo3 info can be found here: http://typo3.com/ On 8/8/06, Fr?d?ric Massot wrote: > Hi, > > I installed TYPO3 (source and dummy 4.0.1) without problem on Debian, I > modified the group and the permissions of the four directories indicated > in file "INSTALL.TXT". The symlink "typo3_src" is good. > > The Install Tool was connected to the database, created the tables. The > page "BASIC Configuration" does not give any errors. > > And I cannot connect myself to BE. I always have the message : "Your > login attempt did not succeed". > > I tested with the username "admin" and the password "password", without > success. I use Firefox and Mozilla on Debian. > > I created from the page "Database Analyser" a new "admin" user with the > login "toto" and the password "toto", a new row in the table "be_users" > was added for the column "username". And I cannot connect to BE with > this username ! :o( > > Can you help me so that I can connect myself to BE ? > > > Regards. > -- > ============================================== > | FREDERIC MASSOT | > | http://www.juliana-multimedia.com | > | mailto:frederic at juliana-multimedia.com | > ===========================Debian=GNU/Linux=== > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From frederic at juliana-multimedia.com Tue Aug 8 12:14:01 2006 From: frederic at juliana-multimedia.com (=?ISO-8859-1?Q?Fr=E9d=E9ric_Massot?=) Date: Tue, 08 Aug 2006 18:14:01 +0200 Subject: [typo] Impossible access to BE In-Reply-To: References: <44D8B2A7.1010904@juliana-multimedia.com> Message-ID: <44D8B849.2070302@juliana-multimedia.com> Kyle Heon wrote: > I think you have the wrong list. This is Typo, a blogging app written > for Ruby on Rails. Typo3 info can be found here: http://typo3.com/ > Ooops, sorry !!! :o) -- ============================================== | FREDERIC MASSOT | | http://www.juliana-multimedia.com | | mailto:frederic at juliana-multimedia.com | ===========================Debian=GNU/Linux=== From tim at scarybright.org Tue Aug 8 13:00:17 2006 From: tim at scarybright.org (Timothy Brown) Date: Tue, 8 Aug 2006 13:00:17 -0400 Subject: [typo] mongrel weirdness Message-ID: Hi; My setup looks like this: Apache (on :80) proxies to Mongrel (on :8885) Mongrel's "root" is ~/directory Typo is installed in ~/directory/typo if i've added in routes.rb ActionController::AbstractRequest.relative_url_root ="/typo" in the right place, is there anything further I need to do in order to achieve nirvana with typo under Mongrel? when I try to go to http://domain/typo/, I get redirected to /typo/ accounts/signup (prior to the .relative_url_root change, this was going to /accounts/signup), but typo reports 'Page not found' There isn't anything of usefulness in the environment logs as far as I can see. Does anyone have any hints? My host is A2 and they've so far not been able to help me out with typo4 work. (They're using an older version of Mongrel, so typo config . url-prefix= won't work. thanks, tim From scott at sigkill.org Tue Aug 8 13:32:52 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 8 Aug 2006 10:32:52 -0700 Subject: [typo] mongrel weirdness In-Reply-To: References: Message-ID: <14b7e5ef0608081032o48d7dd45ia6a1230333bba17b@mail.gmail.com> Install a Mongrel 0.3.13.4 pre-release and then do 'typo config ~/domain/typo prefix=/typo'. Pre-0.3.13.4 releases of Mongrel don't work right unless they're serving rails apps from the root of the namespace. Scott On 8/8/06, Timothy Brown wrote: > Hi; > > My setup looks like this: > > Apache (on :80) proxies to Mongrel (on :8885) > Mongrel's "root" is ~/directory > Typo is installed in ~/directory/typo > > if i've added in routes.rb > > ActionController::AbstractRequest.relative_url_root ="/typo" > > in the right place, is there anything further I need to do in order > to achieve nirvana with typo under Mongrel? > > when I try to go to http://domain/typo/, I get redirected to /typo/ > accounts/signup (prior to the .relative_url_root change, this was > going to /accounts/signup), but typo reports 'Page not found' > > There isn't anything of usefulness in the environment logs as far as > I can see. > > Does anyone have any hints? My host is A2 and they've so far not > been able to help me out with typo4 work. (They're using an older > version of Mongrel, so typo config . url-prefix= won't work. > > thanks, > tim > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From tim at scarybright.org Tue Aug 8 15:34:21 2006 From: tim at scarybright.org (Timothy Brown) Date: Tue, 8 Aug 2006 15:34:21 -0400 Subject: [typo] mongrel weirdness In-Reply-To: <14b7e5ef0608081032o48d7dd45ia6a1230333bba17b@mail.gmail.com> References: <14b7e5ef0608081032o48d7dd45ia6a1230333bba17b@mail.gmail.com> Message-ID: <0CAA5C57-401A-41DE-90C8-EEB37BB26D6D@scarybright.org> Is there any workaround if I can't do this? I'm in a hosted environment. Thanks, Tim On Aug 8, 2006, at 1:32 PM, Scott Laird wrote: > Install a Mongrel 0.3.13.4 pre-release and then do 'typo config > ~/domain/typo prefix=/typo'. Pre-0.3.13.4 releases of Mongrel don't > work right unless they're serving rails apps from the root of the > namespace. > > > Scott > > On 8/8/06, Timothy Brown wrote: >> Hi; >> >> My setup looks like this: >> >> Apache (on :80) proxies to Mongrel (on :8885) >> Mongrel's "root" is ~/directory >> Typo is installed in ~/directory/typo >> >> if i've added in routes.rb >> >> ActionController::AbstractRequest.relative_url_root ="/typo" >> >> in the right place, is there anything further I need to do in order >> to achieve nirvana with typo under Mongrel? >> >> when I try to go to http://domain/typo/, I get redirected to /typo/ >> accounts/signup (prior to the .relative_url_root change, this was >> going to /accounts/signup), but typo reports 'Page not found' >> >> There isn't anything of usefulness in the environment logs as far as >> I can see. >> >> Does anyone have any hints? My host is A2 and they've so far not >> been able to help me out with typo4 work. (They're using an older >> version of Mongrel, so typo config . url-prefix= won't work. >> >> thanks, >> tim >> >> >> _______________________________________________ >> Typo-list mailing list >> Typo-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From scott at sigkill.org Tue Aug 8 15:49:52 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 8 Aug 2006 12:49:52 -0700 Subject: [typo] mongrel weirdness In-Reply-To: <0CAA5C57-401A-41DE-90C8-EEB37BB26D6D@scarybright.org> References: <14b7e5ef0608081032o48d7dd45ia6a1230333bba17b@mail.gmail.com> <0CAA5C57-401A-41DE-90C8-EEB37BB26D6D@scarybright.org> Message-ID: <14b7e5ef0608081249i254a0e77sb7448c68f79915b9@mail.gmail.com> Ask on the mongrel mailing list, but none of the currently Mongrel releases actually support this correctly yet. I sent Zed a patch a couple weeks ago, and he cleaned it up and applied it. He should be putting out a new official release soon-ish. Scott On 8/8/06, Timothy Brown wrote: > Is there any workaround if I can't do this? I'm in a hosted > environment. > > Thanks, > Tim > > > On Aug 8, 2006, at 1:32 PM, Scott Laird wrote: > > > Install a Mongrel 0.3.13.4 pre-release and then do 'typo config > > ~/domain/typo prefix=/typo'. Pre-0.3.13.4 releases of Mongrel don't > > work right unless they're serving rails apps from the root of the > > namespace. > > > > > > Scott > > > > On 8/8/06, Timothy Brown wrote: > >> Hi; > >> > >> My setup looks like this: > >> > >> Apache (on :80) proxies to Mongrel (on :8885) > >> Mongrel's "root" is ~/directory > >> Typo is installed in ~/directory/typo > >> > >> if i've added in routes.rb > >> > >> ActionController::AbstractRequest.relative_url_root ="/typo" > >> > >> in the right place, is there anything further I need to do in order > >> to achieve nirvana with typo under Mongrel? > >> > >> when I try to go to http://domain/typo/, I get redirected to /typo/ > >> accounts/signup (prior to the .relative_url_root change, this was > >> going to /accounts/signup), but typo reports 'Page not found' > >> > >> There isn't anything of usefulness in the environment logs as far as > >> I can see. > >> > >> Does anyone have any hints? My host is A2 and they've so far not > >> been able to help me out with typo4 work. (They're using an older > >> version of Mongrel, so typo config . url-prefix= won't work. > >> > >> thanks, > >> tim > >> > >> > >> _______________________________________________ > >> Typo-list mailing list > >> Typo-list at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/typo-list > >> > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From andy at ciordia.info Tue Aug 8 15:54:22 2006 From: andy at ciordia.info (Andy Ciordia) Date: Tue, 8 Aug 2006 15:54:22 -0400 Subject: [typo] 4.0 Migration Issues, FC4, Mysql In-Reply-To: References: <14b7e5ef0608080643r1c955082k8c5d5e9309d241c2@mail.gmail.com> Message-ID: Ah salvation from friends.. Explained my issue to a good rails/ruby friend and he said Scott has it right, what you need is the migration to run correctly. You probably have hammed your db up since he requested that, drop it, add it, remove the old cruft, push in a new 4.0 and show me the migration. I did it, and voila. My site sprang back to life. I need to change my sidebars call and bring over some of the custom sidebar work done but BOY-O-BOY I've got a grin from ear to ear. Thanks Scott (& Jeff!). -a On Aug 8, 2006, at 10:08 AM, Andy Ciordia wrote: > After getting rake migrate to run I get the following in the > production logs: > > ActiveRecord::StatementInvalid (Mysql::Error: Table 'typo.blogs' > doesn't exist: SELECT * FROM blogs ORDER BY id LIMIT 1): From kevin at sb.org Tue Aug 8 16:36:36 2006 From: kevin at sb.org (Kevin Ballard) Date: Tue, 8 Aug 2006 13:36:36 -0700 Subject: [typo] Atom exporting In-Reply-To: <14b7e5ef0608070836q387b34f4k4d6f9dbbe1428eaf@mail.gmail.com> References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <7B1AD006-AF1C-4498-8ADB-1979D6B5A6E3@internode.on.net> <20060806062405.GI24448@rupee.dreamhost.com> <9C5712EA-8541-4777-90A2-12067A7609A7@internode.on.net> <14b7e5ef0608070836q387b34f4k4d6f9dbbe1428eaf@mail.gmail.com> Message-ID: <9CEB53A7-83D1-4C67-B575-175E76352904@sb.org> I really should re-read it, but I'm pretty sure the Atom blog API stuff deals with getting the raw data out from the blog so you can edit it. And you can request more than just the last 10 or 15 posts or so - you can request chunks going back until the beginning. So I would hold of discussion on this until we can verify whether the Atom blog API does in fact do everything you want. On Aug 7, 2006, at 8:36 AM, Scott Laird wrote: > I'd love to see an Atom-based blog export/import standard. Does > anyone know any of the WP guys? > > It seems to me that the rational thing to do would be to have a "pure" > Atom feed, including HTML for each entry, and then add an 'export' > namespace and use tags like '' to include the > original markup, as well as other fields that don't map into standard > Atom (comments open, trackbacks, etc). I'm not sure if static > content, comments, and trackbacks would be better as more entries with > a special type flag or as their own tag. > > I suspect that we could get a few prominent non-Typo XML people > involved in this pretty quickly, if we can sit down and produce a > first draft of the standard. -- Kevin Ballard http://kevin.sb.org kevin at sb.org http://www.tildesoft.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060808/851abb43/attachment.html From scott at sigkill.org Tue Aug 8 17:01:31 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 8 Aug 2006 14:01:31 -0700 Subject: [typo] Atom exporting In-Reply-To: <9CEB53A7-83D1-4C67-B575-175E76352904@sb.org> References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <7B1AD006-AF1C-4498-8ADB-1979D6B5A6E3@internode.on.net> <20060806062405.GI24448@rupee.dreamhost.com> <9C5712EA-8541-4777-90A2-12067A7609A7@internode.on.net> <14b7e5ef0608070836q387b34f4k4d6f9dbbe1428eaf@mail.gmail.com> <9CEB53A7-83D1-4C67-B575-175E76352904@sb.org> Message-ID: <14b7e5ef0608081401w46ea572bgd4e02b2e2b8e358f@mail.gmail.com> I don't remember seeing it when I read the spec last year, and Tim Bray thought that filtering and formatting was a known problem when I asked him a couple weeks ago. It doesn't really make a difference in this case, though-we're talking about serializing the whole blog to an Atom-based XML file, which is kind of orthogonal to the Atom Publishing Protocol. I don't believe there's any standardized way to handle comments and trackbacks via APP, so building a generic blog sync tool via APP isn't really possible, either. Scott On 8/8/06, Kevin Ballard wrote: > > > I really should re-read it, but I'm pretty sure the Atom blog API stuff > deals with getting the raw data out from the blog so you can edit it. And > you can request more than just the last 10 or 15 posts or so - you can > request chunks going back until the beginning. > > So I would hold of discussion on this until we can verify whether the Atom > blog API does in fact do everything you want. > > > On Aug 7, 2006, at 8:36 AM, Scott Laird wrote: > > > I'd love to see an Atom-based blog export/import standard. Does > > anyone know any of the WP guys? > > > > > It seems to me that the rational thing to do would be to have a "pure" > > Atom feed, including HTML for each entry, and then add an 'export' > > namespace and use tags like '' to include the > > original markup, as well as other fields that don't map into standard > > Atom (comments open, trackbacks, etc). I'm not sure if static > > content, comments, and trackbacks would be better as more entries with > > a special type flag or as their own tag. > > > > > I suspect that we could get a few prominent non-Typo XML people > > involved in this pretty quickly, if we can sit down and produce a > > first draft of the standard. > > -- > Kevin Ballard > http://kevin.sb.org > kevin at sb.org > http://www.tildesoft.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From arsptr at internode.on.net Wed Aug 9 09:25:09 2006 From: arsptr at internode.on.net (Alastair Rankine) Date: Wed, 9 Aug 2006 23:25:09 +1000 Subject: [typo] Atom exporting In-Reply-To: <14b7e5ef0608081401w46ea572bgd4e02b2e2b8e358f@mail.gmail.com> References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <7B1AD006-AF1C-4498-8ADB-1979D6B5A6E3@internode.on.net> <20060806062405.GI24448@rupee.dreamhost.com> <9C5712EA-8541-4777-90A2-12067A7609A7@internode.on.net> <14b7e5ef0608070836q387b34f4k4d6f9dbbe1428eaf@mail.gmail.com> <9CEB53A7-83D1-4C67-B575-175E76352904@sb.org> <14b7e5ef0608081401w46ea572bgd4e02b2e2b8e358f@mail.gmail.com> Message-ID: I just read the APP spec and I couldn't see any discussion about raw vs cooked (as I like to call it) content. I think it is unlikely that they (APP spec writers) will add additional fields to the Atom entry document as alternative representations of the content, but hey that's just my guess. However it is pretty clear that APP builds upon Atom, and the additional functionality provided is not particularly relevant to the task of exporting blog content. For example the entries in a "collection" are retrieved as an Atom feed document, with only minor extensions: the paging extensions, which are largely irrelevant for our purposes, and the "publishing control" extensions, which look useful ("draft" status for entries). The point being that we probably don't need to wait for APP to be completed before starting work on blog exporting using Atom. Which is good, because I have almost finished a first draft proposal on this subject! On 09/08/2006, at 7:01 AM, Scott Laird wrote: > I don't remember seeing it when I read the spec last year, and Tim > Bray thought that filtering and formatting was a known problem when I > asked him a couple weeks ago. It doesn't really make a difference in > this case, though-we're talking about serializing the whole blog to an > Atom-based XML file, which is kind of orthogonal to the Atom > Publishing Protocol. I don't believe there's any standardized way to > handle comments and trackbacks via APP, so building a generic blog > sync tool via APP isn't really possible, either. > > > Scott > > On 8/8/06, Kevin Ballard wrote: >> >> >> I really should re-read it, but I'm pretty sure the Atom blog API >> stuff >> deals with getting the raw data out from the blog so you can edit >> it. And >> you can request more than just the last 10 or 15 posts or so - you >> can >> request chunks going back until the beginning. >> >> So I would hold of discussion on this until we can verify whether >> the Atom >> blog API does in fact do everything you want. >> >> >> On Aug 7, 2006, at 8:36 AM, Scott Laird wrote: >> >> >> I'd love to see an Atom-based blog export/import standard. Does >> >> anyone know any of the WP guys? >> >> >> >> >> It seems to me that the rational thing to do would be to have a >> "pure" >> >> Atom feed, including HTML for each entry, and then add an 'export' >> >> namespace and use tags like '' to include the >> >> original markup, as well as other fields that don't map into standard >> >> Atom (comments open, trackbacks, etc). I'm not sure if static >> >> content, comments, and trackbacks would be better as more entries >> with >> >> a special type flag or as their own tag. >> >> >> >> >> I suspect that we could get a few prominent non-Typo XML people >> >> involved in this pretty quickly, if we can sit down and produce a >> >> first draft of the standard. >> >> -- >> Kevin Ballard >> http://kevin.sb.org >> kevin at sb.org >> http://www.tildesoft.com >> _______________________________________________ >> Typo-list mailing list >> Typo-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> >> > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From scott at sigkill.org Wed Aug 9 11:45:47 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 9 Aug 2006 08:45:47 -0700 Subject: [typo] Atom exporting In-Reply-To: References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <7B1AD006-AF1C-4498-8ADB-1979D6B5A6E3@internode.on.net> <20060806062405.GI24448@rupee.dreamhost.com> <9C5712EA-8541-4777-90A2-12067A7609A7@internode.on.net> <14b7e5ef0608070836q387b34f4k4d6f9dbbe1428eaf@mail.gmail.com> <9CEB53A7-83D1-4C67-B575-175E76352904@sb.org> <14b7e5ef0608081401w46ea572bgd4e02b2e2b8e358f@mail.gmail.com> Message-ID: <14b7e5ef0608090845l760ddcd1x815154c5d46ad2dc@mail.gmail.com> The nice thing about XML specs like Atom is that you can trivially extend them with namespaces. The down side is that XML is a pain, and namespaces are doubly painful. At least they're easy to parse. Scott On 8/9/06, Alastair Rankine wrote: > I just read the APP spec and I couldn't see any discussion about raw > vs cooked (as I like to call it) content. > > I think it is unlikely that they (APP spec writers) will add > additional fields to the Atom entry document as alternative > representations of the content, but hey that's just my guess. > > However it is pretty clear that APP builds upon Atom, and the > additional functionality provided is not particularly relevant to the > task of exporting blog content. For example the entries in a > "collection" are retrieved as an Atom feed document, with only minor > extensions: the paging extensions, which are largely irrelevant for > our purposes, and the "publishing control" extensions, which look > useful ("draft" status for entries). > > The point being that we probably don't need to wait for APP to be > completed before starting work on blog exporting using Atom. Which is > good, because I have almost finished a first draft proposal on this > subject! > > > > On 09/08/2006, at 7:01 AM, Scott Laird wrote: > > > I don't remember seeing it when I read the spec last year, and Tim > > Bray thought that filtering and formatting was a known problem when I > > asked him a couple weeks ago. It doesn't really make a difference in > > this case, though-we're talking about serializing the whole blog to an > > Atom-based XML file, which is kind of orthogonal to the Atom > > Publishing Protocol. I don't believe there's any standardized way to > > handle comments and trackbacks via APP, so building a generic blog > > sync tool via APP isn't really possible, either. > > > > > > Scott > > > > On 8/8/06, Kevin Ballard wrote: > >> > >> > >> I really should re-read it, but I'm pretty sure the Atom blog API > >> stuff > >> deals with getting the raw data out from the blog so you can edit > >> it. And > >> you can request more than just the last 10 or 15 posts or so - you > >> can > >> request chunks going back until the beginning. > >> > >> So I would hold of discussion on this until we can verify whether > >> the Atom > >> blog API does in fact do everything you want. > >> > >> > >> On Aug 7, 2006, at 8:36 AM, Scott Laird wrote: > >> > >> > >> I'd love to see an Atom-based blog export/import standard. Does > >> > >> anyone know any of the WP guys? > >> > >> > >> > >> > >> It seems to me that the rational thing to do would be to have a > >> "pure" > >> > >> Atom feed, including HTML for each entry, and then add an 'export' > >> > >> namespace and use tags like '' to include the > >> > >> original markup, as well as other fields that don't map into standard > >> > >> Atom (comments open, trackbacks, etc). I'm not sure if static > >> > >> content, comments, and trackbacks would be better as more entries > >> with > >> > >> a special type flag or as their own tag. > >> > >> > >> > >> > >> I suspect that we could get a few prominent non-Typo XML people > >> > >> involved in this pretty quickly, if we can sit down and produce a > >> > >> first draft of the standard. > >> > >> -- > >> Kevin Ballard > >> http://kevin.sb.org > >> kevin at sb.org > >> http://www.tildesoft.com > >> _______________________________________________ > >> Typo-list mailing list > >> Typo-list at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/typo-list > >> > >> > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From jburks725 at gmail.com Wed Aug 9 16:07:18 2006 From: jburks725 at gmail.com (Jason Burks) Date: Wed, 9 Aug 2006 16:07:18 -0400 Subject: [typo] Help with comment box in themes Message-ID: <9bbab4e0608091307i54b7392aw443e17750f352521@mail.gmail.com> I've noticed that the Scribbish theme doesn't support some of the slick comment functionality that Azure does. Namely, it doesn't seem to have the admin "buttons" for nuking or editing, and it doesn't seem to slide the comments into place. I've managing to hack both of those in pretty easily, but I'm stumped on one final piece. When I submit a comment, it does not clear the comment_body textarea. I've looked at the default view code for _comment_box.rhtml in Azure, and I've compared it to what I've got for my hacked up Scribbish, and I cannot see why it's not working. The textareas in both are created with <%= text_area 'comment', 'body' %> tags. The form id and name are both the same. I've modified the Submit button code so it matches Azure (that was the key to getting the comment to slide into place), but I cannot for the life of me find the piece that will clear that textarea. Any help would be greatly appreciated, and I'll happily submit my diffs once I get it working. Regards, Jason From joshknowles at gmail.com Wed Aug 9 16:20:58 2006 From: joshknowles at gmail.com (Josh Knowles) Date: Wed, 9 Aug 2006 13:20:58 -0700 Subject: [typo] Rails 1.1.5 Message-ID: Should we upgrade Rails to 1.1.5 independent of Typo or is there a planned maintenance release which contains the new Rails release? Josh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060809/f2605b50/attachment.html From scott at sigkill.org Wed Aug 9 16:32:53 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 9 Aug 2006 13:32:53 -0700 Subject: [typo] Rails 1.1.5 In-Reply-To: References: Message-ID: <14b7e5ef0608091332n1c5c3653g3b5305981e958e42@mail.gmail.com> Go ahead and upgrade now, and I'll put out 4.0.1 bundled with 1.1.5 tonight. Scott On 8/9/06, Josh Knowles wrote: > Should we upgrade Rails to 1.1.5 independent of Typo or is there a planned > maintenance release which contains the new Rails release? > > Josh > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From jburks725 at gmail.com Wed Aug 9 17:23:55 2006 From: jburks725 at gmail.com (Jason Burks) Date: Wed, 9 Aug 2006 17:23:55 -0400 Subject: [typo] Help with comment box in themes In-Reply-To: <9bbab4e0608091307i54b7392aw443e17750f352521@mail.gmail.com> References: <9bbab4e0608091307i54b7392aw443e17750f352521@mail.gmail.com> Message-ID: <9bbab4e0608091423p119319bu7bccc32a075464db@mail.gmail.com> Hmm...I did a little more testing when I got home from work and discovered that, for some very odd reason, the textarea clearing seems to work for Scribbish in Safari, but not in Flock or Firefox on my Mac. In my testing at work, Azure seemed to work in Firefox and Flock, but not Scribbish. Now I'm thoroughly confused. Anyone got any suggestions? Btw, this is with latest svn trunk, including the Rails 1.1.5 push. -Jason On 8/9/06, Jason Burks wrote: > I've noticed that the Scribbish theme doesn't support some of the > slick comment functionality that Azure does. Namely, it doesn't seem > to have the admin "buttons" for nuking or editing, and it doesn't seem > to slide the comments into place. I've managing to hack both of those > in pretty easily, but I'm stumped on one final piece. When I submit a > comment, it does not clear the comment_body textarea. > > I've looked at the default view code for _comment_box.rhtml in Azure, > and I've compared it to what I've got for my hacked up Scribbish, and > I cannot see why it's not working. The textareas in both are created > with <%= text_area 'comment', 'body' %> tags. The form id and name > are both the same. I've modified the Submit button code so it matches > Azure (that was the key to getting the comment to slide into place), > but I cannot for the life of me find the piece that will clear that > textarea. Any help would be greatly appreciated, and I'll happily > submit my diffs once I get it working. > > Regards, > Jason > From scott at sigkill.org Wed Aug 9 17:29:11 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 9 Aug 2006 14:29:11 -0700 Subject: [typo] Help with comment box in themes In-Reply-To: <9bbab4e0608091423p119319bu7bccc32a075464db@mail.gmail.com> References: <9bbab4e0608091307i54b7392aw443e17750f352521@mail.gmail.com> <9bbab4e0608091423p119319bu7bccc32a075464db@mail.gmail.com> Message-ID: <14b7e5ef0608091429j223c5690g81caae71fcaeb830@mail.gmail.com> No idea. Have you looked at Azure's Javascript? Scott On 8/9/06, Jason Burks wrote: > Hmm...I did a little more testing when I got home from work and > discovered that, for some very odd reason, the textarea clearing seems > to work for Scribbish in Safari, but not in Flock or Firefox on my > Mac. In my testing at work, Azure seemed to work in Firefox and > Flock, but not Scribbish. Now I'm thoroughly confused. Anyone got > any suggestions? > > Btw, this is with latest svn trunk, including the Rails 1.1.5 push. > > -Jason > > On 8/9/06, Jason Burks wrote: > > I've noticed that the Scribbish theme doesn't support some of the > > slick comment functionality that Azure does. Namely, it doesn't seem > > to have the admin "buttons" for nuking or editing, and it doesn't seem > > to slide the comments into place. I've managing to hack both of those > > in pretty easily, but I'm stumped on one final piece. When I submit a > > comment, it does not clear the comment_body textarea. > > > > I've looked at the default view code for _comment_box.rhtml in Azure, > > and I've compared it to what I've got for my hacked up Scribbish, and > > I cannot see why it's not working. The textareas in both are created > > with <%= text_area 'comment', 'body' %> tags. The form id and name > > are both the same. I've modified the Submit button code so it matches > > Azure (that was the key to getting the comment to slide into place), > > but I cannot for the life of me find the piece that will clear that > > textarea. Any help would be greatly appreciated, and I'll happily > > submit my diffs once I get it working. > > > > Regards, > > Jason > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From steve.longdo at gmail.com Wed Aug 9 19:58:12 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Wed, 9 Aug 2006 18:58:12 -0500 Subject: [typo] sweep cache weirdness... Message-ID: I noticed a typo in one of my older posts and fixed it, when the cache was swept upon saving the updated post something strange showed up in the production.log. I've truncated the results, but several articles had multiple cache entries. Why might this happen? Also what is the deal with '+zgi_url+.html? I've never written a post titled that. Is it an artifact from a poorly written robot or something more heinous? Sweeping /articles/2005/10/20/'+zgi_url+.html Sweeping /articles/2005/10/20/'+zgi_url+.html Sweeping /articles/2005/10/20/myspace-ajax-exploit-explained.html Sweeping /articles/2005/10/20/myspace-ajax-exploit-explained.html Sweeping /articles/2005/10/20/myspace-ajax-exploit-explained.html Sweeping /articles/2005/10/20/myspace-ajax-exploit-explained.html Sweeping /articles/2005/10/20/myspace-ajax-exploit-explained.html Sweeping /articles/2005/10/20/myspace-ajax-exploit-explained.html Sweeping /articles/2005/10/20/myspace-ajax-exploit-explained.html Sweeping /articles/2005/10/20/myspace-ajax-exploit-explained.html Sweeping /articles/2005/10/20/myspace-ajax-exploit-explained.html Sweeping /articles/2005/10/20/myspace-ajax-exploit-explained.html Sweeping /articles/2005/10/20/myspace-ajax-exploit-explained.html Sweeping /articles/2005/10/20/myspace-ajax-exploit-explained.html Sweeping /articles/2005/10/20/myspace-ajax-exploit-explained.html Sweeping /articles/2005/10/20/myspace-ajax-exploit-explained.html Sweeping /articles/2005/10/25/new-theme-in-progress.html -- Thanks, -Steve http://www.stevelongdo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060809/8b26f14b/attachment.html From jburks725 at gmail.com Wed Aug 9 20:47:27 2006 From: jburks725 at gmail.com (Jason Burks) Date: Wed, 9 Aug 2006 20:47:27 -0400 Subject: [typo] Help with comment box in themes In-Reply-To: <14b7e5ef0608091429j223c5690g81caae71fcaeb830@mail.gmail.com> References: <9bbab4e0608091307i54b7392aw443e17750f352521@mail.gmail.com> <9bbab4e0608091423p119319bu7bccc32a075464db@mail.gmail.com> <14b7e5ef0608091429j223c5690g81caae71fcaeb830@mail.gmail.com> Message-ID: <9bbab4e0608091747k47380d33p51ac6e630e5ac663@mail.gmail.com> Err, correct me if I'm wrong, but Azure has no theme-specific Javascript. The scripts in public/javascripts should be available to all themes in Typo, right? As far as I can tell (and I'm still trying to learn my way around in the codebase), these scripts are what provide the effects for the Azure theme. Looking at the html source for my site rendered with Azure and with Scribbish, I see the same four javascript files being loaded in each: /javascripts/cookies.js /javascripts/prototype.js /javascripts/effects.js /javascripts/typo.js I'm actually thinking that there's a possible difference in the DOM representation that's causing the problem. Azure renders the form in a table; Scribbish renders it in a fieldset. Perhaps this is causing the problem? I'll try pulling the form out of the fieldset in Scribbish and see what happens. Any other suggestions that any might have would be appreciated. -Jason On 8/9/06, Scott Laird wrote: > No idea. Have you looked at Azure's Javascript? > > > Scott > > On 8/9/06, Jason Burks wrote: > > Hmm...I did a little more testing when I got home from work and > > discovered that, for some very odd reason, the textarea clearing seems > > to work for Scribbish in Safari, but not in Flock or Firefox on my > > Mac. In my testing at work, Azure seemed to work in Firefox and > > Flock, but not Scribbish. Now I'm thoroughly confused. Anyone got > > any suggestions? > > > > Btw, this is with latest svn trunk, including the Rails 1.1.5 push. > > > > -Jason > > > > On 8/9/06, Jason Burks wrote: > > > I've noticed that the Scribbish theme doesn't support some of the > > > slick comment functionality that Azure does. Namely, it doesn't seem > > > to have the admin "buttons" for nuking or editing, and it doesn't seem > > > to slide the comments into place. I've managing to hack both of those > > > in pretty easily, but I'm stumped on one final piece. When I submit a > > > comment, it does not clear the comment_body textarea. > > > > > > I've looked at the default view code for _comment_box.rhtml in Azure, > > > and I've compared it to what I've got for my hacked up Scribbish, and > > > I cannot see why it's not working. The textareas in both are created > > > with <%= text_area 'comment', 'body' %> tags. The form id and name > > > are both the same. I've modified the Submit button code so it matches > > > Azure (that was the key to getting the comment to slide into place), > > > but I cannot for the life of me find the piece that will clear that > > > textarea. Any help would be greatly appreciated, and I'll happily > > > submit my diffs once I get it working. > > > > > > Regards, > > > Jason > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Wed Aug 9 20:49:44 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 9 Aug 2006 17:49:44 -0700 Subject: [typo] Help with comment box in themes In-Reply-To: <9bbab4e0608091747k47380d33p51ac6e630e5ac663@mail.gmail.com> References: <9bbab4e0608091307i54b7392aw443e17750f352521@mail.gmail.com> <9bbab4e0608091423p119319bu7bccc32a075464db@mail.gmail.com> <14b7e5ef0608091429j223c5690g81caae71fcaeb830@mail.gmail.com> <9bbab4e0608091747k47380d33p51ac6e630e5ac663@mail.gmail.com> Message-ID: <14b7e5ef0608091749j425d2e4dma7cfe27868fa3574@mail.gmail.com> Yeah, but all of these have been developed using Azure. Look in typo.js--I seem to recall that there are some comment-specific functions in there. Scott On 8/9/06, Jason Burks wrote: > Err, correct me if I'm wrong, but Azure has no theme-specific > Javascript. The scripts in public/javascripts should be available to > all themes in Typo, right? As far as I can tell (and I'm still trying > to learn my way around in the codebase), these scripts are what > provide the effects for the Azure theme. Looking at the html source > for my site rendered with Azure and with Scribbish, I see the same > four javascript files being loaded in each: > > /javascripts/cookies.js > /javascripts/prototype.js > /javascripts/effects.js > /javascripts/typo.js > > I'm actually thinking that there's a possible difference in the DOM > representation that's causing the problem. Azure renders the form in > a table; Scribbish renders it in a fieldset. Perhaps this is causing > the problem? I'll try pulling the form out of the fieldset in > Scribbish and see what happens. > > Any other suggestions that any might have would be appreciated. > > -Jason > > On 8/9/06, Scott Laird wrote: > > No idea. Have you looked at Azure's Javascript? > > > > > > Scott > > > > On 8/9/06, Jason Burks wrote: > > > Hmm...I did a little more testing when I got home from work and > > > discovered that, for some very odd reason, the textarea clearing seems > > > to work for Scribbish in Safari, but not in Flock or Firefox on my > > > Mac. In my testing at work, Azure seemed to work in Firefox and > > > Flock, but not Scribbish. Now I'm thoroughly confused. Anyone got > > > any suggestions? > > > > > > Btw, this is with latest svn trunk, including the Rails 1.1.5 push. > > > > > > -Jason > > > > > > On 8/9/06, Jason Burks wrote: > > > > I've noticed that the Scribbish theme doesn't support some of the > > > > slick comment functionality that Azure does. Namely, it doesn't seem > > > > to have the admin "buttons" for nuking or editing, and it doesn't seem > > > > to slide the comments into place. I've managing to hack both of those > > > > in pretty easily, but I'm stumped on one final piece. When I submit a > > > > comment, it does not clear the comment_body textarea. > > > > > > > > I've looked at the default view code for _comment_box.rhtml in Azure, > > > > and I've compared it to what I've got for my hacked up Scribbish, and > > > > I cannot see why it's not working. The textareas in both are created > > > > with <%= text_area 'comment', 'body' %> tags. The form id and name > > > > are both the same. I've modified the Submit button code so it matches > > > > Azure (that was the key to getting the comment to slide into place), > > > > but I cannot for the life of me find the piece that will clear that > > > > textarea. Any help would be greatly appreciated, and I'll happily > > > > submit my diffs once I get it working. > > > > > > > > Regards, > > > > Jason > > > > > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From inxs.hemant at gmail.com Wed Aug 9 22:23:02 2006 From: inxs.hemant at gmail.com (hemant kumar) Date: Thu, 10 Aug 2006 07:53:02 +0530 Subject: [typo] Change the default theme In-Reply-To: <14b7e5ef0608091749j425d2e4dma7cfe27868fa3574@mail.gmail.com> Message-ID: <44da9890.17cf4c70.2731.ffffdd80@mx.gmail.com> I will be possibly running a system of typo blogs, so I was just wondering how can I replace the default azure theme with lucid or some other theme permanently. No, I am not talking about, user option of going to theme tab and chaning the theme.I want to change the default theme.One option I can see, is update blogs table and put theme = "lucid" or something like that. But, where does typo picks the default theme from? From inxs.hemant at gmail.com Wed Aug 9 23:49:43 2006 From: inxs.hemant at gmail.com (hemant kumar) Date: Thu, 10 Aug 2006 09:19:43 +0530 Subject: [typo] Change the default theme Message-ID: <44daace0.76097220.2fce.ffffb02d@mx.gmail.com> Ok, It was simple, sorry.. I found it out. but Now, I am wondering, from where the heck, default sidebar plugins are picked from? I mean the ones that are picked by default without any user intervention. -----Original Message----- From: hemant kumar [mailto:inxs.hemant at gmail.com] Sent: Thursday, August 10, 2006 7:53 AM To: 'typo-list at rubyforge.org' Subject: Change the default theme I will be possibly running a system of typo blogs, so I was just wondering how can I replace the default azure theme with lucid or some other theme permanently. No, I am not talking about, user option of going to theme tab and chaning the theme.I want to change the default theme.One option I can see, is update blogs table and put theme = "lucid" or something like that. But, where does typo picks the default theme from? From scott at sigkill.org Thu Aug 10 00:46:42 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 9 Aug 2006 21:46:42 -0700 Subject: [typo] Change the default theme In-Reply-To: <44daace0.76097220.2fce.ffffb02d@mx.gmail.com> References: <44daace0.76097220.2fce.ffffb02d@mx.gmail.com> Message-ID: <14b7e5ef0608092146g7b4f0917j552e2e8b5ac93ff4@mail.gmail.com> They're in db/schema.*.sql, which comes from db/migrations/*.rb Scott On 8/9/06, hemant kumar wrote: > Ok, It was simple, sorry.. > > I found it out. > > but Now, I am wondering, from where the heck, default sidebar plugins are > picked from? I mean the ones that are picked by default without any user > intervention. > > > > -----Original Message----- > From: hemant kumar [mailto:inxs.hemant at gmail.com] > Sent: Thursday, August 10, 2006 7:53 AM > To: 'typo-list at rubyforge.org' > Subject: Change the default theme > > > I will be possibly running a system of typo blogs, so I was just wondering > how can I replace the default azure theme with lucid or some other theme > permanently. > > No, I am not talking about, user option of going to theme tab and chaning > the theme.I want to change the default theme.One option I can see, is update > blogs table and put theme = "lucid" or something like that. > > But, where does typo picks the default theme from? > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Thu Aug 10 03:40:07 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 10 Aug 2006 00:40:07 -0700 Subject: [typo] Typo 4.0.1 Message-ID: <14b7e5ef0608100040l2ad9bfe9x4c30fbf21b48706f@mail.gmail.com> Typo 4.0.1 is out. This is a bugfix release, with a number of bugs fixed since 4.0.0. This should be used with Rails 1.1.5, as earlier releases have critical security issues. See either * http://scottstuff.net/blog/articles/2006/08/10/typo-4-0-1 * http://www.typosphere.org/trac/wiki/DownloadStable for more details, including install/upgrade directions. Scott From paul at paulbutcher.com Thu Aug 10 07:24:54 2006 From: paul at paulbutcher.com (Paul Butcher) Date: Thu, 10 Aug 2006 12:24:54 +0100 Subject: [typo] Installing Typo without SQLite? Message-ID: <005801c6bc6f$9ac4d360$5f01a8c0@paullaptop> Is there any way to install Typo *without* also installing SQLite? I'm planning to use MySQL to host the database and for reasons I don't particularly want to spend any time investigating installing SQLite fails on my server: > bash-2.05b# gem install typo > Install required dependency mongrel_cluster? [Yn] Y > Install required dependency sqlite3-ruby? [Yn] Y > Select which gem to install for your platform (i686-linux) > 1. sqlite3-ruby 1.1.0 (ruby) > 2. sqlite3-ruby 1.1.0 (mswin32) > 3. Cancel installation > > 1 > Building native extensions. This could take a while... > *** extconf.rb failed *** > Could not create Makefile due to some reason, probably lack of > necessary libraries and/or headers. Check the mkmf.log file for more > details. You may need configuration options. I tried using --ignore-dependencies: > bash-2.05b# gem install typo --ignore-dependencies > Successfully installed typo-4.0.1 But this just postpones the problem - running typo fails with: > -bash-2.05b$ typo --help > /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:251:in > `report_activate_error': Could not find RubyGem sqlite3-ruby (>= 1.1.0) > (Gem::LoadError) > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:188:in > `activate' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:214:in > `activate' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:213:in > `activate' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:66:in > `active_gem_with_options' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:59:in > `require_gem' > from /usr/local/bin/typo:17 Any suggestions? Or do I just have to bite the bullet and work out how to persuade SQLite to install? Thanks! -- paul.butcher->msgCount++ Snetterton, Castle Combe, Cadwell Park... Who says I have a one track mind? MSN: paul at paulbutcher.com AIM: paulrabutcher Skype: paulrabutcher LinkedIn: https://www.linkedin.com/in/paulbutcher From andy at ciordia.info Thu Aug 10 07:32:10 2006 From: andy at ciordia.info (Andy Ciordia) Date: Thu, 10 Aug 2006 07:32:10 -0400 Subject: [typo] Typo 4.0.1 In-Reply-To: <14b7e5ef0608100040l2ad9bfe9x4c30fbf21b48706f@mail.gmail.com> References: <14b7e5ef0608100040l2ad9bfe9x4c30fbf21b48706f@mail.gmail.com> Message-ID: <72311839-26A6-4C8B-893F-F9A85CCBB453@ciordia.info> On Aug 10, 2006, at 3:40 AM, Scott Laird wrote: > Typo 4.0.1 is out. This is a bugfix release, with a number of bugs > fixed since 4.0.0. This should be used with Rails 1.1.5, as earlier > releases have critical security issues. > > See either > > * http://scottstuff.net/blog/articles/2006/08/10/typo-4-0-1 > * http://www.typosphere.org/trac/wiki/DownloadStable > > for more details, including install/upgrade directions. > Hey Scott, after upgrading and migrating the db through the admin-ui this is seen in my main content body: Mysql::Error: Unknown column 'contents.comments_count' in 'field list': SELECT contents.`id` AS t0_r0, contents.`title` AS t0_r1, contents.`author` AS t0_r2, contents.`body` AS t0_r3, contents.`body_html` AS t0_r4, contents.`extended` AS t0_r5, contents.`excerpt` AS t0_r6, contents.`keywords` AS t0_r7, contents.`created_at` AS t0_r8, contents.`updated_at` AS t0_r9, contents.`extended_html` AS t0_r10, contents.`user_id` AS t0_r11, contents.`permalink` AS t0_r12, contents.`guid` AS t0_r13, contents.`text_filter_id` AS t0_r14, contents.`whiteboard` AS t0_r15, contents.`comments_count` AS t0_r16, contents.`trackbacks_count` AS t0_r17, contents.`type` AS t0_r18, contents.`article_id` AS t0_r19, contents.`email` AS t0_r20, contents.`url` AS t0_r21, contents.`ip` AS t0_r22, contents.`blog_name` AS t0_r23, contents.`name` AS t0_r24, contents.`published` AS t0_r25, contents.`allow_pings` AS t0_r26, contents.`allow_comments` AS t0_r27, contents.`blog_id` AS t0_r28, contents.`published_at` AS t0_r29, contents.`state` AS t0_r30, categories.`id` AS t1_r0, categories.`name` AS t1_r1, categories.`position` AS t1_r2, categories.`permalink` AS t1_r3, tags.`id` AS t2_r0, tags.`name` AS t2_r1, tags.`created_at` AS t2_r2, tags.`updated_at` AS t2_r3, tags.`display_name` AS t2_r4, users.`id` AS t3_r0, users.`login` AS t3_r1, users.`password` AS t3_r2, users.`email` AS t3_r3, users.`name` AS t3_r4, users.`notify_via_email` AS t3_r5, users.`notify_on_new_articles` AS t3_r6, users.`notify_on_comments` AS t3_r7, users.`notify_watch_my_articles` AS t3_r8, users.`notify_via_jabber` AS t3_r9, users.`jabber` AS t3_r10, blogs.`id` AS t4_r0, blogs.`settings` AS t4_r1 FROM contents LEFT OUTER JOIN articles_categories ON articles_categories.article_id = contents.id LEFT OUTER JOIN categories ON categories.id = articles_categories.category_id LEFT OUTER JOIN articles_tags ON articles_tags.article_id = contents.id LEFT OUTER JOIN tags ON tags.id = articles_tags.tag_id LEFT OUTER JOIN users ON users.id = contents.user_id LEFT OUTER JOIN blogs ON blogs.id = contents.blog_id WHERE (published = 1 AND contents.published_at < '2006-08-10 07:32:55' AND blog_id = 1) AND ( (contents.`type` = 'Article' ) ) AND contents.id IN ('364', '363', '357', '354', '342', '296', '272') ORDER BY contents.published_at DESC From mail at paulbarry.com Thu Aug 10 07:42:49 2006 From: mail at paulbarry.com (Paul Barry) Date: Thu, 10 Aug 2006 07:42:49 -0400 Subject: [typo] Getting typo RSS feed to appear in Google Web Clips In-Reply-To: References: <14b7e5ef0607121118w5e892c7ewd31068cdce9e4a33@mail.gmail.com> Message-ID: This page caching problem with the RSS feeds seems to be back in 4.0.1. I thought I had tested it with 4.0.0 and it was not a problem, but it definately is again now. I'm using Apache 2, mod_proxy and typo 4.0.1 with mongrel and sqlite. Any idea why this is happening? On 7/12/06, Paul Barry wrote: > > Ah, page caching is definately the problem. If I flush the cache, and run > it through feed validator, it works fine the first time. Then, subsequent > hits to the page say the type text/html. I am using apache mod_proxy and > mongrel and the latest typo gem 3.99.3. > > > On 7/12/06, Scott Laird wrote: > > > > Your sever doesn't really have much to do with this, except when page > > caching is turned on (which is a whole *other* pain in the neck). We > > should be explicitly setting the content type and encoding when we're > > generating data, and then making sure that the action cache does the > > right thing when it replays old data. > > > > > > Scott > > > > On 7/12/06, Steve Longdo wrote: > > > Make sure the xml mime-type is in your server's config. If you use > > the > > > default lighttpd one I don't think it is in there. Add this to > > > /config/lighttpd.conf mime-types section: > > > > > > ".xml" => "text/xml", > > > > > > > > > On 7/12/06, Paul Barry < mail at paulbarry.com> wrote: > > > > > > > > > > I can't add the URL for my typo (3.99.1) blog into gmail web > > clips. When I > > > used feedvalidator.org at this url > > > > > > http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.paulbarry.com%2Fxml%2Frss20%2Ffeed.xml > > > > > > > > The warnings I get are: > > > > > > - Feeds should not be served with the "text/html" media type > > > - Your feed appears to be encoded as "UTF-8", but your server is > > reporting > > > "US-ASCII" > > > > > > Do you think these are the problem? Can I fix these errors in typo? > > > > > > > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > > > > > -- > > > Thanks, > > > -Steve > > > http://www.stevelongdo.com > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060810/02356c74/attachment.html From doug.bromley at gmail.com Thu Aug 10 08:15:46 2006 From: doug.bromley at gmail.com (Doug Bromley) Date: Thu, 10 Aug 2006 13:15:46 +0100 Subject: [typo] Typo 4.0.1 In-Reply-To: <72311839-26A6-4C8B-893F-F9A85CCBB453@ciordia.info> References: <14b7e5ef0608100040l2ad9bfe9x4c30fbf21b48706f@mail.gmail.com> <72311839-26A6-4C8B-893F-F9A85CCBB453@ciordia.info> Message-ID: <288425520608100515m6f4ba3dew4d80095403413ce0@mail.gmail.com> I had an almost identical problem when I attempted to migrate my Wordpress blog. I was all set to shift over after the help from some of the Typo devs but then this happened - a mass of MySQL errors on the main content body. I gave up. I was hoping it was something that would be fixed with a new release. Doesn't look like it though. :( On 8/10/06, Andy Ciordia wrote: > > On Aug 10, 2006, at 3:40 AM, Scott Laird wrote: > > > Typo 4.0.1 is out. This is a bugfix release, with a number of bugs > > fixed since 4.0.0. This should be used with Rails 1.1.5, as earlier > > releases have critical security issues. > > > > See either > > > > * http://scottstuff.net/blog/articles/2006/08/10/typo-4-0-1 > > * http://www.typosphere.org/trac/wiki/DownloadStable > > > > for more details, including install/upgrade directions. > > > > Hey Scott, after upgrading and migrating the db through the admin-ui > this is seen in my main content body: > > Mysql::Error: Unknown column 'contents.comments_count' in 'field > list': SELECT contents.`id` AS t0_r0, contents.`title` AS t0_r1, > contents.`author` AS t0_r2, contents.`body` AS t0_r3, > contents.`body_html` AS t0_r4, contents.`extended` AS t0_r5, > contents.`excerpt` AS t0_r6, contents.`keywords` AS t0_r7, > contents.`created_at` AS t0_r8, contents.`updated_at` AS t0_r9, > contents.`extended_html` AS t0_r10, contents.`user_id` AS t0_r11, > contents.`permalink` AS t0_r12, contents.`guid` AS t0_r13, > contents.`text_filter_id` AS t0_r14, contents.`whiteboard` AS t0_r15, > contents.`comments_count` AS t0_r16, contents.`trackbacks_count` AS > t0_r17, contents.`type` AS t0_r18, contents.`article_id` AS t0_r19, > contents.`email` AS t0_r20, contents.`url` AS t0_r21, contents.`ip` > AS t0_r22, contents.`blog_name` AS t0_r23, contents.`name` AS t0_r24, > contents.`published` AS t0_r25, contents.`allow_pings` AS t0_r26, > contents.`allow_comments` AS t0_r27, contents.`blog_id` AS t0_r28, > contents.`published_at` AS t0_r29, contents.`state` AS t0_r30, > categories.`id` AS t1_r0, categories.`name` AS t1_r1, > categories.`position` AS t1_r2, categories.`permalink` AS t1_r3, > tags.`id` AS t2_r0, tags.`name` AS t2_r1, tags.`created_at` AS t2_r2, > tags.`updated_at` AS t2_r3, tags.`display_name` AS t2_r4, users.`id` > AS t3_r0, users.`login` AS t3_r1, users.`password` AS t3_r2, > users.`email` AS t3_r3, users.`name` AS t3_r4, > users.`notify_via_email` AS t3_r5, users.`notify_on_new_articles` AS > t3_r6, users.`notify_on_comments` AS t3_r7, > users.`notify_watch_my_articles` AS t3_r8, users.`notify_via_jabber` > AS t3_r9, users.`jabber` AS t3_r10, blogs.`id` AS t4_r0, > blogs.`settings` AS t4_r1 FROM contents LEFT OUTER JOIN > articles_categories ON articles_categories.article_id = contents.id > LEFT OUTER JOIN categories ON categories.id = > articles_categories.category_id LEFT OUTER JOIN articles_tags ON > articles_tags.article_id = contents.id LEFT OUTER JOIN tags ON > tags.id = articles_tags.tag_id LEFT OUTER JOIN users ON users.id = > contents.user_id LEFT OUTER JOIN blogs ON blogs.id = contents.blog_id > WHERE (published = 1 AND contents.published_at < '2006-08-10 > 07:32:55' AND blog_id = 1) AND ( (contents.`type` = 'Article' ) ) AND > contents.id IN ('364', '363', '357', '354', '342', '296', '272') > ORDER BY contents.published_at DESC > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Doug Bromley blog.straw-dogs.co.uk From meta at pobox.com Thu Aug 10 10:39:25 2006 From: meta at pobox.com (mathew) Date: Thu, 10 Aug 2006 09:39:25 -0500 Subject: [typo] Installing Typo without SQLite? In-Reply-To: <005801c6bc6f$9ac4d360$5f01a8c0@paullaptop> References: <005801c6bc6f$9ac4d360$5f01a8c0@paullaptop> Message-ID: <44DB451D.8030909@pobox.com> Paul Butcher wrote: > Is there any way to install Typo *without* also installing SQLite? You could try ignoring the installer and installing manually. I use ligHTTPd, so for me the procedure is: Download the .tgz, unpack. Symlink from public_html/typo to ~/typo-4.0.1/public. Create typo-4.0.1/config/database.yml and mail.yml as appropriate, and make sure the web server is configured to find the CGIs in public_html/typo. (Re)start lighttpd. With Mongrel it'd be similar, except after creating database.yml you'd just run script/server I think. mathew From jburks725 at gmail.com Thu Aug 10 11:24:00 2006 From: jburks725 at gmail.com (Jason Burks) Date: Thu, 10 Aug 2006 11:24:00 -0400 Subject: [typo] Help with comment box in themes In-Reply-To: <14b7e5ef0608091749j425d2e4dma7cfe27868fa3574@mail.gmail.com> References: <9bbab4e0608091307i54b7392aw443e17750f352521@mail.gmail.com> <9bbab4e0608091423p119319bu7bccc32a075464db@mail.gmail.com> <14b7e5ef0608091429j223c5690g81caae71fcaeb830@mail.gmail.com> <9bbab4e0608091747k47380d33p51ac6e630e5ac663@mail.gmail.com> <14b7e5ef0608091749j425d2e4dma7cfe27868fa3574@mail.gmail.com> Message-ID: <9bbab4e0608100824l659eedc0if436131665d4aaef@mail.gmail.com> Scott, Thanks for the nudge in the right direction. I think I've got it working now. The problem was in typo.js, as you suggested. It clears the textarea by element number in the form rather than element id. A simple fix: Index: typo.js =================================================================== --- typo.js (revision 1208) +++ typo.js (working copy) @@ -45,8 +45,8 @@ Element.cleanWhitespace('commentList'); new Effect.BlindDown($('commentList').lastChild); if ($('dummy_comment')) { Element.remove('dummy_comment'); } - $('commentform').elements[3].value = ''; - $('commentform').elements[3].focus(); + $('commentform').elements['comment_body'].value = ''; + $('commentform').elements['comment_body'].focus(); } This should then make the function work for any script that uses <%= text_area 'comment', 'body' %> to create the comment text area. I tested it using Azure and it doesn't break it, so I'd recommend the patch be committed to svn. Thanks, Jason On 8/9/06, Scott Laird wrote: > Yeah, but all of these have been developed using Azure. Look in > typo.js--I seem to recall that there are some comment-specific > functions in there. > > > Scott > > On 8/9/06, Jason Burks wrote: > > Err, correct me if I'm wrong, but Azure has no theme-specific > > Javascript. The scripts in public/javascripts should be available to > > all themes in Typo, right? As far as I can tell (and I'm still trying > > to learn my way around in the codebase), these scripts are what > > provide the effects for the Azure theme. Looking at the html source > > for my site rendered with Azure and with Scribbish, I see the same > > four javascript files being loaded in each: > > > > /javascripts/cookies.js > > /javascripts/prototype.js > > /javascripts/effects.js > > /javascripts/typo.js > > > > I'm actually thinking that there's a possible difference in the DOM > > representation that's causing the problem. Azure renders the form in > > a table; Scribbish renders it in a fieldset. Perhaps this is causing > > the problem? I'll try pulling the form out of the fieldset in > > Scribbish and see what happens. > > > > Any other suggestions that any might have would be appreciated. > > > > -Jason > > > > On 8/9/06, Scott Laird wrote: > > > No idea. Have you looked at Azure's Javascript? > > > > > > > > > Scott > > > > > > On 8/9/06, Jason Burks wrote: > > > > Hmm...I did a little more testing when I got home from work and > > > > discovered that, for some very odd reason, the textarea clearing seems > > > > to work for Scribbish in Safari, but not in Flock or Firefox on my > > > > Mac. In my testing at work, Azure seemed to work in Firefox and > > > > Flock, but not Scribbish. Now I'm thoroughly confused. Anyone got > > > > any suggestions? > > > > > > > > Btw, this is with latest svn trunk, including the Rails 1.1.5 push. > > > > > > > > -Jason > > > > > > > > On 8/9/06, Jason Burks wrote: > > > > > I've noticed that the Scribbish theme doesn't support some of the > > > > > slick comment functionality that Azure does. Namely, it doesn't seem > > > > > to have the admin "buttons" for nuking or editing, and it doesn't seem > > > > > to slide the comments into place. I've managing to hack both of those > > > > > in pretty easily, but I'm stumped on one final piece. When I submit a > > > > > comment, it does not clear the comment_body textarea. > > > > > > > > > > I've looked at the default view code for _comment_box.rhtml in Azure, > > > > > and I've compared it to what I've got for my hacked up Scribbish, and > > > > > I cannot see why it's not working. The textareas in both are created > > > > > with <%= text_area 'comment', 'body' %> tags. The form id and name > > > > > are both the same. I've modified the Submit button code so it matches > > > > > Azure (that was the key to getting the comment to slide into place), > > > > > but I cannot for the life of me find the piece that will clear that > > > > > textarea. Any help would be greatly appreciated, and I'll happily > > > > > submit my diffs once I get it working. > > > > > > > > > > Regards, > > > > > Jason > > > > > > > > > _______________________________________________ > > > > Typo-list mailing list > > > > Typo-list at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Thu Aug 10 12:39:58 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 10 Aug 2006 09:39:58 -0700 Subject: [typo] Typo 4.0.1 In-Reply-To: <72311839-26A6-4C8B-893F-F9A85CCBB453@ciordia.info> References: <14b7e5ef0608100040l2ad9bfe9x4c30fbf21b48706f@mail.gmail.com> <72311839-26A6-4C8B-893F-F9A85CCBB453@ciordia.info> Message-ID: <14b7e5ef0608100939t73e8d745jaf9e0cd883ae0f81@mail.gmail.com> On 8/10/06, Andy Ciordia wrote: > > On Aug 10, 2006, at 3:40 AM, Scott Laird wrote: > > > Typo 4.0.1 is out. This is a bugfix release, with a number of bugs > > fixed since 4.0.0. This should be used with Rails 1.1.5, as earlier > > releases have critical security issues. > > > > See either > > > > * http://scottstuff.net/blog/articles/2006/08/10/typo-4-0-1 > > * http://www.typosphere.org/trac/wiki/DownloadStable > > > > for more details, including install/upgrade directions. > > > > Hey Scott, after upgrading and migrating the db through the admin-ui > this is seen in my main content body: > > Mysql::Error: Unknown column 'contents.comments_count' in 'field > list': SELECT contents.`id` AS t0_r0, contents.`title` AS t0_r1, > contents.`author` AS t0_r2, contents.`body` AS t0_r3, > contents.`body_html` AS t0_r4, contents.`extended` AS t0_r5, > contents.`excerpt` AS t0_r6, contents.`keywords` AS t0_r7, > contents.`created_at` AS t0_r8, contents.`updated_at` AS t0_r9, > contents.`extended_html` AS t0_r10, contents.`user_id` AS t0_r11, > contents.`permalink` AS t0_r12, contents.`guid` AS t0_r13, > contents.`text_filter_id` AS t0_r14, contents.`whiteboard` AS t0_r15, > contents.`comments_count` AS t0_r16, contents.`trackbacks_count` AS > t0_r17, contents.`type` AS t0_r18, contents.`article_id` AS t0_r19, > contents.`email` AS t0_r20, contents.`url` AS t0_r21, contents.`ip` > AS t0_r22, contents.`blog_name` AS t0_r23, contents.`name` AS t0_r24, > contents.`published` AS t0_r25, contents.`allow_pings` AS t0_r26, > contents.`allow_comments` AS t0_r27, contents.`blog_id` AS t0_r28, > contents.`published_at` AS t0_r29, contents.`state` AS t0_r30, > categories.`id` AS t1_r0, categories.`name` AS t1_r1, > categories.`position` AS t1_r2, categories.`permalink` AS t1_r3, > tags.`id` AS t2_r0, tags.`name` AS t2_r1, tags.`created_at` AS t2_r2, > tags.`updated_at` AS t2_r3, tags.`display_name` AS t2_r4, users.`id` > AS t3_r0, users.`login` AS t3_r1, users.`password` AS t3_r2, > users.`email` AS t3_r3, users.`name` AS t3_r4, > users.`notify_via_email` AS t3_r5, users.`notify_on_new_articles` AS > t3_r6, users.`notify_on_comments` AS t3_r7, > users.`notify_watch_my_articles` AS t3_r8, users.`notify_via_jabber` > AS t3_r9, users.`jabber` AS t3_r10, blogs.`id` AS t4_r0, > blogs.`settings` AS t4_r1 FROM contents LEFT OUTER JOIN > articles_categories ON articles_categories.article_id = contents.id > LEFT OUTER JOIN categories ON categories.id = > articles_categories.category_id LEFT OUTER JOIN articles_tags ON > articles_tags.article_id = contents.id LEFT OUTER JOIN tags ON > tags.id = articles_tags.tag_id LEFT OUTER JOIN users ON users.id = > contents.user_id LEFT OUTER JOIN blogs ON blogs.id = contents.blog_id > WHERE (published = 1 AND contents.published_at < '2006-08-10 > 07:32:55' AND blog_id = 1) AND ( (contents.`type` = 'Article' ) ) AND > contents.id IN ('364', '363', '357', '354', '342', '296', '272') > ORDER BY contents.published_at DESC You need to restart your fastcgi processes. You have a 4.0.1 DB but you're running 4.0.0 code. Scott From scott at sigkill.org Thu Aug 10 12:41:24 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 10 Aug 2006 09:41:24 -0700 Subject: [typo] Getting typo RSS feed to appear in Google Web Clips In-Reply-To: References: <14b7e5ef0607121118w5e892c7ewd31068cdce9e4a33@mail.gmail.com> Message-ID: <14b7e5ef0608100941u3591e199o966854d6bb64c234@mail.gmail.com> You mean you're getting a bad content-type? The code shouldn't have changed, but I'll retest. 4.0.2 will probably be out today anyway, to go along with Rails 1.1.6. Scott On 8/10/06, Paul Barry wrote: > This page caching problem with the RSS feeds seems to be back in 4.0.1. I > thought I had tested it with 4.0.0 and it was not a problem, but it > definately is again now. I'm using Apache 2, mod_proxy and typo 4.0.1 with > mongrel and sqlite. Any idea why this is happening? > > > On 7/12/06, Paul Barry wrote: > > > > Ah, page caching is definately the problem. If I flush the cache, and run > it through feed validator, it works fine the first time. Then, subsequent > hits to the page say the type text/html. I am using apache mod_proxy and > mongrel and the latest typo gem 3.99.3. > > > > > > > > On 7/12/06, Scott Laird < scott at sigkill.org> wrote: > > > Your sever doesn't really have much to do with this, except when page > > > caching is turned on (which is a whole *other* pain in the neck). We > > > should be explicitly setting the content type and encoding when we're > > > generating data, and then making sure that the action cache does the > > > right thing when it replays old data. > > > > > > > > > Scott > > > > > > On 7/12/06, Steve Longdo wrote: > > > > Make sure the xml mime-type is in your server's config. If you use > the > > > > default lighttpd one I don't think it is in there. Add this to > > > > /config/lighttpd.conf mime-types section: > > > > > > > > ".xml" => "text/xml", > > > > > > > > > > > > On 7/12/06, Paul Barry < mail at paulbarry.com> wrote: > > > > > > > > > > > > > I can't add the URL for my typo (3.99.1) blog into gmail web clips. > When I > > > > used feedvalidator.org at this url > > > > > > > > > http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.paulbarry.com%2Fxml%2Frss20%2Ffeed.xml > > > > > > > > The warnings I get are: > > > > > > > > - Feeds should not be served with the "text/html" media type > > > > - Your feed appears to be encoded as "UTF-8", but your server is > reporting > > > > "US-ASCII" > > > > > > > > Do you think these are the problem? Can I fix these errors in typo? > > > > > > > > > > > > _______________________________________________ > > > > Typo-list mailing list > > > > Typo-list at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Thanks, > > > > -Steve > > > > http://www.stevelongdo.com > > > > _______________________________________________ > > > > Typo-list mailing list > > > > Typo-list at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From scott at sigkill.org Thu Aug 10 12:44:19 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 10 Aug 2006 09:44:19 -0700 Subject: [typo] Getting typo RSS feed to appear in Google Web Clips In-Reply-To: <14b7e5ef0608100941u3591e199o966854d6bb64c234@mail.gmail.com> References: <14b7e5ef0607121118w5e892c7ewd31068cdce9e4a33@mail.gmail.com> <14b7e5ef0608100941u3591e199o966854d6bb64c234@mail.gmail.com> Message-ID: <14b7e5ef0608100944u78c4539bt6f6820d430bae51d@mail.gmail.com> I can't reproduce this with my blog: http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fscottstuff.net%2Fblog%2Fxml%2Frss20%2Ffeed.xml Are you doing anything unusual? Did you re-enable the page cache or anything like that, or are you running a straight Typo 4.0.1 install? Scott On 8/10/06, Scott Laird wrote: > You mean you're getting a bad content-type? The code shouldn't have > changed, but I'll retest. > > 4.0.2 will probably be out today anyway, to go along with Rails 1.1.6. > > > Scott > > On 8/10/06, Paul Barry wrote: > > This page caching problem with the RSS feeds seems to be back in 4.0.1. I > > thought I had tested it with 4.0.0 and it was not a problem, but it > > definately is again now. I'm using Apache 2, mod_proxy and typo 4.0.1 with > > mongrel and sqlite. Any idea why this is happening? > > > > > > On 7/12/06, Paul Barry wrote: > > > > > > Ah, page caching is definately the problem. If I flush the cache, and run > > it through feed validator, it works fine the first time. Then, subsequent > > hits to the page say the type text/html. I am using apache mod_proxy and > > mongrel and the latest typo gem 3.99.3. > > > > > > > > > > > > On 7/12/06, Scott Laird < scott at sigkill.org> wrote: > > > > Your sever doesn't really have much to do with this, except when page > > > > caching is turned on (which is a whole *other* pain in the neck). We > > > > should be explicitly setting the content type and encoding when we're > > > > generating data, and then making sure that the action cache does the > > > > right thing when it replays old data. > > > > > > > > > > > > Scott > > > > > > > > On 7/12/06, Steve Longdo wrote: > > > > > Make sure the xml mime-type is in your server's config. If you use > > the > > > > > default lighttpd one I don't think it is in there. Add this to > > > > > /config/lighttpd.conf mime-types section: > > > > > > > > > > ".xml" => "text/xml", > > > > > > > > > > > > > > > On 7/12/06, Paul Barry < mail at paulbarry.com> wrote: > > > > > > > > > > > > > > > > I can't add the URL for my typo (3.99.1) blog into gmail web clips. > > When I > > > > > used feedvalidator.org at this url > > > > > > > > > > > > http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.paulbarry.com%2Fxml%2Frss20%2Ffeed.xml > > > > > > > > > > The warnings I get are: > > > > > > > > > > - Feeds should not be served with the "text/html" media type > > > > > - Your feed appears to be encoded as "UTF-8", but your server is > > reporting > > > > > "US-ASCII" > > > > > > > > > > Do you think these are the problem? Can I fix these errors in typo? > > > > > > > > > > > > > > > _______________________________________________ > > > > > Typo-list mailing list > > > > > Typo-list at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Thanks, > > > > > -Steve > > > > > http://www.stevelongdo.com > > > > > _______________________________________________ > > > > > Typo-list mailing list > > > > > Typo-list at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > _______________________________________________ > > > > Typo-list mailing list > > > > Typo-list at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > From andy at ciordia.info Thu Aug 10 13:52:34 2006 From: andy at ciordia.info (Andy Ciordia) Date: Thu, 10 Aug 2006 13:52:34 -0400 Subject: [typo] Typo 4.0.1 In-Reply-To: <14b7e5ef0608100939t73e8d745jaf9e0cd883ae0f81@mail.gmail.com> References: <14b7e5ef0608100040l2ad9bfe9x4c30fbf21b48706f@mail.gmail.com> <72311839-26A6-4C8B-893F-F9A85CCBB453@ciordia.info> <14b7e5ef0608100939t73e8d745jaf9e0cd883ae0f81@mail.gmail.com> Message-ID: <948C8649-8EF8-4996-8A01-4701E50DB355@ciordia.info> On Aug 10, 2006, at 12:39 PM, Scott Laird wrote: > You need to restart your fastcgi processes. You have a 4.0.1 DB but > you're running 4.0.0 code. You don't know how much I love an obvious solution. hah! This is probably my one for the year. Looking great after a process flush. Thanks, -a From eric.sendelbach at gmail.com Thu Aug 10 13:59:29 2006 From: eric.sendelbach at gmail.com (Eric Sendelbach) Date: Thu, 10 Aug 2006 13:59:29 -0400 Subject: [typo] Typo 4.0.1 In-Reply-To: <948C8649-8EF8-4996-8A01-4701E50DB355@ciordia.info> References: <14b7e5ef0608100040l2ad9bfe9x4c30fbf21b48706f@mail.gmail.com> <72311839-26A6-4C8B-893F-F9A85CCBB453@ciordia.info> <14b7e5ef0608100939t73e8d745jaf9e0cd883ae0f81@mail.gmail.com> <948C8649-8EF8-4996-8A01-4701E50DB355@ciordia.info> Message-ID: <2fbd26cb0608101059o32620cb9ja855046040965e7c@mail.gmail.com> Since rails 1.1.6 is out, so can we expect a typo 4.0.2 soon since the patch for 1.1.5 is to upgrade and apparently didn't fix all the holes? http://weblog.rubyonrails.org/2006/8/10/rails-1-1-6-backports-and-full-disclosure On 8/10/06, Andy Ciordia wrote: > > > On Aug 10, 2006, at 12:39 PM, Scott Laird wrote: > > > You need to restart your fastcgi processes. You have a 4.0.1 DB but > > you're running 4.0.0 code. > > You don't know how much I love an obvious solution. hah! This is > probably my one for the year. Looking great after a process flush. > > Thanks, > > -a > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Eric Sendelbach 229 Fulton St Indianapolis, IN 46202 317.965.2071 (cell) http://www.ericsendelbach.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060810/c56f20f7/attachment-0001.html From scott at sigkill.org Thu Aug 10 14:11:16 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 10 Aug 2006 11:11:16 -0700 Subject: [typo] Typo 4.0.1 In-Reply-To: <2fbd26cb0608101059o32620cb9ja855046040965e7c@mail.gmail.com> References: <14b7e5ef0608100040l2ad9bfe9x4c30fbf21b48706f@mail.gmail.com> <72311839-26A6-4C8B-893F-F9A85CCBB453@ciordia.info> <14b7e5ef0608100939t73e8d745jaf9e0cd883ae0f81@mail.gmail.com> <948C8649-8EF8-4996-8A01-4701E50DB355@ciordia.info> <2fbd26cb0608101059o32620cb9ja855046040965e7c@mail.gmail.com> Message-ID: <14b7e5ef0608101111u5cb56a92yc56160c1b0719a10@mail.gmail.com> There should be a 4.0.2 today. Scott On 8/10/06, Eric Sendelbach wrote: > Since rails 1.1.6 is out, so can we expect a typo 4.0.2 soon since the patch > for 1.1.5 is to upgrade and apparently didn't fix all the holes? > > http://weblog.rubyonrails.org/2006/8/10/rails-1-1-6-backports-and-full-disclosure > > > On 8/10/06, Andy Ciordia wrote: > > > > On Aug 10, 2006, at 12:39 PM, Scott Laird wrote: > > > > > You need to restart your fastcgi processes. You have a 4.0.1 DB but > > > you're running 4.0.0 code. > > > > You don't know how much I love an obvious solution. hah! This is > > probably my one for the year. Looking great after a process flush. > > > > Thanks, > > > > -a > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > -- > Eric Sendelbach > 229 Fulton St > Indianapolis, IN 46202 > 317.965.2071 (cell) > http://www.ericsendelbach.com/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From scott at sigkill.org Thu Aug 10 14:17:41 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 10 Aug 2006 11:17:41 -0700 Subject: [typo] Help with mysql and installer Message-ID: <14b7e5ef0608101117l7fb7bfcjcdd71284154ba793@mail.gmail.com> I don't use mysql, so fixing mysql problems is kind of hard for me :-). I'd like to get native mysql support into the installer. I'd really like to get it in *today*. So I'd like some help. It's not all that complex--here's the important part of the postgres driver: class Postgresql < RailsInstaller::Database def self.yml(installer) %Q{ login: &login adapter: postgresql host: #{db_host installer} username: #{db_user installer} password: #{installer.config['db_password']} database: #{db_name installer} development: <<: *login production: <<: *login test: database: #{db_name installer}-test <<: *login } end # Create a PostgreSQL database. def self.create_database(installer) installer.message "Creating PostgreSQL database" system("createdb -U #{db_user installer} #{db_name installer}") system("createdb -U #{db_user installer} #{db_name installer}-test") end end Basically, I need a 'yml' method that builds a database.yml, and a create_database method that can create a MySQL db. If someone can implement this *now* and let me know, then I can include it in Typo 4.0.2. The source lives in http://rails-app-installer.googlecode.com/svn/trunk; you should be able to check it out via svn. Scott From mail at paulbarry.com Thu Aug 10 14:38:30 2006 From: mail at paulbarry.com (Paul Barry) Date: Thu, 10 Aug 2006 14:38:30 -0400 Subject: [typo] Getting typo RSS feed to appear in Google Web Clips In-Reply-To: <14b7e5ef0608100944u78c4539bt6f6820d430bae51d@mail.gmail.com> References: <14b7e5ef0607121118w5e892c7ewd31068cdce9e4a33@mail.gmail.com> <14b7e5ef0608100941u3591e199o966854d6bb64c234@mail.gmail.com> <14b7e5ef0608100944u78c4539bt6f6820d430bae51d@mail.gmail.com> Message-ID: I'm not doing anything unusual. I didn't explictly enable/re-enable page caching (wouldn't know how to). It is just a straight Type 4.0.1 install, using Apache 2 wiht mod_proxy. The problem appears to be caching related. When I clear the fragment cache, the first hit to the RSS feed correctly returns text/xml. Sub-sequent requests incorrectly return text/html. On 8/10/06, Scott Laird wrote: > > I can't reproduce this with my blog: > > > http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fscottstuff.net%2Fblog%2Fxml%2Frss20%2Ffeed.xml > > Are you doing anything unusual? Did you re-enable the page cache or > anything like that, or are you running a straight Typo 4.0.1 install? > > > Scott > > On 8/10/06, Scott Laird wrote: > > You mean you're getting a bad content-type? The code shouldn't have > > changed, but I'll retest. > > > > 4.0.2 will probably be out today anyway, to go along with Rails 1.1.6. > > > > > > Scott > > > > On 8/10/06, Paul Barry wrote: > > > This page caching problem with the RSS feeds seems to be back in 4.0.1 > . I > > > thought I had tested it with 4.0.0 and it was not a problem, but it > > > definately is again now. I'm using Apache 2, mod_proxy and typo 4.0.1with > > > mongrel and sqlite. Any idea why this is happening? > > > > > > > > > On 7/12/06, Paul Barry wrote: > > > > > > > > Ah, page caching is definately the problem. If I flush the cache, > and run > > > it through feed validator, it works fine the first time. Then, > subsequent > > > hits to the page say the type text/html. I am using apache mod_proxy > and > > > mongrel and the latest typo gem 3.99.3. > > > > > > > > > > > > > > > > On 7/12/06, Scott Laird < scott at sigkill.org> wrote: > > > > > Your sever doesn't really have much to do with this, except when > page > > > > > caching is turned on (which is a whole *other* pain in the > neck). We > > > > > should be explicitly setting the content type and encoding when > we're > > > > > generating data, and then making sure that the action cache does > the > > > > > right thing when it replays old data. > > > > > > > > > > > > > > > Scott > > > > > > > > > > On 7/12/06, Steve Longdo wrote: > > > > > > Make sure the xml mime-type is in your server's config. If you > use > > > the > > > > > > default lighttpd one I don't think it is in there. Add this to > > > > > > /config/lighttpd.conf mime-types section: > > > > > > > > > > > > ".xml" => "text/xml", > > > > > > > > > > > > > > > > > > On 7/12/06, Paul Barry < mail at paulbarry.com> wrote: > > > > > > > > > > > > > > > > > > > I can't add the URL for my typo (3.99.1) blog into gmail web > clips. > > > When I > > > > > > used feedvalidator.org at this url > > > > > > > > > > > > > > > > http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.paulbarry.com%2Fxml%2Frss20%2Ffeed.xml > > > > > > > > > > > > The warnings I get are: > > > > > > > > > > > > - Feeds should not be served with the "text/html" media type > > > > > > - Your feed appears to be encoded as "UTF-8", but your server > is > > > reporting > > > > > > "US-ASCII" > > > > > > > > > > > > Do you think these are the problem? Can I fix these errors in > typo? > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > Typo-list mailing list > > > > > > Typo-list at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Thanks, > > > > > > -Steve > > > > > > http://www.stevelongdo.com > > > > > > _______________________________________________ > > > > > > Typo-list mailing list > > > > > > Typo-list at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > Typo-list mailing list > > > > > Typo-list at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > _______________________________________________ > 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/20060810/ad5cef9c/attachment.html From phil.toland at gmail.com Thu Aug 10 15:09:21 2006 From: phil.toland at gmail.com (Phillip Toland) Date: Thu, 10 Aug 2006 14:09:21 -0500 Subject: [typo] Help with mysql and installer In-Reply-To: <14b7e5ef0608101117l7fb7bfcjcdd71284154ba793@mail.gmail.com> References: <14b7e5ef0608101117l7fb7bfcjcdd71284154ba793@mail.gmail.com> Message-ID: <69f191ca0608101209q791a5cdfoa7f63850d41b01f6@mail.gmail.com> On 8/10/06, Scott Laird wrote: > I'd like to get native mysql support into the installer. I'd really > like to get it in *today*. So I'd like some help. It's not all that > complex--here's the important part of the postgres driver: [snip] How's this: class Mysql < RailsInstaller::Database def self.db_host(installer) installer.config['db_host'] || 'localhost' end def self.db_user(installer) installer.config['db_user'] || installer.app_name end def self.db_name(installer) installer.config['db_name'] || installer.app_name end def self.yml(installer) %Q{ login: &login adapter: mysql host: #{db_host installer} username: #{db_user installer} password: #{installer.config['db_password']} database: #{db_name installer} development: <<: *login production: <<: *login test: database: #{db_name installer}-test <<: *login } end # Create a MySQL database. def self.create_database(installer) installer.message "Creating MySQL database" system("mysql -u #{db_user installer} -p#{installer.config['db_password']} -e 'create database #{db_name installer}'") system("mysql -u #{db_user installer} -p#{installer.config['db_password']} -e 'create database #{db_name installer}-test'") end end Phil From scott at sigkill.org Thu Aug 10 15:10:12 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 10 Aug 2006 12:10:12 -0700 Subject: [typo] Getting typo RSS feed to appear in Google Web Clips In-Reply-To: References: <14b7e5ef0607121118w5e892c7ewd31068cdce9e4a33@mail.gmail.com> <14b7e5ef0608100941u3591e199o966854d6bb64c234@mail.gmail.com> <14b7e5ef0608100944u78c4539bt6f6820d430bae51d@mail.gmail.com> Message-ID: <14b7e5ef0608101210pc3719a1jce0e1966032b624e@mail.gmail.com> I can see if happening with your site, but it's not happening with my site. Let's test a few more, and then release 4.0.3 if we need to. I don't have time to test this before we spit out 4.0.2, unfortunately. Scott On 8/10/06, Paul Barry wrote: > I'm not doing anything unusual. I didn't explictly enable/re-enable page > caching (wouldn't know how to). It is just a straight Type 4.0.1 install, > using Apache 2 wiht mod_proxy. The problem appears to be caching related. > When I clear the fragment cache, the first hit to the RSS feed correctly > returns text/xml. Sub-sequent requests incorrectly return text/html. > > > > On 8/10/06, Scott Laird wrote: > > I can't reproduce this with my blog: > > > > > http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fscottstuff.net%2Fblog%2Fxml%2Frss20%2Ffeed.xml > > > > Are you doing anything unusual? Did you re-enable the page cache or > > anything like that, or are you running a straight Typo 4.0.1 install? > > > > > > Scott > > > > On 8/10/06, Scott Laird wrote: > > > You mean you're getting a bad content-type? The code shouldn't have > > > changed, but I'll retest. > > > > > > 4.0.2 will probably be out today anyway, to go along with Rails 1.1.6. > > > > > > > > > Scott > > > > > > On 8/10/06, Paul Barry wrote: > > > > This page caching problem with the RSS feeds seems to be back in > 4.0.1. I > > > > thought I had tested it with 4.0.0 and it was not a problem, but it > > > > definately is again now. I'm using Apache 2, mod_proxy and typo 4.0.1 > with > > > > mongrel and sqlite. Any idea why this is happening? > > > > > > > > > > > > On 7/12/06, Paul Barry wrote: > > > > > > > > > > Ah, page caching is definately the problem. If I flush the cache, > and run > > > > it through feed validator, it works fine the first time. Then, > subsequent > > > > hits to the page say the type text/html. I am using apache mod_proxy > and > > > > mongrel and the latest typo gem 3.99.3. > > > > > > > > > > > > > > > > > > > > On 7/12/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > Your sever doesn't really have much to do with this, except when > page > > > > > > caching is turned on (which is a whole *other* pain in the neck). > We > > > > > > should be explicitly setting the content type and encoding when > we're > > > > > > generating data, and then making sure that the action cache does > the > > > > > > right thing when it replays old data. > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > On 7/12/06, Steve Longdo wrote: > > > > > > > Make sure the xml mime-type is in your server's config. If you > use > > > > the > > > > > > > default lighttpd one I don't think it is in there. Add this to > > > > > > > /config/lighttpd.conf mime-types section: > > > > > > > > > > > > > > ".xml" => "text/xml", > > > > > > > > > > > > > > > > > > > > > On 7/12/06, Paul Barry < mail at paulbarry.com> wrote: > > > > > > > > > > > > > > > > > > > > > > I can't add the URL for my typo (3.99.1) blog into gmail web > clips. > > > > When I > > > > > > > used feedvalidator.org at this url > > > > > > > > > > > > > > > > > > > http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.paulbarry.com%2Fxml%2Frss20%2Ffeed.xml > > > > > > > > > > > > > > The warnings I get are: > > > > > > > > > > > > > > - Feeds should not be served with the "text/html" media type > > > > > > > - Your feed appears to be encoded as "UTF-8", but your server > is > > > > reporting > > > > > > > "US-ASCII" > > > > > > > > > > > > > > Do you think these are the problem? Can I fix these errors in > typo? > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > Typo-list mailing list > > > > > > > Typo-list at rubyforge.org > > > > > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > Thanks, > > > > > > > -Steve > > > > > > > http://www.stevelongdo.com > > > > > > > _______________________________________________ > > > > > > > Typo-list mailing list > > > > > > > Typo-list at rubyforge.org > > > > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > Typo-list mailing list > > > > > > Typo-list at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Typo-list mailing list > > > > Typo-list at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From scott at sigkill.org Thu Aug 10 15:43:23 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 10 Aug 2006 12:43:23 -0700 Subject: [typo] Help with mysql and installer In-Reply-To: <69f191ca0608101209q791a5cdfoa7f63850d41b01f6@mail.gmail.com> References: <14b7e5ef0608101117l7fb7bfcjcdd71284154ba793@mail.gmail.com> <69f191ca0608101209q791a5cdfoa7f63850d41b01f6@mail.gmail.com> Message-ID: <14b7e5ef0608101243i6a7f62c2p41bb0d11ad6529d3@mail.gmail.com> On 8/10/06, Phillip Toland wrote: > On 8/10/06, Scott Laird wrote: > > I'd like to get native mysql support into the installer. I'd really > > like to get it in *today*. So I'd like some help. It's not all that > > complex--here's the important part of the postgres driver: > [snip] > > How's this: > > class Mysql < RailsInstaller::Database > def self.db_host(installer) > installer.config['db_host'] || 'localhost' > end > > def self.db_user(installer) > installer.config['db_user'] || installer.app_name > end > > def self.db_name(installer) > installer.config['db_name'] || installer.app_name > end > > def self.yml(installer) > %Q{ > login: &login > adapter: mysql > host: #{db_host installer} > username: #{db_user installer} > password: #{installer.config['db_password']} > database: #{db_name installer} > > development: > <<: *login > > production: > <<: *login > > test: > database: #{db_name installer}-test > <<: *login > } > end > > # Create a MySQL database. > def self.create_database(installer) > installer.message "Creating MySQL database" > system("mysql -u #{db_user installer} > -p#{installer.config['db_password']} -e 'create database #{db_name > installer}'") > system("mysql -u #{db_user installer} > -p#{installer.config['db_password']} -e 'create database #{db_name > installer}-test'") > end > end Thanks. I'll give this a spin in rails-app-installer 0.1.2 / Typo 4.0.2. Scott From dag at sonsorol.org Thu Aug 10 11:17:53 2006 From: dag at sonsorol.org (Chris Dagdigian) Date: Thu, 10 Aug 2006 11:17:53 -0400 Subject: [typo] Thanks! Message-ID: <40580E3E-CFDB-4F85-A056-A7CF3438DC8C@sonsorol.org> ... Just wanted to drop a quick thank you note to the developers and people who have been working on Typo. I had a ~6 month old SVN checkout of Typo trunk running with a slightly customized Origami theme and decided to upgrade to Typo 4.1 today. The process was simple and far smoother than my other upgrade efforts. All I did was update rails, perform an "svn update" followed by a "rake migrate" and all was well with the blog, articles, sidebars and the theme. Much appreciated! Regards, Chris http://gridengine.info From scott at sigkill.org Thu Aug 10 17:04:59 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 10 Aug 2006 14:04:59 -0700 Subject: [typo] Typo 4.0.2 Message-ID: <14b7e5ef0608101404o75f0dcecw8fff09281b97f139@mail.gmail.com> Typo 4.0.2 is out. This is mostly a security release; please use it along with Rails 1.1.6, although it contains code to block all of the known exploits in 1.1.4 and 1.1.5. The .gem installer has been updated and should now work correctly with MySQL. Users who have installed the .gem and then ran 'typo config PATH database=mysql' should be able to use 4.0.2, unlike 4.0.1. Sorry. In addition, it's now possible to install directly onto MySQL (and Postgres). I'll document it once the 4.0.2 madness has subsided. Scott From paul at paulbutcher.com Fri Aug 11 04:17:35 2006 From: paul at paulbutcher.com (Paul Butcher) Date: Fri, 11 Aug 2006 09:17:35 +0100 Subject: [typo] Installing Typo without SQLite? In-Reply-To: <44DB451D.8030909@pobox.com> Message-ID: <002401c6bd1e$9a139140$5f01a8c0@paullaptop> Hello Matthew - didn't expect to run into another Harlequitter here :-) > You could try ignoring the installer and installing manually. Thanks - I'll give this a go. I'd be interested to know why Typo has a dependency on SQLite, when it doesn't actually depend on it as such? The installation also brought mogrel_cluster with it. Which is nice, but not exactly a requirement either? -- paul.butcher->msgCount++ Snetterton, Castle Combe, Cadwell Park... Who says I have a one track mind? MSN: paul at paulbutcher.com AIM: paulrabutcher Skype: paulrabutcher LinkedIn: https://www.linkedin.com/in/paulbutcher From linda at innovatesolutions.com Fri Aug 11 14:11:54 2006 From: linda at innovatesolutions.com (Linda Derezinski) Date: Fri, 11 Aug 2006 14:11:54 -0400 Subject: [typo] has_many through Message-ID: <03be01c6bd71$a03ec460$0701000a@Aruba> Scott, Are there any plans to update the models from has_and_belongs_to_many with has_many through? (perhaps we could assist in the effort) Linda Derezinski Innovative Solutions Inc. Essex, Maryland USA (443) 506 9106 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060811/49dce106/attachment.html From scott at sigkill.org Fri Aug 11 14:54:15 2006 From: scott at sigkill.org (Scott Laird) Date: Fri, 11 Aug 2006 11:54:15 -0700 Subject: [typo] has_many through In-Reply-To: <03be01c6bd71$a03ec460$0701000a@Aruba> References: <03be01c6bd71$a03ec460$0701000a@Aruba> Message-ID: <14b7e5ef0608111154p24c8dd1cv4c325de42dd9f035@mail.gmail.com> We haven't looked at it yet. It's not a high priority, because the current code works well enough, and I don't really expect to see habtm disappear in the near future, no matter how little the Rails core likes it. Is there actually an advantage to converting existing code? Scott On 8/11/06, Linda Derezinski wrote: > > > > > Scott, > > Are there any plans to update the models from has_and_belongs_to_many with > has_many through? > > (perhaps we could assist in the effort) > > > > > Linda Derezinski > > Innovative Solutions Inc. > > Essex, Maryland USA > > (443) 506 9106 > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From linda at innovatesolutions.com Fri Aug 11 15:53:57 2006 From: linda at innovatesolutions.com (Linda Derezinski) Date: Fri, 11 Aug 2006 15:53:57 -0400 Subject: [typo] has_many through In-Reply-To: <14b7e5ef0608111154p24c8dd1cv4c325de42dd9f035@mail.gmail.com> Message-ID: Scott, I ran into the same issue as reported here: http://dev.rubyonrails.org/ticket/4386 When I asked Mark (he is the one who submitted the ticket) he replied with this (which makes a whole lot of sense to me) [quote] > Hi Linda, > No I never got the fix i was hoping for and as I used rails more and more I > realized that HABTM is a hack in and of itself. Typically, I have found that > using HABTM is a sign that I have an implicit join model which I have not > implemented. I have had much better luck using the "through" proxy association > so instead of saying > > User has_and_belongs_to_many :groups > > I now say > > User has_many :groups, through=> :memberships > > > Membership now becomes an explicit model instead of an implicit one and I can > now decorate the model with methods, which were missing or didn't belong in to > the user model (for example, storing a leader attribute inside the membership > model allows me to have a user become the leader of a group). > > > I think that the plan with the rails core team is to eventually remove the > HABTM relationship eventually. > > > Best of Luck, > Mark [/quote] -Linda On 8/11/06 2:54 PM, "Scott Laird" wrote: > We haven't looked at it yet. It's not a high priority, because the > current code works well enough, and I don't really expect to see habtm > disappear in the near future, no matter how little the Rails core > likes it. > > Is there actually an advantage to converting existing code? > > > Scott > > On 8/11/06, Linda Derezinski wrote: >> >> >> >> >> Scott, >> >> Are there any plans to update the models from has_and_belongs_to_many with >> has_many through? >> >> (perhaps we could assist in the effort) >> >> >> >> >> Linda Derezinski >> >> Innovative Solutions Inc. >> >> Essex, Maryland USA >> >> (443) 506 9106 >> >> >> _______________________________________________ >> 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 pdcawley at bofh.org.uk Fri Aug 11 16:39:23 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 11 Aug 2006 21:39:23 +0100 Subject: [typo] has_many through In-Reply-To: <14b7e5ef0608111154p24c8dd1cv4c325de42dd9f035@mail.gmail.com> (Scott Laird's message of "Fri, 11 Aug 2006 11:54:15 -0700") References: <03be01c6bd71$a03ec460$0701000a@Aruba> <14b7e5ef0608111154p24c8dd1cv4c325de42dd9f035@mail.gmail.com> Message-ID: "Scott Laird" writes: > We haven't looked at it yet. It's not a high priority, because the > current code works well enough, and I don't really expect to see habtm > disappear in the near future, no matter how little the Rails core > likes it. It is one of those things I'm thinking of, not particularly vigorously yet, but it's definitely on my todo eventually list. > Is there actually an advantage to converting existing code? Cleanliness. -- Piers Cawley http://www.bofh.org.uk/ From trejkaz at trypticon.org Sat Aug 12 19:25:23 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Sun, 13 Aug 2006 09:25:23 +1000 Subject: [typo] Notifications not working, can't figure out why Message-ID: <81B4E35F-12FA-4450-8F8F-DBA17F1DCED2@trypticon.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi people. I've synced the current trunk into my local branch so that I can merge in my local changes and see about updating my real blog. But during testing I found an issue which is a bit of a show-stopper: notifications are never sent, not for articles nor comments. Now, this isn't a Jabber issue like the Jabber4R issue because I'm running with my local modifications to use XMPP4R instead. I tested that part and it worked as expected. So it rules out the only code I've modified which was suspicious. I then went into the console and manually created a comment using: Article.find_first.comments.create!(:author => 'Tester', :body => 'Test body') When this is run, the notifications are sent out correctly, so I now know it isn't an issue with the model. So that leaves an issue with the controller, but I'm not sure how to investigate this at the moment. All the functional tests pass, of course, as is usually the case with strange issues like this. I scattered some breakpoints and debugging statements all over the place and discovered that Content#send_notifications method isn't called when using the frontend, but _is_ called when using the console. And that's as far as I get -- I can't figure out who's supposed to call that method nor why they're not calling it. So I'm looking for some tips. What does the frontend do that's different from how I would manually create an article or a comment? TX -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFE3mNruMe8iwN+6nMRAo7zAJ4kpoFOiqjqTjdY8KoZNWta14rH3QCdG73N xGS1VqJvxUi8AOq+mxTZWIU= =Fbef -----END PGP SIGNATURE----- From uzair at nairang.org Sat Aug 12 20:04:43 2006 From: uzair at nairang.org (Syed Uzair Aqeel) Date: Sun, 13 Aug 2006 01:04:43 +0100 Subject: [typo] Photoblogging Message-ID: <20060813000447.58AB510E806@randymail-a10.dreamhost.com> Hi, Is anyone using Typo for photo-blogging? I've noticed a bunch of blogs using the Flickr sidebar and filter very nicely, but I'd like to host my pictures myself. Since generating thumbnails is something I have to do manually (I generally use the admin interface for posting, though I plan to modify Tanjunka to do thumbnails at some point), I'm curious to hear other people's experiences, particularly on which themes work well with un-resized pics (I'm thinking 400x400-ish). Thanks, Uzair From tim at digital-achievement.com Sat Aug 12 21:30:24 2006 From: tim at digital-achievement.com (Timothy Freund) Date: Sat, 12 Aug 2006 20:30:24 -0500 Subject: [typo] More medium/long term Typo goals In-Reply-To: References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <20060802190245.GD12822@rupee.dreamhost.com> Message-ID: <44DE80B0.2040503@digital-achievement.com> As a follow up to this goal, I'd like to see better error handling in the sidebars. I'll help too -- I just wanted to talk over the issue before writing a bunch of code in seclusion. I was recently contacted by someone who was having trouble configuring their sidebars, and most of the problems came down to bad input values. He was frustrated because the values were accepted, but nothing was displayed in his blog, and no warnings appeared in either the admin console or the server logs. After looking at some of the RSS based sidebar plugins (Flickr, delicious, etc), there's a lot code that looks like it was copy-and-pasted. I've started figuring out how to refactor the common RSS code into one place. Sometime in the next few days I will have collected enough coding time to have a patch available for review. Piers, let me know how I can help best without stepping all over your toes. Thanks, Tim Piers Cawley wrote: > Kevin Ballard writes: > > >>Just a heads up, while I do intend on getting back into working on new >>Typo development (I know I've been doing barely anything lately), but >>for the next 3 weeks or so I'm going to be away (WWDC, vacation, etc). I >>may be on #typo a little, but a lot of the time I won't be around. I'll >>still respond to email, though. > > > Continuing that theme, I'm off to Sidmouth Folk Festival 'til Tuesday, > when I'll stick my nose in at the London Ruby Users Group > meeting. Expect me back on the Typo horse on Thursday or Friday next > week when I may be starting what I'm thinking of as a 'new sidebars' > branch with a todo list that goes something like: > > 1. Get rid of all the current sidebars and any infrastructure that > supports them, simply support the current helper method for > displaying them (I don't want to break my themes, but the helper > will probably just respond with 'this space intentionally left > blank' for the time being. > > 2. Experiment with various ways of providing sidebars that don't use > components to do their magic. Which thought is, even now, hurting > my head. > > 3. Work out which one is least horrible and most testable. > > 4. Commit it to the trunk, port our currently supported sidebars to > the new scheme and make everyone who has their own sidebars to > support cry. > > 5. Wait 'til everyone has stopped crying and ported their sidebars > > 6. Write a handy adapter that makes old style sidebars work with the > new scheme. > > Please note that steps 2 through 6 are *highly* speculative. > -- Timothy Freund http://digital-achievement.com http://edodyssey.com From pdcawley at bofh.org.uk Sun Aug 13 02:24:54 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 13 Aug 2006 07:24:54 +0100 Subject: [typo] More medium/long term Typo goals In-Reply-To: <44DE80B0.2040503@digital-achievement.com> (Timothy Freund's message of "Sat, 12 Aug 2006 20:30:24 -0500") References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <20060802190245.GD12822@rupee.dreamhost.com> <44DE80B0.2040503@digital-achievement.com> Message-ID: Timothy Freund writes: > As a follow up to this goal, I'd like to see better error handling in > the sidebars. I'll help too -- I just wanted to talk over the issue > before writing a bunch of code in seclusion. > > I was recently contacted by someone who was having trouble configuring > their sidebars, and most of the problems came down to bad input values. > He was frustrated because the values were accepted, but nothing was > displayed in his blog, and no warnings appeared in either the admin > console or the server logs. > > After looking at some of the RSS based sidebar plugins (Flickr, > delicious, etc), there's a lot code that looks like it was > copy-and-pasted. I've started figuring out how to refactor the common > RSS code into one place. Sometime in the next few days I will have > collected enough coding time to have a patch available for review. > > Piers, let me know how I can help best without stepping all over > your toes. Well, I'm planning on rejigging the way sidebars work to eliminate the controller, but I'm also aiming to make the change in such a way that most of the code that's now in controllers can port over to a model in a fairly straightforward fashion. So, I'd suggest continuing with the work you're doing and I'll incorporate it when the time comes. I've got some more work to do on the feedback page (better filtering of what's there) before I start in on sidebars. -- Piers Cawley http://www.bofh.org.uk/ From scott at sigkill.org Sun Aug 13 03:25:24 2006 From: scott at sigkill.org (Scott Laird) Date: Sun, 13 Aug 2006 00:25:24 -0700 Subject: [typo] More medium/long term Typo goals In-Reply-To: References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <20060802190245.GD12822@rupee.dreamhost.com> <44DE80B0.2040503@digital-achievement.com> Message-ID: <14b7e5ef0608130025r50ce5a3fq7f70e803165e417d@mail.gmail.com> FWIW, I'm working on URL cleanups in a local branch. I'm throwing out a lot of code :-). Scott From pdcawley at bofh.org.uk Sun Aug 13 03:35:26 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 13 Aug 2006 08:35:26 +0100 Subject: [typo] More medium/long term Typo goals In-Reply-To: <14b7e5ef0608130025r50ce5a3fq7f70e803165e417d@mail.gmail.com> (Scott Laird's message of "Sun, 13 Aug 2006 00:25:24 -0700") References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <20060802190245.GD12822@rupee.dreamhost.com> <44DE80B0.2040503@digital-achievement.com> <14b7e5ef0608130025r50ce5a3fq7f70e803165e417d@mail.gmail.com> Message-ID: "Scott Laird" writes: > FWIW, I'm working on URL cleanups in a local branch. I'm throwing out > a lot of code :-). Yay! We love it when we throw out code. As an aside, what do you say to the ideas coming from the RESTful crowd of getting rid of 'admin' controllers and moving their actions up into top level resource controllers with protected actions. Personally, I find the idea rather compelling, but I haven't thought it all the way through yet. -- Piers Cawley http://www.bofh.org.uk/ From paulrbrown at gmail.com Sun Aug 13 04:48:28 2006 From: paulrbrown at gmail.com (Paul R Brown) Date: Sun, 13 Aug 2006 01:48:28 -0700 Subject: [typo] Typo's memory footprint In-Reply-To: References: <2fbd26cb0608010603h4f2c76a4q3d898b268764a5f1@mail.gmail.com> <44CF8532.2040001@pobox.com> <44D74D1A.3020708@pobox.com> <14b7e5ef0608070828y7ab7b7bfx2cdd90ce615cc854@mail.gmail.com> Message-ID: <77D915F2-5AF1-41E5-992E-FDB16E500D1A@gmail.com> Steve -- > I posted a follow up showing some more specfic memory hogs. I > haven't been able to get anyone involved with RubyGems to clue me > into why it needs so much memory, yet. Anyone that reads this and > can provide me some insight as the runtime shenanigans of RubyGems > please do leave a comment on my site or feel free to send me an > email directly mocking me :-) Well done. I only recently started having the same issues with TextDrive and went through a similar kind of wander: http://mult.ifario.us/articles/2006/08/13/lo-fi-profiling-typo FWIW, it would be useful to have the ObjectSpace-style profiler integrated into the admin pages as an option. (Click a link, get a snapshot.) --- Paul R Brown paulrbrown at gmail.com http://mult.ifario.us/ From arsptr at internode.on.net Mon Aug 14 09:04:03 2006 From: arsptr at internode.on.net (Alastair Rankine) Date: Mon, 14 Aug 2006 23:04:03 +1000 Subject: [typo] Atom Export Proposal Message-ID: <95BDC4B7-DE8A-43F8-BF0B-BA0D8EDAB8C5@internode.on.net> Typographers, As promised, here is a proposal for the use of Atom as a blog export format: http://girtby.net/offerings/atomexport Note that there is nothing specific to Typo here (*), but I believe it should be implementable in Typo with minimal effort. Comments appreciated. (*) apart from shamelessly stealing the typosphere.org domain for the namespace, hopefully temporary. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060814/6c0e4b2d/attachment.html From scott at sigkill.org Mon Aug 14 09:32:29 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 14 Aug 2006 06:32:29 -0700 Subject: [typo] Atom Export Proposal In-Reply-To: <95BDC4B7-DE8A-43F8-BF0B-BA0D8EDAB8C5@internode.on.net> References: <95BDC4B7-DE8A-43F8-BF0B-BA0D8EDAB8C5@internode.on.net> Message-ID: <14b7e5ef0608140632j172acc8ia6da6413344b9e75@mail.gmail.com> I haven't had time to look over the whole document yet, but I like what I've seen so far. I have a few suggested changes :-). First, I think the content body model is going to cause problems. Here's how you're doing it now: I just wrote this *brilliant Java code*. Have a look! public String getPaula() { return paula; } Can we change this to something like this: I just wrote this *brilliant Java code*. Have a look! public String getPaula() { return paula; } I just wrote this brilliant Java code. Have a look! public String getPaula() { return paula; } Basically, provide both the original format (for importers that understand Markdown) and the processed format (for importers that don't understand the original format). Next, can you rename export:page to export:static or something similar? I'd rather not be *too* Typo-specific :-). Also, how does this represent things like: - per-article trackback/comment open/closed? - extended entries/excerpts/keywords Scott On 8/14/06, Alastair Rankine wrote: > > Typographers, > > As promised, here is a proposal for the use of Atom as a blog export format: > > http://girtby.net/offerings/atomexport > > Note that there is nothing specific to Typo here (*), but I believe it > should be implementable in Typo with minimal effort. > > Comments appreciated. > > (*) apart from shamelessly stealing the typosphere.org domain for the > namespace, hopefully temporary. > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From ernieoporto at gmail.com Mon Aug 14 12:46:36 2006 From: ernieoporto at gmail.com (Ernie Oporto) Date: Mon, 14 Aug 2006 12:46:36 -0400 Subject: [typo] textfilter error in SVN v1219 Message-ID: I upgraded last week to Rails 1.1.6 because of all the security warnings and it has worked OK on my blog running v1004. So, I thought now might be the time to move to a new typo version. On a test server with a clone of my production database, I did "svn update" to bring me to v1219 since I want something v4.0.X. I also did the "rake migrate RAILS_ENV=production" which worked flawlessly. I restarted the server having made sure all old fcgi's were gone in between stop and start. I'm using Azure to be most compatible, but Scribbish also sees the same issue. I still haven't gotten to a 4.0.X version that is completely clean for me. But these two seem to be the last issues... 1. When I then authenticate into blog/admin, I get the following. Is there possibly a gem that might be missing or something known not to migrate from ActionView::TemplateError (uninitialized constant Admin::BaseHelper::TextFilter) on line #125 of app/views/admin/general/index.rhtml: 122:

      Typo supports a number of text filtering options. To add new filters, see the "filters" tab on the toolbar above.

      123:

      124: 127: 128:

      2. Also, there is an article that I can view in a catagory... http://www.swordcery.com/blog/articles/tag/halo but not as an individual article... http://www.swordcery.com/blog/articles/2006/08/13/how-to-mod-halo-pc-beginner-level-2 and no error is produced for that last one. The sidebars and rest are displayed OK. -- Ernie http://www.shokk.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060814/7052ebd7/attachment-0001.html From scott at sigkill.org Mon Aug 14 13:21:03 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 14 Aug 2006 10:21:03 -0700 Subject: [typo] Cleanups for 4.1 Message-ID: <14b7e5ef0608141021t4f483349wa548100cf90492bf@mail.gmail.com> I've been working on some cleanups for 4.1 in a branch, and I wanted to give a heads-up here, so people can scream in terror before I commit it :-). The first change is that blog.url_for now uses blog.canonical_server_url. This means that we don't need a controller to generate URLs any more. Which leads to... - a complete removal of the wacky before/after filter that saves the current controller. - a complete removal of the controller parameter for all of the text filter code - a complete removal of the controller parameter for notifications. - text filters stop being controllers. So, a lot of ugly code goes away. Next, I cleaned up a bunch of helper code. We had at *least* 8 copies of the article permalink generation code, and a pile of redundant ways to do almost everything. So I cleaned up all of it, but this will break out-of-tree themes, filters, and sidebars. First, I added a 'permalink_url' method of all of the model classes that have permalinks. Since it uses blog.url_for, it's static and doesn't depend on any controller code. I then *removed* all of the other permalink generation code--article.location, article_url, blog.url_for(article), and a handful of other localized helpers are all gone. The entire codebase uses article.permalink_url now. I'm working on adding edit_url, delete_url, and feed_url; once those are done about 90% of the url_fors in the main body of Typo will disappear. Since the new URL code is a lot faster then the old code (caching, mostly), this should help performance a bit. And more importantly, it's a lot cleaner. I've also removed a bunch of other helpers--I'll post a list later, but I'm trying to get rid of redundant and outdated helpers. In general, I'm planning on keeping the most direct mechanism and getting rid of the rest. For instance, it's now safe to get rid of article_html/coment_html/page_html and simply use article.html and friends directly. I'm not done yet, but the code is looking *much* cleaner and more direct. I'm removing more code then I'm adding, which is almost always a good thing. The downside of this is that I've probably broken most themes. The changes needed will be pretty trivial, but changes will be needed. This is for 4.1, not 4.0--it won't be released for months, so we'll have time to clean up themes. This probably won't be the last incompatible theme/sidebar/text filter change for 4.1, but we'll have some good things that will make up for it soon--trust us :-). Scott From gpsnospam at gmail.com Mon Aug 14 13:22:30 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Mon, 14 Aug 2006 18:22:30 +0100 Subject: [typo] Fill up your email box in one easy step Message-ID: <1FFA8103-CC0B-4EE5-A7F0-0A93951B6602@gmail.com> I like the 'Ham?' or 'Spam?' filtering, but if you have an established blog and want to limit the list in feedback to 'unconfirmed' then you have to check all comments and confirm they are ham ... ... of course that means you get all the comments emailed to you again (if you have notification turned on). I suspect a sql hack is called for. Is that easy enough to do 'status_confirmed=1' for all comments I currently have (as they are all clear) or is there something tricky in it? Cheers Gary From scott at sigkill.org Mon Aug 14 13:24:58 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 14 Aug 2006 10:24:58 -0700 Subject: [typo] Fill up your email box in one easy step In-Reply-To: <1FFA8103-CC0B-4EE5-A7F0-0A93951B6602@gmail.com> References: <1FFA8103-CC0B-4EE5-A7F0-0A93951B6602@gmail.com> Message-ID: <14b7e5ef0608141024x2bb5a2bfo116c3a88c8dae70c@mail.gmail.com> Er, yeah--we need to fix that. presumed_ham -> ham shouldn't trigger notifications. Scott On 8/14/06, Gary Shewan wrote: > I like the 'Ham?' or 'Spam?' filtering, but if you have an > established blog and want to limit the list in feedback to > 'unconfirmed' then you have to check all comments and confirm they > are ham ... > > ... of course that means you get all the comments emailed to you > again (if you have notification turned on). > > I suspect a sql hack is called for. Is that easy enough to do > 'status_confirmed=1' for all comments I currently have (as they are > all clear) or is there something tricky in it? > > Cheers > > Gary > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From josh at hasmanythrough.com Mon Aug 14 23:49:24 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Mon, 14 Aug 2006 20:49:24 -0700 Subject: [typo] Cleanups for 4.1 In-Reply-To: <14b7e5ef0608141021t4f483349wa548100cf90492bf@mail.gmail.com> References: <14b7e5ef0608141021t4f483349wa548100cf90492bf@mail.gmail.com> Message-ID: On Aug 14, 2006, at 10:21 AM, Scott Laird wrote: > I've been working on some cleanups for 4.1 in a branch, and I wanted > to give a heads-up here, so people can scream in terror before I > commit it :-). This is pretty spiffy. > The downside of this is that I've probably broken most themes. The > changes needed will be pretty trivial, but changes will be needed. > This is for 4.1, not 4.0--it won't be released for months, so we'll > have time to clean up themes. This probably won't be the last > incompatible theme/sidebar/text filter change for 4.1, but we'll have > some good things that will make up for it soon--trust us :-). Since you're targeting a release a few months out, are you going to shoot for Rails 1.2? In other words, are you going to develop it on edge or on 1.1.x/stable? If you're going the 1.2/edge way, you could probably use the RESTful routes to clean things up even more. Also, you can use _path instead of _url, which is like url_for with :path_only => true (i.e. no "http://domain.com" in the html). Rock on! -- Josh Susser http://blog.hasmanythrough.com From tim at digital-achievement.com Tue Aug 15 01:17:19 2006 From: tim at digital-achievement.com (Timothy Freund) Date: Tue, 15 Aug 2006 00:17:19 -0500 Subject: [typo] More medium/long term Typo goals In-Reply-To: References: <14b7e5ef0608020955v7ec44865u9e300714e11c8f79@mail.gmail.com> <20060802190245.GD12822@rupee.dreamhost.com> <44DE80B0.2040503@digital-achievement.com> Message-ID: <44E158DF.8080806@digital-achievement.com> I just filed ticket #1085. The Aggregator object, in addition to RSS 2.0, has basic support of Atom feeds. More importantly it logs errors to the application log so that users have some starting point to work from when dealing with sidebars that won't display. So it is verbose, but hopefully in a constructive way. I included Flickr and 43Things model implementations as examples of how subclassing the Aggregator class works. The Aggregator class has a field called errors. I use that to collect errors that I then look for in the unit tests, but I can also imagine one day exposing those errors in the admin console. If a user was confronted with "Error opening url ($FEED_URL): 404" while configuring a sidebar they will be more likely to fix the problem without becoming frustrated. Any comments or suggestions are very appreciated. Thanks, Tim Piers Cawley wrote: > Timothy Freund writes: > > >>As a follow up to this goal, I'd like to see better error handling in >>the sidebars. I'll help too -- I just wanted to talk over the issue >>before writing a bunch of code in seclusion. >> >>I was recently contacted by someone who was having trouble configuring >>their sidebars, and most of the problems came down to bad input values. >> He was frustrated because the values were accepted, but nothing was >>displayed in his blog, and no warnings appeared in either the admin >>console or the server logs. >> >>After looking at some of the RSS based sidebar plugins (Flickr, >>delicious, etc), there's a lot code that looks like it was >>copy-and-pasted. I've started figuring out how to refactor the common >>RSS code into one place. Sometime in the next few days I will have >>collected enough coding time to have a patch available for review. >> >>Piers, let me know how I can help best without stepping all over >>your toes. > > > Well, I'm planning on rejigging the way sidebars work to eliminate the > controller, but I'm also aiming to make the change in such a way that > most of the code that's now in controllers can port over to a model in > a fairly straightforward fashion. > > So, I'd suggest continuing with the work you're doing and I'll > incorporate it when the time comes. > > I've got some more work to do on the feedback page (better filtering > of what's there) before I start in on sidebars. > -- Timothy Freund http://digital-achievement.com http://edodyssey.com From apple.hater at googlemail.com Tue Aug 15 02:56:37 2006 From: apple.hater at googlemail.com (Fox) Date: Tue, 15 Aug 2006 07:56:37 +0100 Subject: [typo] Running typo in shared hosting Message-ID: <58f472cf0608142356n3a339e3dla490d585a35b7e87@mail.gmail.com> Hi all, i've been trying to get typo running on my webhost (asmallorange), but not having much luck. i can run standard rails apps that have their public directory linked into ~/www, so i know thats working. i've linked the public dir from ~/typo into ~/www, and installed the database schema. trying to view the app in a browser returns a 400 error. i've also tried the following: running dispatch.fcgi: [code] Status: 500 Internal Server Error Content-Type: text/html

      Application error (Apache)

      Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html

      [/code] also tried running "rake migrate" in the typo directory: [code] rake aborted! Mysql::Error: #HY000Can't find file: 'schema_info.MYI' (errno: 2): SELECT version FROM schema_info (See full trace by running task with --trace) [/code] and finally, some output from the typo logs [code] # Logfile created on Tue Aug 15 02:46:50 EDT 2006 by logger.rb/1.5.2.7 allow_concurrency=true Defined connections: {"ActiveRecord::Base"=>#"passy", :database=>"mydatabase", :host=>"localhost", :username=>"myusername", :adapter=>"mysql"}, @adapter_method="mysql_connection">} Active connections: {} Active connection name: ActiveRecord::Base You have a nil object when you didn't expect it! The error occured while evaluating nil.downcase /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/request.rb:18:in `method' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:933:in `log_processing' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:407:in `process_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'/usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.12.5/lib/action_controller/session_management.rb:117:in `process' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:150:in `process_request' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:54:in `process!' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:606:in `each_cgi' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:53:in `process!' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:23:in `process!' public/dispatch.fcgi:24 allow_concurrency=true Defined connections: {"ActiveRecord::Base"=>#"passy", :database=>"mydatabase", :host=>"localhost", :adapter=>"mysql", :username=>"myusername"}, @adapter_method="mysql_connection">} Active connections: {} Active connection name: ActiveRecord::Base SQL (0.000000) Mysql::Error: #42S01Table 'schema_info' already exists: CREATE TABLE schema_info (version int(11)) SQL (0.000000) Mysql::Error: #42S01Table 'schema_info' already exists: CREATE TABLE schema_info (version int(11)) SQL (0.000000) Mysql::Error: #HY000Can't find file: 'schema_info.MYI' (errno: 2): SELECT version FROM schema_info [/code] it looks as though it isn't initialising the database connection properly, but my database.yml looks ok: [code] login: &login adapter: mysql host: localhost username: myusername password: passy development: database: mydatabase <<: *login test: database: mydatabase <<: *login production: database: mydatabase <<: *login [/code] and i can connect to the mysql database with [code] mysql -u myusername -p mydatabase [/code] ----- i'm pretty much stumped - any thoughts? thanks for reading. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060815/f344354f/attachment.html From joshknowles at gmail.com Tue Aug 15 05:05:54 2006 From: joshknowles at gmail.com (Josh Knowles) Date: Tue, 15 Aug 2006 02:05:54 -0700 Subject: [typo] [FATAL] failed to allocate memory Message-ID: I've been having a heck of a time keeping my Typo FCGI sockets up and running. I haven't been able to find much help in the log files other then quite a few "connection refused" and "backend died" error messages. Just a moment ago I was logged into the server while browsing my blog and was given the following error: [FATAL] failed to allocate memory. I haven't seen this on any of the other Rails apps that I've managed deployment on, thus I'm really curious as to if this is a Typo specific error or not. My environment is as follows: Apache -> Lighttpd -> FCGI Sockets (2) Typo 4.0.2 Ruby 1.8.4 TextDrive Shared Hosting Any pointers in the right direction would be appreciated. I'd love to be able to turn off my FCGI restart scripts. Thanks. Josh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060815/5ed2c1cc/attachment.html From rasputnik at gmail.com Tue Aug 15 05:13:27 2006 From: rasputnik at gmail.com (Dick Davies) Date: Tue, 15 Aug 2006 10:13:27 +0100 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: References: Message-ID: <3f1760608150213p553583bai2e82c8b3ec2da1de@mail.gmail.com> You're hitting the resource limits on textdrive. How many fcgi listeners are you running? I've got 2 running (fairly) stably after switching off as much as possible - see http://www.stevelongdo.com/articles/2006/08/04/typo-4-0-and-memory-reduction On 15/08/06, Josh Knowles wrote: > I've been having a heck of a time keeping my Typo FCGI sockets up and > running. I haven't been able to find much help in the log files other then > quite a few "connection refused" and "backend died" error messages. Just a > moment ago I was logged into the server while browsing my blog and was given > the following error: [FATAL] failed to allocate memory. I haven't seen this > on any of the other Rails apps that I've managed deployment on, thus I'm > really curious as to if this is a Typo specific error or not. My > environment is as follows: > > Apache -> Lighttpd -> FCGI Sockets (2) > Typo 4.0.2 > Ruby 1.8.4 > TextDrive Shared Hosting > > Any pointers in the right direction would be appreciated. I'd love to be > able to turn off my FCGI restart scripts. > > Thanks. > > Josh > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > -- Rasputin :: Jack of All Trades - Master of Nuns http://number9.hellooperator.net/ From joshknowles at gmail.com Tue Aug 15 05:35:52 2006 From: joshknowles at gmail.com (Josh Knowles) Date: Tue, 15 Aug 2006 02:35:52 -0700 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: <3f1760608150213p553583bai2e82c8b3ec2da1de@mail.gmail.com> References: <3f1760608150213p553583bai2e82c8b3ec2da1de@mail.gmail.com> Message-ID: On 8/15/06, Dick Davies wrote: > > You're hitting the resource limits on textdrive. How many > fcgi listeners are you running? I thought it might be something like this but was given no log message indicating that my process was being killed. Thanks for the link and the shove in the right direction! Josh -- Josh Knowles joshknowles at gmail.com http://joshknowles.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060815/1cd8bbd3/attachment.html From pdcawley at bofh.org.uk Tue Aug 15 07:01:47 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 15 Aug 2006 12:01:47 +0100 Subject: [typo] Fill up your email box in one easy step In-Reply-To: <14b7e5ef0608141024x2bb5a2bfo116c3a88c8dae70c@mail.gmail.com> (Scott Laird's message of "Mon, 14 Aug 2006 10:24:58 -0700") References: <1FFA8103-CC0B-4EE5-A7F0-0A93951B6602@gmail.com> <14b7e5ef0608141024x2bb5a2bfo116c3a88c8dae70c@mail.gmail.com> Message-ID: "Scott Laird" writes: > Er, yeah--we need to fix that. presumed_ham -> ham shouldn't trigger > notifications. Oops. My bad. Easily fixed though. presumed_ham needs to transition to 'ham' rather than 'just_marked_as_ham' (or whatever I called it). -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Tue Aug 15 07:35:43 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 15 Aug 2006 12:35:43 +0100 Subject: [typo] Fill up your email box in one easy step In-Reply-To: (Piers Cawley's message of "Tue, 15 Aug 2006 12:01:47 +0100") References: <1FFA8103-CC0B-4EE5-A7F0-0A93951B6602@gmail.com> <14b7e5ef0608141024x2bb5a2bfo116c3a88c8dae70c@mail.gmail.com> Message-ID: Piers Cawley writes: > "Scott Laird" writes: > >> Er, yeah--we need to fix that. presumed_ham -> ham shouldn't trigger >> notifications. > > Oops. My bad. Easily fixed though. presumed_ham needs to transition to > 'ham' rather than 'just_marked_as_ham' (or whatever I called it). And fixed. -- Piers Cawley http://www.bofh.org.uk/ From arsptr at internode.on.net Tue Aug 15 07:39:10 2006 From: arsptr at internode.on.net (Alastair Rankine) Date: Tue, 15 Aug 2006 21:39:10 +1000 Subject: [typo] Atom Export Proposal In-Reply-To: <14b7e5ef0608140632j172acc8ia6da6413344b9e75@mail.gmail.com> References: <95BDC4B7-DE8A-43F8-BF0B-BA0D8EDAB8C5@internode.on.net> <14b7e5ef0608140632j172acc8ia6da6413344b9e75@mail.gmail.com> Message-ID: <302F50EE-19D7-4CE9-B977-184ADE146091@internode.on.net> Hey Scott, Thanks for the comments. On 14/08/2006, at 11:32 PM, Scott Laird wrote: > Can we change this to something like this: > > label="Markdown">I just wrote this *brilliant Java code*. Have a look! > > public String getPaula() { > return paula; > } > I just wrote this brilliant Java > code. Have a look! > > public String getPaula() { > return paula; > } > > Basically, provide both the original format (for importers that > understand Markdown) and the processed format (for importers that > don't understand the original format). OK I've thought about this a bit, so let me outline some of the reasoning here, and why I proposed a single representation for the content. I'm assuming that most blog systems are like Typo in that they store a single, canonical, representation of each entry. This is then transformed to HTML (or XHTML, or ... ?) by the blogging engine at run time. Or not, maybe the single representation *is* XHTML. In any case it seems just a consequence of the DRY principle that a single representation is desired. But, if we have two alternative representations for an entry in the export file, it forces the importer *code* to choose which representation is the best match for the target blogging engine. It is not obvious to me that the code will always be able to make this decision in the best manner. Also, it's not obvious whether or not the redundant ("cooked") HTML representation will be "good enough". Lastly, it complicates the job of the importer. I thought it might be simpler for the *exporter* to choose a content format - perhaps with the help of the user - which is deemed to be the most interoperable, and yet closest to the original format. For example, a Typo implementation would probably export in the source Textile/Markdown/whatever, and yet expand all the macros because these are by definition not interoperable. And yet if the user is exporting from one Typo installation to another, they probably don't want to expand these macros, so the decision probably needs to be under user control. I take the view that the user prettymuch always knows what is the right level of translation to be done on the data when moving their data from one system to another. Even in the worst case, namely the user has authored their data in a format that is just not supported at all on the target platform, should it necessarily be the exporter that resolves this problem? It could be an *intermediate* tool that converts the content from one format to another, on behalf of the target platform. For example, a tool that renders all Markdown-formatted content into HTML would be very simple to write and would also achieve the required goal. So despite all the above I'm not totally *against* the idea of supplying multiple representations in the export file, but I do think there are alternatives which should be considered. [On a separate issue, I think it's probably a good idea to include a xml:space="preserve" attribute when using a format where whitespace is signficant.] > Next, can you rename export:page to export:static or something > similar? I'd rather not be *too* Typo-specific :-). They're called pages in Wordpress too so I figured it was universal :) But yes, a good suggestion. > Also, how does this represent things like: > > - per-article trackback/comment open/closed? Good point, will need to add an element for this. It should probably include the trackback URL, also. > - extended entries/excerpts/keywords Keywords are handled by using an which is *not* in the set of categories defined in the . This seems to match Typo's implementation of tags, but I don't know if this is a good idea in general... ? Excerpts are handled using the existing element. Extended entries are a bit trickier. Off the top of my head we could possibly add a tag into the content to indicate the position of the start of the extended text. This corresponds to the "tag" that Wordpress uses. From arsptr at internode.on.net Tue Aug 15 07:49:48 2006 From: arsptr at internode.on.net (Alastair Rankine) Date: Tue, 15 Aug 2006 21:49:48 +1000 Subject: [typo] Cleanups for 4.1 In-Reply-To: <14b7e5ef0608141021t4f483349wa548100cf90492bf@mail.gmail.com> References: <14b7e5ef0608141021t4f483349wa548100cf90492bf@mail.gmail.com> Message-ID: On 15/08/2006, at 3:21 AM, Scott Laird wrote: > I've been working on some cleanups for 4.1 in a branch, and I wanted > to give a heads-up here, so people can scream in terror before I > commit it :-). > > The first change is that blog.url_for now uses > blog.canonical_server_url. This means that we don't need a controller > to generate URLs any more. Which leads to... Not exactly a scream in terror, but... Does this mean that I won't be able to take my production database and run it on a development server (on a different virtual host) without modifying the canonical_server_url? To put it another way, does this work require knowing the server (virtual) hostname or can you do what you have to do using just absolute paths? From pdcawley at bofh.org.uk Tue Aug 15 08:00:42 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 15 Aug 2006 13:00:42 +0100 Subject: [typo] Cleanups for 4.1 In-Reply-To: <14b7e5ef0608141021t4f483349wa548100cf90492bf@mail.gmail.com> (Scott Laird's message of "Mon, 14 Aug 2006 10:21:03 -0700") References: <14b7e5ef0608141021t4f483349wa548100cf90492bf@mail.gmail.com> Message-ID: "Scott Laird" writes: > Next, I cleaned up a bunch of helper code. We had at *least* 8 copies > of the article permalink generation code, and a pile of redundant ways > to do almost everything. So I cleaned up all of it, but this will > break out-of-tree themes, filters, and sidebars. Okay, the sooner we get this into trunk (and a 4.0.x release for that matter) with the 'removed in 4.1' helpers dropping deprecation warnings into the logs the better. We don't have to make the changes yet, we *do* have to warn as early and widely as possible if we're going to go changing public interfaces. (Not something we've been desperately good at I admit) -- Piers Cawley http://www.bofh.org.uk/ From scott at sigkill.org Tue Aug 15 10:45:50 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 15 Aug 2006 07:45:50 -0700 Subject: [typo] Cleanups for 4.1 In-Reply-To: References: <14b7e5ef0608141021t4f483349wa548100cf90492bf@mail.gmail.com> Message-ID: <14b7e5ef0608150745gd56a156y2086d50259c5cd49@mail.gmail.com> On 8/15/06, Piers Cawley wrote: > "Scott Laird" writes: > > > Next, I cleaned up a bunch of helper code. We had at *least* 8 copies > > of the article permalink generation code, and a pile of redundant ways > > to do almost everything. So I cleaned up all of it, but this will > > break out-of-tree themes, filters, and sidebars. > > Okay, the sooner we get this into trunk (and a 4.0.x release for that > matter) with the 'removed in 4.1' helpers dropping deprecation > warnings into the logs the better. We don't have to make the changes > yet, we *do* have to warn as early and widely as possible if we're > going to go changing public interfaces. > > (Not something we've been desperately good at I admit) Yeah. My goal is to get 4.0.3 out tomorrow or Thursday, and then branch 4.0.x. I'll merge my code as soon as possible after that. Scott From pdcawley at bofh.org.uk Tue Aug 15 11:02:01 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 15 Aug 2006 16:02:01 +0100 Subject: [typo] Cleanups for 4.1 In-Reply-To: <14b7e5ef0608150745gd56a156y2086d50259c5cd49@mail.gmail.com> (Scott Laird's message of "Tue, 15 Aug 2006 07:45:50 -0700") References: <14b7e5ef0608141021t4f483349wa548100cf90492bf@mail.gmail.com> <14b7e5ef0608150745gd56a156y2086d50259c5cd49@mail.gmail.com> Message-ID: "Scott Laird" writes: > On 8/15/06, Piers Cawley wrote: >> "Scott Laird" writes: >> >> > Next, I cleaned up a bunch of helper code. We had at *least* 8 copies >> > of the article permalink generation code, and a pile of redundant ways >> > to do almost everything. So I cleaned up all of it, but this will >> > break out-of-tree themes, filters, and sidebars. >> >> Okay, the sooner we get this into trunk (and a 4.0.x release for that >> matter) with the 'removed in 4.1' helpers dropping deprecation >> warnings into the logs the better. We don't have to make the changes >> yet, we *do* have to warn as early and widely as possible if we're >> going to go changing public interfaces. >> >> (Not something we've been desperately good at I admit) > > Yeah. My goal is to get 4.0.3 out tomorrow or Thursday, and then > branch 4.0.x. I'll merge my code as soon as possible after that. Yay! -- Piers Cawley http://www.bofh.org.uk/ From scott at sigkill.org Tue Aug 15 11:41:46 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 15 Aug 2006 08:41:46 -0700 Subject: [typo] Cleanups for 4.1 In-Reply-To: References: <14b7e5ef0608141021t4f483349wa548100cf90492bf@mail.gmail.com> <14b7e5ef0608150745gd56a156y2086d50259c5cd49@mail.gmail.com> Message-ID: <14b7e5ef0608150841ue3a70b0k10079291dfff5e3a@mail.gmail.com> On 8/15/06, Piers Cawley wrote: > "Scott Laird" writes: > > > On 8/15/06, Piers Cawley wrote: > >> "Scott Laird" writes: > >> > >> > Next, I cleaned up a bunch of helper code. We had at *least* 8 copies > >> > of the article permalink generation code, and a pile of redundant ways > >> > to do almost everything. So I cleaned up all of it, but this will > >> > break out-of-tree themes, filters, and sidebars. > >> > >> Okay, the sooner we get this into trunk (and a 4.0.x release for that > >> matter) with the 'removed in 4.1' helpers dropping deprecation > >> warnings into the logs the better. We don't have to make the changes > >> yet, we *do* have to warn as early and widely as possible if we're > >> going to go changing public interfaces. > >> > >> (Not something we've been desperately good at I admit) > > > > Yeah. My goal is to get 4.0.3 out tomorrow or Thursday, and then > > branch 4.0.x. I'll merge my code as soon as possible after that. > > Yay! I know that Rails 1.2 will come with a deprecation system, but I don't want to wait, and I had a couple special things that I wanted to do, anyway, so I whipped one up just now. You flag deprecation like this: def foo_helper(arg) typo_deprecated("Replaced with Article#foo") ... end Under normal circumstances, it logs deprecation warnings to the log. The warnings look like this: Deprecation warning: foo_helper called from app/models/content.rb:31:in `initialize' Replaced with Article#foo Each deprecation line is only logged once; after that they're silently ignored, *EXCEPT* in test mode--when RAILS_ENV==test, deprecations throw exceptions every time. This should make them harder to ignore :-). Scott From joshknowles at gmail.com Tue Aug 15 11:57:19 2006 From: joshknowles at gmail.com (Josh Knowles) Date: Tue, 15 Aug 2006 08:57:19 -0700 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: References: <3f1760608150213p553583bai2e82c8b3ec2da1de@mail.gmail.com> Message-ID: On 8/15/06, Josh Knowles wrote: > > > I thought it might be something like this but was given no log message > indicating that my process was being killed. Thanks for the link and the > shove in the right direction! > So even with the removal of the majority of the components my two processes are still hovering around 42-48meg, is this normal? Josh -- Josh Knowles joshknowles at gmail.com http://joshknowles.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060815/0654997b/attachment-0001.html From scott at sigkill.org Tue Aug 15 12:16:59 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 15 Aug 2006 09:16:59 -0700 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: References: <3f1760608150213p553583bai2e82c8b3ec2da1de@mail.gmail.com> Message-ID: <14b7e5ef0608150916t52d662e5udd30c3c7d5cf86a4@mail.gmail.com> On 8/15/06, Josh Knowles wrote: > On 8/15/06, Josh Knowles wrote: > > I thought it might be something like this but was given no log message > indicating that my process was being killed. Thanks for the link and the > shove in the right direction! > > So even with the removal of the majority of the components my two processes > are still hovering around 42-48meg, is this normal? > > Josh That's still higher then I'd like to see, but it's within the range that people have reported. Scott From scott at sigkill.org Tue Aug 15 12:25:39 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 15 Aug 2006 09:25:39 -0700 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: <14b7e5ef0608150916t52d662e5udd30c3c7d5cf86a4@mail.gmail.com> References: <3f1760608150213p553583bai2e82c8b3ec2da1de@mail.gmail.com> <14b7e5ef0608150916t52d662e5udd30c3c7d5cf86a4@mail.gmail.com> Message-ID: <14b7e5ef0608150925p392f8ba5p8c09bd38e7c36a3@mail.gmail.com> On 8/15/06, Scott Laird wrote: > On 8/15/06, Josh Knowles wrote: > > On 8/15/06, Josh Knowles wrote: > > > I thought it might be something like this but was given no log message > > indicating that my process was being killed. Thanks for the link and the > > shove in the right direction! > > > > So even with the removal of the majority of the components my two processes > > are still hovering around 42-48meg, is this normal? > > > > Josh > > That's still higher then I'd like to see, but it's within the range > that people have reported. ...and having said that, I just checked mine, and I'm seeing 56-62 MB after two days. And, more annoying, it's racked up about 9 hours of CPU time along the way. Admittedly, this is a slow box (Athlon 700 Mhz), and my blog is fairly busy. I'm not focusing on doing a lot of speed or memory improvements with 4.0 right now. I'm going to release 4.0.3 with a couple more bug fixes soon, but after that I'm going to start concentrating on Typo 4.1. One of the big goals for 4.1 is performance; if I find anything big and obvious, then I'll back-port the change to 4.0, but I don't want to experiment with 4.0--that's what 4.1 is for. Scott Scott From joshknowles at gmail.com Tue Aug 15 12:33:26 2006 From: joshknowles at gmail.com (Josh Knowles) Date: Tue, 15 Aug 2006 09:33:26 -0700 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: <14b7e5ef0608150925p392f8ba5p8c09bd38e7c36a3@mail.gmail.com> References: <3f1760608150213p553583bai2e82c8b3ec2da1de@mail.gmail.com> <14b7e5ef0608150916t52d662e5udd30c3c7d5cf86a4@mail.gmail.com> <14b7e5ef0608150925p392f8ba5p8c09bd38e7c36a3@mail.gmail.com> Message-ID: On 8/15/06, Scott Laird wrote: > I'm not focusing on doing a lot of speed or memory improvements with > 4.0 right now. I'm going to release 4.0.3 with a couple more bug > fixes soon, but after that I'm going to start concentrating on Typo > 4.1. One of the big goals for 4.1 is performance; if I find anything > big and obvious, then I'll back-port the change to 4.0, but I don't > want to experiment with 4.0--that's what 4.1 is for. Scott your work on this has been great, please let me know where you need help fixing bugs, writing code/docs or running tests. Josh -- Josh Knowles joshknowles at gmail.com http://joshknowles.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060815/1a7e498c/attachment.html From pdcawley at bofh.org.uk Tue Aug 15 12:37:22 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 15 Aug 2006 17:37:22 +0100 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: <14b7e5ef0608150925p392f8ba5p8c09bd38e7c36a3@mail.gmail.com> (Scott Laird's message of "Tue, 15 Aug 2006 09:25:39 -0700") References: <3f1760608150213p553583bai2e82c8b3ec2da1de@mail.gmail.com> <14b7e5ef0608150916t52d662e5udd30c3c7d5cf86a4@mail.gmail.com> <14b7e5ef0608150925p392f8ba5p8c09bd38e7c36a3@mail.gmail.com> Message-ID: "Scott Laird" writes: > On 8/15/06, Scott Laird wrote: >> On 8/15/06, Josh Knowles wrote: >> > On 8/15/06, Josh Knowles wrote: >> > > I thought it might be something like this but was given no log message >> > indicating that my process was being killed. Thanks for the link and the >> > shove in the right direction! >> > >> > So even with the removal of the majority of the components my two processes >> > are still hovering around 42-48meg, is this normal? >> > >> > Josh >> >> That's still higher then I'd like to see, but it's within the range >> that people have reported. > > ...and having said that, I just checked mine, and I'm seeing 56-62 MB > after two days. And, more annoying, it's racked up about 9 hours of > CPU time along the way. Admittedly, this is a slow box (Athlon 700 > Mhz), and my blog is fairly busy. > > I'm not focusing on doing a lot of speed or memory improvements with > 4.0 right now. I'm going to release 4.0.3 with a couple more bug > fixes soon, but after that I'm going to start concentrating on Typo > 4.1. One of the big goals for 4.1 is performance; if I find anything > big and obvious, then I'll back-port the change to 4.0, but I don't > want to experiment with 4.0--that's what 4.1 is for. I wonder how much affect the new regime of including more things has had on memory usage? In theory we could be far more particular about when we fetch stuff, but then we end up paying with more load on the database server. It's all about the trade offs I'm afraid. -- Piers Cawley http://www.bofh.org.uk/ From steve.longdo at gmail.com Tue Aug 15 13:50:17 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Tue, 15 Aug 2006 12:50:17 -0500 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: References: <3f1760608150213p553583bai2e82c8b3ec2da1de@mail.gmail.com> <14b7e5ef0608150916t52d662e5udd30c3c7d5cf86a4@mail.gmail.com> <14b7e5ef0608150925p392f8ba5p8c09bd38e7c36a3@mail.gmail.com> Message-ID: On TextDrive the profiling code has enough overhead it kills the thread sometimes. I have noticed that the number of Blog objects seems to stack up over time though. I've seen as many 22 instantiated at the same time. Considering that I only have one Blog that seems kind of high. Granted they don't take up much memory themselves, but I wonder if they hold on to arrays of Content objects and prevent them from being garbage collected. I am still digging into it. On 8/15/06, Piers Cawley wrote: > > "Scott Laird" writes: > > > On 8/15/06, Scott Laird wrote: > >> On 8/15/06, Josh Knowles wrote: > >> > On 8/15/06, Josh Knowles wrote: > >> > > I thought it might be something like this but was given no log > message > >> > indicating that my process was being killed. Thanks for the link and > the > >> > shove in the right direction! > >> > > >> > So even with the removal of the majority of the components my two > processes > >> > are still hovering around 42-48meg, is this normal? > >> > > >> > Josh > >> > >> That's still higher then I'd like to see, but it's within the range > >> that people have reported. > > > > ...and having said that, I just checked mine, and I'm seeing 56-62 MB > > after two days. And, more annoying, it's racked up about 9 hours of > > CPU time along the way. Admittedly, this is a slow box (Athlon 700 > > Mhz), and my blog is fairly busy. > > > > I'm not focusing on doing a lot of speed or memory improvements with > > 4.0 right now. I'm going to release 4.0.3 with a couple more bug > > fixes soon, but after that I'm going to start concentrating on Typo > > 4.1. One of the big goals for 4.1 is performance; if I find anything > > big and obvious, then I'll back-port the change to 4.0, but I don't > > want to experiment with 4.0--that's what 4.1 is for. > > I wonder how much affect the new regime of including more things has > had on memory usage? In theory we could be far more particular about > when we fetch stuff, but then we end up paying with more load on the > database server. It's all about the trade offs I'm afraid. > > -- > Piers Cawley > http://www.bofh.org.uk/ > _______________________________________________ > 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/20060815/e2f87c74/attachment.html From scott at sigkill.org Tue Aug 15 14:27:47 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 15 Aug 2006 11:27:47 -0700 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: References: <3f1760608150213p553583bai2e82c8b3ec2da1de@mail.gmail.com> <14b7e5ef0608150916t52d662e5udd30c3c7d5cf86a4@mail.gmail.com> <14b7e5ef0608150925p392f8ba5p8c09bd38e7c36a3@mail.gmail.com> Message-ID: <14b7e5ef0608151127x6199c8d8s927f341e192aaa0f@mail.gmail.com> One thing I'd recommend (if you aren't doing this already) is to build a memory profiler component with an action that dumps your memory profile data. Then you can run zillions of queries without paying the price of the memory profiler per hit, while still having your data always be accessible. If one of these was easily available, then I wouldn't have to write my own when I start working on memory leaks. Hint, hint. Scott On 8/15/06, Steve Longdo wrote: > On TextDrive the profiling code has enough overhead it kills the thread > sometimes. I have noticed that the number of Blog objects seems to stack up > over time though. I've seen as many 22 instantiated at the same time. > Considering that I only have one Blog that seems kind of high. > > Granted they don't take up much memory themselves, but I wonder if they hold > on to arrays of Content objects and prevent them from being garbage > collected. I am still digging into it. > > > On 8/15/06, Piers Cawley wrote: > > "Scott Laird" writes: > > > > > On 8/15/06, Scott Laird wrote: > > >> On 8/15/06, Josh Knowles < joshknowles at gmail.com> wrote: > > >> > On 8/15/06, Josh Knowles wrote: > > >> > > I thought it might be something like this but was given no log > message > > >> > indicating that my process was being killed. Thanks for the link and > the > > >> > shove in the right direction! > > >> > > > >> > So even with the removal of the majority of the components my two > processes > > >> > are still hovering around 42-48meg, is this normal? > > >> > > > >> > Josh > > >> > > >> That's still higher then I'd like to see, but it's within the range > > >> that people have reported. > > > > > > ...and having said that, I just checked mine, and I'm seeing 56-62 MB > > > after two days. And, more annoying, it's racked up about 9 hours of > > > CPU time along the way. Admittedly, this is a slow box (Athlon 700 > > > Mhz), and my blog is fairly busy. > > > > > > I'm not focusing on doing a lot of speed or memory improvements with > > > 4.0 right now. I'm going to release 4.0.3 with a couple more bug > > > fixes soon, but after that I'm going to start concentrating on Typo > > > 4.1. One of the big goals for 4.1 is performance; if I find anything > > > big and obvious, then I'll back-port the change to 4.0, but I don't > > > want to experiment with 4.0--that's what 4.1 is for. > > > > I wonder how much affect the new regime of including more things has > > had on memory usage? In theory we could be far more particular about > > when we fetch stuff, but then we end up paying with more load on the > > database server. It's all about the trade offs I'm afraid. > > > > -- > > Piers Cawley > > http://www.bofh.org.uk/ > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > -- > Thanks, > -Steve > http://www.stevelongdo.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From paulrbrown at gmail.com Tue Aug 15 14:35:40 2006 From: paulrbrown at gmail.com (Paul Brown) Date: Tue, 15 Aug 2006 11:35:40 -0700 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: <14b7e5ef0608151127x6199c8d8s927f341e192aaa0f@mail.gmail.com> References: <3f1760608150213p553583bai2e82c8b3ec2da1de@mail.gmail.com> <14b7e5ef0608150916t52d662e5udd30c3c7d5cf86a4@mail.gmail.com> <14b7e5ef0608150925p392f8ba5p8c09bd38e7c36a3@mail.gmail.com> <14b7e5ef0608151127x6199c8d8s927f341e192aaa0f@mail.gmail.com> Message-ID: <4249453d0608151135i7a2ead1cqa14be2cd8d2db720@mail.gmail.com> On 8/15/06, Scott Laird wrote: > One thing I'd recommend (if you aren't doing this already) is to build > a memory profiler component with an action that dumps your memory > profile data. Then you can run zillions of queries without paying the > price of the memory profiler per hit, while still having your data > always be accessible. > > If one of these was easily available, then I wouldn't have to write my > own when I start working on memory leaks. Hint, hint. Heh. You can get away with something simpler. Do what I did: 1) Add the profile hook as an after filter on the main article controller. 2) Add a class-level variable (@@next_time_to_run). 3) Set an interval at which to run the profile dump. Links to profiling code snippet, etc., are here: http://tinyurl.com/n42nf -- paulrbrown at gmail.com http://mult.ifario.us/ From steve.longdo at gmail.com Tue Aug 15 14:46:08 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Tue, 15 Aug 2006 13:46:08 -0500 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: <4249453d0608151135i7a2ead1cqa14be2cd8d2db720@mail.gmail.com> References: <3f1760608150213p553583bai2e82c8b3ec2da1de@mail.gmail.com> <14b7e5ef0608150916t52d662e5udd30c3c7d5cf86a4@mail.gmail.com> <14b7e5ef0608150925p392f8ba5p8c09bd38e7c36a3@mail.gmail.com> <14b7e5ef0608151127x6199c8d8s927f341e192aaa0f@mail.gmail.com> <4249453d0608151135i7a2ead1cqa14be2cd8d2db720@mail.gmail.com> Message-ID: This is very similar to what I use. Mostly because doing anything better becomes an exercise in a C extension to hook into the Ruby interpreter. Seems like a C heap walker would be smart enough to use for this purpose. Maybe when Apple adds RoR they will make XCode able to profile Ruby on OS X? On 8/15/06, Paul Brown wrote: > > On 8/15/06, Scott Laird wrote: > > One thing I'd recommend (if you aren't doing this already) is to build > > a memory profiler component with an action that dumps your memory > > profile data. Then you can run zillions of queries without paying the > > price of the memory profiler per hit, while still having your data > > always be accessible. > > > > If one of these was easily available, then I wouldn't have to write my > > own when I start working on memory leaks. Hint, hint. > > Heh. You can get away with something simpler. Do what I did: > > 1) Add the profile hook as an after filter on the main article controller. > 2) Add a class-level variable (@@next_time_to_run). > 3) Set an interval at which to run the profile dump. > > Links to profiling code snippet, etc., are here: > > http://tinyurl.com/n42nf > > -- > paulrbrown at gmail.com > http://mult.ifario.us/ > _______________________________________________ > 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/20060815/b7d0d96b/attachment.html From scott at sigkill.org Tue Aug 15 14:46:26 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 15 Aug 2006 11:46:26 -0700 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: <4249453d0608151135i7a2ead1cqa14be2cd8d2db720@mail.gmail.com> References: <3f1760608150213p553583bai2e82c8b3ec2da1de@mail.gmail.com> <14b7e5ef0608150916t52d662e5udd30c3c7d5cf86a4@mail.gmail.com> <14b7e5ef0608150925p392f8ba5p8c09bd38e7c36a3@mail.gmail.com> <14b7e5ef0608151127x6199c8d8s927f341e192aaa0f@mail.gmail.com> <4249453d0608151135i7a2ead1cqa14be2cd8d2db720@mail.gmail.com> Message-ID: <14b7e5ef0608151146k3d23a338t425f38dd6fe56d74@mail.gmail.com> On 8/15/06, Paul Brown wrote: > On 8/15/06, Scott Laird wrote: > > One thing I'd recommend (if you aren't doing this already) is to build > > a memory profiler component with an action that dumps your memory > > profile data. Then you can run zillions of queries without paying the > > price of the memory profiler per hit, while still having your data > > always be accessible. > > > > If one of these was easily available, then I wouldn't have to write my > > own when I start working on memory leaks. Hint, hint. > > Heh. You can get away with something simpler. Do what I did: > > 1) Add the profile hook as an after filter on the main article controller. > 2) Add a class-level variable (@@next_time_to_run). > 3) Set an interval at which to run the profile dump. > > Links to profiling code snippet, etc., are here: > > http://tinyurl.com/n42nf Cool. Personally, I'd rather be able to trigger it on-demand, but the two approaches are only a couple minutes apart from each other :-). Scott From paulrbrown at gmail.com Tue Aug 15 14:48:54 2006 From: paulrbrown at gmail.com (Paul Brown) Date: Tue, 15 Aug 2006 11:48:54 -0700 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: References: <14b7e5ef0608150916t52d662e5udd30c3c7d5cf86a4@mail.gmail.com> <14b7e5ef0608150925p392f8ba5p8c09bd38e7c36a3@mail.gmail.com> <14b7e5ef0608151127x6199c8d8s927f341e192aaa0f@mail.gmail.com> <4249453d0608151135i7a2ead1cqa14be2cd8d2db720@mail.gmail.com> Message-ID: <4249453d0608151148v7b64ee02y10250636213779f@mail.gmail.com> On 8/15/06, Steve Longdo wrote: > Seems like a C heap walker would be smart enough to use for this purpose. > Maybe when Apple adds RoR they will make XCode able to profile Ruby on OS X? DTrace is coming with Leopard. <> -- paulrbrown at gmail.com http://mult.ifario.us/ From scott at sigkill.org Tue Aug 15 14:51:43 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 15 Aug 2006 11:51:43 -0700 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: <4249453d0608151148v7b64ee02y10250636213779f@mail.gmail.com> References: <14b7e5ef0608150916t52d662e5udd30c3c7d5cf86a4@mail.gmail.com> <14b7e5ef0608150925p392f8ba5p8c09bd38e7c36a3@mail.gmail.com> <14b7e5ef0608151127x6199c8d8s927f341e192aaa0f@mail.gmail.com> <4249453d0608151135i7a2ead1cqa14be2cd8d2db720@mail.gmail.com> <4249453d0608151148v7b64ee02y10250636213779f@mail.gmail.com> Message-ID: <14b7e5ef0608151151m2d2e4237ke2f89024f620ed05@mail.gmail.com> On 8/15/06, Paul Brown wrote: > On 8/15/06, Steve Longdo wrote: > > Seems like a C heap walker would be smart enough to use for this purpose. > > Maybe when Apple adds RoR they will make XCode able to profile Ruby on OS X? > > DTrace is coming with Leopard. <> I kind of doubt that dtrace will be very useful in debugging memory use inside of Ruby code--the interpreter will probably swizzle things enough to screw up dtrace. OTOH, it'll probably be nice for I/O work... Scott From rasputnik at gmail.com Tue Aug 15 15:02:34 2006 From: rasputnik at gmail.com (Dick Davies) Date: Tue, 15 Aug 2006 20:02:34 +0100 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: <14b7e5ef0608151151m2d2e4237ke2f89024f620ed05@mail.gmail.com> References: <14b7e5ef0608150916t52d662e5udd30c3c7d5cf86a4@mail.gmail.com> <14b7e5ef0608150925p392f8ba5p8c09bd38e7c36a3@mail.gmail.com> <14b7e5ef0608151127x6199c8d8s927f341e192aaa0f@mail.gmail.com> <4249453d0608151135i7a2ead1cqa14be2cd8d2db720@mail.gmail.com> <4249453d0608151148v7b64ee02y10250636213779f@mail.gmail.com> <14b7e5ef0608151151m2d2e4237ke2f89024f620ed05@mail.gmail.com> Message-ID: <3f1760608151202m684e2c06q89ea7169e2306f9a@mail.gmail.com> On 15/08/06, Scott Laird wrote: > I kind of doubt that dtrace will be very useful in debugging memory > use inside of Ruby code--the interpreter will probably swizzle things > enough to screw up dtrace. OTOH, it'll probably be nice for I/O > work... Dtrace has high level probe providers as well as the kernel level stuff - it's not like strace or truss, you get to monitor activity from top-level right down to the internal kernel methods. http://blogs.sun.com/roller/page/bmc?entry=dtrace_on_rails Haven't run typo on opensolaris yet - has anyone else got it working? -- Rasputin :: Jack of All Trades - Master of Nuns http://number9.hellooperator.net/ From pdcawley at bofh.org.uk Tue Aug 15 15:06:17 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 15 Aug 2006 20:06:17 +0100 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: (Steve Longdo's message of "Tue, 15 Aug 2006 12:50:17 -0500") References: <3f1760608150213p553583bai2e82c8b3ec2da1de@mail.gmail.com> <14b7e5ef0608150916t52d662e5udd30c3c7d5cf86a4@mail.gmail.com> <14b7e5ef0608150925p392f8ba5p8c09bd38e7c36a3@mail.gmail.com> Message-ID: "Steve Longdo" writes: > On TextDrive the profiling code has enough overhead it kills the thread > sometimes. I have noticed that the number of Blog objects seems to stack up > over time though. I've seen as many 22 instantiated at the same time. > Considering that I only have one Blog that seems kind of high. Every so often I think "I really should rewrite ActiveRecord so that there's only one instance of given object in memory at any one time." And then I remember what a pain in the arse it can be to sort that out. > Granted they don't take up much memory themselves, but I wonder if they hold > on to arrays of Content objects and prevent them from being garbage > collected. I am still digging into it. If they're not disappearing it's because something permanent is holding a link to them, which is unlikely to be a content object. Presumably it's possible to write something to do an objectspace walk and find all the objects linking to your multiple blog instances. -- Piers Cawley http://www.bofh.org.uk/ From scott at sigkill.org Tue Aug 15 15:20:01 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 15 Aug 2006 12:20:01 -0700 Subject: [typo] [FATAL] failed to allocate memory In-Reply-To: References: <3f1760608150213p553583bai2e82c8b3ec2da1de@mail.gmail.com> <14b7e5ef0608150916t52d662e5udd30c3c7d5cf86a4@mail.gmail.com> <14b7e5ef0608150925p392f8ba5p8c09bd38e7c36a3@mail.gmail.com> Message-ID: <14b7e5ef0608151220n535eee80o14b413f17a1b4e@mail.gmail.com> On 8/15/06, Piers Cawley wrote: > "Steve Longdo" writes: > > > On TextDrive the profiling code has enough overhead it kills the thread > > sometimes. I have noticed that the number of Blog objects seems to stack up > > over time though. I've seen as many 22 instantiated at the same time. > > Considering that I only have one Blog that seems kind of high. > > Every so often I think "I really should rewrite ActiveRecord so that > there's only one instance of given object in memory at any one time." > > And then I remember what a pain in the arse it can be to sort that > out. If you look at our SQL traces, you'll see that we can create a huge number of Blog objects per-hit. So it's possible that 22 isn't really a leak. I suspect that I've fixed this in my 4.1 tree, but I haven't tested that part yet. I'm still busy deprecating old helpers. Scott From tom at degrunt.nl Wed Aug 16 07:27:36 2006 From: tom at degrunt.nl (Tom de Grunt) Date: Wed, 16 Aug 2006 13:27:36 +0200 Subject: [typo] Website offline? Message-ID: <7F6048A9-5DAA-4E4E-A04A-E1B293183F6C@degrunt.nl> Anyone know what happened to www.typosphere.org? Tom From drcforbin at gmail.com Wed Aug 16 09:44:03 2006 From: drcforbin at gmail.com (Ryan Williams) Date: Wed, 16 Aug 2006 09:44:03 -0400 Subject: [typo] Website offline? In-Reply-To: <7F6048A9-5DAA-4E4E-A04A-E1B293183F6C@degrunt.nl> References: <7F6048A9-5DAA-4E4E-A04A-E1B293183F6C@degrunt.nl> Message-ID: That's the way it's always been. Coming soon. On 8/16/06, Tom de Grunt wrote: > Anyone know what happened to www.typosphere.org? > > Tom > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From tom at degrunt.nl Wed Aug 16 09:52:56 2006 From: tom at degrunt.nl (Tom de Grunt) Date: Wed, 16 Aug 2006 15:52:56 +0200 Subject: [typo] Website offline? In-Reply-To: References: <7F6048A9-5DAA-4E4E-A04A-E1B293183F6C@degrunt.nl> Message-ID: Coming soon I know, I was expecting to see that, but instead saw the uptime of some server. It seems to be fixed now though. Thanks, Tom On Aug 16, 2006, at 3:44 PM, Ryan Williams wrote: > That's the way it's always been. Coming soon. > > On 8/16/06, Tom de Grunt wrote: >> Anyone know what happened to www.typosphere.org? >> >> Tom >> >> _______________________________________________ >> 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 linda at innovatesolutions.com Wed Aug 16 10:16:19 2006 From: linda at innovatesolutions.com (Linda Derezinski) Date: Wed, 16 Aug 2006 10:16:19 -0400 Subject: [typo] Website offline? In-Reply-To: Message-ID: Tom, Your not going crazy, this morning I also saw the uptime of the server page instead of the "coming soon page". -Linda On 8/16/06 9:52 AM, "Tom de Grunt" wrote: > Coming soon I know, I was expecting to see that, but instead saw the > uptime of some server. > It seems to be fixed now though. > > Thanks, > Tom > > On Aug 16, 2006, at 3:44 PM, Ryan Williams wrote: > >> That's the way it's always been. Coming soon. >> >> On 8/16/06, Tom de Grunt wrote: >>> Anyone know what happened to www.typosphere.org? >>> >>> Tom >>> >>> _______________________________________________ >>> Typo-list mailing list >>> Typo-list at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/typo-list >>> >> _______________________________________________ >> Typo-list mailing list >> Typo-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From typo at rasga.co.uk Wed Aug 16 10:21:39 2006 From: typo at rasga.co.uk (Neil Houston) Date: Wed, 16 Aug 2006 15:21:39 +0100 Subject: [typo] SubCategories References: <9BCDA305-0DFC-4E95-872F-08108617C0FF@kiteatb.co.uk> Message-ID: <05D381CD-F954-439D-BD8D-C08F906E03A6@rasga.co.uk> > > Is it possible to have SubCats? > > Or is it in the roadmap (only saw plans for v4, and obv we have > passed that) > > Cheers > Neil From remi at cherrypy.org Wed Aug 16 10:25:27 2006 From: remi at cherrypy.org (Remi Delon) Date: Wed, 16 Aug 2006 15:25:27 +0100 Subject: [typo] ANN (Screencast): Rails and Typo screencast at WebFaction Message-ID: <02a101c6c13f$d2dc6f40$0100a8c0@REMI> Hello everyone, WebFaction have just released a screencast demo showing a step by step installation of a Typo blog on their servers. The 14 minute screencast shows how to: - Install a default Rails application using our control panel - Link your application to your domain using our control panel - Create a database using the control panel - SSH into your shell account - Replace the default Rails project with your Typo blog - Install some additional gems (required by Typo) - Configure your Typo application - Restart your Mongrel server - Play with your new blog ! The screencast is available at: http://blog.webfaction.com/rails-and-typo-screencast Remi. http://www.webfaction.com - Hosting for an agile web From scott at sigkill.org Wed Aug 16 10:29:50 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 16 Aug 2006 07:29:50 -0700 Subject: [typo] SubCategories In-Reply-To: <05D381CD-F954-439D-BD8D-C08F906E03A6@rasga.co.uk> References: <9BCDA305-0DFC-4E95-872F-08108617C0FF@kiteatb.co.uk> <05D381CD-F954-439D-BD8D-C08F906E03A6@rasga.co.uk> Message-ID: <14b7e5ef0608160729x6046cf7bge9e40de7f57320@mail.gmail.com> On 8/16/06, Neil Houston wrote: > > > > Is it possible to have SubCats? > > > > Or is it in the roadmap (only saw plans for v4, and obv we have > > passed that) I've never seen a good explanation of why anyone would care about subcategories? Can you explain them, how they differ from our current category system, and what you'd use them for? Scott From typo at rasga.co.uk Wed Aug 16 10:39:03 2006 From: typo at rasga.co.uk (Neil Houston) Date: Wed, 16 Aug 2006 15:39:03 +0100 Subject: [typo] SubCategories In-Reply-To: <14b7e5ef0608160729x6046cf7bge9e40de7f57320@mail.gmail.com> References: <9BCDA305-0DFC-4E95-872F-08108617C0FF@kiteatb.co.uk> <05D381CD-F954-439D-BD8D-C08F906E03A6@rasga.co.uk> <14b7e5ef0608160729x6046cf7bge9e40de7f57320@mail.gmail.com> Message-ID: Ok, Say i'm bloggin about my life, so work, home, travel etc Say i go travelling for 6 months and hit 5 countries, I'd like to be able to have those as categories (that appear when hit travel eg) Travel - -Thailand -Aussie -ETC Rather than having to create them and place them in my main category list as this would mean yet more categories, Also can help people to view just that info rather than using search etc, On 16 Aug 2006, at 15:29, Scott Laird wrote: > On 8/16/06, Neil Houston wrote: >>> >>> Is it possible to have SubCats? >>> >>> Or is it in the roadmap (only saw plans for v4, and obv we have >>> passed that) > > I've never seen a good explanation of why anyone would care about > subcategories? Can you explain them, how they differ from our current > category system, and what you'd use them for? > > > Scott > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From jake at whoisjake.com Wed Aug 16 10:44:57 2006 From: jake at whoisjake.com (Jake Good) Date: Wed, 16 Aug 2006 09:44:57 -0500 Subject: [typo] SubCategories In-Reply-To: References: <9BCDA305-0DFC-4E95-872F-08108617C0FF@kiteatb.co.uk> <05D381CD-F954-439D-BD8D-C08F906E03A6@rasga.co.uk> <14b7e5ef0608160729x6046cf7bge9e40de7f57320@mail.gmail.com> Message-ID: <44E32F69.8090209@whoisjake.com> Why not have those as top level categories and then tag it with "travel" .... or do the opposite and have a travel category and tag each post with the destination? I think the tag + category combo is enough (IMHO) Neil Houston wrote: > Ok, > > Say i'm bloggin about my life, so work, home, travel etc > > Say i go travelling for 6 months and hit 5 countries, > > I'd like to be able to have those as categories (that appear when hit > travel eg) > > Travel - > -Thailand > -Aussie > -ETC > > Rather than having to create them and place them in my main category > list as this would mean yet more categories, > > Also can help people to view just that info rather than using search > etc, > > > On 16 Aug 2006, at 15:29, Scott Laird wrote: > > >> On 8/16/06, Neil Houston wrote: >> >>>> Is it possible to have SubCats? >>>> >>>> Or is it in the roadmap (only saw plans for v4, and obv we have >>>> passed that) >>>> >> I've never seen a good explanation of why anyone would care about >> subcategories? Can you explain them, how they differ from our current >> category system, and what you'd use them for? >> >> >> Scott >> _______________________________________________ >> 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 typo at rasga.co.uk Wed Aug 16 11:17:50 2006 From: typo at rasga.co.uk (Neil Houston) Date: Wed, 16 Aug 2006 16:17:50 +0100 Subject: [typo] SubCategories In-Reply-To: <44E32F69.8090209@whoisjake.com> References: <9BCDA305-0DFC-4E95-872F-08108617C0FF@kiteatb.co.uk> <05D381CD-F954-439D-BD8D-C08F906E03A6@rasga.co.uk> <14b7e5ef0608160729x6046cf7bge9e40de7f57320@mail.gmail.com> <44E32F69.8090209@whoisjake.com> Message-ID: <2C042D21-358A-41E2-A2E1-7B4F12EE8E34@rasga.co.uk> It might work but not sure about the tags, might see how it goes with the big tag word thing (whats it called cloud) Currently experiencing issues with my blog its just timedout about 5 times over the day, odd! On 16 Aug 2006, at 15:44, Jake Good wrote: > Why not have those as top level categories and then tag it with > "travel" > .... or do the opposite and have a travel category and tag each post > with the destination? > > I think the tag + category combo is enough (IMHO) > > Neil Houston wrote: >> Ok, >> >> Say i'm bloggin about my life, so work, home, travel etc >> >> Say i go travelling for 6 months and hit 5 countries, >> >> I'd like to be able to have those as categories (that appear when hit >> travel eg) >> >> Travel - >> -Thailand >> -Aussie >> -ETC >> >> Rather than having to create them and place them in my main category >> list as this would mean yet more categories, >> >> Also can help people to view just that info rather than using search >> etc, >> >> >> On 16 Aug 2006, at 15:29, Scott Laird wrote: >> >> >>> On 8/16/06, Neil Houston wrote: >>> >>>>> Is it possible to have SubCats? >>>>> >>>>> Or is it in the roadmap (only saw plans for v4, and obv we have >>>>> passed that) >>>>> >>> I've never seen a good explanation of why anyone would care about >>> subcategories? Can you explain them, how they differ from our >>> current >>> category system, and what you'd use them for? >>> >>> >>> Scott >>> _______________________________________________ >>> Typo-list mailing list >>> Typo-list at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/typo-list >>> >>> >>> >> >> _______________________________________________ >> Typo-list mailing list >> Typo-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> >> > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From drcforbin at gmail.com Wed Aug 16 11:24:51 2006 From: drcforbin at gmail.com (Ryan Williams) Date: Wed, 16 Aug 2006 11:24:51 -0400 Subject: [typo] Website offline? In-Reply-To: References: Message-ID: Sounds more informative / useful than the normal 'coming soon' page... On 8/16/06, Linda Derezinski wrote: > Tom, > > Your not going crazy, this morning I also saw the uptime of the server page > instead of the "coming soon page". > -Linda > > > On 8/16/06 9:52 AM, "Tom de Grunt" wrote: > > > Coming soon I know, I was expecting to see that, but instead saw the > > uptime of some server. > > It seems to be fixed now though. > > > > Thanks, > > Tom > > > > On Aug 16, 2006, at 3:44 PM, Ryan Williams wrote: > > > >> That's the way it's always been. Coming soon. > >> > >> On 8/16/06, Tom de Grunt wrote: > >>> Anyone know what happened to www.typosphere.org? > >>> > >>> Tom > >>> > >>> _______________________________________________ > >>> Typo-list mailing list > >>> Typo-list at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/typo-list > >>> > >> _______________________________________________ > >> Typo-list mailing list > >> Typo-list at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/typo-list > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Wed Aug 16 11:28:23 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 16 Aug 2006 08:28:23 -0700 Subject: [typo] memory profiling Message-ID: <14b7e5ef0608160828k289670f1y66c9b7e1422c8892@mail.gmail.com> I'm doing a bit of memory testing in my 4.1 tree, and I haven't found anything all *that* exciting yet. I'm using a objectspace profiler by Ryan Davis, lightly modified to produce a bit more info. Two things seem obvious: 1. Cached hits don't leak anything. The total number of objects per type in the system doesn't change at all . 2. Uncached hits leak 1-3 strings per page. I haven't tested admin yet. Here's the profiler. Start it from environment.rb and it'll log to a file. class MemoryProfiler def self.start(delay=10) Thread.new do prev = Hash.new(0) curr = Hash.new(0) delta = Hash.new(0) file = File.open('log/memory_profiler.log','w') loop do begin GC.start curr.clear ObjectSpace.each_object do |o| curr[o.class] += 1 #Marshal.dump(o).size rescue 1 end delta.clear (curr.keys + delta.keys).uniq.each do |k,v| delta[k] = curr[k]-prev[k] end file.puts "Top 20" delta.sort_by { |k,v| -v.abs }[0..19].sort_by { |k,v| -v}.each do |k,v| file.printf "%+5d: %s (%d)\n", v, k.name, curr[k] unless v == 0 end file.flush delta.clear prev.clear prev.update curr rescue Exception => err STDERR.puts "** memory_profiler error: #{err}" end sleep delay end end end end From linda at innovatesolutions.com Wed Aug 16 12:03:45 2006 From: linda at innovatesolutions.com (Linda Derezinski) Date: Wed, 16 Aug 2006 12:03:45 -0400 Subject: [typo] Cache and Mongrel Rails In-Reply-To: <14b7e5ef0608160828k289670f1y66c9b7e1422c8892@mail.gmail.com> Message-ID: Anyone using Mongrel Rails with Typo? We ended up having to turn off caching to get it to work correctly. Anyone else have some insight? -Linda From scott at sigkill.org Wed Aug 16 12:06:57 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 16 Aug 2006 09:06:57 -0700 Subject: [typo] Cache and Mongrel Rails In-Reply-To: References: <14b7e5ef0608160828k289670f1y66c9b7e1422c8892@mail.gmail.com> Message-ID: <14b7e5ef0608160906q18b3925w10c0b3e2b87ed32e@mail.gmail.com> It's worked fine for me in testing. Which version of Typo, and what do you mean by "work correctly"? Scott On 8/16/06, Linda Derezinski wrote: > > Anyone using Mongrel Rails with Typo? > > We ended up having to turn off caching to get it to work correctly. Anyone > else have some insight? > > -Linda > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From pdcawley at bofh.org.uk Wed Aug 16 12:12:56 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Wed, 16 Aug 2006 17:12:56 +0100 Subject: [typo] Website offline? In-Reply-To: (Ryan Williams's message of "Wed, 16 Aug 2006 11:24:51 -0400") References: Message-ID: "Ryan Williams" writes: > Sounds more informative / useful than the normal 'coming soon' > page... Heh. A matter of tuits I'm afraid. We've been meaning to stick a devopment/announce blog up there for... um... pretty much since we got the host, but we never get around to it. Hackers not marketers, you see? -- Piers Cawley http://www.bofh.org.uk/ From typo at rasga.co.uk Wed Aug 16 12:11:42 2006 From: typo at rasga.co.uk (Neil Houston) Date: Wed, 16 Aug 2006 17:11:42 +0100 Subject: [typo] Tag - Ticket Addition Message-ID: <76D5FA2B-66AD-4446-AD9A-8349FAADC6A0@rasga.co.uk> Tried to add this as a ticket but akismet rejected me as spam? " If you publish an article, and then later go and add a tag to it then it does not show up (even when using the tag sidebar- it shows up there but you get a no articles found message) When youse that tag on a freshly created article then it is found. Also is it possible to have the common tag list show up in creation page? " From nikanorov at gmail.com Wed Aug 16 12:18:10 2006 From: nikanorov at gmail.com (Andrey Nikanorov) Date: Wed, 16 Aug 2006 20:18:10 +0400 Subject: [typo] SubCategories In-Reply-To: <44E32F69.8090209@whoisjake.com> References: <9BCDA305-0DFC-4E95-872F-08108617C0FF@kiteatb.co.uk> <05D381CD-F954-439D-BD8D-C08F906E03A6@rasga.co.uk> <14b7e5ef0608160729x6046cf7bge9e40de7f57320@mail.gmail.com> <44E32F69.8090209@whoisjake.com> Message-ID: I think just only tag is enough! =) On 8/16/06, Jake Good wrote: > Why not have those as top level categories and then tag it with "travel" > .... or do the opposite and have a travel category and tag each post > with the destination? > > I think the tag + category combo is enough (IMHO) > > Neil Houston wrote: > > Ok, > > > > Say i'm bloggin about my life, so work, home, travel etc > > > > Say i go travelling for 6 months and hit 5 countries, > > > > I'd like to be able to have those as categories (that appear when hit > > travel eg) > > > > Travel - > > -Thailand > > -Aussie > > -ETC > > > > Rather than having to create them and place them in my main category > > list as this would mean yet more categories, > > > > Also can help people to view just that info rather than using search > > etc, > > > > > > On 16 Aug 2006, at 15:29, Scott Laird wrote: > > > > > >> On 8/16/06, Neil Houston wrote: > >> > >>>> Is it possible to have SubCats? > >>>> > >>>> Or is it in the roadmap (only saw plans for v4, and obv we have > >>>> passed that) > >>>> > >> I've never seen a good explanation of why anyone would care about > >> subcategories? Can you explain them, how they differ from our current > >> category system, and what you'd use them for? > >> > >> > >> Scott > >> _______________________________________________ > >> Typo-list mailing list > >> Typo-list at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/typo-list > >> > >> > >> > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Nikanorov Andrey http://blogru.nikanorov.com This email is: [ ] blogable [ x ] ask first [ ] private From kevwil at gmail.com Wed Aug 16 12:20:08 2006 From: kevwil at gmail.com (Kevin Williams) Date: Wed, 16 Aug 2006 10:20:08 -0600 Subject: [typo] Cache and Mongrel Rails In-Reply-To: <14b7e5ef0608160906q18b3925w10c0b3e2b87ed32e@mail.gmail.com> References: <14b7e5ef0608160828k289670f1y66c9b7e1422c8892@mail.gmail.com> <14b7e5ef0608160906q18b3925w10c0b3e2b87ed32e@mail.gmail.com> Message-ID: <683a886f0608160920o17a8e0el8a4b3d000211d41d@mail.gmail.com> I'm using Apache 2.2 / Mongrel / Typo edge - no problems (haven't sync'd since 4.0.2 went out). On 8/16/06, Scott Laird wrote: > It's worked fine for me in testing. Which version of Typo, and what > do you mean by "work correctly"? > > > Scott > > On 8/16/06, Linda Derezinski wrote: > > > > Anyone using Mongrel Rails with Typo? > > > > We ended up having to turn off caching to get it to work correctly. Anyone > > else have some insight? > > > > -Linda > > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Cheers, Kevin "Any sufficiently advanced technology is indistinguishable from Magic." - Arthur C. Clarke From scott at sigkill.org Wed Aug 16 12:31:37 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 16 Aug 2006 09:31:37 -0700 Subject: [typo] Bugs for 4.0.3 Message-ID: <14b7e5ef0608160931o2bce5537i40a7e312d55ce698@mail.gmail.com> I'm probably going to package up 4.0.3 tomorrow. I've seen people talk about a couple bugs that I don't see in trac. If you have a 4.0.x bug that needs to be fixed in 4.0.3, can you make sure that it's in trac tagged with milestone 4.0.3 within the next 8-12 hours? Thanks. Scott From linda at innovatesolutions.com Wed Aug 16 12:39:22 2006 From: linda at innovatesolutions.com (Linda Derezinski) Date: Wed, 16 Aug 2006 12:39:22 -0400 Subject: [typo] Cache and Mongrel Rails In-Reply-To: <14b7e5ef0608160906q18b3925w10c0b3e2b87ed32e@mail.gmail.com> Message-ID: Sorry would help to describe the issue wouldn't it :) We were able to reproduce the mongrel issue with the out of the box 2.6. one user adds a comment and the second user will not see it. I found from the logs that the page was being served up via the cache. I added a logger info message when the page was actually rendered. I wish I could give you step 1, step 2 directions but it seemed to be some sort of a race condition. I read through this http://scottstuff.net/presentations/rails-caching/ which I though confirmed the issues with the before_filters. (hummm wonder who that guy is :) In our specific app it is much easier to see, we added RBAC (Role Based Access control). So a user has to log in before being able to see the blog. In the title we added "Welcome User Name". User one logs in and sees welcome User One. User two logs in and sees Welcome User One. Sometimes the user wasn't even challenged to log in and somehow hijacked someone else's session. When I cleared out the temp/cache/META directory then the problem would go away. If you have time, lots of gory config details are here http://forum.textdrive.com/viewtopic.php?pid=96574. With the cache turned off speed is a little bit of an issue, however we have chosen to ignore that for now. Hopefully you will tell me that I have something messed up in the configuration. -Linda On 8/16/06 12:06 PM, "Scott Laird" wrote: > It's worked fine for me in testing. Which version of Typo, and what > do you mean by "work correctly"? > > > Scott > > On 8/16/06, Linda Derezinski wrote: >> >> Anyone using Mongrel Rails with Typo? >> >> We ended up having to turn off caching to get it to work correctly. Anyone >> else have some insight? >> >> -Linda >> >> >> _______________________________________________ >> 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 typo at rasga.co.uk Wed Aug 16 13:11:28 2006 From: typo at rasga.co.uk (Neil Houston) Date: Wed, 16 Aug 2006 18:11:28 +0100 Subject: [typo] Timeout - Related to dispatch.fcgi Message-ID: <797D0FF3-76FD-4421-8F61-C827E2D18D5A@rasga.co.uk> Sometimes my site Times out; fastcgi.crash.log i have two lines as well as multiple attempts to start : asked to terminate immediately terminated by explicit exit - Usually followed/precursored by Starting messages, is this related to some setting in dispach.fcgi and if so anyideas for solution? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060816/e57f23c7/attachment.html From scott at sigkill.org Wed Aug 16 13:40:14 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 16 Aug 2006 10:40:14 -0700 Subject: [typo] Timeout - Related to dispatch.fcgi In-Reply-To: <797D0FF3-76FD-4421-8F61-C827E2D18D5A@rasga.co.uk> References: <797D0FF3-76FD-4421-8F61-C827E2D18D5A@rasga.co.uk> Message-ID: <14b7e5ef0608161040g64ec32ck1b3f067172ba5fb1@mail.gmail.com> That looks like your web server is telling dispatch.fcgi to exit. In general, Apache's mod_fastcgi is more stable if you configure static FCGI dispatchers; use google to find config details. If you're using a different web server, then you're on your own, sorry. Scott On 8/16/06, Neil Houston wrote: > > Sometimes my site Times out; > > fastcgi.crash.log i have two lines as well as multiple attempts to start : > > asked to terminate immediately > terminated by explicit exit - > > Usually followed/precursored by Starting messages, is this related to some > setting in dispach.fcgi and if so anyideas for solution? > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From scott at sigkill.org Wed Aug 16 23:45:46 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 16 Aug 2006 20:45:46 -0700 Subject: [typo] 4.1 progress Message-ID: <14b7e5ef0608162045n75c9c19chc0a3abc016a10733@mail.gmail.com> $ ls -l components/plugins/textfilters ls: components/plugins/textfilters: No such file or directory $ ls -l vendor/plugins/ drwxr-xr-x 4 slaird staff 136 Aug 12 23:26 expiring_action_cache drwxr-xr-x 9 slaird staff 306 Aug 16 20:09 typo_textfilter_amazon drwxr-xr-x 9 slaird staff 306 Aug 16 20:13 typo_textfilter_code drwxr-xr-x 9 slaird staff 306 Aug 16 20:21 typo_textfilter_flickr ... $ ruby ./test/unit/text_filter_test.rb Loaded suite ./test/unit/text_filter_test Started ......... Finished in 0.884198 seconds. 9 tests, 98 assertions, 0 failures, 0 errors Scott From pdcawley at bofh.org.uk Thu Aug 17 02:11:30 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Thu, 17 Aug 2006 07:11:30 +0100 Subject: [typo] 4.1 progress In-Reply-To: <14b7e5ef0608162045n75c9c19chc0a3abc016a10733@mail.gmail.com> (Scott Laird's message of "Wed, 16 Aug 2006 20:45:46 -0700") References: <14b7e5ef0608162045n75c9c19chc0a3abc016a10733@mail.gmail.com> Message-ID: "Scott Laird" writes: > $ ls -l components/plugins/textfilters > ls: components/plugins/textfilters: No such file or directory > $ ls -l vendor/plugins/ > drwxr-xr-x 4 slaird staff 136 Aug 12 23:26 expiring_action_cache > drwxr-xr-x 9 slaird staff 306 Aug 16 20:09 typo_textfilter_amazon > drwxr-xr-x 9 slaird staff 306 Aug 16 20:13 typo_textfilter_code > drwxr-xr-x 9 slaird staff 306 Aug 16 20:21 typo_textfilter_flickr > ... > $ ruby ./test/unit/text_filter_test.rb > Loaded suite ./test/unit/text_filter_test > Started > ......... > Finished in 0.884198 seconds. > > 9 tests, 98 assertions, 0 failures, 0 errors Yay! -- Piers Cawley http://www.bofh.org.uk/ From mail at paulbarry.com Thu Aug 17 07:47:31 2006 From: mail at paulbarry.com (Paul Barry) Date: Thu, 17 Aug 2006 07:47:31 -0400 Subject: [typo] Email notification of comments Message-ID: Is there a way to get typo to send you an email anytime someone posts a comment on my blog? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060817/44649bac/attachment.html From phil.toland at gmail.com Thu Aug 17 08:20:45 2006 From: phil.toland at gmail.com (Phillip Toland) Date: Thu, 17 Aug 2006 07:20:45 -0500 Subject: [typo] Email notification of comments In-Reply-To: References: Message-ID: <69f191ca0608170520x57747ae4laaeaba0dbe7d4645@mail.gmail.com> On 8/17/06, Paul Barry wrote: > Is there a way to get typo to send you an email anytime someone posts a > comment on my blog? There is in version 4.0.x. Click on the Users tab in the Typo admin screen and then edit your user account. There are options for sending notifications via Jabber and email. Phil From trejkaz at trypticon.org Thu Aug 17 09:05:41 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Thu, 17 Aug 2006 23:05:41 +1000 Subject: [typo] Email notification of comments In-Reply-To: <69f191ca0608170520x57747ae4laaeaba0dbe7d4645@mail.gmail.com> References: <69f191ca0608170520x57747ae4laaeaba0dbe7d4645@mail.gmail.com> Message-ID: <200608172305.44146.trejkaz@trypticon.org> On Thursday 17 August 2006 22:20, Phillip Toland wrote: > On 8/17/06, Paul Barry wrote: > > Is there a way to get typo to send you an email anytime someone posts a > > comment on my blog? > > There is in version 4.0.x. Click on the Users tab in the Typo admin > screen and then edit your user account. There are options for sending > notifications via Jabber and email. Though currently it doesn't seem to call the code that actually sends the message... that is, unless that's been fixed in the past 24 hours or so. 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/20060817/304834b6/attachment.bin From phil.toland at gmail.com Thu Aug 17 09:52:19 2006 From: phil.toland at gmail.com (Phillip Toland) Date: Thu, 17 Aug 2006 08:52:19 -0500 Subject: [typo] Email notification of comments In-Reply-To: <200608172305.44146.trejkaz@trypticon.org> References: <69f191ca0608170520x57747ae4laaeaba0dbe7d4645@mail.gmail.com> <200608172305.44146.trejkaz@trypticon.org> Message-ID: <69f191ca0608170652g27ec86c8s69ec796a7c19c87e@mail.gmail.com> On 8/17/06, Trejkaz wrote: > On Thursday 17 August 2006 22:20, Phillip Toland wrote: > > On 8/17/06, Paul Barry wrote: > > > Is there a way to get typo to send you an email anytime someone posts a > > > comment on my blog? > > > > There is in version 4.0.x. Click on the Users tab in the Typo admin > > screen and then edit your user account. There are options for sending > > notifications via Jabber and email. > > Though currently it doesn't seem to call the code that actually sends the > message... that is, unless that's been fixed in the past 24 hours or so. I am running Typo 4.0.2 and both Jabber and email notifications work for me. From jburks725 at gmail.com Thu Aug 17 10:03:56 2006 From: jburks725 at gmail.com (Jason Burks) Date: Thu, 17 Aug 2006 10:03:56 -0400 Subject: [typo] Email notification of comments In-Reply-To: <69f191ca0608170652g27ec86c8s69ec796a7c19c87e@mail.gmail.com> References: <69f191ca0608170520x57747ae4laaeaba0dbe7d4645@mail.gmail.com> <200608172305.44146.trejkaz@trypticon.org> <69f191ca0608170652g27ec86c8s69ec796a7c19c87e@mail.gmail.com> Message-ID: <9bbab4e0608170703o41989bbeq5d026450fc81fcdc@mail.gmail.com> Trejkaz, You need to set up your mail server information in config/mail.yml for email notification to work. See mail.yml.example for the format of the file. Hope this helps. -Jason On 8/17/06, Phillip Toland wrote: > On 8/17/06, Trejkaz wrote: > > On Thursday 17 August 2006 22:20, Phillip Toland wrote: > > > On 8/17/06, Paul Barry wrote: > > > > Is there a way to get typo to send you an email anytime someone posts a > > > > comment on my blog? > > > > > > There is in version 4.0.x. Click on the Users tab in the Typo admin > > > screen and then edit your user account. There are options for sending > > > notifications via Jabber and email. > > > > Though currently it doesn't seem to call the code that actually sends the > > message... that is, unless that's been fixed in the past 24 hours or so. > > I am running Typo 4.0.2 and both Jabber and email notifications work for me. > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Thu Aug 17 11:17:26 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 17 Aug 2006 08:17:26 -0700 Subject: [typo] More 4.1 Message-ID: <14b7e5ef0608170817q30347cc6iaeb90db2af394413@mail.gmail.com> It's not clear to me that body_html and friends actually work right in 4.0--I discovered last night that my 4.1 tree was actually regenerating them every time, because body_html was never actually saved back to the DB. So our "html cache" wasn't persisting at all. I thought about adding a 'save' after HTML generation, but that'd screw up update times, which are visible in a number of feeds. So I ripped *_html out and moved it to the fragment cache. Filters are fast enough now that running uncached isn't a big deal in dev mode anyway. It seems to work fine. Scott From scott at sigkill.org Thu Aug 17 17:05:02 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 17 Aug 2006 14:05:02 -0700 Subject: [typo] memory profiling In-Reply-To: <14b7e5ef0608160828k289670f1y66c9b7e1422c8892@mail.gmail.com> References: <14b7e5ef0608160828k289670f1y66c9b7e1422c8892@mail.gmail.com> Message-ID: <14b7e5ef0608171405m22595036hbfab10bfa2466782@mail.gmail.com> FWIW, I tracked down the leak--my new route cache wasn't actually working right, so it was losing 1 string per Article. Fixed :-). I haven't tested the trunk yet, or any of the admin pages. Scott On 8/16/06, Scott Laird wrote: > I'm doing a bit of memory testing in my 4.1 tree, and I haven't found > anything all *that* exciting yet. I'm using a objectspace profiler by > Ryan Davis, lightly modified to produce a bit more info. Two things > seem obvious: > > 1. Cached hits don't leak anything. The total number of objects > per type in the system doesn't change at all . > > 2. Uncached hits leak 1-3 strings per page. > > I haven't tested admin yet. > > Here's the profiler. Start it from environment.rb and it'll log to a file. > > > class MemoryProfiler > def self.start(delay=10) > Thread.new do > prev = Hash.new(0) > curr = Hash.new(0) > delta = Hash.new(0) > > file = File.open('log/memory_profiler.log','w') > > loop do > begin > GC.start > curr.clear > ObjectSpace.each_object do |o| > curr[o.class] += 1 #Marshal.dump(o).size rescue 1 > end > > delta.clear > (curr.keys + delta.keys).uniq.each do |k,v| > delta[k] = curr[k]-prev[k] > end > > file.puts "Top 20" > delta.sort_by { |k,v| -v.abs }[0..19].sort_by { |k,v| > -v}.each do |k,v| > file.printf "%+5d: %s (%d)\n", v, k.name, curr[k] unless v == 0 > end > file.flush > > delta.clear > prev.clear > prev.update curr > rescue Exception => err > STDERR.puts "** memory_profiler error: #{err}" > end > sleep delay > end > end > end > end > From steve.longdo at gmail.com Thu Aug 17 20:41:32 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Thu, 17 Aug 2006 19:41:32 -0500 Subject: [typo] 4.1 progress In-Reply-To: <14b7e5ef0608162045n75c9c19chc0a3abc016a10733@mail.gmail.com> References: <14b7e5ef0608162045n75c9c19chc0a3abc016a10733@mail.gmail.com> Message-ID: Will approach you are using for textfilters work in migrating sidebars from components to plugins? -- Thanks, -Steve http://www.stevelongdo.com On 8/16/06, Scott Laird wrote: > > $ ls -l components/plugins/textfilters > ls: components/plugins/textfilters: No such file or directory > $ ls -l vendor/plugins/ > drwxr-xr-x 4 slaird staff 136 Aug 12 23:26 expiring_action_cache > drwxr-xr-x 9 slaird staff 306 Aug 16 20:09 typo_textfilter_amazon > drwxr-xr-x 9 slaird staff 306 Aug 16 20:13 typo_textfilter_code > drwxr-xr-x 9 slaird staff 306 Aug 16 20:21 typo_textfilter_flickr > ... > $ ruby ./test/unit/text_filter_test.rb > Loaded suite ./test/unit/text_filter_test > Started > ......... > Finished in 0.884198 seconds. > > 9 tests, 98 assertions, 0 failures, 0 errors > > > Scott > _______________________________________________ > 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/20060817/f0e33297/attachment.html From scott at sigkill.org Thu Aug 17 20:48:28 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 17 Aug 2006 17:48:28 -0700 Subject: [typo] 4.1 progress In-Reply-To: References: <14b7e5ef0608162045n75c9c19chc0a3abc016a10733@mail.gmail.com> Message-ID: <14b7e5ef0608171748w47bb70f8ica74ae4b4c5c38ad@mail.gmail.com> It should be possible. I think Piers has something clever planned for sidebars, but I'm not quite sure what it is yet . Scott On 8/17/06, Steve Longdo wrote: > Will approach you are using for textfilters work in migrating sidebars from > components to plugins? > > -- > Thanks, > -Steve > http://www.stevelongdo.com > > > On 8/16/06, Scott Laird wrote: > > > $ ls -l components/plugins/textfilters > ls: components/plugins/textfilters: No such file or directory > $ ls -l vendor/plugins/ > drwxr-xr-x 4 slaird staff 136 Aug 12 23:26 expiring_action_cache > drwxr-xr-x 9 slaird staff 306 Aug 16 20:09 typo_textfilter_amazon > drwxr-xr-x 9 slaird staff 306 Aug 16 20:13 typo_textfilter_code > drwxr-xr-x 9 slaird staff 306 Aug 16 20:21 typo_textfilter_flickr > ... > $ ruby ./test/unit/text_filter_test.rb > Loaded suite ./test/unit/text_filter_test > Started > ......... > Finished in 0.884198 seconds. > > 9 tests, 98 assertions, 0 failures, 0 errors > > > Scott > _______________________________________________ > 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 trejkaz at trypticon.org Thu Aug 17 22:11:14 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Fri, 18 Aug 2006 12:11:14 +1000 (EST) Subject: [typo] Email notification of comments In-Reply-To: <9bbab4e0608170703o41989bbeq5d026450fc81fcdc@mail.gmail.com> References: <69f191ca0608170520x57747ae4laaeaba0dbe7d4645@mail.gmail.com> <200608172305.44146.trejkaz@trypticon.org> <69f191ca0608170652g27ec86c8s69ec796a7c19c87e@mail.gmail.com> <9bbab4e0608170703o41989bbeq5d026450fc81fcdc@mail.gmail.com> Message-ID: <52535.203.82.163.242.1155867074.squirrel@home.trypticon.org> > Trejkaz, > > You need to set up your mail server information in config/mail.yml for > email notification to work. See mail.yml.example for the format of > the file. Hope this helps. I don't particularly care about mail notifications as I've only ever used the Jabber notifications. But I've put a breakpoint in the function that sends Jabber notifications and that breakpoint is never reached. See my previous mail to this list for further details; I actually put breakpoints in a huge number of places and found that the method which iterates over the users to see if they want notifications isn't even being called. Incidentally I'm talking about trunk here. It's possible that 4.0.x works and then a bug was introduced on trunk after it was branched. TX From scott at sigkill.org Thu Aug 17 22:18:29 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 17 Aug 2006 19:18:29 -0700 Subject: [typo] Email notification of comments In-Reply-To: <52535.203.82.163.242.1155867074.squirrel@home.trypticon.org> References: <69f191ca0608170520x57747ae4laaeaba0dbe7d4645@mail.gmail.com> <200608172305.44146.trejkaz@trypticon.org> <69f191ca0608170652g27ec86c8s69ec796a7c19c87e@mail.gmail.com> <9bbab4e0608170703o41989bbeq5d026450fc81fcdc@mail.gmail.com> <52535.203.82.163.242.1155867074.squirrel@home.trypticon.org> Message-ID: <14b7e5ef0608171918t531d43b1vd66434ccc659f8c3@mail.gmail.com> On 8/17/06, Trejkaz wrote: > > Trejkaz, > > > > You need to set up your mail server information in config/mail.yml for > > email notification to work. See mail.yml.example for the format of > > the file. Hope this helps. > > I don't particularly care about mail notifications as I've only ever used > the Jabber notifications. But I've put a breakpoint in the function that > sends Jabber notifications and that breakpoint is never reached. See my > previous mail to this list for further details; I actually put breakpoints > in a huge number of places and found that the method which iterates over > the users to see if they want notifications isn't even being called. > > Incidentally I'm talking about trunk here. It's possible that 4.0.x works > and then a bug was introduced on trunk after it was branched. Hmm. Mail notifications work for me. The jabber ones used to work for me, but I haven't retested. I'll work on them once I've finished merging my big block of 4.1 code. The current trunk (r1230) is still 4.0.x; 4.0.3 will be out in a few minutes. I'm going to build a maintenance branch for 4.0.x soon, but it hasn't happened yet. Scott From trejkaz at trypticon.org Thu Aug 17 22:19:39 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Fri, 18 Aug 2006 12:19:39 +1000 (EST) Subject: [typo] Email notification of comments In-Reply-To: <52535.203.82.163.242.1155867074.squirrel@home.trypticon.org> References: <69f191ca0608170520x57747ae4laaeaba0dbe7d4645@mail.gmail.com> <200608172305.44146.trejkaz@trypticon.org> <69f191ca0608170652g27ec86c8s69ec796a7c19c87e@mail.gmail.com> <9bbab4e0608170703o41989bbeq5d026450fc81fcdc@mail.gmail.com> <52535.203.82.163.242.1155867074.squirrel@home.trypticon.org> Message-ID: <53652.203.82.163.242.1155867579.squirrel@home.trypticon.org> >> Trejkaz, >> >> You need to set up your mail server information in config/mail.yml for >> email notification to work. See mail.yml.example for the format of >> the file. Hope this helps. > > I don't particularly care about mail notifications as I've only ever used > the Jabber notifications. Also FWIW, I just configured mail.yml on my local development copy (using smtp to my local server) and those aren't being sent out either. If I send through the console using article.comments.create!, I can at least see this in the log: User Load (0.000735) SELECT * FROM users WHERE (notify_on_comments = 1) And indeed the notifications then work. I would do a bit more research but I'm not entirely sure where I should be looking. My naive guess is that this is somehow related to the new state changing code, and perhaps the state of a piece of content changes differently depending on whether it was created through the frontend or the console. TX From scott at sigkill.org Thu Aug 17 22:27:22 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 17 Aug 2006 19:27:22 -0700 Subject: [typo] Email notification of comments In-Reply-To: <53652.203.82.163.242.1155867579.squirrel@home.trypticon.org> References: <69f191ca0608170520x57747ae4laaeaba0dbe7d4645@mail.gmail.com> <200608172305.44146.trejkaz@trypticon.org> <69f191ca0608170652g27ec86c8s69ec796a7c19c87e@mail.gmail.com> <9bbab4e0608170703o41989bbeq5d026450fc81fcdc@mail.gmail.com> <52535.203.82.163.242.1155867074.squirrel@home.trypticon.org> <53652.203.82.163.242.1155867579.squirrel@home.trypticon.org> Message-ID: <14b7e5ef0608171927j29e8a44dud9cf21ccee66b3af@mail.gmail.com> On 8/17/06, Trejkaz wrote: > >> Trejkaz, > >> > >> You need to set up your mail server information in config/mail.yml for > >> email notification to work. See mail.yml.example for the format of > >> the file. Hope this helps. > > > > I don't particularly care about mail notifications as I've only ever used > > the Jabber notifications. > > Also FWIW, I just configured mail.yml on my local development copy (using > smtp to my local server) and those aren't being sent out either. > > If I send through the console using article.comments.create!, I can at > least see this in the log: > > User Load (0.000735) SELECT * FROM users WHERE (notify_on_comments = 1) > > And indeed the notifications then work. > > I would do a bit more research but I'm not entirely sure where I should be > looking. My naive guess is that this is somehow related to the new state > changing code, and perhaps the state of a piece of content changes > differently depending on whether it was created through the frontend or > the console. Fun :-(. Well, email notifications work for me. If you can find a fix then I'll roll it up into 4.0.4. Scott From scott at sigkill.org Thu Aug 17 22:28:54 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 17 Aug 2006 19:28:54 -0700 Subject: [typo] Typo 4.0.3 Message-ID: <14b7e5ef0608171928v446462bdte1f6d5fe5e2b3ee0@mail.gmail.com> Typo 4.0.3 is out. It's a bugfix release, with a week's worth of small fixes. This is the last "mainline" 4.0.x release. I just made a maintenance branch for 4.0.x. I'm going to start adding 4.1 features to the trunk soon, possibly tonight. Scott From scott at sigkill.org Thu Aug 17 22:31:47 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 17 Aug 2006 19:31:47 -0700 Subject: [typo] The Typo trunk will soon be unstable Message-ID: <14b7e5ef0608171931h2e0db2d5t8d319d096ba469b1@mail.gmail.com> This is just a heads-up--I'm going to commit a big block of 4.1 code soon-ish and then head out of town for a couple days, possibly without network access. I'd like to get the code into peoples' hands, and it passes tests, but there are probably problems lurking. So, if you value stability, don't go past r1232 for now. Scott From trejkaz at trypticon.org Thu Aug 17 22:38:44 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Fri, 18 Aug 2006 12:38:44 +1000 (EST) Subject: [typo] Email notification of comments In-Reply-To: <14b7e5ef0608171927j29e8a44dud9cf21ccee66b3af@mail.gmail.com> References: <69f191ca0608170520x57747ae4laaeaba0dbe7d4645@mail.gmail.com> <200608172305.44146.trejkaz@trypticon.org> <69f191ca0608170652g27ec86c8s69ec796a7c19c87e@mail.gmail.com> <9bbab4e0608170703o41989bbeq5d026450fc81fcdc@mail.gmail.com> <52535.203.82.163.242.1155867074.squirrel@home.trypticon.org> <53652.203.82.163.242.1155867579.squirrel@home.trypticon.org> <14b7e5ef0608171927j29e8a44dud9cf21ccee66b3af@mail.gmail.com> Message-ID: <51864.203.82.163.242.1155868724.squirrel@home.trypticon.org> > Fun :-(. Well, email notifications work for me. If you can find a > fix then I'll roll it up into 4.0.4. Okay, I just did a web request and a console request and snipped the state changes out of the logs of both for the purpose of comparison. Here's what happens during a web request: # leaving state ContentState::New # entering state ContentState::Unclassified # leaving state ContentState::New # entering state ContentState::Published # leaving state ContentState::Published # entering state ContentState::Unclassified # leaving state ContentState::Unclassified # entering state Content::JustPresumedHam # leaving state Content::JustPresumedHam # entering state ContentState::PresumedHam And here's a comment sent manually through the console: # leaving state ContentState::New # entering state ContentState::Unclassified # leaving state ContentState::New # entering state ContentState::Unclassified # leaving state ContentState::Unclassified # entering state Content::JustPresumedHam (NOTIFICATIONS BEING SENT HERE) # leaving state Content::JustPresumedHam # entering state ContentState::PresumedHam What's most interesting to me is how the console version never becomes "published", and yet it's the only one where the notifications are sent. TX From josh at hasmanythrough.com Thu Aug 17 22:42:54 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Thu, 17 Aug 2006 19:42:54 -0700 Subject: [typo] export options, multi-blogs Message-ID: <53B5CFAE-8F3D-4363-888D-6BC70350A4F2@hasmanythrough.com> I'm going to set up an internal blog at work, and was considering using Typo. But I may eventually want to move to another blog engine and don't want to be locked in. I recall seeing some emails a few days back about work on an export feature using the Atom API or something. I'm curious what my options are for exporting content from Typo, both now and in the foreseeable future. I suppose I could always write my own exporter code, but I'd rather not. Also, is Typo's support for multiple blogs there yet, or is that feature still a work in progress? -- Josh Susser http://blog.hasmanythrough.com From scott at sigkill.org Thu Aug 17 22:46:51 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 17 Aug 2006 19:46:51 -0700 Subject: [typo] export options, multi-blogs In-Reply-To: <53B5CFAE-8F3D-4363-888D-6BC70350A4F2@hasmanythrough.com> References: <53B5CFAE-8F3D-4363-888D-6BC70350A4F2@hasmanythrough.com> Message-ID: <14b7e5ef0608171946l24bd010ap23e8b3fe760df767@mail.gmail.com> We don't have a formal export format right now. We're talking about something Atom-based, but we don't have any code yet. Worst-case, generating an Atom feed with all of your articles would be pretty easy--just crank up the number of items displayed in feeds to 99999 and then grab your feed. The multi-blog code will probably start soon-ish. It's a fairly simple progression from where we're at now, although the first pass on multi-blog support won't include any extra permission checking, so all users will have admin access to all blogs. Obviously this is going to be temporary. Scott On 8/17/06, Josh Susser wrote: > I'm going to set up an internal blog at work, and was considering > using Typo. But I may eventually want to move to another blog engine > and don't want to be locked in. I recall seeing some emails a few > days back about work on an export feature using the Atom API or > something. I'm curious what my options are for exporting content > from Typo, both now and in the foreseeable future. I suppose I could > always write my own exporter code, but I'd rather not. > > Also, is Typo's support for multiple blogs there yet, or is that > feature still a work in progress? > > -- > Josh Susser > http://blog.hasmanythrough.com > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From vemon388 at gmail.com Thu Aug 17 22:58:06 2006 From: vemon388 at gmail.com (levi mccallum) Date: Thu, 17 Aug 2006 16:58:06 -1000 Subject: [typo] Typo 4.0.3 In-Reply-To: <14b7e5ef0608171928v446462bdte1f6d5fe5e2b3ee0@mail.gmail.com> References: <14b7e5ef0608171928v446462bdte1f6d5fe5e2b3ee0@mail.gmail.com> Message-ID: SWEET! On 8/17/06, Scott Laird wrote: > > Typo 4.0.3 is out. It's a bugfix release, with a week's worth of small > fixes. > > This is the last "mainline" 4.0.x release. I just made a maintenance > branch for 4.0.x. I'm going to start adding 4.1 features to the trunk > soon, possibly tonight. > > > Scott > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- 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/20060817/64f9722f/attachment.html From psq at nanorails.com Thu Aug 17 23:07:13 2006 From: psq at nanorails.com (Pascal Belloncle) Date: Thu, 17 Aug 2006 20:07:13 -0700 Subject: [typo] Email notification of comments In-Reply-To: <51864.203.82.163.242.1155868724.squirrel@home.trypticon.org> References: <69f191ca0608170520x57747ae4laaeaba0dbe7d4645@mail.gmail.com> <200608172305.44146.trejkaz@trypticon.org> <69f191ca0608170652g27ec86c8s69ec796a7c19c87e@mail.gmail.com> <9bbab4e0608170703o41989bbeq5d026450fc81fcdc@mail.gmail.com> <52535.203.82.163.242.1155867074.squirrel@home.trypticon.org> <53652.203.82.163.242.1155867579.squirrel@home.trypticon.org> <14b7e5ef0608171927j29e8a44dud9cf21ccee66b3af@mail.gmail.com> <51864.203.82.163.242.1155868724.squirrel@home.trypticon.org> Message-ID: <21fa7380608172007p22aba5fve8ef3afdd791b955@mail.gmail.com> In typo 4.0.2, neither email or trackbacks work for me. Well, they don't work using webrick, and they very rarely work using fcgi. I have tracked it down to a problem in rails and the Dispatch code. Basically, observers are not restored correctly after Dispatcher::reset_application! Depending on your setup (lighttpd, webrick, fcgi) and how it uses the dispatcher, you may or may not be affected since the first time your go through the dispatcher, everything works fine, but the subsequent times, the observers are gone, so no email or no trackbacks. If you are lucky to get a new ruby instance, it works. The way to workaround this is to setup your observers in ApplicationController instead of environment.rb adding this line to the app/controllers/application.rb: observer :content_observer, :email_notifier, :web_notifier I'm still testing the patch before I use it on my site and I'm guessing that's probably an oversight from the rails code, but the workaround seems to work for me. Pascal http://blog.nanorails.com On 8/17/06, Trejkaz wrote: > > > Fun :-(. Well, email notifications work for me. If you can find a > > fix then I'll roll it up into 4.0.4. > > Okay, I just did a web request and a console request and snipped the state > changes out of the logs of both for the purpose of comparison. > > Here's what happens during a web request: > > # leaving state ContentState::New > # entering state ContentState::Unclassified > # leaving state ContentState::New > # entering state ContentState::Published > # leaving state ContentState::Published > # entering state ContentState::Unclassified > # leaving state ContentState::Unclassified > # entering state Content::JustPresumedHam > # leaving state Content::JustPresumedHam > # entering state ContentState::PresumedHam > > And here's a comment sent manually through the console: > > # leaving state ContentState::New > # entering state ContentState::Unclassified > # leaving state ContentState::New > # entering state ContentState::Unclassified > # leaving state ContentState::Unclassified > # entering state Content::JustPresumedHam > (NOTIFICATIONS BEING SENT HERE) > # leaving state Content::JustPresumedHam > # entering state ContentState::PresumedHam > > What's most interesting to me is how the console version never becomes > "published", and yet it's the only one where the notifications are sent. > > TX > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060817/57eb5d39/attachment.html From trejkaz at trypticon.org Fri Aug 18 00:08:34 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Fri, 18 Aug 2006 14:08:34 +1000 (EST) Subject: [typo] Email notification of comments In-Reply-To: <21fa7380608172007p22aba5fve8ef3afdd791b955@mail.gmail.com> References: <69f191ca0608170520x57747ae4laaeaba0dbe7d4645@mail.gmail.com> <200608172305.44146.trejkaz@trypticon.org> <69f191ca0608170652g27ec86c8s69ec796a7c19c87e@mail.gmail.com> <9bbab4e0608170703o41989bbeq5d026450fc81fcdc@mail.gmail.com> <52535.203.82.163.242.1155867074.squirrel@home.trypticon.org> <53652.203.82.163.242.1155867579.squirrel@home.trypticon.org> <14b7e5ef0608171927j29e8a44dud9cf21ccee66b3af@mail.gmail.com> <51864.203.82.163.242.1155868724.squirrel@home.trypticon.org> <21fa7380608172007p22aba5fve8ef3afdd791b955@mail.gmail.com> Message-ID: <47242.203.82.163.242.1155874114.squirrel@home.trypticon.org> > The way to workaround this is to setup your observers in > ApplicationController instead of environment.rb adding this line to the > app/controllers/application.rb: > > observer :content_observer, :email_notifier, :web_notifier > > I'm still testing the patch before I use it on my site and I'm guessing > that's probably an oversight from the rails code, but the workaround seems > to work for me. Hey, works for me too! Thanks for that. :-) FWIW, I'm using Mongrel to run my development instance. I use FastCGI for production still because I'm too lazy to reconfigure my Apache. TX From psq at nanorails.com Fri Aug 18 00:43:38 2006 From: psq at nanorails.com (Pascal Belloncle) Date: Thu, 17 Aug 2006 21:43:38 -0700 Subject: [typo] Email notification of comments In-Reply-To: <47242.203.82.163.242.1155874114.squirrel@home.trypticon.org> References: <200608172305.44146.trejkaz@trypticon.org> <69f191ca0608170652g27ec86c8s69ec796a7c19c87e@mail.gmail.com> <9bbab4e0608170703o41989bbeq5d026450fc81fcdc@mail.gmail.com> <52535.203.82.163.242.1155867074.squirrel@home.trypticon.org> <53652.203.82.163.242.1155867579.squirrel@home.trypticon.org> <14b7e5ef0608171927j29e8a44dud9cf21ccee66b3af@mail.gmail.com> <51864.203.82.163.242.1155868724.squirrel@home.trypticon.org> <21fa7380608172007p22aba5fve8ef3afdd791b955@mail.gmail.com> <47242.203.82.163.242.1155874114.squirrel@home.trypticon.org> Message-ID: <21fa7380608172143q767754dduec2069c9909e2c8a@mail.gmail.com> Good to hear it works in your case too. Time to enter a patch in trac. I also have a few tweaks to trackbacks and pingbacks as each one uses 2 threads while one would be plenty. That fix is deceptivly simple but it took me long hours to track it down. The best part of it, though, is that I now have a much better understanding of rails observers, dependencies, dispatching and initialization code. And I learned quite a bit on the internals of typo too. :) I wish I could use mongrel as well, but with DreamHost, I'm stuck with fcgi. Not for lack of trying various sneaky ways, but so far no luck. Their setup of apache is just too locked down. Pascal http://blog.nanorails.com On 8/17/06, Trejkaz wrote: > > > The way to workaround this is to setup your observers in > > ApplicationController instead of environment.rb adding this line to the > > app/controllers/application.rb: > > > > observer :content_observer, :email_notifier, :web_notifier > > > > I'm still testing the patch before I use it on my site and I'm guessing > > that's probably an oversight from the rails code, but the workaround > seems > > to work for me. > > Hey, works for me too! Thanks for that. :-) > > FWIW, I'm using Mongrel to run my development instance. I use FastCGI for > production still because I'm too lazy to reconfigure my Apache. > > TX > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060817/b701f67b/attachment.html From linda at innovatesolutions.com Fri Aug 18 00:52:56 2006 From: linda at innovatesolutions.com (Linda Derezinski) Date: Fri, 18 Aug 2006 00:52:56 -0400 Subject: [typo] Email notification of comments In-Reply-To: <21fa7380608172143q767754dduec2069c9909e2c8a@mail.gmail.com> Message-ID: We are on TextDrive.com and using Mongrel (and quite happy with them) -Linda On 8/18/06 12:43 AM, "Pascal Belloncle" wrote: > Good to hear it works in your case too. Time to enter a patch in trac. I > also have a few tweaks to trackbacks and pingbacks as each one uses 2 threads > while one would be plenty. > > That fix is deceptivly simple but it took me long hours to track it down. The > best part of it, though, is that I now have a much better understanding of > rails observers, dependencies, dispatching and initialization code. And I > learned quite a bit on the internals of typo too. :) > > I wish I could use mongrel as well, but with DreamHost, I'm stuck with fcgi. > Not for lack of trying various sneaky ways, but so far no luck. Their setup > of apache is just too locked down. > > Pascal > http://blog.nanorails.com > > On 8/17/06, Trejkaz wrote: >>> > The way to workaround this is to setup your observers in >>> > ApplicationController instead of environment.rb adding this line to the >>> > app/controllers/application.rb: >>> > >>> > observer :content_observer, :email_notifier, :web_notifier >>> > >>> > I'm still testing the patch before I use it on my site and I'm guessing >>> > that's probably an oversight from the rails code, but the workaround seems >>> > to work for me. >> >> Hey, works for me too! Thanks for that. :-) >> >> FWIW, I'm using Mongrel to run my development instance. I use FastCGI for >> production still because I'm too lazy to reconfigure my Apache. >> >> TX >> >> >> _______________________________________________ >> 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/20060818/78cc57d9/attachment.html From pdcawley at bofh.org.uk Fri Aug 18 02:13:22 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 18 Aug 2006 07:13:22 +0100 Subject: [typo] 4.1 progress In-Reply-To: <14b7e5ef0608171748w47bb70f8ica74ae4b4c5c38ad@mail.gmail.com> (Scott Laird's message of "Thu, 17 Aug 2006 17:48:28 -0700") References: <14b7e5ef0608162045n75c9c19chc0a3abc016a10733@mail.gmail.com> <14b7e5ef0608171748w47bb70f8ica74ae4b4c5c38ad@mail.gmail.com> Message-ID: "Scott Laird" writes: > It should be possible. I think Piers has something clever planned for > sidebars, but I'm not quite sure what it is yet . Well, you say planned. Currently the plan goes: 1. Write a bunch of tests for a few sidebars. 2. Refactor like mad 'til the sidebars have identical controllers and all the behaviour is stashed in the model and the view. 3. Merge the controllers. 4. Pull the controller behaviour up into a set of helper methods. 5. Eliminate the controllers. 6. Work out how the heck to render a view from vendor/plugins (hey, if we can monkey patch rails to make themes work, we should be able to do something similar for sidebars) 7. Push a few sidebars out to their own plugins directories. 8. Write a generator for a sidebar 9. Err... 10. That's it. I'm at the beginnings of step 2 at the moment. The meta methods, 'description' and 'setting' have moved from the controller to the sidebar model (Sidebar now gets subclassed for every sidebar) where, frankly, they make more sense. -- Piers Cawley http://www.bofh.org.uk/ From rasputnik at gmail.com Fri Aug 18 04:34:31 2006 From: rasputnik at gmail.com (Dick Davies) Date: Fri, 18 Aug 2006 09:34:31 +0100 Subject: [typo] The Typo trunk will soon be unstable In-Reply-To: <14b7e5ef0608171931h2e0db2d5t8d319d096ba469b1@mail.gmail.com> References: <14b7e5ef0608171931h2e0db2d5t8d319d096ba469b1@mail.gmail.com> Message-ID: <3f1760608180134o63b48147i942efa572799f013@mail.gmail.com> On 18/08/06, Scott Laird wrote: > This is just a heads-up--I'm going to commit a big block of 4.1 code > soon-ish and then head out of town for a couple days, possibly without > network access. I'd like to get the code into peoples' hands, and it > passes tests, but there are probably problems lurking. > > So, if you value stability, don't go past r1232 for now. Have you thought of maybe doing branches for stable and 'current' (I haven't done much merging with svn, so that may well be a PITA)? -- Rasputin :: Jack of All Trades - Master of Nuns http://number9.hellooperator.net/ From neuro at 7el.net Fri Aug 18 06:35:00 2006 From: neuro at 7el.net (Frederic de Villamil) Date: Fri, 18 Aug 2006 12:35:00 +0200 Subject: [typo] Rake migrate crashes with last trunk Message-ID: <44E597D4.3020206@7el.net> Hello, I can't migrate anymore using the last trunk. Here are the messages I have : s15222373:/home/www/fredericdevillamil.com/log# rake --trace db:migrate RAILS_ENV="production" (in /home/www/fredericdevillamil.com) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate ** Invoke db:schema:dump (first_time) ** Invoke environment ** Execute db:schema:dump rake aborted! undefined method `each' for # /home/www/fredericdevillamil.com/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:270:in `tables' /home/www/fredericdevillamil.com/config/../vendor/rails/activerecord/lib/active_record/schema_dumper.rb:51:in `tables' /home/www/fredericdevillamil.com/config/../vendor/rails/activerecord/lib/active_record/schema_dumper.rb:20:in `dump' /home/www/fredericdevillamil.com/config/../vendor/rails/activerecord/lib/active_record/schema_dumper.rb:14:in `dump' /home/www/fredericdevillamil.com/config/../vendor/rails/railties/lib/tasks/databases.rake:24 /home/www/fredericdevillamil.com/config/../vendor/rails/railties/lib/tasks/databases.rake:23 /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke' /usr/lib/ruby/1.8/thread.rb:135:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' /home/www/fredericdevillamil.com/config/../vendor/rails/railties/lib/tasks/databases.rake:5 /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke' /usr/lib/ruby/1.8/thread.rb:135:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 /usr/bin/rake:18 Cheers 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. http://t37.net http://fredericdevillamil.com neuro at 7el.net tel: +33 (0)6 62 19 1337 From neuro at 7el.net Fri Aug 18 06:49:30 2006 From: neuro at 7el.net (Frederic de Villamil) Date: Fri, 18 Aug 2006 12:49:30 +0200 Subject: [typo] Rake migrate crashes with last trunk In-Reply-To: <44E597D4.3020206@7el.net> References: <44E597D4.3020206@7el.net> Message-ID: <44E59B3A.8050902@7el.net> Frederic de Villamil a ?crit : > Hello, > I can't migrate anymore using the last trunk. Here are the messages I have : > > s15222373:/home/www/fredericdevillamil.com/log# rake --trace db:migrate > RAILS_ENV="production" > (in /home/www/fredericdevillamil.com) > ** Invoke db:migrate (first_time) > ** Invoke environment (first_time) > ** Execute environment > ** Execute db:migrate > ** Invoke db:schema:dump (first_time) > ** Invoke environment > ** Execute db:schema:dump > rake aborted! > undefined method `each' for # > /home/www/fredericdevillamil.com/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:270:in > `tables' > /home/www/fredericdevillamil.com/config/../vendor/rails/activerecord/lib/active_record/schema_dumper.rb:51:in > `tables' > /home/www/fredericdevillamil.com/config/../vendor/rails/activerecord/lib/active_record/schema_dumper.rb:20:in > `dump' > /home/www/fredericdevillamil.com/config/../vendor/rails/activerecord/lib/active_record/schema_dumper.rb:14:in > `dump' > /home/www/fredericdevillamil.com/config/../vendor/rails/railties/lib/tasks/databases.rake:24 > /home/www/fredericdevillamil.com/config/../vendor/rails/railties/lib/tasks/databases.rake:23 > /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke' > /usr/lib/ruby/1.8/thread.rb:135:in `synchronize' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' > /home/www/fredericdevillamil.com/config/../vendor/rails/railties/lib/tasks/databases.rake:5 > /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke' > /usr/lib/ruby/1.8/thread.rb:135:in `synchronize' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 > /usr/bin/rake:18 > > Cheers > Frederic Sorry for bothering you, was my rails install that was fucked up. -- 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. http://t37.net http://fredericdevillamil.com neuro at 7el.net tel: +33 (0)6 62 19 1337 From scott at sigkill.org Fri Aug 18 07:59:42 2006 From: scott at sigkill.org (Scott Laird) Date: Fri, 18 Aug 2006 04:59:42 -0700 Subject: [typo] The Typo trunk will soon be unstable In-Reply-To: <3f1760608180134o63b48147i942efa572799f013@mail.gmail.com> References: <14b7e5ef0608171931h2e0db2d5t8d319d096ba469b1@mail.gmail.com> <3f1760608180134o63b48147i942efa572799f013@mail.gmail.com> Message-ID: <14b7e5ef0608180459yf6430a5vb8addceb27ef0d0d@mail.gmail.com> On 8/18/06, Dick Davies wrote: > On 18/08/06, Scott Laird wrote: > > This is just a heads-up--I'm going to commit a big block of 4.1 code > > soon-ish and then head out of town for a couple days, possibly without > > network access. I'd like to get the code into peoples' hands, and it > > passes tests, but there are probably problems lurking. > > > > So, if you value stability, don't go past r1232 for now. > > Have you thought of maybe doing branches for stable and 'current' > (I haven't done much merging with svn, so that may well be a PITA)? Well, at the moment branch_4_0_x is stable and trunk is unstable. Doing development in the trunk is generally the easiest way to work; most other vc patterns end up with too effort spent merging. Heck, just merging this block of code (which lived in a branch on my laptop for a week) was kind of an adventure, and it was a slow week. Because of all of the renames that this patch does, a lot of this week's patches didn't apply cleanly. If we stretched that out for another month or two, we'd kill ourselves. It'll take a day or two, but the trunk will be stable-ish fairly soon. This was a huge patch, but the basic changes were fairly straightforward. A lot of it is really just search-and-replace changes. Scott From steve.longdo at gmail.com Fri Aug 18 10:30:42 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Fri, 18 Aug 2006 09:30:42 -0500 Subject: [typo] 4.1 progress In-Reply-To: References: <14b7e5ef0608162045n75c9c19chc0a3abc016a10733@mail.gmail.com> <14b7e5ef0608171748w47bb70f8ica74ae4b4c5c38ad@mail.gmail.com> Message-ID: Edge rails has support for adding named routes from a plugin so moving the controllers out to plugin land is viable. http://www.nabble.com/Re%3A-Plugin-Routes-p5856460.html On 8/18/06, Piers Cawley wrote: > > "Scott Laird" writes: > > > It should be possible. I think Piers has something clever planned for > > sidebars, but I'm not quite sure what it is yet . > > Well, you say planned. Currently the plan goes: > > 1. Write a bunch of tests for a few sidebars. > 2. Refactor like mad 'til the sidebars have identical controllers and > all the behaviour is stashed in the model and the view. > 3. Merge the controllers. > 4. Pull the controller behaviour up into a set of helper methods. > 5. Eliminate the controllers. > 6. Work out how the heck to render a view from vendor/plugins (hey, if > we can monkey patch rails to make themes work, we should be able to > do something similar for sidebars) > 7. Push a few sidebars out to their own plugins directories. > 8. Write a generator for a sidebar > 9. Err... > 10. That's it. > > I'm at the beginnings of step 2 at the moment. The meta methods, > 'description' and 'setting' have moved from the controller to the > sidebar model (Sidebar now gets subclassed for every sidebar) where, > frankly, they make more sense. > > -- > Piers Cawley > http://www.bofh.org.uk/ > _______________________________________________ > 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/20060818/2d10a858/attachment.html From meta at pobox.com Fri Aug 18 11:57:50 2006 From: meta at pobox.com (mathew) Date: Fri, 18 Aug 2006 10:57:50 -0500 Subject: [typo] Email notification of comments In-Reply-To: <21fa7380608172143q767754dduec2069c9909e2c8a@mail.gmail.com> References: <200608172305.44146.trejkaz@trypticon.org> <69f191ca0608170652g27ec86c8s69ec796a7c19c87e@mail.gmail.com> <9bbab4e0608170703o41989bbeq5d026450fc81fcdc@mail.gmail.com> <52535.203.82.163.242.1155867074.squirrel@home.trypticon.org> <53652.203.82.163.242.1155867579.squirrel@home.trypticon.org> <14b7e5ef0608171927j29e8a44dud9cf21ccee66b3af@mail.gmail.com> <51864.203.82.163.242.1155868724.squirrel@home.trypticon.org> <21fa7380608172007p22aba5fve8ef3afdd791b955@mail.gmail.com> <47242.203.82.163.242.1155874114.squirrel@home.trypticon.org> <21fa7380608172143q767754dduec2069c9909e2c8a@mail.gmail.com> Message-ID: <44E5E37E.1030801@pobox.com> Pascal Belloncle wrote: > I wish I could use mongrel as well, but with DreamHost, I'm stuck with > fcgi. What do you see as superior about Mongrel as opposed to FCGI? mathew From pdcawley at bofh.org.uk Fri Aug 18 13:29:51 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 18 Aug 2006 18:29:51 +0100 Subject: [typo] 4.1 progress In-Reply-To: (Steve Longdo's message of "Fri, 18 Aug 2006 09:30:42 -0500") References: <14b7e5ef0608162045n75c9c19chc0a3abc016a10733@mail.gmail.com> <14b7e5ef0608171748w47bb70f8ica74ae4b4c5c38ad@mail.gmail.com> Message-ID: "Steve Longdo" writes: > Edge rails has support for adding named routes from a plugin so moving the > controllers out to plugin land is viable. > > http://www.nabble.com/Re%3A-Plugin-Routes-p5856460.html Useful. But to be honest, we want rid of the controllers in most cases because we also want rid of render_component rather than because it's awkward to have a controller in a plugin directory. Still, there may be cases where we can't get away without a dedicated controller, so that will still come in handy. -- Piers Cawley http://www.bofh.org.uk/ From steve.longdo at gmail.com Fri Aug 18 14:22:23 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Fri, 18 Aug 2006 13:22:23 -0500 Subject: [typo] 4.1 progress In-Reply-To: References: <14b7e5ef0608162045n75c9c19chc0a3abc016a10733@mail.gmail.com> <14b7e5ef0608171748w47bb70f8ica74ae4b4c5c38ad@mail.gmail.com> Message-ID: I look forward to the svn delete of the compnents directory from Typo :-) On 8/18/06, Piers Cawley wrote: > > "Steve Longdo" writes: > > > Edge rails has support for adding named routes from a plugin so moving > the > > controllers out to plugin land is viable. > > > > http://www.nabble.com/Re%3A-Plugin-Routes-p5856460.html > > Useful. But to be honest, we want rid of the controllers in most cases > because we also want rid of render_component rather than because it's > awkward to have a controller in a plugin directory. > > Still, there may be cases where we can't get away without a dedicated > controller, so that will still come in handy. > > -- > Piers Cawley > http://www.bofh.org.uk/ > _______________________________________________ > 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/20060818/4d82d7dd/attachment.html From gilgit at gmail.com Fri Aug 18 20:48:23 2006 From: gilgit at gmail.com (David Richardson) Date: Fri, 18 Aug 2006 18:48:23 -0600 Subject: [typo] The Typo trunk will soon be unstable In-Reply-To: <14b7e5ef0608180459yf6430a5vb8addceb27ef0d0d@mail.gmail.com> References: <14b7e5ef0608171931h2e0db2d5t8d319d096ba469b1@mail.gmail.com> <3f1760608180134o63b48147i942efa572799f013@mail.gmail.com> <14b7e5ef0608180459yf6430a5vb8addceb27ef0d0d@mail.gmail.com> Message-ID: <35ac07b90608181748q581c480bh7431ec4eeb2406cc@mail.gmail.com> Migrations broken. == FixCanonicalServerUrl: migrating =========================================== rake aborted! undefined local variable or method `base_url' for # References: <14b7e5ef0608171931h2e0db2d5t8d319d096ba469b1@mail.gmail.com> <3f1760608180134o63b48147i942efa572799f013@mail.gmail.com> <14b7e5ef0608180459yf6430a5vb8addceb27ef0d0d@mail.gmail.com> <35ac07b90608181748q581c480bh7431ec4eeb2406cc@mail.gmail.com> Message-ID: <14b7e5ef0608182109p2839fafm81c734f5166f8ab9@mail.gmail.com> Oops--it worked at the time, but newer code has already broken it. Try r1243, it should be fixed. Scott On 8/18/06, David Richardson wrote: > Migrations broken. > > == FixCanonicalServerUrl: migrating =========================================== > rake aborted! > undefined local variable or method `base_url' for # _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From gpsnospam at gmail.com Sat Aug 19 16:58:22 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sat, 19 Aug 2006 21:58:22 +0100 Subject: [typo] Camels? Message-ID: Just tried an svn up on my local install and migrate threw out an error: == UpgradeSidebarObjects: migrating =========================================== -- add_column(:sidebars, :type, :string) -> 0.6297s -- About to call find_and_update -- remove_column(:sidebars, :type) -> 0.6988s rake aborted! You have a nil object when you didn't expect it! The error occured while evaluating nil.camelcase Camelcase? Need any more info? Gary From b.hutchison at gmail.com Sat Aug 19 18:11:39 2006 From: b.hutchison at gmail.com (Brian Hutchison) Date: Sat, 19 Aug 2006 15:11:39 -0700 Subject: [typo] Line ending problems under Windows? Message-ID: Is anyone else having problems with the 4.0.x code (including trunk) under Windows? I'm running Windows XP SP2 and I get all sorts of weird errors. I believe its related to the line endings. *** example output *** compile error ./script/../config/../app/views/layouts/accounts.rhtml:3: parse error, unexpected tIDENTIFIER, expecting kEND ./script/../config/../app/views/layouts/accounts.rhtml:4: Invalid char `\003' in expression ./script/../config/../app/views/layouts/accounts.rhtml:4: parse error, unexpected tIDENTIFIER, expecting kEND ************************** Each and every time, editing the file in an editor (I typically use Textpad & RadRails) solves the problem. In other words, I just open the file add a blank line, delete the blank line, then save (this to 'trick' the editor into setting the 'dirty' flag that a save is needed). This didn't happen in the 2.6 code base, but I can't exactly say where things went astray. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060819/f76be559/attachment.html From pdcawley at bofh.org.uk Sun Aug 20 01:03:11 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 20 Aug 2006 06:03:11 +0100 Subject: [typo] Camels? In-Reply-To: (Gary Shewan's message of "Sat, 19 Aug 2006 21:58:22 +0100") References: Message-ID: Gary Shewan writes: > Just tried an svn up on my local install and migrate threw out an error: > > == UpgradeSidebarObjects: migrating > =========================================== > -- add_column(:sidebars, :type, :string) > -> 0.6297s > -- About to call find_and_update > -- remove_column(:sidebars, :type) > -> 0.6988s > rake aborted! > You have a nil object when you didn't expect it! > The error occured while evaluating nil.camelcase > > Camelcase? YouKnowCamelcase Of more concern is the fact that you've got some sidebars with a null in the 'controller' column. I'll rejig the migration to dump out a little more information so you can try and track down what's amiss. -- Piers Cawley http://www.bofh.org.uk/ From gpsnospam at gmail.com Sun Aug 20 07:13:07 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sun, 20 Aug 2006 12:13:07 +0100 Subject: [typo] Camels? In-Reply-To: References: Message-ID: On 20 Aug 2006, at 06:03, Piers Cawley wrote: > Gary Shewan writes: > >> Just tried an svn up on my local install and migrate threw out an >> error: >> >> == UpgradeSidebarObjects: migrating >> =========================================== >> -- add_column(:sidebars, :type, :string) >> -> 0.6297s >> -- About to call find_and_update >> -- remove_column(:sidebars, :type) >> -> 0.6988s >> rake aborted! >> You have a nil object when you didn't expect it! >> The error occured while evaluating nil.camelcase >> >> Camelcase? > > YouKnowCamelcase > > Of more concern is the fact that you've got some sidebars with a null > in the 'controller' column. I'll rejig the migration to dump out a > little more information so you can try and track down what's amiss. Don't waste your time Piers, that helped me track it down. I thought the local install I had was an old mirror, but it's full of junk after running tests. Something tells me when I populate it with a copy of live data the migration will be fine. My bad :/ From gpsnospam at gmail.com Sun Aug 20 08:59:08 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sun, 20 Aug 2006 13:59:08 +0100 Subject: [typo] Repeated article text in rss2.0 feed in r1246 Message-ID: <7DB6A6B4-32B7-400C-8CA8-CCC1A4F961FF@gmail.com> I'm seeing quite a strange thing in 1246, I use RSS2.0 feeds and my the text for each article when it is published is being included twice. So an article would appear in the feed like this (for example) Typos components directory is empty The typo components directory now has no plugins. There's an echo Technorati tags: echo, typo The typo components directory now has no plugins. There's an echo Technorati tags: echo, typo I've tried restarting, and clearing caches. But that doesn't have an effect... From gpsnospam at gmail.com Sun Aug 20 09:52:34 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sun, 20 Aug 2006 14:52:34 +0100 Subject: [typo] filter chain halted log entries Message-ID: <851CE776-FD13-4DF1-A709-F1AF8E598D0C@gmail.com> Checking the logs I'm getting a lot of these 'errors': Filter chain halted as [#] returned false It's not halting anything and everything seems to be ticking along (apart from the feeds weirdness) but it doesn't look healthy. Know what I mean? Gary From gpsnospam at gmail.com Sun Aug 20 10:15:09 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sun, 20 Aug 2006 15:15:09 +0100 Subject: [typo] Theme deprecation warnings - handy Message-ID: If you're heading up trunk and your theme isn't completely knackered it's a good idea to check the log as you will get deprecation warnings for your theme which you can fix. For example: **** Deprecation warning: full_html called from themes/yourtheme/ views/articles/_comment.rhtml:6:in `_run_rhtml__themes_yourtheme_views_articles__comment' use .html instead **** I thought that handy ;) G From gpsnospam at gmail.com Sun Aug 20 10:32:59 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sun, 20 Aug 2006 15:32:59 +0100 Subject: [typo] Any colour as long as it Scribbish Message-ID: <825147D4-CAD5-4076-BFCE-C79BFB05ACFE@gmail.com> I'm part quoting Henry Ford here. So at Trunk edge I'm wondering if every theme bar Scribbish is broken? ;) Seems that way ... even Azure. Time to look into how to style Scribbish... G From pdcawley at bofh.org.uk Sun Aug 20 11:49:59 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 20 Aug 2006 16:49:59 +0100 Subject: [typo] filter chain halted log entries In-Reply-To: <851CE776-FD13-4DF1-A709-F1AF8E598D0C@gmail.com> (Gary Shewan's message of "Sun, 20 Aug 2006 14:52:34 +0100") References: <851CE776-FD13-4DF1-A709-F1AF8E598D0C@gmail.com> Message-ID: Gary Shewan writes: > Checking the logs I'm getting a lot of these 'errors': > > Filter chain halted as [# actionpack/lib/action_controller/filters.rb:242>] returned false > > It's not halting anything and everything seems to be ticking along > (apart from the feeds weirdness) but it doesn't look healthy. Know > what I mean? I think that's probably a cache hit. -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Sun Aug 20 11:51:18 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 20 Aug 2006 16:51:18 +0100 Subject: [typo] Any colour as long as it Scribbish In-Reply-To: <825147D4-CAD5-4076-BFCE-C79BFB05ACFE@gmail.com> (Gary Shewan's message of "Sun, 20 Aug 2006 15:32:59 +0100") References: <825147D4-CAD5-4076-BFCE-C79BFB05ACFE@gmail.com> Message-ID: Gary Shewan writes: > I'm part quoting Henry Ford here. So at Trunk edge I'm wondering if > every theme bar Scribbish is broken? ;) Seems that way ... even > Azure. Dunno. Both Scribbish *and* Azure have been slightly broken, but we're working on it. > Time to look into how to style Scribbish... It'll reward you for it I think. It's much nicer structurally than Azure. -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Sun Aug 20 11:49:36 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 20 Aug 2006 16:49:36 +0100 Subject: [typo] Repeated article text in rss2.0 feed in r1246 In-Reply-To: <7DB6A6B4-32B7-400C-8CA8-CCC1A4F961FF@gmail.com> (Gary Shewan's message of "Sun, 20 Aug 2006 13:59:08 +0100") References: <7DB6A6B4-32B7-400C-8CA8-CCC1A4F961FF@gmail.com> Message-ID: Gary Shewan writes: > I'm seeing quite a strange thing in 1246, I use RSS2.0 feeds and my > the text for each article when it is published is being included > twice. So an article would appear in the feed like this (for example) > > Typos components directory is empty > > The typo components directory now has no plugins. There's an echo > Technorati tags: echo, typo > > The typo components directory now has no plugins. There's an echo > Technorati tags: echo, typo > > I've tried restarting, and clearing caches. But that doesn't have an > effect... Fixed. There was a problem with the way content was being cached; instead of using a computed field, we were just using the string 'field'. Which isn't quite the right thing. -- Piers Cawley http://www.bofh.org.uk/ From gpsnospam at gmail.com Sun Aug 20 12:37:39 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Sun, 20 Aug 2006 17:37:39 +0100 Subject: [typo] Any colour as long as it Scribbish In-Reply-To: References: <825147D4-CAD5-4076-BFCE-C79BFB05ACFE@gmail.com> Message-ID: <3AF0EA74-7E54-4003-9FA9-F4299CFAFDAF@gmail.com> On 20 Aug 2006, at 16:51, Piers Cawley wrote: > Gary Shewan writes: > >> I'm part quoting Henry Ford here. So at Trunk edge I'm wondering if >> every theme bar Scribbish is broken? ;) Seems that way ... even >> Azure. > > Dunno. Both Scribbish *and* Azure have been slightly broken, but we're > working on it. > >> Time to look into how to style Scribbish... > > It'll reward you for it I think. It's much nicer structurally than > Azure. Yeah I'm going to look at theming that. All good stuff and you're putting a lot of hard work into it. But for anybody thinking of being right at the edge right now ... it's possible but can be tricky - -probably only a wise move if you *really* want to test. The note on typosphere to switch to the stable branch for svn is a wise one. From pdcawley at bofh.org.uk Sun Aug 20 13:23:11 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 20 Aug 2006 18:23:11 +0100 Subject: [typo] Any colour as long as it Scribbish In-Reply-To: <3AF0EA74-7E54-4003-9FA9-F4299CFAFDAF@gmail.com> (Gary Shewan's message of "Sun, 20 Aug 2006 17:37:39 +0100") References: <825147D4-CAD5-4076-BFCE-C79BFB05ACFE@gmail.com> <3AF0EA74-7E54-4003-9FA9-F4299CFAFDAF@gmail.com> Message-ID: Gary Shewan writes: > On 20 Aug 2006, at 16:51, Piers Cawley wrote: > >> Gary Shewan writes: >> >>> I'm part quoting Henry Ford here. So at Trunk edge I'm wondering if >>> every theme bar Scribbish is broken? ;) Seems that way ... even >>> Azure. >> >> Dunno. Both Scribbish *and* Azure have been slightly broken, but we're >> working on it. >> >>> Time to look into how to style Scribbish... >> >> It'll reward you for it I think. It's much nicer structurally than >> Azure. > > Yeah I'm going to look at theming that. All good stuff and you're > putting a lot of hard work into it. But for anybody thinking of > being right at the edge right now ... it's possible but can be tricky > - -probably only a wise move if you *really* want to test. The note > on typosphere to switch to the stable branch for svn is a wise one. Yup. The bleading edge is definitely pretty bloody at the moment. -- Piers Cawley http://www.bofh.org.uk/ From tuomas at peippo.eu Sun Aug 20 13:54:21 2006 From: tuomas at peippo.eu (tuomas at peippo.eu) Date: Sun, 20 Aug 2006 20:54:21 +0300 Subject: [typo] Gallery support Message-ID: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> I have been thinking of implementing basic gallery support for typo. The main benefit of this would be that all site's data could be handled at same place and design would be the same over the site. Gallery should be simple to use and maintain. People who need some advanced features probably uses separate gallery software like gallery2 already so there is no need to try to have all possible features on earth implemented. Main features: * Easily create and maintain many galleries * Upload system for easy/fast photo uploads * Exif support * Automatic thumbnail creation * Comments on albums/photos * Category support for photos and tags support if needed * Link albums/photos to posts The best way to do this or at least what I can think of is separate page for admin area for gallery administration. It should allow creating new galleries and organizing old ones. Moving photos to correct categories and so on. Before organizing photos we actually need to upload those first. Simplest way probably would be to reuse "resources" for this. I think more proper way would be to create new upload system to gallery page where you could upload multiple photos and assign categories/tags easily. You may also want some alternative way of uploading photos like manually copying to some location on server and then selecting them in typo. You can organize photos to different categories(albums) and add some basic information. Exif information is automatically parsed and showed on page. Photos are showed using lightbox.js but that may restricts the usage somewhat. E.g. where you show the photo information and possible comments? The gallery as the visitor sees it is very simplistic and should perhaps use current theme's properties if possible? These are just some fast typed notes about what kind of gallery support I would like to see in typo. All comments and criticism are more than welcome. I'm posting this here in hope that I could get some sort of understanding whether this is a feature that has even a slight change to get included in typo. -Tuomas Peippo From lroland at gmail.com Sun Aug 20 15:31:23 2006 From: lroland at gmail.com (Lars Roland) Date: Sun, 20 Aug 2006 21:31:23 +0200 Subject: [typo] Gallery support In-Reply-To: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> Message-ID: <4ad99e050608201231qe9ec946hdd4c240bfa9f0756@mail.gmail.com> On 8/20/06, tuomas at peippo.eu wrote: > Main features: > * Easily create and maintain many galleries > * Upload system for easy/fast photo uploads > * Exif support > * Automatic thumbnail creation > * Comments on albums/photos > * Category support for photos and tags support if needed > * Link albums/photos to posts > > The best way to do this or at least what I can think of is separate > page for admin area for gallery administration. > It should allow creating new galleries and organizing old ones. Moving > photos to correct categories and so on. A great Idea but I would much rather see a solution based on a improved version of typo's current resource handling scheme, ideally I would like to be able to use my blog in the following ways: * Create a resource category called "vacation", mark its type as gallery (enforces that only pictures gets uploaded), create a subcategory named "Caribbean 2006" and start adding my photos there. * Create a resource category called "source code", mark its type as code (ideally makes sure that the code gets highlighted), create a subcategory named "Ruby" and start adding ruby source files here. The general form should be something like this: * Create a resource category named XXX with an optional type. * Type handlers are written to add extended support for certain areas such as pictures (i.e. galleries with thumbnails, comments...), source files (highlighting, comments...) and so on. * Subcategory's are supported but optional thus we can add content to both the top resource category and its children. * Type should be inherited to subcategories I would also like to add the type to my sidebar. Thus someone can browse my blog and click pictures in my sidebar, select vacation and get a nice overview of all my vacation galleries (i.e. thumbnails or some other fancy stuff). For source files, we could just list them according to subcategories. just my 2 (euro) cents. From pdcawley at bofh.org.uk Sun Aug 20 16:02:03 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 20 Aug 2006 21:02:03 +0100 Subject: [typo] Slow spam checking makes Baby Jesus cry Message-ID: RBL spam checks on the machine my blog is running on are slower than a very slow thing on a slow day. Which does bad things, because a fastcgi process that's tied up doing dns lookups and the like is a fastcgi process that can't let the user know that their comment has been accepted and is being checked for spam. Which means they hit submit again. And again. And again. And who can blame them? It's also a fastcgi process that can't serve any requests. And fastcgi processes that can't serve requests are just the sort of thing that hosting services resource limiters don't like to see. So, we need some way of getting back to the user and accepting the next request ASAP. My current thinking is to tweak the behaviour of ContentState::Undefined so that instead of doing the spam check before saving the content and then changing the feedback state, it will have an after_save that looks something like: def after_save(content) t = Thread.new(content) do |feedback| classify(feedback) feedback.save end t.join if defined? $TESTING end The catch is, IPSocket.getaddress, which is what we use for DNS lookups, appears to be be a blocking call, which with the nature of Ruby threads, means it'll *still* hold up processing during the lookup. Thoughts? -- Piers Cawley http://www.bofh.org.uk/ From tuomas at peippo.eu Sun Aug 20 16:05:27 2006 From: tuomas at peippo.eu (tuomas at peippo.eu) Date: Sun, 20 Aug 2006 23:05:27 +0300 Subject: [typo] Gallery support In-Reply-To: <4ad99e050608201231qe9ec946hdd4c240bfa9f0756@mail.gmail.com> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <4ad99e050608201231qe9ec946hdd4c240bfa9f0756@mail.gmail.com> Message-ID: <20060820230527.odr88j88owk88c8g@webmail.nodeta.fi> Quoting Lars Roland : > The general form should be something like this: > > * Create a resource category named XXX with an optional type. > * Type handlers are written to add extended support for certain areas > such as pictures (i.e. galleries with thumbnails, comments...), source > files (highlighting, comments...) and so on. > * Subcategory's are supported but optional thus we can add content to > both the top resource category and its children. > * Type should be inherited to subcategories Yeah that seems much better solution and "future wise" if I can say. I have to take a look at the source and see how those resources are actually handled right now and how easily that sort of thing could be developed. Resources seems to already have some sort of metadata abilities but at least didn't do anything different when I quickly tested those. It would be good to somehow organize and group those resources in general too and not just for photos. From josh at hasmanythrough.com Sun Aug 20 16:09:21 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Sun, 20 Aug 2006 13:09:21 -0700 Subject: [typo] Slow spam checking makes Baby Jesus cry In-Reply-To: References: Message-ID: <601C18E4-1E51-4787-87E6-89CFD401D0F5@hasmanythrough.com> On Aug 20, 2006, at 1:02 PM, Piers Cawley wrote: > The catch is, IPSocket.getaddress, which is what we use for DNS > lookups, appears to be be a blocking call, which with the nature of > Ruby threads, means it'll *still* hold up processing during the > lookup. > > Thoughts? What about using BackgrounDRb to do the spam processing asynchronously? Toss the comments to be processed into a queue in the DB, fire up a BDRb worker, and walk away. -- Josh Susser http://blog.hasmanythrough.com From pdcawley at bofh.org.uk Sun Aug 20 16:11:34 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 20 Aug 2006 21:11:34 +0100 Subject: [typo] Slow spam checking makes Baby Jesus cry In-Reply-To: (Piers Cawley's message of "Sun, 20 Aug 2006 21:02:03 +0100") References: Message-ID: Piers Cawley writes: > The catch is, IPSocket.getaddress, which is what we use for DNS > lookups, appears to be be a blocking call, which with the nature of > Ruby threads, means it'll *still* hold up processing during the > lookup. > > Thoughts? Hmm... resolv.rb may be our friend. And (bonus points!) it's in the standard library. -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Sun Aug 20 16:51:14 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 20 Aug 2006 21:51:14 +0100 Subject: [typo] Slow spam checking makes Baby Jesus cry In-Reply-To: <601C18E4-1E51-4787-87E6-89CFD401D0F5@hasmanythrough.com> (Josh Susser's message of "Sun, 20 Aug 2006 13:09:21 -0700") References: <601C18E4-1E51-4787-87E6-89CFD401D0F5@hasmanythrough.com> Message-ID: Josh Susser writes: > On Aug 20, 2006, at 1:02 PM, Piers Cawley wrote: >> The catch is, IPSocket.getaddress, which is what we use for DNS >> lookups, appears to be be a blocking call, which with the nature of >> Ruby threads, means it'll *still* hold up processing during the >> lookup. >> >> Thoughts? > > What about using BackgrounDRb to do the spam processing > asynchronously? Toss the comments to be processed into a queue in the > DB, fire up a BDRb worker, and walk away. A nice idea to be sure, but my hosting service is quite picky about long running processes that aren't fast cgi processes launched by their copy of apache. I'm happy enough to catch a SIGKILL and do a Thread.list.each {|t| t.join}, from within dispatch.fcgi, but that's about as far as it goes. -- Piers Cawley http://www.bofh.org.uk/ From scott at sigkill.org Sun Aug 20 19:23:55 2006 From: scott at sigkill.org (scott at sigkill.org) Date: Sun, 20 Aug 2006 16:23:55 -0700 Subject: [typo] filter chain halted log entries In-Reply-To: References: <851CE776-FD13-4DF1-A709-F1AF8E598D0C@gmail.com> Message-ID: <14b7e5ef0608201623t407d013eg929e534cbae40c59@mail.gmail.com> Yeah, it's a cache hit. There's no easy way to keep rails from logging it. On 8/20/06, Piers Cawley wrote: > Gary Shewan writes: > > > Checking the logs I'm getting a lot of these 'errors': > > > > Filter chain halted as [# > actionpack/lib/action_controller/filters.rb:242>] returned false > > > > It's not halting anything and everything seems to be ticking along > > (apart from the feeds weirdness) but it doesn't look healthy. Know > > what I mean? > > I think that's probably a cache hit. > > -- > 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 Sun Aug 20 20:08:09 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 21 Aug 2006 01:08:09 +0100 Subject: [typo] Slow spam checking makes Baby Jesus cry In-Reply-To: (Piers Cawley's message of "Sun, 20 Aug 2006 21:11:34 +0100") References: Message-ID: Piers Cawley writes: > Piers Cawley writes: > >> The catch is, IPSocket.getaddress, which is what we use for DNS >> lookups, appears to be be a blocking call, which with the nature of >> Ruby threads, means it'll *still* hold up processing during the >> lookup. >> >> Thoughts? > > Hmm... resolv.rb may be our friend. And (bonus points!) it's in the > standard library. And, following further work on using threads, I'd just like to say that threading is weird and is currently doing my head in. Background classification sort of works, but only very approximately. -- Piers Cawley http://www.bofh.org.uk/ From meta at pobox.com Sun Aug 20 21:02:07 2006 From: meta at pobox.com (mathew) Date: Sun, 20 Aug 2006 20:02:07 -0500 Subject: [typo] Gallery support In-Reply-To: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> Message-ID: <44E9060F.6000208@pobox.com> tuomas at peippo.eu wrote: > I have been thinking of implementing basic gallery support for typo. > The main benefit of this would be that all site's data could be > handled at same place and design would be the same over the site. > I just don't see gallery functionality as part of a weblog engine, any more than I see chat, news and e-mail as part of a web browser. > Gallery should be simple to use and maintain. People who need some > advanced features probably uses separate gallery software like > gallery2 already so there is no need to try to have all possible > features on earth implemented. > I would say that that's a good argument for not building a gallery into typo at all: it means anyone who really wants gallery functionality will likely find the built-in functionality insufficient, so they'll end up paying the cost in bloat, without getting any benefit. That said, I don't object to gallery features in Typo as long as there's an easy way to rip them out. mathew From ernieoporto at gmail.com Sun Aug 20 21:12:30 2006 From: ernieoporto at gmail.com (Ernie Oporto) Date: Sun, 20 Aug 2006 21:12:30 -0400 Subject: [typo] Gallery support In-Reply-To: <44E9060F.6000208@pobox.com> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> Message-ID: I would be more interested in seeing Typo skins ported over to Gallery2 so that the two look more consistent when presented together on the same site. I think that would avoid reinventing the Gallery wheel. On 8/20/06, mathew wrote: > > tuomas at peippo.eu wrote: > > I have been thinking of implementing basic gallery support for typo. > > The main benefit of this would be that all site's data could be > > handled at same place and design would be the same over the site. > > > > I just don't see gallery functionality as part of a weblog engine, any > more than I see chat, news and e-mail as part of a web browser. > > > Gallery should be simple to use and maintain. People who need some > > advanced features probably uses separate gallery software like > > gallery2 already so there is no need to try to have all possible > > features on earth implemented. > > > > I would say that that's a good argument for not building a gallery into > typo at all: it means anyone who really wants gallery functionality will > likely find the built-in functionality insufficient, so they'll end up > paying the cost in bloat, without getting any benefit. > > That said, I don't object to gallery features in Typo as long as there's > an easy way to rip them out. > > > mathew > _______________________________________________ > 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/20060820/e13a562b/attachment.html From tim at digital-achievement.com Sun Aug 20 21:51:45 2006 From: tim at digital-achievement.com (Timothy Freund) Date: Sun, 20 Aug 2006 20:51:45 -0500 Subject: [typo] Gallery support In-Reply-To: References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> Message-ID: <44E911B1.5040304@digital-achievement.com> That was my thought as well, although I have never seen Gallery2. What about rgallery[1]? It's a rails application -- I haven't looked into it in any detail, but if it supports the rails theme plugin[2] we'd be 1/2 way there to having a gallery that supports existing Typo themes. Typo themes and themes for the rail theme plugin are close enough that getting a theme to work for both apps would be easy. Does rgallery support themes out of the box? Tim [1] http://rgallery.dk/wiki [2] http://www.mattmccray.com/archives/2006/04/09/rails-theme-support-plugin-v-14/ Ernie Oporto wrote: > > I would be more interested in seeing Typo skins ported over to Gallery2 > so that the two look more consistent when presented together on the same > site. I think that would avoid reinventing the Gallery wheel. > > > On 8/20/06, *mathew* > wrote: > > tuomas at peippo.eu wrote: > > I have been thinking of implementing basic gallery support for typo. > > The main benefit of this would be that all site's data could be > > handled at same place and design would be the same over the site. > > > > I just don't see gallery functionality as part of a weblog engine, any > more than I see chat, news and e-mail as part of a web browser. > > > Gallery should be simple to use and maintain. People who need some > > advanced features probably uses separate gallery software like > > gallery2 already so there is no need to try to have all possible > > features on earth implemented. > > > > I would say that that's a good argument for not building a gallery into > typo at all: it means anyone who really wants gallery functionality will > likely find the built-in functionality insufficient, so they'll end up > paying the cost in bloat, without getting any benefit. > > That said, I don't object to gallery features in Typo as long as > there's > an easy way to rip them out. > > > mathew > _______________________________________________ > 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 -- Timothy Freund http://digital-achievement.com http://edodyssey.com From inxs.hemant at gmail.com Mon Aug 21 01:27:27 2006 From: inxs.hemant at gmail.com (hemant kumar) Date: Mon, 21 Aug 2006 10:57:27 +0530 Subject: [typo] using typo command Message-ID: <44e94447.7771987f.73be.166a@mx.gmail.com> When using "typo install foo_fighter" command.It also starts the mongrel web server, if available. I would like to disable this behaviour.Where is this stuff done? From inxs.hemant at gmail.com Mon Aug 21 01:35:33 2006 From: inxs.hemant at gmail.com (hemant kumar) Date: Mon, 21 Aug 2006 11:05:33 +0530 Subject: [typo] using typo command Message-ID: <44e9462d.351126d8.11cf.ffff9a94@mx.gmail.com> Nevermind, figured it out... -----Original Message----- From: hemant kumar [mailto:inxs.hemant at gmail.com] Sent: Monday, August 21, 2006 10:57 AM To: 'typo-list at rubyforge.org' Subject: using typo command When using "typo install foo_fighter" command.It also starts the mongrel web server, if available. I would like to disable this behaviour.Where is this stuff done? From josh at hasmanythrough.com Mon Aug 21 01:35:52 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Sun, 20 Aug 2006 22:35:52 -0700 Subject: [typo] filtered parameter logging Message-ID: <3013A375-046C-4BCF-B7A7-47E8102A5A52@hasmanythrough.com> Pleeeze! http://weblog.rubyonrails.org/2006/8/21/filtered-parameter-logging -- Josh Susser http://blog.hasmanythrough.com From dom at happygiraffe.net Mon Aug 21 02:11:11 2006 From: dom at happygiraffe.net (Dominic Mitchell) Date: Mon, 21 Aug 2006 07:11:11 +0100 Subject: [typo] Slow spam checking makes Baby Jesus cry In-Reply-To: References: Message-ID: <44E94E7F.1020306@happygiraffe.net> Piers Cawley wrote: > Piers Cawley writes: > >> Piers Cawley writes: >> >>> The catch is, IPSocket.getaddress, which is what we use for DNS >>> lookups, appears to be be a blocking call, which with the nature of >>> Ruby threads, means it'll *still* hold up processing during the >>> lookup. >>> >>> Thoughts? >> Hmm... resolv.rb may be our friend. And (bonus points!) it's in the >> standard library. > > And, following further work on using threads, I'd just like to say > that threading is weird and is currently doing my head in. Background > classification sort of works, but only very approximately. Would it not be possible to take the same approach as mod_perl and schedule some code to run immediately after the current request, but before the next one (a cleanup handler)? It would still mean that particular fastcgi process was unavailable, but it would mean that you could return to the user quicker. Unfortunately, a quick look in railties at the dispatcher shows that rails doesn't offer anything like this. Damn. -Dom From pdcawley at bofh.org.uk Mon Aug 21 02:44:01 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 21 Aug 2006 07:44:01 +0100 Subject: [typo] Slow spam checking makes Baby Jesus cry In-Reply-To: <44E94E7F.1020306@happygiraffe.net> (Dominic Mitchell's message of "Mon, 21 Aug 2006 07:11:11 +0100") References: <44E94E7F.1020306@happygiraffe.net> Message-ID: Dominic Mitchell writes: > Piers Cawley wrote: >> Piers Cawley writes: >> >>> Piers Cawley writes: >>> >>>> The catch is, IPSocket.getaddress, which is what we use for DNS >>>> lookups, appears to be be a blocking call, which with the nature of >>>> Ruby threads, means it'll *still* hold up processing during the >>>> lookup. >>>> >>>> Thoughts? >>> Hmm... resolv.rb may be our friend. And (bonus points!) it's in the >>> standard library. >> >> And, following further work on using threads, I'd just like to say >> that threading is weird and is currently doing my head in. Background >> classification sort of works, but only very approximately. > > Would it not be possible to take the same approach as mod_perl and > schedule some code to run immediately after the current request, but > before the next one (a cleanup handler)? It would still mean that > particular fastcgi process was unavailable, but it would mean that you > could return to the user quicker. Sadly not. Some of the spam checks I've seen in my logs have taken the best part of a minute. Tie up a couple of dispatchers like that and your performance is screwed. > Unfortunately, a quick look in railties at the dispatcher shows that > rails doesn't offer anything like this. Damn. Monkey patching the dispatcher to allow it isn't exactly hard. But see above. -- Piers Cawley http://www.bofh.org.uk/ From tuomas at peippo.eu Mon Aug 21 05:38:38 2006 From: tuomas at peippo.eu (tuomas at peippo.eu) Date: Mon, 21 Aug 2006 12:38:38 +0300 Subject: [typo] Gallery support In-Reply-To: <44E9060F.6000208@pobox.com> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> Message-ID: <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> Quoting mathew : > I just don't see gallery functionality as part of a weblog engine, any > more than I see chat, news and e-mail as part of a web browser. Well think of it more like photo handling feature not a fullblown gallery. > I would say that that's a good argument for not building a gallery into > typo at all: it means anyone who really wants gallery functionality will > likely find the built-in functionality insufficient, so they'll end up > paying the cost in bloat, without getting any benefit. > > That said, I don't object to gallery features in Typo as long as there's > an easy way to rip them out. Well idea was to create a simple "gallery" which would allow user to easily upload photos and show them on the web. There are lots of users that dont need any fancy gallery2 features and just want to show couple of photos nicely organized. E.g if you want to include photo in your post you would need to first create thumbnail for it and then upload them both to server and then use some textile(?) magic to get it showed. I think better approach would be that typo would automatically create thumbnail for it and you could nicely link them to your post or show in complete separate page them all. From pdcawley at bofh.org.uk Mon Aug 21 06:54:41 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 21 Aug 2006 11:54:41 +0100 Subject: [typo] RESTful Typo Message-ID: So, I've finally got around to reading up on the workings of the Simply RESTful additions to Edge rails and I think I am in love. The first time I saw Rails, not long after it was announced as it happens, I looked at the standard URL forms and thought "Ick! That's not very RESTful". Then when Typo came along and I started hacking, I tended to hold my nose slightly as I contemplated the default routes. I spy some routes.rb rejiggery in the near future. My goal is to continue to support the following permaURLs, but they will no longer be canonical: articles/:year/:month/:day/:title articles/:year/:month/:day xml/itunes/feed.xml xml/articlerss/:id/feed.xml # Probably a redirect to 'articles/:id', :format => 'xml' xml/commentrss/feed.xml => comments/index.xml xml/trackbackrss/feed.xml => trackbacks/index.xml xml/:format/feed.xml => articles/index.xml;format xml/:format/:type/feed.xml => :type/index.xml;format Etc. The translation to RESTful URLs should be relatively straightforward. At the moment, it looks like the biggest change would be to the admin URLs. For instance admin/content would become articles/index;admin (which so wouldn't be cached). The power of RESTful URLs becomes apparent when you consider page caching. One of the problems we had with page caching before was that the webserver didn't take query strings into account when doing page lookups, and that caused all sorts of headaches. Even without page caching I think we're going to be able to neaten up the fragment caching, which is no bad thing. Thoughts? -- Piers Cawley http://www.bofh.org.uk/ From trejkaz at trypticon.org Mon Aug 21 08:40:34 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Mon, 21 Aug 2006 22:40:34 +1000 Subject: [typo] RESTful Typo In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 21/08/2006, at 20:54 PM, Piers Cawley wrote: > The translation to RESTful URLs should be relatively > straightforward. At the moment, it looks like the biggest change would > be to the admin URLs. For instance admin/content would become > articles/index;admin (which so wouldn't be cached). Whatever you do, don't make it too hard for those of us who use URL rewriting to force all admin to go via HTTPS. At the moment, my pattern is more or less just "^/(admin|accounts)/.*" and I kinda like the simplicity. If the new admin URLs all reliably end in ";admin" then the pattern should be just as simple. Much more diversion from that would start to become difficult. :-) TX -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFE6anGuMe8iwN+6nMRAsoSAKCLz4986uNegzWX0fJKWXVHW+06rACfbwZB T9LyGVFRWLLLBQGXjml9ymM= =QiM1 -----END PGP SIGNATURE----- From pdcawley at bofh.org.uk Mon Aug 21 09:38:01 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 21 Aug 2006 14:38:01 +0100 Subject: [typo] RESTful Typo In-Reply-To: (trejkaz@trypticon.org's message of "Mon, 21 Aug 2006 22:40:34 +1000") References: Message-ID: Trejkaz writes: > On 21/08/2006, at 20:54 PM, Piers Cawley wrote: > >> The translation to RESTful URLs should be relatively >> straightforward. At the moment, it looks like the biggest change would >> be to the admin URLs. For instance admin/content would become >> articles/index;admin (which so wouldn't be cached). > > Whatever you do, don't make it too hard for those of us who use URL > rewriting to force all admin to go via HTTPS. At the moment, my > pattern is more or less just "^/(admin|accounts)/.*" and I kinda like > the simplicity. > > If the new admin URLs all reliably end in ";admin" then the pattern > should be just as simple. Much more diversion from that would start > to become difficult. :-) I can't promise they'll reliably end in admin I'm afraid. However, it shouldn't be beyond the bounds of possibility to tweak the 'require authentication' filter to redirect http URLs to https ones. Probably an environment.rb configuration, and definitely the neater solution. -- Piers Cawley http://www.bofh.org.uk/ From scott at sigkill.org Mon Aug 21 11:09:34 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 21 Aug 2006 08:09:34 -0700 Subject: [typo] Slow spam checking makes Baby Jesus cry In-Reply-To: References: <44E94E7F.1020306@happygiraffe.net> Message-ID: <14b7e5ef0608210809x4079fa3dx74ce0969b3e8d4eb@mail.gmail.com> On 8/20/06, Piers Cawley wrote: > Dominic Mitchell writes: > > > Piers Cawley wrote: > >> Piers Cawley writes: > >> > >>> Piers Cawley writes: > >>> > >>>> The catch is, IPSocket.getaddress, which is what we use for DNS > >>>> lookups, appears to be be a blocking call, which with the nature of > >>>> Ruby threads, means it'll *still* hold up processing during the > >>>> lookup. > >>>> > >>>> Thoughts? > >>> Hmm... resolv.rb may be our friend. And (bonus points!) it's in the > >>> standard library. > >> > >> And, following further work on using threads, I'd just like to say > >> that threading is weird and is currently doing my head in. Background > >> classification sort of works, but only very approximately. > > > > Would it not be possible to take the same approach as mod_perl and > > schedule some code to run immediately after the current request, but > > before the next one (a cleanup handler)? It would still mean that > > particular fastcgi process was unavailable, but it would mean that you > > could return to the user quicker. > > Sadly not. Some of the spam checks I've seen in my logs have taken the > best part of a minute. Tie up a couple of dispatchers like that and > your performance is screwed. > > > Unfortunately, a quick look in railties at the dispatcher shows that > > rails doesn't offer anything like this. Damn. > > Monkey patching the dispatcher to allow it isn't exactly hard. But see above. This brings up a reasonably obvious question that I haven't seen asked yet--why not turn off RBL and like Akismet take care of it? Akismet seems pretty fast, and I've been happy with its error rate so far. I've never been a bit RBL fan, for the usual reasons--all RBL lists seem to eventually decend into filtering for spam politics more then spam itself--ISP X doesn't have a good abuse policy, so we're going to block all of their addresses to force a change. I'd much rather block based on content then politics :-). Scott From meta at pobox.com Mon Aug 21 11:10:47 2006 From: meta at pobox.com (mathew) Date: Mon, 21 Aug 2006 10:10:47 -0500 Subject: [typo] Gallery support In-Reply-To: <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> Message-ID: <44E9CCF7.7070900@pobox.com> tuomas at peippo.eu wrote: > Well idea was to create a simple "gallery" which would allow user to > easily upload photos and show them on the web. There are lots of users > that dont need any fancy gallery2 features and just want to show > couple of photos nicely organized. E.g if you want to include photo in > your post you would need to first create thumbnail for it and then > upload them both to server and then use some textile(?) magic to get > it showed. Well, anyone can go create an account on Flickr and use that. Takes a minute or two to set up, and you get commenting on photos, tagging photos, groups of photos, and so on. I kinda feel like if you can't do at least as much as that, you might as well not bother. The bar has been raised too high for simple solutions to be worth the bloat. mathew From scott at sigkill.org Mon Aug 21 11:19:53 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 21 Aug 2006 08:19:53 -0700 Subject: [typo] RESTful Typo In-Reply-To: References: Message-ID: <14b7e5ef0608210819q6945153fy577639851bea1c7b@mail.gmail.com> On 8/21/06, Piers Cawley wrote: > Trejkaz writes: > > > On 21/08/2006, at 20:54 PM, Piers Cawley wrote: > > > >> The translation to RESTful URLs should be relatively > >> straightforward. At the moment, it looks like the biggest change would > >> be to the admin URLs. For instance admin/content would become > >> articles/index;admin (which so wouldn't be cached). > > > > Whatever you do, don't make it too hard for those of us who use URL > > rewriting to force all admin to go via HTTPS. At the moment, my > > pattern is more or less just "^/(admin|accounts)/.*" and I kinda like > > the simplicity. > > > > If the new admin URLs all reliably end in ";admin" then the pattern > > should be just as simple. Much more diversion from that would start > > to become difficult. :-) > > I can't promise they'll reliably end in admin I'm afraid. However, > it shouldn't be beyond the bounds of possibility to tweak the 'require > authentication' filter to redirect http URLs to https ones. Probably > an environment.rb configuration, and definitely the neater solution. I'm not completely sure that I see the point in switching URL formats. I actually *like* our permalink URLs, and frequently use article/:year/:month to view a subset of the blog. I may be in the minority on this, though :-). I can see moving to restful URLs for API-ish code like the feeds (and then mirroring them with PUT, DELETE, to replace the admin interface), but it's not clear to me that more restful permalink URLs really achieves any particular goal. Can you give a couple examples? Scott From scott at sigkill.org Mon Aug 21 11:26:42 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 21 Aug 2006 08:26:42 -0700 Subject: [typo] Gallery support In-Reply-To: <44E9CCF7.7070900@pobox.com> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> <44E9CCF7.7070900@pobox.com> Message-ID: <14b7e5ef0608210826u3d1609ccn51cb42b43d14315d@mail.gmail.com> On 8/21/06, mathew wrote: > tuomas at peippo.eu wrote: > > Well idea was to create a simple "gallery" which would allow user to > > easily upload photos and show them on the web. There are lots of users > > that dont need any fancy gallery2 features and just want to show > > couple of photos nicely organized. E.g if you want to include photo in > > your post you would need to first create thumbnail for it and then > > upload them both to server and then use some textile(?) magic to get > > it showed. > > Well, anyone can go create an account on Flickr and use that. Takes a > minute or two to set up, and you get commenting on photos, tagging > photos, groups of photos, and so on. I kinda feel like if you can't do > at least as much as that, you might as well not bother. The bar has been > raised too high for simple solutions to be worth the bloat. Yeah, this is basically my opinion. Back when I first got involved with Typo, I was trying to decide between working on better blog software or better gallery software, because I wasn't happy with my choices on either front. Typo was an easier place to start, but I still figured that I'd get back to gallery coding for a while, until I started using Flickr. Then I just gave up on the whole idea--Flickr is better then anything I could put together in a reasonable amount of time, and they're doing a great job with it. Frankly, the $25/year they want for "professional" memberships is probably less then I'd pay maintaining my own site for a year. Scott From scott at sigkill.org Mon Aug 21 11:31:34 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 21 Aug 2006 08:31:34 -0700 Subject: [typo] Line ending problems under Windows? In-Reply-To: References: Message-ID: <14b7e5ef0608210831k20316007ubfdfafdee1e1b04a@mail.gmail.com> \003 is Control-C, which isn't a Unix line ending character. Is it just this one file? Scott On 8/19/06, Brian Hutchison wrote: > Is anyone else having problems with the 4.0.x code (including trunk) under > Windows? I'm running Windows XP SP2 and I get all sorts of weird errors. I > believe its related to the line endings. > > *** example output *** > compile error > ./script/../config/../app/views/layouts/accounts.rhtml:3: > parse error, unexpected tIDENTIFIER, expecting kEND > ./script/../config/../app/views/layouts/accounts.rhtml:4: > Invalid char `\003' in expression > > ./script/../config/../app/views/layouts/accounts.rhtml:4: > parse error, unexpected tIDENTIFIER, expecting kEND > ************************** > > Each and every time, editing the file in an editor (I typically use Textpad > & RadRails) solves the problem. In other words, I just open the file add a > blank line, delete the blank line, then save (this to 'trick' the editor > into setting the 'dirty' flag that a save is needed). This didn't happen in > the 2.6 code base, but I can't exactly say where things went astray. > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From lroland at gmail.com Mon Aug 21 11:37:30 2006 From: lroland at gmail.com (Lars Roland) Date: Mon, 21 Aug 2006 17:37:30 +0200 Subject: [typo] Gallery support In-Reply-To: <44E9CCF7.7070900@pobox.com> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> <44E9CCF7.7070900@pobox.com> Message-ID: <4ad99e050608210837v1d79ad55n325ceb510f12670@mail.gmail.com> On 8/21/06, mathew wrote: > > Well, anyone can go create an account on Flickr and use that. Takes a > minute or two to set up, and you get commenting on photos, tagging > photos, groups of photos, and so on. I kinda feel like if you can't do > at least as much as that, you might as well not bother. The bar has been > raised too high for simple solutions to be worth the bloat. By that logic you could just as well open a account on blogger.com and drop typo all together - why is it that so many of you feel that adding gallery functionality or categorized resource handlers will bloat your blog ?, you can just chose not to use it - typo already have a ton of functionality that I do not use, still I appreciate having the choice. If you want to keep using flickr or some other photo service then by all means do that. I just do not consider a free flickr account the holy grail of photo blogging and the existence of flickr is not a argument for having gallery support in typo. It is a relevant blog technology, somebody volunteered for implementing it and you do to have to use it. Embrace change. -- Lars Roland From andy at ciordia.info Mon Aug 21 11:44:11 2006 From: andy at ciordia.info (Andy Ciordia) Date: Mon, 21 Aug 2006 11:44:11 -0400 Subject: [typo] Gallery support In-Reply-To: <4ad99e050608210837v1d79ad55n325ceb510f12670@mail.gmail.com> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> <44E9CCF7.7070900@pobox.com> <4ad99e050608210837v1d79ad55n325ceb510f12670@mail.gmail.com> Message-ID: <32885D31-29B7-49EA-94EE-77A3C199EA3B@ciordia.info> On Aug 21, 2006, at 11:37 AM, Lars Roland wrote: > On 8/21/06, mathew wrote: > > By that logic you could just as well open a account on blogger.com and > drop typo all together - why is it that so many of you feel that > adding gallery functionality or categorized resource handlers will > bloat your blog ?, you can just chose not to use it - typo already > have a ton of functionality that I do not use, still I appreciate > having the choice. > > If you want to keep using flickr or some other photo service then by > all means do that. I just do not consider a free flickr account the > holy grail of photo blogging and the existence of flickr is not a > argument for having gallery support in typo. It is a relevant blog > technology, somebody volunteered for implementing it and you do to > have to use it. > > Embrace change. It's just eyeballs and opinions Lars. I use flickr but I also keep all my photos in a local gallery install because I still think sets of sets is a good idea (and I like my personal data backed up/ local). That and no one has ever supported or rebuilt a gallery that could actually be integrated into a blog in a way I've liked (or required a lot of massaging/scripting/etc). I think some way of tapping into a gallery install would be fantastic that didn't require me to keep lists of files, or outright directories, etc, in check. Rather that gallery (or insert some uncreated-local-able service) have an api and we just tap on that through typo or whatnot. I'm not sure what the correct answer is moving forward, just that those who do a lot of photography and blog will continue to stir the pot and someone with skill will help bridge the divide one day. -a -- Andy Ciordia : andy at ciordia.info it's my island : http://andy.ciordia.info From tuomas at peippo.eu Mon Aug 21 11:47:13 2006 From: tuomas at peippo.eu (tuomas at peippo.eu) Date: Mon, 21 Aug 2006 18:47:13 +0300 Subject: [typo] Gallery support In-Reply-To: <14b7e5ef0608210826u3d1609ccn51cb42b43d14315d@mail.gmail.com> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> <44E9CCF7.7070900@pobox.com> <14b7e5ef0608210826u3d1609ccn51cb42b43d14315d@mail.gmail.com> Message-ID: <20060821184713.uc55tcvag0gw4kgk@webmail.nodeta.fi> Quoting Scott Laird : > On 8/21/06, mathew wrote: >> Well, anyone can go create an account on Flickr and use that. Takes a >> minute or two to set up, and you get commenting on photos, tagging >> photos, groups of photos, and so on. I kinda feel like if you can't do >> at least as much as that, you might as well not bother. The bar has been >> raised too high for simple solutions to be worth the bloat. > > Yeah, this is basically my opinion. Back when I first got involved > with Typo, I was trying to decide between working on better blog > software or better gallery software, because I wasn't happy with my > choices on either front. Typo was an easier place to start, but I > still figured that I'd get back to gallery coding for a while, until I > started using Flickr. Then I just gave up on the whole idea--Flickr > is better then anything I could put together in a reasonable amount of > time, and they're doing a great job with it. Frankly, the $25/year > they want for "professional" memberships is probably less then I'd pay > maintaining my own site for a year. Well of course you can use flickr or whatever you want but the point was that not all users want to. People may have already some hosted webpage with plenty of space for images so why would someone put images to some slow(?) flickr server. It also simplifies the upload process a lot. You dont have to first upload images to flickr and then found out those links to be included in your post. And if you want to show all your photos in single place within your site it's kind of impossible with flickr or at least as long as I know. You probably can fetch those images one by one from flickr but isn't it the same to store on your server then. If I just want to quickly post some one photo to be included in my post, I'm pretty sure that I don't bother first registering to flickr for that. Alltough I agree that it's probably not very good idea to include every possible feature to typo. Some sort of plugin system would be good where user could download/activate optional plugins if needed. That might not be so easy to do but might be "the most proper" way to handle this. I also would like to see it more like a feature to resources handling and not a separate gallery as Lars Roland pointed out. It should allow user to nicely group same kind of media( not just photos) and perhaps also do some other optional things like thumbnail creation with image files if wanted. These kind of operations could possibly be handled like plugins? From scott at sigkill.org Mon Aug 21 11:47:58 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 21 Aug 2006 08:47:58 -0700 Subject: [typo] Gallery support In-Reply-To: <4ad99e050608210837v1d79ad55n325ceb510f12670@mail.gmail.com> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> <44E9CCF7.7070900@pobox.com> <4ad99e050608210837v1d79ad55n325ceb510f12670@mail.gmail.com> Message-ID: <14b7e5ef0608210847w703d2bf6u9541b8468d7861ce@mail.gmail.com> On 8/21/06, Lars Roland wrote: > On 8/21/06, mathew wrote: > > > > Well, anyone can go create an account on Flickr and use that. Takes a > > minute or two to set up, and you get commenting on photos, tagging > > photos, groups of photos, and so on. I kinda feel like if you can't do > > at least as much as that, you might as well not bother. The bar has been > > raised too high for simple solutions to be worth the bloat. > > By that logic you could just as well open a account on blogger.com and > drop typo all together - why is it that so many of you feel that > adding gallery functionality or categorized resource handlers will > bloat your blog ?, you can just chose not to use it - typo already > have a ton of functionality that I do not use, still I appreciate > having the choice. > > If you want to keep using flickr or some other photo service then by > all means do that. I just do not consider a free flickr account the > holy grail of photo blogging and the existence of flickr is not a > argument for having gallery support in typo. It is a relevant blog > technology, somebody volunteered for implementing it and you do to > have to use it. Yeah, but there's a simple difference between Blogger and Flickr: Blogger sucks. Flickr doesn't. I have a blogger blog that I use for work, and I can't stand it. I've used four or five different blog platforms, either for testing or for hosting a real blog, and I'm happiest with Typo. Which isn't all that surprising, considering how much code I've added to Typo. On the other hand, Flickr works pretty well for me. There are a few things that I wish they could do, but I've been able to implement everything that I really care about via their API. Frankly, if I was going to write my own gallery software, I'd probably have to start by cloning Flickr. If you want to write your own gallery code, then go for it--no one's stopping you. If you're writing it just to make yourself happy and serve your own needs, then have fun. If you're trying to build something that lots of people will adopt, then you're going to have to do a lot of work to beat Flickr, though. Scott From zerohalo at gmail.com Mon Aug 21 12:01:25 2006 From: zerohalo at gmail.com (zer0halo) Date: Mon, 21 Aug 2006 11:01:25 -0500 Subject: [typo] Gallery support In-Reply-To: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> Message-ID: <92b38bd50608210901k46595c5en251fb2f828065b2c@mail.gmail.com> On 8/20/06, tuomas at peippo.eu wrote: > > I have been thinking of implementing basic gallery support for typo. > The main benefit of this would be that all site's data could be > handled at same place and design would be the same over the site. > > Gallery should be simple to use and maintain. People who need some > advanced features probably uses separate gallery software like > gallery2 already so there is no need to try to have all possible > features on earth implemented. > > > As others have mentioned, I recommend a separate gallery app which plays nicely with Typo and with several functions that can be called from Typo for easy display of a photo from the gallery either in the sidebar (a-la-Flikr style), or in an individual post. I would recommend that you look at ZenPhoto, which is a gallery in PHP that integrates nicely with WordPress via two plugins (ZenShow and ZenPress). The ZenPress plugin allows you to select a photo from your gallery while writing an article, which IMO is a great way to do it. As someone mentioned, there's a port of Apache gallery to Rails, so perhaps a plugin can be written for Typo that integrates that nicely. That would be better than using PHP Gallery (which is overly bloated for many people's taste, especially those who like Rails apps). That way you don't need any gallery admin functions in Typo itself. Just use the gallery app for that, add photos to your galleries, and then pull them in to your posts when you want them. You can also use that to show random photos from your gallery in your sidebar (for those who don't want to use Flickr--I prefer to host my own photos). http://www.zenphoto.org/ http://www.zenphoto.org:8080/confluence/display/PLUG/Home -- "Impossible is nothing." -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060821/6704cc66/attachment.html From lroland at gmail.com Mon Aug 21 12:05:17 2006 From: lroland at gmail.com (Lars Roland) Date: Mon, 21 Aug 2006 18:05:17 +0200 Subject: [typo] Gallery support In-Reply-To: <32885D31-29B7-49EA-94EE-77A3C199EA3B@ciordia.info> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> <44E9CCF7.7070900@pobox.com> <4ad99e050608210837v1d79ad55n325ceb510f12670@mail.gmail.com> <32885D31-29B7-49EA-94EE-77A3C199EA3B@ciordia.info> Message-ID: <4ad99e050608210905y45438ff0md5797bddc526993c@mail.gmail.com> On 8/21/06, Andy Ciordia wrote: > It's just eyeballs and opinions Lars. Of cause, we are having a debate here > I use flickr but I also keep > all my photos in a local gallery install because I still think sets > of sets is a good idea (and I like my personal data backed up/ > local). Same here > I think some way of > tapping into a gallery install would be fantastic that didn't require > me to keep lists of files, or outright directories, etc, in check. > Rather that gallery (or insert some uncreated-local-able service) > have an api and we just tap on that through typo or whatnot. That is s great idea - being able to control blog photos through a application like f-spot (http://f-spot.org/) would be very nice. Do any of the other major blogs done something like this ?, if so then perhaps there is some API we could support. I do however detest the idea of not being able to do at least some minor gallery editing from inside the the typo admin interface - sometimes I am not on my main computer and still want to blog on something, so the support for photo management software should be optional, not required. I still think that adding resource categories (sub categories might be a different beast), is the best and easiest solution. Also it is a general scheme and is not limited to photos. -- Lars Roland From mattrose at folkwolf.net Mon Aug 21 12:30:00 2006 From: mattrose at folkwolf.net (Matt Rose) Date: Mon, 21 Aug 2006 12:30:00 -0400 (EDT) Subject: [typo] Sidebars in trunk Message-ID: Apparently, I'm masochistic, because I've written two custom sidebars, and I'm running directly off of trunk. This caused a whole bunch of fun when I upgraded last night. I actually had to go into the database and delete sidebar entries by hand this morning. This is actually fine, I expected it, however, I wanted to get started on re-writing the sidebars for 4.1, and I can't even find them anymore. They're not in components/plugins/sidebars. -- -------------------------------------------------------------------------- Matt Rose mattrose at folkwolf.net Visit my blog! http://folkwolf.net He's a suave Jewish vampire hunter on his last day in the job. She's an orphaned Buddhist bodyguard living homeless in New York's sewers. They fight crime! From mattrose at folkwolf.net Mon Aug 21 12:32:30 2006 From: mattrose at folkwolf.net (Matt Rose) Date: Mon, 21 Aug 2006 12:32:30 -0400 (EDT) Subject: [typo] Sidebars in trunk In-Reply-To: References: Message-ID: Never mind. vendor/plugins This is going to be fun... On Mon, 21 Aug 2006, Matt Rose wrote: > > Apparently, I'm masochistic, because I've written two custom sidebars, and > I'm running directly off of trunk. This caused a whole bunch of fun when > I upgraded last night. I actually had to go into the database and delete > sidebar entries by hand this morning. This is actually fine, I expected > it, however, I wanted to get started on re-writing the sidebars for 4.1, > and I can't even find them anymore. They're not in > components/plugins/sidebars. > > -- -------------------------------------------------------------------------- Matt Rose mattrose at folkwolf.net Visit my blog! http://folkwolf.net He's an unconventional amnesiac paranormal investigator with a secret. She's a cynical red-headed former first lady with the power to bend men's minds. They fight crime! From neuro at 7el.net Mon Aug 21 12:19:28 2006 From: neuro at 7el.net (Frederic de Villamil) Date: Mon, 21 Aug 2006 18:19:28 +0200 Subject: [typo] Sidebars in trunk In-Reply-To: References: Message-ID: <44E9DD10.3040002@7el.net> Matt Rose a ?crit : > Apparently, I'm masochistic, because I've written two custom sidebars, and > I'm running directly off of trunk. This caused a whole bunch of fun when > I upgraded last night. I actually had to go into the database and delete > sidebar entries by hand this morning. This is actually fine, I expected > it, however, I wanted to get started on re-writing the sidebars for 4.1, > and I can't even find them anymore. They're not in > components/plugins/sidebars. > Hi, I had the same issue yesterday, and I found them in /vendor/plugins Cheers 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. http://t37.net http://fredericdevillamil.com neuro at 7el.net tel: +33 (0)6 62 19 1337 From tuomas at peippo.eu Mon Aug 21 12:31:32 2006 From: tuomas at peippo.eu (tuomas at peippo.eu) Date: Mon, 21 Aug 2006 19:31:32 +0300 Subject: [typo] Gallery support In-Reply-To: <4ad99e050608210905y45438ff0md5797bddc526993c@mail.gmail.com> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> <44E9CCF7.7070900@pobox.com> <4ad99e050608210837v1d79ad55n325ceb510f12670@mail.gmail.com> <32885D31-29B7-49EA-94EE-77A3C199EA3B@ciordia.info> <4ad99e050608210905y45438ff0md5797bddc526993c@mail.gmail.com> Message-ID: <20060821193132.lxce8ucni800ks8s@webmail.nodeta.fi> Quoting Lars Roland : > That is s great idea - being able to control blog photos through a > application like f-spot (http://f-spot.org/) would be very nice. Do > any of the other major blogs done something like this ?, if so then > perhaps there is some API we could support. Yeah that sounds good but are there available any such apps that supports some sort of photo uploading with categories and tags? > I do however detest the idea of not being able to do at least some > minor gallery editing from inside the the typo admin interface - > sometimes I am not on my main computer and still want to blog on > something, so the support for photo management software should be > optional, not required. I still think that adding resource categories > (sub categories might be a different beast), is the best and easiest > solution. Also it is a general scheme and is not limited to photos. If you are going to use some sort of local app to handle all photos to server then of course you also need to access at least subset of those features from web interface. I'm in favor on extending that resources handling to support different media better and then adding some existing or new API for handling photo manipulation in client applications. Intgreating some existing gallery e.g. gallery2 to typo seems pretty overkill to me but I guess it depends how you do it. Plugins would be good but it would then need creating some sort of plugin system first. From b.hutchison at gmail.com Mon Aug 21 12:49:59 2006 From: b.hutchison at gmail.com (Brian Hutchison) Date: Mon, 21 Aug 2006 09:49:59 -0700 Subject: [typo] Line ending problems under Windows? In-Reply-To: <14b7e5ef0608210831k20316007ubfdfafdee1e1b04a@mail.gmail.com> References: <14b7e5ef0608210831k20316007ubfdfafdee1e1b04a@mail.gmail.com> Message-ID: No, its multiple files. I cleaned up this one file, ran for a ways and then hit more problems... opened up the next indicated file & saved, and then hit another problem, etc. I finally just batch-edited every single file in the tree and then it was smooth sailing. If you need a list of them that caused a problem just let me know and I'll install a fresh copy and try again. Note, it also happened when I installed off the gem in addition to via SVN. I was playing around with the SVN eol options, but I don't think that's really it now. Thank you for your confirmation -- I should have noticed \003 is not an eol myself but I jumped to conclusions. Brian On 8/21/06, Scott Laird wrote: > > \003 is Control-C, which isn't a Unix line ending character. Is it > just this one file? > > > Scott > > On 8/19/06, Brian Hutchison wrote: > > Is anyone else having problems with the 4.0.x code (including trunk) > under > > Windows? I'm running Windows XP SP2 and I get all sorts of weird errors. > I > > believe its related to the line endings. > > > > *** example output *** > > compile error > > ./script/../config/../app/views/layouts/accounts.rhtml:3: > > parse error, unexpected tIDENTIFIER, expecting kEND > > ./script/../config/../app/views/layouts/accounts.rhtml:4: > > Invalid char `\003' in expression > > > > ./script/../config/../app/views/layouts/accounts.rhtml:4: > > parse error, unexpected tIDENTIFIER, expecting kEND > > ************************** > > > > Each and every time, editing the file in an editor (I typically use > Textpad > > & RadRails) solves the problem. In other words, I just open the file add > a > > blank line, delete the blank line, then save (this to 'trick' the editor > > into setting the 'dirty' flag that a save is needed). This didn't > happen in > > the 2.6 code base, but I can't exactly say where things went astray. > > > > > > _______________________________________________ > > 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/20060821/885a6602/attachment.html From margrymouse-newsletters at yahoo.com Mon Aug 21 13:14:15 2006 From: margrymouse-newsletters at yahoo.com (Pauli's List Subscriptions) Date: Mon, 21 Aug 2006 10:14:15 -0700 (PDT) Subject: [typo] Help installing - migration error Message-ID: <20060821171415.81071.qmail@web31809.mail.mud.yahoo.com> I get the following error in migration from Typo trunk checked I out last night - any suggestions? -- add_column(:contents, :status_confirmed, :boolean) -> 0.8755s -- About to call find_and_update == AddStatusConfirmedFieldToContent: migrated (0.8820s) ======================= == FixCanonicalServerUrl: migrating =========================================== rake aborted! private method `gsub' called for nil:NilClass (See full trace by running task with --trace) From dom at happygiraffe.net Mon Aug 21 14:10:22 2006 From: dom at happygiraffe.net (Dominic Mitchell) Date: Mon, 21 Aug 2006 19:10:22 +0100 Subject: [typo] Sidebars in trunk In-Reply-To: References: Message-ID: <44E9F70E.6050300@happygiraffe.net> Matt Rose wrote: > Never mind. > > vendor/plugins > > This is going to be fun... Piers has just started rewriting the sidebars in trunk. You should probably follow along his blog: http://www.bofh.org.uk/articles/category/typo -Dom > On Mon, 21 Aug 2006, Matt Rose wrote: > >> Apparently, I'm masochistic, because I've written two custom sidebars, and >> I'm running directly off of trunk. This caused a whole bunch of fun when >> I upgraded last night. I actually had to go into the database and delete >> sidebar entries by hand this morning. This is actually fine, I expected >> it, however, I wanted to get started on re-writing the sidebars for 4.1, >> and I can't even find them anymore. They're not in >> components/plugins/sidebars. >> >> > From meta at pobox.com Mon Aug 21 14:27:06 2006 From: meta at pobox.com (mathew) Date: Mon, 21 Aug 2006 13:27:06 -0500 Subject: [typo] Gallery support In-Reply-To: <4ad99e050608210837v1d79ad55n325ceb510f12670@mail.gmail.com> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> <44E9CCF7.7070900@pobox.com> <4ad99e050608210837v1d79ad55n325ceb510f12670@mail.gmail.com> Message-ID: <44E9FAFA.5090302@pobox.com> Lars Roland wrote: > On 8/21/06, mathew wrote: > >> Well, anyone can go create an account on Flickr and use that. Takes a >> minute or two to set up, and you get commenting on photos, tagging >> photos, groups of photos, and so on. I kinda feel like if you can't do >> at least as much as that, you might as well not bother. The bar has been >> raised too high for simple solutions to be worth the bloat. >> > > By that logic you could just as well open a account on blogger.com and > drop typo all together There are a couple of important differences. The big one is that I've been banned from blog hosting services for what I write, whereas I've never had any censorship problems over my photos. The second is that photos I put on the web are downsized secondary content; if the hosting goes bang, I upload them somewhere else from the original files. They're just pretty things to look at, not statements of belief or anything I really care about everyone being able to see. If I was a photojournalist, on the other hand, I'd want my own photo hosting. But I'd also want more than is being suggested for this typo gallery functionality, so it would still be useless to me. > - why is it that so many of you feel that > adding gallery functionality or categorized resource handlers will > bloat your blog ?, you can just chose not to use it - typo already > have a ton of functionality that I do not use, still I appreciate > having the choice. > People hosting on TextDrive don't appreciate it so much. mathew From johncwang at gmail.com Mon Aug 21 14:43:40 2006 From: johncwang at gmail.com (John Wang) Date: Mon, 21 Aug 2006 11:43:40 -0700 Subject: [typo] Gallery support In-Reply-To: <44E9FAFA.5090302@pobox.com> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> <44E9CCF7.7070900@pobox.com> <4ad99e050608210837v1d79ad55n325ceb510f12670@mail.gmail.com> <44E9FAFA.5090302@pobox.com> Message-ID: <22a4faec0608211143p1c8b7172n5d12072816c0afa4@mail.gmail.com> On 8/21/06, mathew wrote: > > Lars Roland wrote: > > - why is it that so many of you feel that > > adding gallery functionality or categorized resource handlers will > > bloat your blog ?, you can just chose not to use it - typo already > > have a ton of functionality that I do not use, still I appreciate > > having the choice. > > People hosting on TextDrive don't appreciate it so much. Is there a way to make the gallery a pluggable option so it's easy to load for people that want it but not installed by default? Right now, a growing number of sidebar plugins ship with Typo and, from what I've seen, the vast majority of Typo installs don't use most of them. It seems that Typo needs a way to have pluggable modules that don't ship with Typo. This type of architecture would make the bloat argument a non-issue and possibly even reduce the code by moving sidebars out of the core distribution. Personally I like the idea of having a gallery capability in Typo b/c it would be better integrated, e.g. you can apply the same category/tags to your galleries and possible have them show up on category/tag pages. You also wouldn't need a separate rails/mongrel|fastcgi instance compared to running Typo+rgallery. rgallery looks interesting but for an integrated solution it would probably need tags/categories and feeds. Even then, I'm not sure what a recommended/baseline integration would look like, would everyone just do their own? Seems like making the gallery an optional add-on to Typo would satisfy both camps: (a) those that want a gallery feature in Typo and (b) those that want a Typo w/o the gallery. Is there an good way to do this? -- John Wang http://www.dev411.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060821/db1ea8c8/attachment-0001.html From doug.bromley at gmail.com Mon Aug 21 14:55:00 2006 From: doug.bromley at gmail.com (Doug Bromley) Date: Mon, 21 Aug 2006 19:55:00 +0100 Subject: [typo] Migration Issues - Wordpress2 Message-ID: <288425520608211155r22bc41b3nd2e4497b21b1b7a8@mail.gmail.com> Hi All I thought I'd managed it a while back - you may remember I had migration issues. Well I applied the patch from before and tried but it gave an SQL error in the body so I left it for a couple of weeks to see if it stabilised and the patches were applied. I tried again today with gem 4.0.3 of Typo and when I attempt to migrate my Wordpress2 database I get the following error: --------------------------------------------------------------------------------------- ../../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:123:in `const_missing ': uninitialized constant TestRequest (NameError) from ../../config/../app/models/blog.rb:178:in `request' from ../../config/../app/models/blog.rb:150:in `url_for' from ../../config/../app/models/blog.rb:163:in `article_url' from ../../config/../app/models/article.rb:26:in `location' from ../../config/../app/models/article.rb:45:in `really_send_pings' from ../../config/../app/models/content_state/just_published.rb:46:in `send_pings' from ../../config/../app/models/article.rb:72:in `send_pings' from ../../config/../app/models/web_notifier.rb:5:in `after_save' ... 15 levels... from wordpress2.rb:27:in `initialize' from wordpress2.rb:285:in `execute_without_timestamps' from wordpress2.rb:23:in `initialize' from wordpress2.rb:291 --------------------------------------------------------------------------------------- I even attempted an RSS import this time but it didn't seem to import a thing. The above error does appear to be similar to the error I patched on the older version so I tried the same patch but to no avail - it still fails. I'd be grateful if anyone could help me out here - I'd love to get Typo up & running and convert over but I keep hitting brick walls and its really frustrating. All the best. Doug -- Doug Bromley blog.straw-dogs.co.uk From mattrose at folkwolf.net Mon Aug 21 15:18:21 2006 From: mattrose at folkwolf.net (Matt Rose) Date: Mon, 21 Aug 2006 15:18:21 -0400 (EDT) Subject: [typo] Gallery support In-Reply-To: <22a4faec0608211143p1c8b7172n5d12072816c0afa4@mail.gmail.com> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> <44E9CCF7.7070900@pobox.com> <4ad99e050608210837v1d79ad55n325ceb510f12670@mail.gmail.com> <44E9FAFA.5090302@pobox.com> <22a4faec0608211143p1c8b7172n5d12072816c0afa4@mail.gmail.com> Message-ID: On Mon, 21 Aug 2006, John Wang wrote: > Is there a way to make the gallery a pluggable option so it's easy to load > for people that want it but not installed by default? Right now, a growing > number of sidebar plugins ship with Typo and, from what I've seen, the vast > majority of Typo installs don't use most of them. It seems that Typo needs a > way to have pluggable modules that don't ship with Typo. This type of > architecture would make the bloat argument a non-issue and possibly even > reduce the code by moving sidebars out of the core distribution. I think this is what the aim is in 4.1 All of the sidebars are in the vendor hierarchy, which would make installing new ones simple, theoretically. I haven't looked into the sidebar code itself, to see what kind of database tie-ins exist, and how they work, but I think this is one of the goals. > Seems like making the gallery an optional add-on to Typo would satisfy both > camps: (a) those that want a gallery feature in Typo and (b) those that want > a Typo w/o the gallery. Is there an good way to do this? That's the goal of a plug-in architecture. Hopefully, this can be achieved, without re-writing my sidebars too many more times ;) > > -- -------------------------------------------------------------------------- Matt Rose mattrose at folkwolf.net Visit my blog! http://folkwolf.net He's a jaded devious master criminal looking for 'the Big One.' She's a sharp-shooting streetsmart nun trying to make a difference in a man's world. They fight crime! From meta at pobox.com Mon Aug 21 17:07:31 2006 From: meta at pobox.com (mathew) Date: Mon, 21 Aug 2006 16:07:31 -0500 Subject: [typo] Gallery support In-Reply-To: <20060821193132.lxce8ucni800ks8s@webmail.nodeta.fi> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> <44E9CCF7.7070900@pobox.com> <4ad99e050608210837v1d79ad55n325ceb510f12670@mail.gmail.com> <32885D31-29B7-49EA-94EE-77A3C199EA3B@ciordia.info> <4ad99e050608210905y45438ff0md5797bddc526993c@mail.gmail.com> <20060821193132.lxce8ucni800ks8s@webmail.nodeta.fi> Message-ID: <44EA2093.7090407@pobox.com> tuomas at peippo.eu wrote: > Quoting Lars Roland : > >> That is s great idea - being able to control blog photos through a >> application like f-spot (http://f-spot.org/) would be very nice. Do >> any of the other major blogs done something like this ?, if so then >> perhaps there is some API we could support. >> > > Yeah that sounds good but are there available any such apps that > supports some sort of photo uploading with categories and tags? > Flickr Uploadr. Thanks to the Flickr API there are plenty of 3rd party applications (and plugins for apps like iPhoto) to make it really easy to resize and tag all your photos and upload them en masse, arranging them in groups with appropriate permissions, and even geocode them. I would strongly suggest at least trying Flickr before reinventing this particular wheel. Like Scott, if you asked me what features I wanted in a Rails-based gallery package, I'd say "Start by implementing a clone of Flickr". Including the API if possible, so I could continue to use Flickr Uploadr. mathew From pdcawley at bofh.org.uk Mon Aug 21 17:15:01 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 21 Aug 2006 22:15:01 +0100 Subject: [typo] Gallery support In-Reply-To: (Matt Rose's message of "Mon, 21 Aug 2006 15:18:21 -0400 (EDT)") References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> <44E9CCF7.7070900@pobox.com> <4ad99e050608210837v1d79ad55n325ceb510f12670@mail.gmail.com> <44E9FAFA.5090302@pobox.com> <22a4faec0608211143p1c8b7172n5d12072816c0afa4@mail.gmail.com> Message-ID: Matt Rose writes: > On Mon, 21 Aug 2006, John Wang wrote: > >> Is there a way to make the gallery a pluggable option so it's easy to load >> for people that want it but not installed by default? Right now, a growing >> number of sidebar plugins ship with Typo and, from what I've seen, the vast >> majority of Typo installs don't use most of them. It seems that Typo needs a >> way to have pluggable modules that don't ship with Typo. This type of >> architecture would make the bloat argument a non-issue and possibly even >> reduce the code by moving sidebars out of the core distribution. > > I think this is what the aim is in 4.1 All of the sidebars are in the > vendor hierarchy, which would make installing new ones simple, > theoretically. I haven't looked into the sidebar code itself, to see what > kind of database tie-ins exist, and how they work, but I think this is one > of the goals. > >> Seems like making the gallery an optional add-on to Typo would satisfy both >> camps: (a) those that want a gallery feature in Typo and (b) those that want >> a Typo w/o the gallery. Is there an good way to do this? > > That's the goal of a plug-in architecture. Hopefully, this can be > achieved, without re-writing my sidebars too many more times ;) I *think* the current bleading edge API's going to be pretty constant for a while. And porting (the core) sidebars was a fairly painless process. I couldn't work out how to do it programmatically, but apart from that it was fine. -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Mon Aug 21 17:21:58 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 21 Aug 2006 22:21:58 +0100 Subject: [typo] Slow spam checking makes Baby Jesus cry In-Reply-To: <14b7e5ef0608210809x4079fa3dx74ce0969b3e8d4eb@mail.gmail.com> (Scott Laird's message of "Mon, 21 Aug 2006 08:09:34 -0700") References: <44E94E7F.1020306@happygiraffe.net> <14b7e5ef0608210809x4079fa3dx74ce0969b3e8d4eb@mail.gmail.com> Message-ID: "Scott Laird" writes: > On 8/20/06, Piers Cawley wrote: >> Monkey patching the dispatcher to allow it isn't exactly hard. But see above. > > This brings up a reasonably obvious question that I haven't seen asked > yet--why not turn off RBL and like Akismet take care of it? Akismet > seems pretty fast, and I've been happy with its error rate so far. Which is what I've done on www.bofh.org.uk by emptying the RBL server list. > I've never been a bit RBL fan, for the usual reasons--all RBL lists > seem to eventually decend into filtering for spam politics more then > spam itself--ISP X doesn't have a good abuse policy, so we're going to > block all of their addresses to force a change. I'd much rather block > based on content then politics :-). Nor me, for pretty much the same reasons. But then, I've been thinking about spam checking in general and what we're currently doing is almost an implementation of the Chain of Responsibility, but it's statically configured. If my hunch is right, Spam checking is yet another thing we can modularize and shove into a vendor/plugins directory. (Thus allowing those who want them to add captcha based 'protection' to their blog). The fun begins when you start to think at how this chain of responsibility could be used to handle spam reporting. For instance, it would be nice to have a spam check engine that extracts possible blacklist/whitelist patterns from feedback and offers 'em up to the user for consideration before passing on to the next item in the chain. -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Mon Aug 21 17:24:38 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 21 Aug 2006 22:24:38 +0100 Subject: [typo] RESTful Typo In-Reply-To: <14b7e5ef0608210819q6945153fy577639851bea1c7b@mail.gmail.com> (Scott Laird's message of "Mon, 21 Aug 2006 08:19:53 -0700") References: <14b7e5ef0608210819q6945153fy577639851bea1c7b@mail.gmail.com> Message-ID: "Scott Laird" writes: > > I'm not completely sure that I see the point in switching URL formats. > I actually *like* our permalink URLs, and frequently use > article/:year/:month to view a subset of the blog. I may be in the > minority on this, though :-). > > I can see moving to restful URLs for API-ish code like the feeds (and > then mirroring them with PUT, DELETE, to replace the admin interface), > but it's not clear to me that more restful permalink URLs really > achieves any particular goal. Can you give a couple examples? As we discussed on GTalk, I think we can keep the current permalink URLs by introducing a 'posts' controller for the more APIish ways of monkeying with things. As an aside, I wonder if going RESTful would make implementing the Atom API any easier? -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Mon Aug 21 17:28:47 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 21 Aug 2006 22:28:47 +0100 Subject: [typo] Sidebars in trunk In-Reply-To: <44E9F70E.6050300@happygiraffe.net> (Dominic Mitchell's message of "Mon, 21 Aug 2006 19:10:22 +0100") References: <44E9F70E.6050300@happygiraffe.net> Message-ID: Dominic Mitchell writes: > Matt Rose wrote: >> Never mind. >> >> vendor/plugins >> >> This is going to be fun... > > Piers has just started rewriting the sidebars in trunk. You should > probably follow along his blog: > > http://www.bofh.org.uk/articles/category/typo When I sit down with a sensibly big screen so I can see more things at once, expect a blog post on the process of porting a sidebar. And maybe a walkthrough of implementing a new sidebar. Paul Ingles has threatened a post on porting a non-trivial sidebar to the new scheme. Which is nice. Check his blog at www.oobaloo.co.uk -- Piers Cawley http://www.bofh.org.uk/ From josh at hasmanythrough.com Mon Aug 21 19:28:16 2006 From: josh at hasmanythrough.com (josh at hasmanythrough.com) Date: Mon, 21 Aug 2006 16:28:16 -0700 (PDT) Subject: [typo] RESTful Typo In-Reply-To: References: <14b7e5ef0608210819q6945153fy577639851bea1c7b@mail.gmail.com> Message-ID: <58515.157.22.41.4.1156202896.squirrel@webmail.hasmanythrough.com> Piers Cawley wrote: > "Scott Laird" writes: >> I'm not completely sure that I see the point in switching URL formats. >> I actually *like* our permalink URLs, and frequently use >> article/:year/:month to view a subset of the blog. I may be in the >> minority on this, though :-). >> >> I can see moving to restful URLs for API-ish code like the feeds (and >> then mirroring them with PUT, DELETE, to replace the admin interface), >> but it's not clear to me that more restful permalink URLs really >> achieves any particular goal. Can you give a couple examples? > > As we discussed on GTalk, I think we can keep the current permalink > URLs by introducing a 'posts' controller for the more APIish ways of > monkeying with things. > > As an aside, I wonder if going RESTful would make implementing the > Atom API any easier? I really like Scott Raymond's writeup of how moving IconBuffet to REST saved him a bunch of code. http://scottraymond.net/articles/2006/07/20/refactoring-to-rest If you can create a set of URLs that represent the same sets of resources as the Atom API, I imagine that would be very useful for implementing the Atom API. --josh From trejkaz at trypticon.org Mon Aug 21 20:19:31 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Tue, 22 Aug 2006 10:19:31 +1000 (EST) Subject: [typo] RESTful Typo In-Reply-To: References: Message-ID: <4333.203.217.22.128.1156205971.squirrel@home.trypticon.org> > I can't promise they'll reliably end in admin I'm afraid. However, > it shouldn't be beyond the bounds of possibility to tweak the 'require > authentication' filter to redirect http URLs to https ones. Probably > an environment.rb configuration, and definitely the neater solution. Yeah, agreed. I wouldn't even need a single line of Apache configuration then, and I suppose it would make the trick work on multiple web servers while only having to write the redirection code once. :-) TX From phil.toland at gmail.com Mon Aug 21 22:19:32 2006 From: phil.toland at gmail.com (Phillip Toland) Date: Mon, 21 Aug 2006 21:19:32 -0500 Subject: [typo] Migration Issues - Wordpress2 In-Reply-To: <288425520608211155r22bc41b3nd2e4497b21b1b7a8@mail.gmail.com> References: <288425520608211155r22bc41b3nd2e4497b21b1b7a8@mail.gmail.com> Message-ID: <69f191ca0608211919g51319f98x2152b190d34003@mail.gmail.com> On 8/21/06, Doug Bromley wrote: > Hi All > > I thought I'd managed it a while back - you may remember I had migration issues. > Well I applied the patch from before and tried but it gave an SQL > error in the body so I left it for a couple of weeks to see if it > stabilised and the patches were applied. > > I tried again today with gem 4.0.3 of Typo and when I attempt to > migrate my Wordpress2 database I get the following error: Doug, The root cause of this seems to be that outbound pings are enabled. The conversion script attempts to turn them off, but it might not work if you already tried to do an import. Are you importing into a clean database? If not, then you may need to turn off outbound pings before doing the import. Phil From pdcawley at bofh.org.uk Tue Aug 22 03:38:02 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 22 Aug 2006 08:38:02 +0100 Subject: [typo] RESTful Typo In-Reply-To: <58515.157.22.41.4.1156202896.squirrel@webmail.hasmanythrough.com> (josh@hasmanythrough.com's message of "Mon, 21 Aug 2006 16:28:16 -0700 (PDT)") References: <14b7e5ef0608210819q6945153fy577639851bea1c7b@mail.gmail.com> <58515.157.22.41.4.1156202896.squirrel@webmail.hasmanythrough.com> Message-ID: josh at hasmanythrough.com writes: > Piers Cawley wrote: >> "Scott Laird" writes: >>> I'm not completely sure that I see the point in switching URL formats. >>> I actually *like* our permalink URLs, and frequently use >>> article/:year/:month to view a subset of the blog. I may be in the >>> minority on this, though :-). >>> >>> I can see moving to restful URLs for API-ish code like the feeds (and >>> then mirroring them with PUT, DELETE, to replace the admin interface), >>> but it's not clear to me that more restful permalink URLs really >>> achieves any particular goal. Can you give a couple examples? >> >> As we discussed on GTalk, I think we can keep the current permalink >> URLs by introducing a 'posts' controller for the more APIish ways of >> monkeying with things. >> >> As an aside, I wonder if going RESTful would make implementing the >> Atom API any easier? > > I really like Scott Raymond's writeup of how moving IconBuffet to REST > saved him a bunch of code. > > http://scottraymond.net/articles/2006/07/20/refactoring-to-rest Oh yes. One of the things I read that reminded me that Rails is doing the Right Thing now. > If you can create a set of URLs that represent the same sets of resources > as the Atom API, I imagine that would be very useful for implementing the > Atom API. It's certainly tempting :) -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Tue Aug 22 03:38:51 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 22 Aug 2006 08:38:51 +0100 Subject: [typo] RESTful Typo In-Reply-To: <4333.203.217.22.128.1156205971.squirrel@home.trypticon.org> (trejkaz@trypticon.org's message of "Tue, 22 Aug 2006 10:19:31 +1000 (EST)") References: <4333.203.217.22.128.1156205971.squirrel@home.trypticon.org> Message-ID: "Trejkaz" writes: >> I can't promise they'll reliably end in admin I'm afraid. However, >> it shouldn't be beyond the bounds of possibility to tweak the 'require >> authentication' filter to redirect http URLs to https ones. Probably >> an environment.rb configuration, and definitely the neater solution. > > Yeah, agreed. I wouldn't even need a single line of Apache configuration > then, and I suppose it would make the trick work on multiple web servers > while only having to write the redirection code once. :-) Oh, that's easy. We already have a redirection controller. -- Piers Cawley http://www.bofh.org.uk/ From doug.bromley at gmail.com Tue Aug 22 05:04:36 2006 From: doug.bromley at gmail.com (Doug Bromley) Date: Tue, 22 Aug 2006 10:04:36 +0100 Subject: [typo] Migration Issues - Wordpress2 In-Reply-To: <69f191ca0608211919g51319f98x2152b190d34003@mail.gmail.com> References: <288425520608211155r22bc41b3nd2e4497b21b1b7a8@mail.gmail.com> <69f191ca0608211919g51319f98x2152b190d34003@mail.gmail.com> Message-ID: <288425520608220204k4f53395eh41221d655f4020f0@mail.gmail.com> Its completely clean install - clean DB, latest gems, etc. I'll try turning off pings before doing an import anyway just in case. On 8/22/06, Phillip Toland wrote: > On 8/21/06, Doug Bromley wrote: > > Hi All > > > > I thought I'd managed it a while back - you may remember I had migration issues. > > Well I applied the patch from before and tried but it gave an SQL > > error in the body so I left it for a couple of weeks to see if it > > stabilised and the patches were applied. > > > > I tried again today with gem 4.0.3 of Typo and when I attempt to > > migrate my Wordpress2 database I get the following error: > > > Doug, > The root cause of this seems to be that outbound pings are enabled. > The conversion script attempts to turn them off, but it might not work > if you already tried to do an import. Are you importing into a clean > database? If not, then you may need to turn off outbound pings before > doing the import. > > Phil > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Doug Bromley blog.straw-dogs.co.uk From doug.bromley at gmail.com Tue Aug 22 06:10:40 2006 From: doug.bromley at gmail.com (Doug Bromley) Date: Tue, 22 Aug 2006 11:10:40 +0100 Subject: [typo] Migration Issues - Wordpress2 In-Reply-To: <69f191ca0608211919g51319f98x2152b190d34003@mail.gmail.com> References: <288425520608211155r22bc41b3nd2e4497b21b1b7a8@mail.gmail.com> <69f191ca0608211919g51319f98x2152b190d34003@mail.gmail.com> Message-ID: <288425520608220310g7426f7c7lc4f8c09cc22a9539@mail.gmail.com> On 8/22/06, Phillip Toland wrote: > On 8/21/06, Doug Bromley wrote: > > Hi All > > > > I thought I'd managed it a while back - you may remember I had migration issues. > > Well I applied the patch from before and tried but it gave an SQL > > error in the body so I left it for a couple of weeks to see if it > > stabilised and the patches were applied. > > > > I tried again today with gem 4.0.3 of Typo and when I attempt to > > migrate my Wordpress2 database I get the following error: > > > Doug, > The root cause of this seems to be that outbound pings are enabled. > The conversion script attempts to turn them off, but it might not work > if you already tried to do an import. Are you importing into a clean > database? If not, then you may need to turn off outbound pings before > doing the import. > > Phil > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > Hi Phillip I've turned off pings and did a full install after a full clean out. Still getting the same error. Do you have any other thoguhts or ideas on what could be causing this? Hope you can help. Kind regards Doug From phil.toland at gmail.com Tue Aug 22 09:05:43 2006 From: phil.toland at gmail.com (Phillip Toland) Date: Tue, 22 Aug 2006 08:05:43 -0500 Subject: [typo] Migration Issues - Wordpress2 In-Reply-To: <288425520608220310g7426f7c7lc4f8c09cc22a9539@mail.gmail.com> References: <288425520608211155r22bc41b3nd2e4497b21b1b7a8@mail.gmail.com> <69f191ca0608211919g51319f98x2152b190d34003@mail.gmail.com> <288425520608220310g7426f7c7lc4f8c09cc22a9539@mail.gmail.com> Message-ID: <69f191ca0608220605v21b7fb78sd1f32dd7d095a133@mail.gmail.com> On 8/22/06, Doug Bromley wrote: > I've turned off pings and did a full install after a full clean out. > Still getting the same error. > > Do you have any other thoguhts or ideas on what could be causing this? Hmmm. Nothing comes to mind. I will run a test conversion this evening to see if I can nail down what is causing this problem. Phil From benr at x-cr.com Tue Aug 22 10:33:15 2006 From: benr at x-cr.com (Ben Reubenstein) Date: Tue, 22 Aug 2006 08:33:15 -0600 Subject: [typo] Issues Running off of Trunk Message-ID: <44c79a160608220733u2ba0ce07wbef22cc502480fe8@mail.gmail.com> Hello ~ I upgraded to version 4.0 without any issues. When the 1.1.6 release came out, I did an svn update and then ran migrations. When I fired up my blog it would not work, and I had to adjust the find_blog method in blog.rb to: def self.find_blog(base_url) #Blog.find_by_base_url(base_url) || Blog.default #|| Blog.new end The phokus theme I was using stopped working, so I switched to the default theme as a quick fix. I now have all of my posts shown twice when I view them. Any ideas on why this sort of behavior is occuring would be a great help. Thx in advance, -- Ben Reubenstein 303-947-0446 http://www.benr75.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060822/4dc796fe/attachment.html From pdcawley at bofh.org.uk Tue Aug 22 11:03:00 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 22 Aug 2006 16:03:00 +0100 Subject: [typo] Issues Running off of Trunk In-Reply-To: <44c79a160608220733u2ba0ce07wbef22cc502480fe8@mail.gmail.com> (Ben Reubenstein's message of "Tue, 22 Aug 2006 08:33:15 -0600") References: <44c79a160608220733u2ba0ce07wbef22cc502480fe8@mail.gmail.com> Message-ID: "Ben Reubenstein" writes: > Hello ~ > > I upgraded to version 4.0 without any issues. When the 1.1.6 release came > out, I did an svn update and then ran migrations. When I fired up my blog > it would not work, and I had to adjust the find_blog method in blog.rb to: > > def self.find_blog(base_url) > #Blog.find_by_base_url(base_url) || > Blog.default > #|| Blog.new > end > > The phokus theme I was using stopped working, so I switched to the default > theme as a quick fix. I now have all of my posts shown twice when I view > them. Any ideas on why this sort of behavior is occuring would be a great > help. Fixed in the latest revision. Basically it was a fragment caching issue. -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Tue Aug 22 12:10:33 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 22 Aug 2006 17:10:33 +0100 Subject: [typo] Liquefaction? Message-ID: Since we're in the process of breaking themes good and hard, how attached are we to erb? I've been taking a cursory look at liquid[1] and it's got a hell of a lot going for it. And not just because of who wrote it. Has anyone used it? What do you think? Or would it be safer to continue to support erb but offer the option of liquid layouts. It shouldn't be too hard to wrap things like the the sidebar list and the textfilter chain in liquid plugins. 1. http://home.leetsoft.com/liquid/ -- Piers Cawley http://www.bofh.org.uk/ From josh at hasmanythrough.com Tue Aug 22 12:49:46 2006 From: josh at hasmanythrough.com (josh at hasmanythrough.com) Date: Tue, 22 Aug 2006 09:49:46 -0700 (PDT) Subject: [typo] Liquefaction? In-Reply-To: References: Message-ID: <59232.157.22.41.4.1156265386.squirrel@webmail.hasmanythrough.com> Piers Cawley wrote: > Since we're in the process of breaking themes good and hard, how > attached are we to erb? I've been taking a cursory look at liquid[1] > and it's got a hell of a lot going for it. And not just because of who > wrote it. > > Has anyone used it? What do you think? > > Or would it be safer to continue to support erb but offer the option > of liquid layouts. It shouldn't be too hard to wrap things like the > the sidebar list and the textfilter chain in liquid plugins. > > 1. http://home.leetsoft.com/liquid/ Not having to use Liquid is one of the main reasons I'm running Typo at work instead of Mephisto. If you want to include support for Liquid, that's great, but I'd recommend doing it in a way that doesn't lose the ability to use ERb/rhtml templates. --josh From scott at sigkill.org Tue Aug 22 12:57:15 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 22 Aug 2006 09:57:15 -0700 Subject: [typo] Liquefaction? In-Reply-To: References: Message-ID: <14b7e5ef0608220957h3240591ew3b11e3f044107091@mail.gmail.com> On 8/22/06, Piers Cawley wrote: > Since we're in the process of breaking themes good and hard, how > attached are we to erb? I've been taking a cursory look at liquid[1] > and it's got a hell of a lot going for it. And not just because of who > wrote it. > > Has anyone used it? What do you think? > > Or would it be safer to continue to support erb but offer the option > of liquid layouts. It shouldn't be too hard to wrap things like the > the sidebar list and the textfilter chain in liquid plugins. > > 1. http://home.leetsoft.com/liquid/ I've been wondering the same thing. I haven't really looked at Liquid's performance, but I wouldn't mind adding it as an option. Scott From mbjones at ou.edu Tue Aug 22 13:13:37 2006 From: mbjones at ou.edu (Brandon Jones) Date: Tue, 22 Aug 2006 12:13:37 -0500 Subject: [typo] Liquefaction? In-Reply-To: <14b7e5ef0608220957h3240591ew3b11e3f044107091@mail.gmail.com> References: <14b7e5ef0608220957h3240591ew3b11e3f044107091@mail.gmail.com> Message-ID: <92F3F52B-A42A-403D-8DB8-C5AA1DA409B4@ou.edu> I definitely wouldn't mind the liquid option. I've started using it for a few shopify accounts and love how easy it is. Not that the current theming method is difficult, liquid just seems all the easier. Brandon Jones On Aug 22, 2006, at 11:57 AM, Scott Laird wrote: > On 8/22/06, Piers Cawley wrote: > > Since we're in the process of breaking themes good and hard, how > > attached are we to erb? I've been taking a cursory look at liquid[1] > > and it's got a hell of a lot going for it. And not just because > of who > > wrote it. > > > > Has anyone used it? What do you think? > > > > Or would it be safer to continue to support erb but offer the option > > of liquid layouts. It shouldn't be too hard to wrap things like the > > the sidebar list and the textfilter chain in liquid plugins. > > > > 1. http://home.leetsoft.com/liquid/ > > I've been wondering the same thing. I haven't really looked at > Liquid's performance, but I wouldn't mind adding it as an option. > > > Scott > _______________________________________________ > 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/20060822/a5f6045a/attachment-0001.html From pdcawley at bofh.org.uk Tue Aug 22 13:18:42 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 22 Aug 2006 18:18:42 +0100 Subject: [typo] Liquefaction? In-Reply-To: <59232.157.22.41.4.1156265386.squirrel@webmail.hasmanythrough.com> (josh@hasmanythrough.com's message of "Tue, 22 Aug 2006 09:49:46 -0700 (PDT)") References: <59232.157.22.41.4.1156265386.squirrel@webmail.hasmanythrough.com> Message-ID: josh at hasmanythrough.com writes: > Piers Cawley wrote: >> Since we're in the process of breaking themes good and hard, how >> attached are we to erb? I've been taking a cursory look at liquid[1] >> and it's got a hell of a lot going for it. And not just because of who >> wrote it. >> >> Has anyone used it? What do you think? >> >> Or would it be safer to continue to support erb but offer the option >> of liquid layouts. It shouldn't be too hard to wrap things like the >> the sidebar list and the textfilter chain in liquid plugins. >> >> 1. http://home.leetsoft.com/liquid/ > > Not having to use Liquid is one of the main reasons I'm running Typo at > work instead of Mephisto. What don't you like about it? > If you want to include support for Liquid, that's great, but I'd > recommend doing it in a way that doesn't lose the ability to use > ERb/rhtml templates. Yes, the more I think about it, the more I'm inclined to only do it if it can be done in tandem with erb. -- Piers Cawley http://www.bofh.org.uk/ From josh at hasmanythrough.com Tue Aug 22 13:30:41 2006 From: josh at hasmanythrough.com (josh at hasmanythrough.com) Date: Tue, 22 Aug 2006 10:30:41 -0700 (PDT) Subject: [typo] Liquefaction? In-Reply-To: References: <59232.157.22.41.4.1156265386.squirrel@webmail.hasmanythrough.com> Message-ID: <59424.157.22.41.4.1156267841.squirrel@webmail.hasmanythrough.com> Piers Cawley wrote: > josh at hasmanythrough.com writes: >> Not having to use Liquid is one of the main reasons I'm running Typo at >> work instead of Mephisto. > > What don't you like about it? Mainly that it's not ubiquitous. I don't want to get locked in. Liquid seems pretty nifty for supporting user-contributed layouts and maintaining security, but since I'm doing all the layouts myself I don't need to worry about that. --josh From neuro at 7el.net Tue Aug 22 13:35:31 2006 From: neuro at 7el.net (Frederic de Villamil) Date: Tue, 22 Aug 2006 19:35:31 +0200 Subject: [typo] Liquefaction? In-Reply-To: <59424.157.22.41.4.1156267841.squirrel@webmail.hasmanythrough.com> References: <59232.157.22.41.4.1156265386.squirrel@webmail.hasmanythrough.com> <59424.157.22.41.4.1156267841.squirrel@webmail.hasmanythrough.com> Message-ID: <44EB4063.3090406@7el.net> josh at hasmanythrough.com a ?crit : > Piers Cawley wrote: >> josh at hasmanythrough.com writes: >>> Not having to use Liquid is one of the main reasons I'm running Typo at >>> work instead of Mephisto. >> What don't you like about it? > > Mainly that it's not ubiquitous. I don't want to get locked in. Liquid > seems pretty nifty for supporting user-contributed layouts and maintaining > security, but since I'm doing all the layouts myself I don't need to worry > about that. > Just thinking in term of having Typo spreading in the public, I think erb / rhtml will be easier to understand by the public, and we need to keep that solution if we want basic users to change their themes, don't we ? More, I think we need a bit more markup in the views (mostly in the way posts are displayed) to help web designers do their work, something like the CSS Zengarden extra divs here and there. I've been working on something like this lately, feeling stucked by the current theming possibilities, and thinking about a "Typo CSSZengarden" thing. Cheers, 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. http://t37.net http://fredericdevillamil.com neuro at 7el.net tel: +33 (0)6 62 19 1337 From scott at sigkill.org Tue Aug 22 14:04:48 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 22 Aug 2006 11:04:48 -0700 Subject: [typo] Liquefaction? In-Reply-To: <44EB4063.3090406@7el.net> References: <59232.157.22.41.4.1156265386.squirrel@webmail.hasmanythrough.com> <59424.157.22.41.4.1156267841.squirrel@webmail.hasmanythrough.com> <44EB4063.3090406@7el.net> Message-ID: <14b7e5ef0608221104n41185c52jf5a8b66e8877259a@mail.gmail.com> On 8/22/06, Frederic de Villamil wrote: > josh at hasmanythrough.com a ?crit : > > Piers Cawley wrote: > >> josh at hasmanythrough.com writes: > >>> Not having to use Liquid is one of the main reasons I'm running Typo at > >>> work instead of Mephisto. > >> What don't you like about it? > > > > Mainly that it's not ubiquitous. I don't want to get locked in. Liquid > > seems pretty nifty for supporting user-contributed layouts and maintaining > > security, but since I'm doing all the layouts myself I don't need to worry > > about that. > > > > Just thinking in term of having Typo spreading in the public, I think > erb / rhtml will be easier to understand by the public, and we need to > keep that solution if we want basic users to change their themes, don't we ? > > More, I think we need a bit more markup in the views (mostly in the way > posts are displayed) to help web designers do their work, something like > the CSS Zengarden extra divs here and there. > > I've been working on something like this lately, feeling stucked by the > current theming possibilities, and thinking about a "Typo CSSZengarden" > thing. I've resisted small HTML tweaks in the past, even if they improved the usability of our HTML, just because it wasn't worth forcing a zillion themes to make minor changes. Since we're breaking everything for 4.1 anyway, this would be a *great* time to make structural improvements. Perhaps we could even go as far as to (gasp) standardize on a specific HTML structure, like hAtom, so we're able to share CSS themes with other software. Also, one of us needs to do the (small) amount of work needed to move Typo themes into vendor/plugins, just so we can use Rails plugin-management tools to install themes. I can take care of this later this week, unless Piers really wants to do it :-). Scott From steve.longdo at gmail.com Tue Aug 22 14:05:16 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Tue, 22 Aug 2006 13:05:16 -0500 Subject: [typo] Typo plugins via externals or something... Message-ID: Now that the sidebars have been split out is there a plan to make their inclusion/installation an optional process as well? Something about seeing the XBox sidebar in my install makes me want to hurt people :-P -- Thanks, -Steve http://www.stevelongdo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060822/d4a0b153/attachment.html From scott at sigkill.org Tue Aug 22 14:06:02 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 22 Aug 2006 11:06:02 -0700 Subject: [typo] RESTful Typo In-Reply-To: References: <4333.203.217.22.128.1156205971.squirrel@home.trypticon.org> Message-ID: <14b7e5ef0608221106m1357b920j5de308e4c2189f96@mail.gmail.com> On 8/22/06, Piers Cawley wrote: > "Trejkaz" writes: > >> I can't promise they'll reliably end in admin I'm afraid. However, > >> it shouldn't be beyond the bounds of possibility to tweak the 'require > >> authentication' filter to redirect http URLs to https ones. Probably > >> an environment.rb configuration, and definitely the neater solution. > > > > Yeah, agreed. I wouldn't even need a single line of Apache configuration > > then, and I suppose it would make the trick work on multiple web servers > > while only having to write the redirection code once. :-) > > Oh, that's easy. We already have a redirection controller. Yeah. Typo's least-used feature :-). Scott From scott at sigkill.org Tue Aug 22 14:16:39 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 22 Aug 2006 11:16:39 -0700 Subject: [typo] Typo plugins via externals or something... In-Reply-To: References: Message-ID: <14b7e5ef0608221116o3ef058c7oa0b7ac2f72b7758d@mail.gmail.com> Well, we'd have to move sidebars to plugins before we can break them out. Oh, wait... :-) We need to build some sort of infrastructure for listing Typo plugins and making them easy to install. Once that's done, we'll probably shed half of the sidebars. There are some versioning issues that I haven't spent much time thinking about, but I'm sure they're solvable. Scott On 8/22/06, Steve Longdo wrote: > Now that the sidebars have been split out is there a plan to make their > inclusion/installation an optional process as well? Something about seeing > the XBox sidebar in my install makes me want to hurt people :-P > > -- > Thanks, > -Steve > http://www.stevelongdo.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From pdcawley at bofh.org.uk Tue Aug 22 16:13:19 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 22 Aug 2006 21:13:19 +0100 Subject: [typo] Liquefaction? In-Reply-To: <14b7e5ef0608221104n41185c52jf5a8b66e8877259a@mail.gmail.com> (Scott Laird's message of "Tue, 22 Aug 2006 11:04:48 -0700") References: <59232.157.22.41.4.1156265386.squirrel@webmail.hasmanythrough.com> <59424.157.22.41.4.1156267841.squirrel@webmail.hasmanythrough.com> <44EB4063.3090406@7el.net> <14b7e5ef0608221104n41185c52jf5a8b66e8877259a@mail.gmail.com> Message-ID: "Scott Laird" writes: > Since we're breaking everything for 4.1 anyway, this would be a > *great* time to make structural improvements. Perhaps we could even > go as far as to (gasp) standardize on a specific HTML structure, like > hAtom, so we're able to share CSS themes with other software. > > Also, one of us needs to do the (small) amount of work needed to move > Typo themes into vendor/plugins, just so we can use Rails > plugin-management tools to install themes. I can take care of this > later this week, unless Piers really wants to do it :-). Nope, I'm off on holiday on Thursday. I'm taking a laptop and I'll be able to check mail, but if I find myself spending time monkeying with typo themes. While we're about it btw, it would be neat if we could add generators for themes and textfilters. Moving associated tests into the plugin directory wouldn't suck either. I'm having bad thoughts about adding pluggability to the admin interface as well, but that's probably (at least) 4.2. -- Piers Cawley http://www.bofh.org.uk/ From scott at sigkill.org Tue Aug 22 17:04:27 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 22 Aug 2006 14:04:27 -0700 Subject: [typo] Liquefaction? In-Reply-To: References: <59232.157.22.41.4.1156265386.squirrel@webmail.hasmanythrough.com> <59424.157.22.41.4.1156267841.squirrel@webmail.hasmanythrough.com> <44EB4063.3090406@7el.net> <14b7e5ef0608221104n41185c52jf5a8b66e8877259a@mail.gmail.com> Message-ID: <14b7e5ef0608221404o5a40c8f2y7446e1f538a775ff@mail.gmail.com> On 8/22/06, Piers Cawley wrote: > "Scott Laird" writes: > > Since we're breaking everything for 4.1 anyway, this would be a > > *great* time to make structural improvements. Perhaps we could even > > go as far as to (gasp) standardize on a specific HTML structure, like > > hAtom, so we're able to share CSS themes with other software. > > > > Also, one of us needs to do the (small) amount of work needed to move > > Typo themes into vendor/plugins, just so we can use Rails > > plugin-management tools to install themes. I can take care of this > > later this week, unless Piers really wants to do it :-). > > Nope, I'm off on holiday on Thursday. I'm taking a laptop and I'll be > able to check mail, but if I find myself spending time monkeying with > typo themes. > > While we're about it btw, it would be neat if we could add generators > for themes and textfilters. Moving associated tests into the plugin > directory wouldn't suck either. > > I'm having bad thoughts about adding pluggability to the admin > interface as well, but that's probably (at least) 4.2. Okay. I'll see what I can do. Scott From phil.toland at gmail.com Tue Aug 22 22:40:38 2006 From: phil.toland at gmail.com (Phillip Toland) Date: Tue, 22 Aug 2006 21:40:38 -0500 Subject: [typo] Migration Issues - Wordpress2 In-Reply-To: <69f191ca0608220605v21b7fb78sd1f32dd7d095a133@mail.gmail.com> References: <288425520608211155r22bc41b3nd2e4497b21b1b7a8@mail.gmail.com> <69f191ca0608211919g51319f98x2152b190d34003@mail.gmail.com> <288425520608220310g7426f7c7lc4f8c09cc22a9539@mail.gmail.com> <69f191ca0608220605v21b7fb78sd1f32dd7d095a133@mail.gmail.com> Message-ID: <69f191ca0608221940g90cf91dx4c3e828d5cfd9f34@mail.gmail.com> On 8/22/06, Phillip Toland wrote: > On 8/22/06, Doug Bromley wrote: > > I've turned off pings and did a full install after a full clean out. > > Still getting the same error. > > > > Do you have any other thoguhts or ideas on what could be causing this? > > Hmmm. Nothing comes to mind. I will run a test conversion this evening > to see if I can nail down what is causing this problem. I did an import with the latest code from the 4.0.x SVN branch and the 4.0.3 gem. Both worked for me without any problems. Are you sure you aren't running against old code somehow? Phil From tim at digital-achievement.com Wed Aug 23 02:12:42 2006 From: tim at digital-achievement.com (Timothy Freund) Date: Wed, 23 Aug 2006 01:12:42 -0500 Subject: [typo] Typo plugins via externals or something... In-Reply-To: <14b7e5ef0608221116o3ef058c7oa0b7ac2f72b7758d@mail.gmail.com> References: <14b7e5ef0608221116o3ef058c7oa0b7ac2f72b7758d@mail.gmail.com> Message-ID: <44EBF1DA.1060406@digital-achievement.com> If you are interested in leveraging Proofread[1] and turning it in to a general purpose Typo enhancement catalog, I'd be willing to push it in that direction. I'm already versioning themes, and I'm working* on better test scripts. Managing the plugins in the same way could be nice. Having themes and plugins available in one place would be very nice. How does that match up with what you had in mind for listing Typo plugins? Tim [1] http://proofread.digital-achievement.com/catalog/ *OK, not so much this week -- not much code until I get wedding invitations in the mail, otherwise I'll have two mothers and a bride upset. :-) Scott Laird wrote: > Well, we'd have to move sidebars to plugins before we can break them > out. Oh, wait... :-) > > We need to build some sort of infrastructure for listing Typo plugins > and making them easy to install. Once that's done, we'll probably > shed half of the sidebars. There are some versioning issues that I > haven't spent much time thinking about, but I'm sure they're solvable. > > > Scott > > On 8/22/06, Steve Longdo wrote: > >>Now that the sidebars have been split out is there a plan to make their >>inclusion/installation an optional process as well? Something about seeing >>the XBox sidebar in my install makes me want to hurt people :-P >> >>-- >>Thanks, >>-Steve >>http://www.stevelongdo.com >>_______________________________________________ >>Typo-list mailing list >>Typo-list at rubyforge.org >>http://rubyforge.org/mailman/listinfo/typo-list >> >> > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list -- Timothy Freund http://digital-achievement.com http://edodyssey.com From doug.bromley at gmail.com Wed Aug 23 04:55:23 2006 From: doug.bromley at gmail.com (Doug Bromley) Date: Wed, 23 Aug 2006 09:55:23 +0100 Subject: [typo] Migration Issues - Wordpress2 In-Reply-To: <69f191ca0608221940g90cf91dx4c3e828d5cfd9f34@mail.gmail.com> References: <288425520608211155r22bc41b3nd2e4497b21b1b7a8@mail.gmail.com> <69f191ca0608211919g51319f98x2152b190d34003@mail.gmail.com> <288425520608220310g7426f7c7lc4f8c09cc22a9539@mail.gmail.com> <69f191ca0608220605v21b7fb78sd1f32dd7d095a133@mail.gmail.com> <69f191ca0608221940g90cf91dx4c3e828d5cfd9f34@mail.gmail.com> Message-ID: <288425520608230155g1c518147w8088cc9e5032c399@mail.gmail.com> On 8/23/06, Phillip Toland wrote: > On 8/22/06, Phillip Toland wrote: > > On 8/22/06, Doug Bromley wrote: > > > I've turned off pings and did a full install after a full clean out. > > > Still getting the same error. > > > > > > Do you have any other thoguhts or ideas on what could be causing this? > > > > Hmmm. Nothing comes to mind. I will run a test conversion this evening > > to see if I can nail down what is causing this problem. > > I did an import with the latest code from the 4.0.x SVN branch and the > 4.0.3 gem. Both worked for me without any problems. Are you sure you > aren't running against old code somehow? > > Phil > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > Definately not old code. Cleaned out entirely. I haven't tried it with the trunk though but I'll give it a go later on today. Could it be a stray character string messing up the import? I'm sure I'd heard somewhere for another blog platforms importation script that a particular character string caused the import to choke. I'll get back to you on how it goes with trunk. Thanks for your help - its much appreciated!! From phil.toland at gmail.com Wed Aug 23 08:14:42 2006 From: phil.toland at gmail.com (Phillip Toland) Date: Wed, 23 Aug 2006 07:14:42 -0500 Subject: [typo] Migration Issues - Wordpress2 In-Reply-To: <288425520608230155g1c518147w8088cc9e5032c399@mail.gmail.com> References: <288425520608211155r22bc41b3nd2e4497b21b1b7a8@mail.gmail.com> <69f191ca0608211919g51319f98x2152b190d34003@mail.gmail.com> <288425520608220310g7426f7c7lc4f8c09cc22a9539@mail.gmail.com> <69f191ca0608220605v21b7fb78sd1f32dd7d095a133@mail.gmail.com> <69f191ca0608221940g90cf91dx4c3e828d5cfd9f34@mail.gmail.com> <288425520608230155g1c518147w8088cc9e5032c399@mail.gmail.com> Message-ID: <69f191ca0608230514l4752db0dt1decc8cec0f6ad40@mail.gmail.com> On 8/23/06, Doug Bromley wrote: > On 8/23/06, Phillip Toland wrote: > > On 8/22/06, Phillip Toland wrote: > > > On 8/22/06, Doug Bromley wrote: > > > > I've turned off pings and did a full install after a full clean out. > > > > Still getting the same error. > > > > > > > > Do you have any other thoguhts or ideas on what could be causing this? > > > > > > Hmmm. Nothing comes to mind. I will run a test conversion this evening > > > to see if I can nail down what is causing this problem. > > > > I did an import with the latest code from the 4.0.x SVN branch and the > > 4.0.3 gem. Both worked for me without any problems. Are you sure you > > aren't running against old code somehow? > > > Definately not old code. Cleaned out entirely. I haven't tried it > with the trunk though but I'll give it a go later on today. > > Could it be a stray character string messing up the import? I'm sure > I'd heard somewhere for another blog platforms importation script that > a particular character string caused the import to choke. I suppose that is possible. I am not sure that would cause the error you are seeing, but I don't have any better ideas right now :-) Phil From scott at sigkill.org Wed Aug 23 12:01:26 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 23 Aug 2006 09:01:26 -0700 Subject: [typo] Migration Issues - Wordpress2 In-Reply-To: <288425520608230155g1c518147w8088cc9e5032c399@mail.gmail.com> References: <288425520608211155r22bc41b3nd2e4497b21b1b7a8@mail.gmail.com> <69f191ca0608211919g51319f98x2152b190d34003@mail.gmail.com> <288425520608220310g7426f7c7lc4f8c09cc22a9539@mail.gmail.com> <69f191ca0608220605v21b7fb78sd1f32dd7d095a133@mail.gmail.com> <69f191ca0608221940g90cf91dx4c3e828d5cfd9f34@mail.gmail.com> <288425520608230155g1c518147w8088cc9e5032c399@mail.gmail.com> Message-ID: <14b7e5ef0608230901o16b620f3w7b79b10c8dc4f0c@mail.gmail.com> On 8/23/06, Doug Bromley wrote: > Definately not old code. Cleaned out entirely. I haven't tried it > with the trunk though but I'll give it a go later on today. > > Could it be a stray character string messing up the import? I'm sure > I'd heard somewhere for another blog platforms importation script that > a particular character string caused the import to choke. > > I'll get back to you on how it goes with trunk. > > Thanks for your help - its much appreciated!! The WP converter is almost certainly broken in the current trunk--we've made a bunch of schema changes without updating all of the converters. Scott From pdcawley at bofh.org.uk Wed Aug 23 12:39:43 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Wed, 23 Aug 2006 17:39:43 +0100 Subject: [typo] Migration Issues - Wordpress2 In-Reply-To: <14b7e5ef0608230901o16b620f3w7b79b10c8dc4f0c@mail.gmail.com> (Scott Laird's message of "Wed, 23 Aug 2006 09:01:26 -0700") References: <288425520608211155r22bc41b3nd2e4497b21b1b7a8@mail.gmail.com> <69f191ca0608211919g51319f98x2152b190d34003@mail.gmail.com> <288425520608220310g7426f7c7lc4f8c09cc22a9539@mail.gmail.com> <69f191ca0608220605v21b7fb78sd1f32dd7d095a133@mail.gmail.com> <69f191ca0608221940g90cf91dx4c3e828d5cfd9f34@mail.gmail.com> <288425520608230155g1c518147w8088cc9e5032c399@mail.gmail.com> <14b7e5ef0608230901o16b620f3w7b79b10c8dc4f0c@mail.gmail.com> Message-ID: "Scott Laird" writes: > On 8/23/06, Doug Bromley wrote: >> Definately not old code. Cleaned out entirely. I haven't tried it >> with the trunk though but I'll give it a go later on today. >> >> Could it be a stray character string messing up the import? I'm sure >> I'd heard somewhere for another blog platforms importation script that >> a particular character string caused the import to choke. >> >> I'll get back to you on how it goes with trunk. >> >> Thanks for your help - its much appreciated!! > > The WP converter is almost certainly broken in the current > trunk--we've made a bunch of schema changes without updating all of > the converters. All? Any? -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Wed Aug 23 12:46:04 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Wed, 23 Aug 2006 17:46:04 +0100 Subject: [typo] Page caching feed urls Message-ID: When I look at my Server stats, the top 10 pages are feeds. Feeds don't change very much, and none of the feed urls we publish have query strings. So, I went to xml_controller.rb and replaced the line that reads caches_action_with_params :feed with a line that reads caches_page :feed So far, nothing bad happening, the page cache gets swept correctly the load on my dispatch.fcgi is drastically reduced. I commend the change to you all. However, I'm holding off making it an official patch for the time being because you need to check your circumstances are okay. Check your server logs for /xml/whatever?somearg=someval type requests before you proceed. If you do find any, and they're frequent enough that you can't ignore them, don't make the switch. Some feedback here on people's experiences in this regard would be good. -- Piers Cawley http://www.bofh.org.uk/ From scott at sigkill.org Wed Aug 23 12:51:59 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 23 Aug 2006 09:51:59 -0700 Subject: [typo] Migration Issues - Wordpress2 In-Reply-To: References: <288425520608211155r22bc41b3nd2e4497b21b1b7a8@mail.gmail.com> <69f191ca0608211919g51319f98x2152b190d34003@mail.gmail.com> <288425520608220310g7426f7c7lc4f8c09cc22a9539@mail.gmail.com> <69f191ca0608220605v21b7fb78sd1f32dd7d095a133@mail.gmail.com> <69f191ca0608221940g90cf91dx4c3e828d5cfd9f34@mail.gmail.com> <288425520608230155g1c518147w8088cc9e5032c399@mail.gmail.com> <14b7e5ef0608230901o16b620f3w7b79b10c8dc4f0c@mail.gmail.com> Message-ID: <14b7e5ef0608230951g43dff83fh49949bad8432b793@mail.gmail.com> On 8/23/06, Piers Cawley wrote: > "Scott Laird" writes: > > > On 8/23/06, Doug Bromley wrote: > >> Definately not old code. Cleaned out entirely. I haven't tried it > >> with the trunk though but I'll give it a go later on today. > >> > >> Could it be a stray character string messing up the import? I'm sure > >> I'd heard somewhere for another blog platforms importation script that > >> a particular character string caused the import to choke. > >> > >> I'll get back to you on how it goes with trunk. > >> > >> Thanks for your help - its much appreciated!! > > > > The WP converter is almost certainly broken in the current > > trunk--we've made a bunch of schema changes without updating all of > > the converters. > > All? Any? I'm not sure which; I have no way to test any of them right now. That's a whole *other* project that I'd like to get into 4.1. Scott From gpsnospam at gmail.com Wed Aug 23 14:39:37 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Wed, 23 Aug 2006 19:39:37 +0100 Subject: [typo] Page caching feed urls In-Reply-To: References: Message-ID: <77302975-8F85-4EDC-B265-E1C8B4F0A802@gmail.com> I made the change. No issues. Nothing broken, feeds still up and running... On 23 Aug 2006, at 17:46, Piers Cawley wrote: > When I look at my Server stats, the top 10 pages are feeds. Feeds > don't change very much, and none of the feed urls we publish have > query strings. So, I went to xml_controller.rb and replaced the line > that reads > > caches_action_with_params :feed > > with a line that reads > > caches_page :feed > > So far, nothing bad happening, the page cache gets swept correctly the > load on my dispatch.fcgi is drastically reduced. I commend the change > to you all. > > However, I'm holding off making it an official patch for the time > being because you need to check your circumstances are okay. Check > your server logs for /xml/whatever?somearg=someval type requests > before you proceed. If you do find any, and they're frequent enough > that you can't ignore them, don't make the switch. > > Some feedback here on people's experiences in this regard would be > good. > > -- > Piers Cawley > http://www.bofh.org.uk/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From tom at degrunt.nl Wed Aug 23 18:02:10 2006 From: tom at degrunt.nl (Tom de Grunt) Date: Thu, 24 Aug 2006 00:02:10 +0200 Subject: [typo] Gallery support In-Reply-To: References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> <44E9CCF7.7070900@pobox.com> <4ad99e050608210837v1d79ad55n325ceb510f12670@mail.gmail.com> <44E9FAFA.5090302@pobox.com> <22a4faec0608211143p1c8b7172n5d12072816c0afa4@mail.gmail.com> Message-ID: <2BDC5278-A94A-4557-BC6C-C58DB5F91BDC@degrunt.nl> Hey All, Recently I've tried Flickr as well as the typo plugins for putting photos on my blog, but what I found is that if I put more than 5 photos on one page/article it would just stop processing and give a timeout (and I really tried fixing that!). Nor did I really like the idea of putting all my photos on "some site" somewhere. Maybe a shameless plug, but for the above reasons I have been working on my own iPhoto/Flickr clone in Ruby on Rails, which is currently still very limited: - It has an API (but no api-keys like Flickr), it doesn't support the Flickr api's though they should be somewhat similar. - The new version (in development) is supporting tags - There is currently no support for manipulating the photos on the server However, I did write a Typo plugin which allows me to do photo "popups" (uses lightbox.js) by "grabbing" individual photos or whole albums, for me it already does what it needs to do. I'm working on it, have not yet considered open-sourcing (but I might) and have some good ideas... More information on it and on the Typo plugin can be found here: http://www.degrunt.net/articles/2006/08/06/drkroom-progress/ Regards, Tom. On Aug 21, 2006, at 11:15 PM, Piers Cawley wrote: > Matt Rose writes: > >> On Mon, 21 Aug 2006, John Wang wrote: >> >>> Is there a way to make the gallery a pluggable option so it's >>> easy to load >>> for people that want it but not installed by default? Right now, >>> a growing >>> number of sidebar plugins ship with Typo and, from what I've >>> seen, the vast >>> majority of Typo installs don't use most of them. It seems that >>> Typo needs a >>> way to have pluggable modules that don't ship with Typo. This >>> type of >>> architecture would make the bloat argument a non-issue and >>> possibly even >>> reduce the code by moving sidebars out of the core distribution. >> >> I think this is what the aim is in 4.1 All of the sidebars are in >> the >> vendor hierarchy, which would make installing new ones simple, >> theoretically. I haven't looked into the sidebar code itself, to >> see what >> kind of database tie-ins exist, and how they work, but I think >> this is one >> of the goals. >> >>> Seems like making the gallery an optional add-on to Typo would >>> satisfy both >>> camps: (a) those that want a gallery feature in Typo and (b) >>> those that want >>> a Typo w/o the gallery. Is there an good way to do this? >> >> That's the goal of a plug-in architecture. Hopefully, this can be >> achieved, without re-writing my sidebars too many more times ;) > > I *think* the current bleading edge API's going to be pretty constant > for a while. And porting (the core) sidebars was a fairly painless > process. I couldn't work out how to do it programmatically, but apart > from that it was fine. > > -- > Piers Cawley > http://www.bofh.org.uk/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From ernieoporto at gmail.com Thu Aug 24 07:41:16 2006 From: ernieoporto at gmail.com (Ernie Oporto) Date: Thu, 24 Aug 2006 07:41:16 -0400 Subject: [typo] Gallery support In-Reply-To: <20060821184713.uc55tcvag0gw4kgk@webmail.nodeta.fi> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> <44E9CCF7.7070900@pobox.com> <14b7e5ef0608210826u3d1609ccn51cb42b43d14315d@mail.gmail.com> <20060821184713.uc55tcvag0gw4kgk@webmail.nodeta.fi> Message-ID: Flickr gives you different sizes for each of the photos that act as links to your photo albums. So there is no need to resize for thumbnails when they already do it for you. You can just use the HTML they provide to make a typo page with these image links. This effectively makes that typo page your photo album and then anyone interested in a particular photo set can follow the links through to Flickr where you have tagging capability. What I wish for is something that would generate HTML for a particular photo set that then links to Flickr, but as someone already said, the barrier to entry is already very very low and that's not a showstopper. On 8/21/06, tuomas at peippo.eu wrote: > > Quoting Scott Laird : > > > On 8/21/06, mathew wrote: > >> Well, anyone can go create an account on Flickr and use that. Takes a > >> minute or two to set up, and you get commenting on photos, tagging > >> photos, groups of photos, and so on. I kinda feel like if you can't do > >> at least as much as that, you might as well not bother. The bar has > been > >> raised too high for simple solutions to be worth the bloat. > > > > Yeah, this is basically my opinion. Back when I first got involved > > with Typo, I was trying to decide between working on better blog > > software or better gallery software, because I wasn't happy with my > > choices on either front. Typo was an easier place to start, but I > > still figured that I'd get back to gallery coding for a while, until I > > started using Flickr. Then I just gave up on the whole idea--Flickr > > is better then anything I could put together in a reasonable amount of > > time, and they're doing a great job with it. Frankly, the $25/year > > they want for "professional" memberships is probably less then I'd pay > > maintaining my own site for a year. > > Well of course you can use flickr or whatever you want but the point > was that not all users want to. People may have already some hosted > webpage with plenty of space for images so why would someone put > images to some slow(?) flickr server. It also simplifies the upload > process a lot. You dont have to first upload images to flickr and then > found out those links to be included in your post. > > And if you want to show all your photos in single place within your > site it's kind of impossible with flickr or at least as long as I > know. You probably can fetch those images one by one from flickr but > isn't it the same to store on your server then. > > If I just want to quickly post some one photo to be included in my > post, I'm pretty sure that I don't bother first registering to flickr > for that. > > Alltough I agree that it's probably not very good idea to include > every possible feature to typo. Some sort of plugin system would be > good where user could download/activate optional plugins if needed. > That might not be so easy to do but might be "the most proper" way to > handle this. > > I also would like to see it more like a feature to resources handling > and not a separate gallery as Lars Roland pointed out. It should allow > user to nicely group same kind of media( not just photos) and perhaps > also do some other optional things like thumbnail creation with image > files if wanted. These kind of operations could possibly be handled > like plugins? > > > _______________________________________________ > 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/20060824/f639f2cd/attachment-0001.html From tuomas at peippo.eu Thu Aug 24 13:45:18 2006 From: tuomas at peippo.eu (tuomas at peippo.eu) Date: Thu, 24 Aug 2006 20:45:18 +0300 Subject: [typo] Gallery support In-Reply-To: <20060824201916.st4e8ahgu88cogcs@webmail.nodeta.fi> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> <44E9060F.6000208@pobox.com> <20060821123838.ni9lcfk6ucsg8gws@webmail.nodeta.fi> <44E9CCF7.7070900@pobox.com> <14b7e5ef0608210826u3d1609ccn51cb42b43d14315d@mail.gmail.com> <20060821184713.uc55tcvag0gw4kgk@webmail.nodeta.fi> <20060824201916.st4e8ahgu88cogcs@webmail.nodeta.fi> Message-ID: <20060824204518.7rrk1ardwkkws8og@webmail.nodeta.fi> Quoting Ernie Oporto : > Flickr gives you different sizes for each of the photos that act as links to > your photo albums. So there is no need to resize for thumbnails when they > already do it for you. You can just use the HTML they provide to make a > typo page with these image links. This effectively makes that typo page > your photo album and then anyone interested in a particular photo set can > follow the links through to Flickr where you have tagging capability. > > What I wish for is something that would generate HTML for a particular photo > set that then links to Flickr, but as someone already said, the barrier to > entry is already very very low and that's not a showstopper. Well I'm sure that flickr is very good service and probably one of the best. But I'm not talking about creating gallery application like flickr. I simply want to keep my photos on my own server that is located on same country than I and dont have any limitations about usage. Yes I know that I can pay for flickr but I already pay for my webspace so why would I need another one? What I understand is that free version of flickr allows you to post 20MB of images or actually the 20MB is just the bandwith. So if you send your uncropped versions to flickr you can't store that many images per month. Of course you can manually resize your photos but doesn't that make the flickr's automatic resizing pretty useless? And if you want to have photos to show up on your site like a gallery you need to manually paste the html from flickr everytime you upload new photos, right? Biggest problem for me tough is that besides the photos lives on some US server far away. They(Yahoo) has the main control of what photos to show and what not to and they can limit the free usage or even decide to charge on every use. That might not be so likely but probably when they got more and more users at some point they will be adding some sort of ads to photos or perhaps they already do that? So if you want to use flickr,zooomr or whatever please do but that has nothing to do with adding (optional) gallery support to some existing software, imho. From gpsnospam at gmail.com Thu Aug 24 16:31:29 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Thu, 24 Aug 2006 21:31:29 +0100 Subject: [typo] Be careful with Akismet Message-ID: <3B0C00C9-C2AD-42CB-9668-0DA83DACC16D@gmail.com> I removed the RBL entries to speed up the processing of commenting and tested the spam protection with only Akismet. I posted three test comments using a fake username and email address. The content was one word 'poker'. Now every time I try to post a comment to my site or another Akismet protected site my comment is blacklisted and eld as spam for moderation. Even using my regular username and email address. Be careful testing :) From neuro at 7el.net Thu Aug 24 16:35:09 2006 From: neuro at 7el.net (Frederic de Villamil) Date: Thu, 24 Aug 2006 22:35:09 +0200 Subject: [typo] Be careful with Akismet In-Reply-To: <3B0C00C9-C2AD-42CB-9668-0DA83DACC16D@gmail.com> References: <3B0C00C9-C2AD-42CB-9668-0DA83DACC16D@gmail.com> Message-ID: <44EE0D7D.9000900@7el.net> Gary Shewan a ?crit : > I removed the RBL entries to speed up the processing of commenting > and tested the spam protection with only Akismet. I posted three > test comments using a fake username and email address. The content > was one word 'poker'. > > Now every time I try to post a comment to my site or another Akismet > protected site my comment is blacklisted and eld as spam for > moderation. Even using my regular username and email address. > > Be careful testing :) Well, Akismet is all but perfect, but IMHO it is the best anti spam thing we've got for now, unless someone starts to code a decent antispam for Typo. -- 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. http://t37.net http://fredericdevillamil.com neuro at 7el.net tel: +33 (0)6 62 19 1337 From pdcawley at bofh.org.uk Thu Aug 24 16:42:50 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Thu, 24 Aug 2006 21:42:50 +0100 Subject: [typo] Be careful with Akismet In-Reply-To: <3B0C00C9-C2AD-42CB-9668-0DA83DACC16D@gmail.com> (Gary Shewan's message of "Thu, 24 Aug 2006 21:31:29 +0100") References: <3B0C00C9-C2AD-42CB-9668-0DA83DACC16D@gmail.com> Message-ID: Gary Shewan writes: > I removed the RBL entries to speed up the processing of commenting > and tested the spam protection with only Akismet. I posted three > test comments using a fake username and email address. The content > was one word 'poker'. > > Now every time I try to post a comment to my site or another Akismet > protected site my comment is blacklisted and eld as spam for > moderation. Even using my regular username and email address. > > Be careful testing :) At the very least, use a completely different dialup provider :) -- Piers Cawley http://www.bofh.org.uk/ From mattrose at folkwolf.net Thu Aug 24 17:05:44 2006 From: mattrose at folkwolf.net (Matt Rose) Date: Thu, 24 Aug 2006 17:05:44 -0400 (EDT) Subject: [typo] typo sidebars Message-ID: I've found a weird problem with a sidebar I've been working on. It doesn't want to load any more. I've installed and removed the sidebar a few times, and now when I try and install the sidebar, I get this error in the log. ActiveRecord::StatementInvalid (PGError: ERROR: duplicate key violates unique constraint "sidebars_pkey" : INSERT INTO sidebars ("config", "staged_position", "type", "active_position", "blog_id") VALUES('--- user: title: folder: ', NULL, 'BloglinesSidebar', NULL, 1)): This error makes no sense, because I'm not actually specifying an id, the database should just pick the next one in sequence. I thought it might have been a sequence problem, but that's fine, and when I run the same INSERT into the database, it works just fine. typo=> begin; BEGIN typo=> INSERT INTO sidebars ("config", "staged_position", "type", "active_position", "blog_id") VALUES('--- typo'> user: typo'> title: typo'> folder: typo'> ', NULL, 'BloglinesSidebar', NULL, 1); INSERT 117605 1 typo=> abort; ROLLBACK I'm kinda stumped. -- -------------------------------------------------------------------------- Matt Rose mattrose at folkwolf.net Visit my blog! http://folkwolf.net He's a time-tossed moralistic paranormal investigator who hides his scarred face behind a mask. She's a warm-hearted insomniac soap star who inherited a spooky stately manor from her late maiden aunt. They fight crime! From gpsnospam at gmail.com Thu Aug 24 16:57:14 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Thu, 24 Aug 2006 21:57:14 +0100 Subject: [typo] Be careful with Akismet In-Reply-To: References: <3B0C00C9-C2AD-42CB-9668-0DA83DACC16D@gmail.com> Message-ID: Cable. Fixed IP. Joy :) Like I said, care needed ;) On 24 Aug 2006, at 21:42, Piers Cawley wrote: > Gary Shewan writes: > >> I removed the RBL entries to speed up the processing of commenting >> and tested the spam protection with only Akismet. I posted three >> test comments using a fake username and email address. The content >> was one word 'poker'. >> >> Now every time I try to post a comment to my site or another Akismet >> protected site my comment is blacklisted and eld as spam for >> moderation. Even using my regular username and email address. >> >> Be careful testing :) > > At the very least, use a completely different dialup provider :) > > -- > 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 Thu Aug 24 16:58:07 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Thu, 24 Aug 2006 21:58:07 +0100 Subject: [typo] typo sidebars In-Reply-To: (Matt Rose's message of "Thu, 24 Aug 2006 17:05:44 -0400 (EDT)") References: Message-ID: Matt Rose writes: > I've found a weird problem with a sidebar I've been working on. > > It doesn't want to load any more. > > I've installed and removed the sidebar a few times, and now when I try and > install the sidebar, I get this error in the log. > > ActiveRecord::StatementInvalid (PGError: ERROR: duplicate key violates > unique constraint "sidebars_pkey" > : INSERT INTO sidebars ("config", "staged_position", "type", > "active_position", "blog_id") VALUES('--- > user: > title: > folder: > ', NULL, 'BloglinesSidebar', NULL, 1)): > > This error makes no sense, because I'm not actually specifying an id, the > database should just pick the next one in sequence. I thought it might > have been a sequence problem, but that's fine, and when I run the same > INSERT into the database, it works just fine. Have you tried it with a different RDBMS? And which version of typo are you using? -- Piers Cawley http://www.bofh.org.uk/ From mattrose at folkwolf.net Thu Aug 24 20:36:31 2006 From: mattrose at folkwolf.net (Matt Rose) Date: Thu, 24 Aug 2006 20:36:31 -0400 Subject: [typo] typo sidebars In-Reply-To: References: Message-ID: I'd rather stick with postgres, as it's what I'm familiar with. I'm using 1253, should I upgrade? I'll give it a try with sqlite3 tommorrow if I have time. On 24-Aug-06, at 4:58 PM, Piers Cawley wrote: > > > Have you tried it with a different RDBMS? And which version of typo > are you using? > > -- > 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 Aug 25 01:51:28 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 25 Aug 2006 06:51:28 +0100 Subject: [typo] typo sidebars In-Reply-To: (Matt Rose's message of "Thu, 24 Aug 2006 20:36:31 -0400") References: Message-ID: Matt Rose writes: > I'd rather stick with postgres, as it's what I'm familiar with. It's just for testing purposes, we need to nail down whether it's database specific, so trying another one temporarily will help with that. > I'm using 1253, should I upgrade? Nope, no need. -- Piers Cawley http://www.bofh.org.uk/ From arsptr at internode.on.net Fri Aug 25 07:50:58 2006 From: arsptr at internode.on.net (Alastair Rankine) Date: Fri, 25 Aug 2006 21:50:58 +1000 Subject: [typo] Page caching feed urls In-Reply-To: References: Message-ID: <431C22C3-B1EC-4EA1-B835-78EC582C8D6F@internode.on.net> On 24/08/2006, at 2:46 AM, Piers Cawley wrote: > Some feedback here on people's experiences in this regard would be > good. Works for me. I initially thought it was going to enable client-side caching - ie returning HTTP code 304 not modified instead of the entire feed - but then I realised you were talking about the server cache. Just out of interest: does anyone else get feed caching on the client side? Maybe it's something wrong with my setup. I'm using an Apache proxy to mongrel, if it matters. Using NetNewsWire's Bandwidth Stats window to test. From johncwang at gmail.com Fri Aug 25 11:52:46 2006 From: johncwang at gmail.com (John Wang) Date: Fri, 25 Aug 2006 08:52:46 -0700 Subject: [typo] Gallery support In-Reply-To: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> References: <20060820205421.t9nigtx8g0w8kc4g@webmail.nodeta.fi> Message-ID: <22a4faec0608250852n1102cdbvb79068c2750d1c56@mail.gmail.com> On 8/20/06, tuomas at peippo.eu wrote: > > I have been thinking of implementing basic gallery support for typo. > The main benefit of this would be that all site's data could be > handled at same place and design would be the same over the site. The upcoming Mephisto 0.6 release looks like it's going to support taggable images (and possibly/eventually galleries). The first screen shot on the following page shows image thumbnails and a button named 'Pictures': http://mephistoblog.com/2006/8/22/what-s-coming-in-0-6 Just FYI. -- John Wang http://www.dev411.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060825/eec94768/attachment-0001.html From benr at x-cr.com Fri Aug 25 17:56:47 2006 From: benr at x-cr.com (Ben Reubenstein) Date: Fri, 25 Aug 2006 15:56:47 -0600 Subject: [typo] Themes ~ Can someone fill me in? Message-ID: <44c79a160608251456u14ef3355ua2d1424d52b40db5@mail.gmail.com> Hello ~ A while back I migrated my blogger blog to Typo. I am definitely much happier, but themes are really getting me down. Many themes that I have tried no longer work, and the main theme I used to use (phokus) no longer works with the Trunk of Typo. I have thought of creating my own theme, but with the changes in Typo creating breakage in themes I have been hesitant too. Is there a plan/road map for how themes will be implemented and solidified? I think it is vital that the theme portion of the app provide a mechanism that will eliminate breakage as the app evolves. This will encourage themes to be created and not require theme creators to constantly update in order to work with Typo. If I missed some conversation about themes that has resolved this, my apologies... Cheers, Ben -- Ben Reubenstein 303-947-0446 http://www.benr75.com From inxs.hemant at gmail.com Sat Aug 26 06:57:11 2006 From: inxs.hemant at gmail.com (hemant kumar) Date: Sat, 26 Aug 2006 16:27:11 +0530 Subject: [typo] integration of typo with rest of the authentication system Message-ID: <44f0290e.588ca9d0.30ea.ffff8373@mx.gmail.com> Hi folks, I am in process of modifying typo to suit my own needs, basically as a blogging tool for my users.Now my page, would generate, typo blogs for users..when they are elligible for blogs. So, I just want to integrate my existing login system with typo.I mean, if the user has a account with us, then he need not signup again for account and same for login.So, if he is logged in here, he need not login..to typo blog for posting messages. Now, how do I go about implementing this stuff? -- Our shadows taller than our Soul From inxs.hemant at gmail.com Sat Aug 26 07:02:45 2006 From: inxs.hemant at gmail.com (hemant kumar) Date: Sat, 26 Aug 2006 16:32:45 +0530 Subject: [typo] integration of typo with rest of the authentication system Message-ID: <44f02a5e.579e2732.3312.ffff950e@mx.gmail.com> Also, my original application will be on different machine and these typo blogs will mostly run on a different machine and hence...."requiring" users.rb from my original application to typo is sort of ruled out!!! -----Original Message----- From: hemant kumar [mailto:inxs.hemant at gmail.com] Sent: Saturday, August 26, 2006 4:27 PM To: 'typo-list at rubyforge.org' Subject: integration of typo with rest of the authentication system Hi folks, I am in process of modifying typo to suit my own needs, basically as a blogging tool for my users.Now my page, would generate, typo blogs for users..when they are elligible for blogs. So, I just want to integrate my existing login system with typo.I mean, if the user has a account with us, then he need not signup again for account and same for login.So, if he is logged in here, he need not login..to typo blog for posting messages. Now, how do I go about implementing this stuff? -- Our shadows taller than our Soul From sterling.anderson at gmail.com Sat Aug 26 11:10:44 2006 From: sterling.anderson at gmail.com (Sterling Anderson) Date: Sat, 26 Aug 2006 10:10:44 -0500 Subject: [typo] Themes ~ Can someone fill me in? In-Reply-To: <44c79a160608251456u14ef3355ua2d1424d52b40db5@mail.gmail.com> References: <44c79a160608251456u14ef3355ua2d1424d52b40db5@mail.gmail.com> Message-ID: <77d041290608260810i5b796b52ta5f76861c8a93ee5@mail.gmail.com> I just updated my blog to the trunk yesterday and was surprised when my theme (hemingway) was now broken too. The only thing I can comment on is that is what you get for going with the edge. I was able to fix things in about 5 minutes by looking at my production.log file, so it wasn't a huge deal for me. You almost always have issues with themes and newer versions of blogging apps. Especially with an app that is changing as much as Typo. On 8/25/06, Ben Reubenstein wrote: > Hello ~ > > A while back I migrated my blogger blog to Typo. I am definitely much > happier, but themes are really getting me down. Many themes that I > have tried no longer work, and the main theme I used to use (phokus) > no longer works with the Trunk of Typo. I have thought of creating my > own theme, but with the changes in Typo creating breakage in themes I > have been hesitant too. > > Is there a plan/road map for how themes will be implemented and > solidified? I think it is vital that the theme portion of the app > provide a mechanism that will eliminate breakage as the app evolves. > This will encourage themes to be created and not require theme > creators to constantly update in order to work with Typo. > > If I missed some conversation about themes that has resolved this, my > apologies... > > Cheers, > > Ben > > -- > Ben Reubenstein > 303-947-0446 > http://www.benr75.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Sterling Anderson sterling.anderson [at] gmail.com http://sterlinganderson.net/ 608.239.8387 From scott at sigkill.org Sat Aug 26 11:38:11 2006 From: scott at sigkill.org (Scott Laird) Date: Sat, 26 Aug 2006 08:38:11 -0700 Subject: [typo] Themes ~ Can someone fill me in? In-Reply-To: <77d041290608260810i5b796b52ta5f76861c8a93ee5@mail.gmail.com> References: <44c79a160608251456u14ef3355ua2d1424d52b40db5@mail.gmail.com> <77d041290608260810i5b796b52ta5f76861c8a93ee5@mail.gmail.com> Message-ID: <14b7e5ef0608260838w13b5de55w3a397a2c2890fe26@mail.gmail.com> The current trunk is in the middle of a lot of big changes; we're fixing some things that have been subtly broken for a while, and this ends up breaking most themes and all sidebars. Once we've finished all of the big changes, we'll start working with theme providers to clean everything up. But that'll probably be a bit longer still, and things will break at least once more when we move themes into vendor/plugins. Scott On 8/26/06, Sterling Anderson wrote: > I just updated my blog to the trunk yesterday and was surprised when > my theme (hemingway) was now broken too. The only thing I can comment > on is that is what you get for going with the edge. I was able to fix > things in about 5 minutes by looking at my production.log file, so it > wasn't a huge deal for me. You almost always have issues with themes > and newer versions of blogging apps. Especially with an app that is > changing as much as Typo. > > On 8/25/06, Ben Reubenstein wrote: > > Hello ~ > > > > A while back I migrated my blogger blog to Typo. I am definitely much > > happier, but themes are really getting me down. Many themes that I > > have tried no longer work, and the main theme I used to use (phokus) > > no longer works with the Trunk of Typo. I have thought of creating my > > own theme, but with the changes in Typo creating breakage in themes I > > have been hesitant too. > > > > Is there a plan/road map for how themes will be implemented and > > solidified? I think it is vital that the theme portion of the app > > provide a mechanism that will eliminate breakage as the app evolves. > > This will encourage themes to be created and not require theme > > creators to constantly update in order to work with Typo. > > > > If I missed some conversation about themes that has resolved this, my > > apologies... > > > > Cheers, > > > > Ben > > > > -- > > Ben Reubenstein > > 303-947-0446 > > http://www.benr75.com > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > -- > Sterling Anderson > sterling.anderson [at] gmail.com > http://sterlinganderson.net/ > 608.239.8387 > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From hemant at inxsasia.com Sat Aug 26 16:34:49 2006 From: hemant at inxsasia.com (Hemant) Date: Sun, 27 Aug 2006 02:04:49 +0530 Subject: [typo] integration of typo with rest of the authentication system In-Reply-To: <44f02a5e.579e2732.3312.ffff950e@mx.gmail.com> References: <44f02a5e.579e2732.3312.ffff950e@mx.gmail.com> Message-ID: <74733560608261334u5d1bc104udde44015593371dd@mail.gmail.com> I was trying to use AWS for doing this stuff!!!. But i am having problems.... If you guys have any other idea..i would be glad to know. On 8/26/06, hemant kumar wrote: > > Also, my original application will be on different machine and these typo > blogs will mostly run on a different machine and hence...."requiring" > users.rb from my original application to typo is sort of ruled out!!! > > > > -----Original Message----- > From: hemant kumar [mailto:inxs.hemant at gmail.com] > Sent: Saturday, August 26, 2006 4:27 PM > To: 'typo-list at rubyforge.org' > Subject: integration of typo with rest of the authentication system > > > Hi folks, > > I am in process of modifying typo to suit my own needs, basically as a > blogging tool for my users.Now my page, would generate, typo blogs for > users..when they are elligible for blogs. > > So, I just want to integrate my existing login system with typo.I mean, if > the user has a account with us, then he need not signup again for account > and same for login.So, if he is logged in here, he need not login..to typo > blog for posting messages. > > Now, how do I go about implementing this stuff? > > > > -- > Our shadows taller than our Soul > > -- -- Hemant Kumar Software Developer INXS Technologies #15 ARK Cly., 1-A, Eldams Rd. AlwarPet Chennai - 600 018, India. mobile:098 4044 6006 ph: +91 44 3912 3000 (India) fax: +91 44 39128128 (India) ph: +1 817 755 2111 (US/International) fax:+1 806 398 1355 (US/International) www.INXSAsia.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060827/3564a485/attachment.html From vemon388 at gmail.com Sun Aug 27 05:01:17 2006 From: vemon388 at gmail.com (Levi McCallum) Date: Sat, 26 Aug 2006 23:01:17 -1000 Subject: [typo] Making Sidebar Love Message-ID: Hey guys, Quick question. I have made all the code to develop a Digg.com Sidebar element. Now I just want to impliment it. How do I do it? Where are the sidebars located and what do I need? Thanks Levi -- 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/20060826/8bc82a71/attachment.html From neuro at 7el.net Sun Aug 27 05:33:13 2006 From: neuro at 7el.net (Frederic de Villamil) Date: Sun, 27 Aug 2006 11:33:13 +0200 Subject: [typo] Making Sidebar Love In-Reply-To: References: Message-ID: <44F166D9.8060501@7el.net> Levi McCallum a ?crit : > Hey guys, > > Quick question. > > I have made all the code to develop a Digg.com Sidebar > element. Now I just want to impliment it. How do I do it? Where are the > sidebars located and what do I need? > > Thanks > > Levi > Hi Levi, The sidebar plugins are now located in the vendor/plugins directory. Now, you just need to read the source, Luke ! -- 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. http://t37.net http://fredericdevillamil.com neuro at 7el.net tel: +33 (0)6 62 19 1337 From vemon388 at gmail.com Sun Aug 27 14:11:49 2006 From: vemon388 at gmail.com (Levi McCallum) Date: Sun, 27 Aug 2006 08:11:49 -1000 Subject: [typo] Making Sidebar Love In-Reply-To: <44F166D9.8060501@7el.net> References: <44F166D9.8060501@7el.net> Message-ID: Cool stuff... I hate using svn on top of developing... On 8/26/06, Frederic de Villamil wrote: > > Levi McCallum a ?crit : > > Hey guys, > > > > Quick question. > > > > I have made all the code to develop a Digg.com Sidebar > > element. Now I just want to impliment it. How do I do it? Where are the > > sidebars located and what do I need? > > > > Thanks > > > > Levi > > > > Hi Levi, > The sidebar plugins are now located in the vendor/plugins directory. > Now, you just need to read the source, Luke ! > > -- > 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. > http://t37.net http://fredericdevillamil.com > neuro at 7el.net tel: +33 (0)6 62 19 1337 > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- 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/20060827/f48f0394/attachment-0001.html From trejkaz at trypticon.org Mon Aug 28 19:35:36 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Tue, 29 Aug 2006 09:35:36 +1000 (EST) Subject: [typo] Making Sidebar Love In-Reply-To: References: <44F166D9.8060501@7el.net> Message-ID: <43888.203.82.163.242.1156808136.squirrel@home.trypticon.org> > Cool stuff... > > I hate using svn on top of developing... ? I somewhat like svn, although svk is much more interesting / useful when working with changes branched from someone else's repository. TX From vemon388 at gmail.com Mon Aug 28 21:14:15 2006 From: vemon388 at gmail.com (Levi McCallum) Date: Mon, 28 Aug 2006 15:14:15 -1000 Subject: [typo] Making Sidebar Love In-Reply-To: <43888.203.82.163.242.1156808136.squirrel@home.trypticon.org> References: <44F166D9.8060501@7el.net> <43888.203.82.163.242.1156808136.squirrel@home.trypticon.org> Message-ID: Let me refrase that: "I hate working with SVN on a production/development blog" .mine are some what annoying sometimes. I guess it is really my fault. On 8/28/06, Trejkaz wrote: > > > Cool stuff... > > > > I hate using svn on top of developing... > > ? > > I somewhat like svn, although svk is much more interesting / useful when > working with changes branched from someone else's repository. > > TX > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- 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/20060828/78e253f1/attachment.html From andy at ciordia.info Wed Aug 30 23:20:47 2006 From: andy at ciordia.info (Andy Ciordia) Date: Wed, 30 Aug 2006 23:20:47 -0400 Subject: [typo] flickr filter expiry Message-ID: Just started to get: " could not be displayed because: Invalid API Key (Key has expired)" On photos that were pulled with the method. -- Andy Ciordia it's my island : http://andy.ciordia.info -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060830/ca9eedb4/attachment.html From inxs.hemant at gmail.com Thu Aug 31 10:47:18 2006 From: inxs.hemant at gmail.com (Hemant .) Date: Thu, 31 Aug 2006 20:17:18 +0530 Subject: [typo] multiple typo app? Message-ID: <74733560608310747i6ad6045bpd56b0cdc687ea3be@mail.gmail.com> Is it possible to host multiple sites on the same typo app? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060831/848f1877/attachment.html From scott at sigkill.org Thu Aug 31 13:48:12 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 31 Aug 2006 10:48:12 -0700 Subject: [typo] flickr filter expiry In-Reply-To: References: Message-ID: <14b7e5ef0608311048r75db8b3ega33d6a13b78e2a0d@mail.gmail.com> I'll update it ASAP; probably tonight. Scott On 8/30/06, Andy Ciordia wrote: > > Just started to get: > > " could not be displayed because: > Invalid API Key (Key has expired)" > > On photos that were pulled with the method. > > > > > > -- > Andy Ciordia > it's my island : http://andy.ciordia.info > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From scott at sigkill.org Thu Aug 31 13:49:40 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 31 Aug 2006 10:49:40 -0700 Subject: [typo] multiple typo app? In-Reply-To: <74733560608310747i6ad6045bpd56b0cdc687ea3be@mail.gmail.com> References: <74733560608310747i6ad6045bpd56b0cdc687ea3be@mail.gmail.com> Message-ID: <14b7e5ef0608311049l51652fb4v2d01b655065b4640@mail.gmail.com> Not quite. We're fairly close to having it work on the current trunk, but none of the admin tools are there, and the permission checking system doesn't work like you'd expect. Scott On 8/31/06, Hemant . wrote: > Is it possible to host multiple sites on the same typo app? > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From aja at si.on.ca Thu Aug 31 20:09:38 2006 From: aja at si.on.ca (Anton J Aylward) Date: Thu, 31 Aug 2006 20:09:38 -0400 Subject: [typo] multiple typo app? In-Reply-To: <14b7e5ef0608311049l51652fb4v2d01b655065b4640@mail.gmail.com> References: <74733560608310747i6ad6045bpd56b0cdc687ea3be@mail.gmail.com> <14b7e5ef0608311049l51652fb4v2d01b655065b4640@mail.gmail.com> Message-ID: <44F77A42.7020601@si.on.ca> Dreamhost allows multiple sub-domains and multiple instances of MySQL to be created quite easily. What I'd really like is to use that capability to have multiple typo blogs in subdomains. This seems a limited case rather than a general case in that its not really the same "app" since the databases are separate. Its really just a matter of how the HTTP request gets directed and the config file used. Any thoughts? Scott Laird wrote: > Not quite. We're fairly close to having it work on the current trunk, > but none of the admin tools are there, and the permission checking > system doesn't work like you'd expect. > > > Scott > > On 8/31/06, Hemant . wrote: >> Is it possible to host multiple sites on the same typo app? -- Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity. -- George S. Patton From dom at happygiraffe.net Thu Aug 31 20:39:39 2006 From: dom at happygiraffe.net (Dominic Mitchell) Date: Fri, 1 Sep 2006 01:39:39 +0100 Subject: [typo] flickr filter expiry In-Reply-To: <14b7e5ef0608311048r75db8b3ega33d6a13b78e2a0d@mail.gmail.com> References: <14b7e5ef0608311048r75db8b3ega33d6a13b78e2a0d@mail.gmail.com> Message-ID: <20060901003939.GA63933@gimli.happygiraffe.net> On Thu, Aug 31, 2006 at 10:48:12AM -0700, Scott Laird wrote: > I'll update it ASAP; probably tonight. It's on your blog too :-) http://scottstuff.net/blog/articles/2006/08/26/lighthouse-at-dawn Presumably it's easier to update my own config/environment.rb instead of everybody using your API key? -Dom From inxs.hemant at gmail.com Thu Aug 31 20:49:55 2006 From: inxs.hemant at gmail.com (Hemant .) Date: Fri, 1 Sep 2006 06:19:55 +0530 Subject: [typo] multiple typo app? In-Reply-To: <44F77A42.7020601@si.on.ca> References: <74733560608310747i6ad6045bpd56b0cdc687ea3be@mail.gmail.com> <14b7e5ef0608311049l51652fb4v2d01b655065b4640@mail.gmail.com> <44F77A42.7020601@si.on.ca> Message-ID: <74733560608311749t6779bc9ctbe8a419d518aee56@mail.gmail.com> quite true, mephisto does this stuff.If typo is able to do this, it would be awesome. Also, as new rails is going to remove find_first and find_all method we should start removing them i guess. On 9/1/06, Anton J Aylward wrote: > > Dreamhost allows multiple sub-domains and multiple instances of MySQL to > be > created quite easily. > > What I'd really like is to use that capability to have multiple typo blogs > in subdomains. This seems a limited case rather than a general case in > that > its not really the same "app" since the databases are separate. > Its really just a matter of how the HTTP request gets directed and the > config file used. > > Any thoughts? > > Scott Laird wrote: > > Not quite. We're fairly close to having it work on the current trunk, > > but none of the admin tools are there, and the permission checking > > system doesn't work like you'd expect. > > > > > > Scott > > > > On 8/31/06, Hemant . wrote: > >> Is it possible to host multiple sites on the same typo app? > > > -- > Never tell people how to do things. Tell them what to do and they > will surprise you with their ingenuity. > -- George S. Patton > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- -- Hemant Kumar Software Developer INXS Technologies #15 ARK Cly., 1-A, Eldams Rd. AlwarPet Chennai - 600 018, India. mobile:098 4044 6006 ph: +91 44 3912 3000 (India) fax: +91 44 39128128 (India) ph: +1 817 755 2111 (US/International) fax:+1 806 398 1355 (US/International) www.INXSAsia.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060901/7db6ef98/attachment.html From cwsaylor at gmail.com Thu Aug 31 22:21:34 2006 From: cwsaylor at gmail.com (Chris Saylor) Date: Thu, 31 Aug 2006 22:21:34 -0400 Subject: [typo] flickr filter expiry In-Reply-To: <20060901003939.GA63933@gimli.happygiraffe.net> References: <14b7e5ef0608311048r75db8b3ega33d6a13b78e2a0d@mail.gmail.com> <20060901003939.GA63933@gimli.happygiraffe.net> Message-ID: I requested an API key, plugged it into environment.rb and restarted mongrel, but it still gives me the error. Any special tricks we should know about? Thanks, Chris On 8/31/06, Dominic Mitchell wrote: > On Thu, Aug 31, 2006 at 10:48:12AM -0700, Scott Laird wrote: > > I'll update it ASAP; probably tonight. > > It's on your blog too :-) > > http://scottstuff.net/blog/articles/2006/08/26/lighthouse-at-dawn > > Presumably it's easier to update my own config/environment.rb instead of > everybody using your API key? > > -Dom > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list >