From jay.r.smith at gmail.com Wed Jun 1 06:12:58 2005 From: jay.r.smith at gmail.com (Jay Smith) Date: Wed Jun 1 06:05:57 2005 Subject: [typo] Install help In-Reply-To: <9963c1bd050531065462a000d@mail.gmail.com> References: <69cebec050531054741ca077a@mail.gmail.com> <9963c1bd050531065462a000d@mail.gmail.com> Message-ID: <69cebec05060103122c6bad42@mail.gmail.com> Thanks Tobias, Pays to follow the instructions properly :) Working now. Cheers Jay On 5/31/05, Tobias Luetke wrote: > Hey Jay, > > I'm not 100% sure but I think you need to start webrick from the root > of the application. I have seen this error before when trying to run > the server script from within the scripts folder. > > try to go to your typo directory and do "./scripts/server" or "ruby > scripts\server" if you are on windows. > > On 5/31/05, Jay Smith wrote: > > Hi all, > > > > Complete newbie here. Just started with Ruby, Rails and now Typo. Now > > that you've all run away I'll ask the last 3 of you: > > > > I have managed to start the WEBrick server and have browsed to > > http://localhost:3000 > > > > However I then get an error. The title of the page says: "Action > > Controller: Exception Caught" and the rest of the page says: "Routing > > Error > > Illegal controller path for route default: articles" > > > > Any ideas what I've done wrong? :) > > > > Cheers > > Jay > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > -- > Tobi > http://www.snowdevil.ca - Snowboards that don't suck > http://typo.leetsoft.com - Open source weblog engine > http://blog.leetsoft.com - Technical weblog > From henning at bertramonline.com Thu Jun 2 04:28:44 2005 From: henning at bertramonline.com (Henning Bertram) Date: Thu Jun 2 04:21:53 2005 Subject: [typo] MySQL to SQLite: any pointers? Message-ID: <429EC33C.4080902@bertramonline.com> I have bebe running Typo for a while on my TextDrive account. It is a great app, but recently the TextDrive servers have had a number of MySQL problems. So, I thought: why now use SQLite instead? It is not as if I have so much traffic that performance will be an issue (if it is at all, under any circumstances...) However, I would like to convert my existing db over (holding some 700 articles). After all: I spent a lot of time moving all the data from TxP... Since a SQLite db is cross-platform, I tried doing various conversions on my local Windoze machine, using some of the different freely available SQLite tools. The closest I got was moving the db from MySQL to Access (!!!), and then from Access to SQLite. Worked, sort of: the contents of the DATETIME fields did not make it, so no good, in the end. However, looking at the converters that come with Typo (and that worked great, btw), I have a feeling that something along those lines might be the way to go. My question is: has anybody done this? That is: moved an existing Typo db from MySQL to SQLite, using a ruby script? Loooking at the converters, it seems as if it would be trivial. On the other hand: I am not (yet?) really an ace Rubyist, so if such a script is already out there... /Henning From tobias.luetke at gmail.com Thu Jun 2 13:55:03 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Thu Jun 2 13:48:29 2005 Subject: [typo] MySQL to SQLite: any pointers? In-Reply-To: <429EC33C.4080902@bertramonline.com> References: <429EC33C.4080902@bertramonline.com> Message-ID: <9963c1bd05060210553c45f994@mail.gmail.com> Hey henning, One thing to try is something like this after creating the sqlite schema at db/database.db mysqldump --lock-tables=FALSE --complete-insert=TRUE -t -u root typo | sqlite db/database.db On 6/2/05, Henning Bertram wrote: > I have bebe running Typo for a while on my TextDrive account. It is a > great app, but recently the TextDrive servers have had a number of MySQL > problems. So, I thought: why now use SQLite instead? It is not as if I > have so much traffic that performance will be an issue (if it is at all, > under any circumstances...) > > However, I would like to convert my existing db over (holding some 700 > articles). After all: I spent a lot of time moving all the data from TxP... > > Since a SQLite db is cross-platform, I tried doing various conversions > on my local Windoze machine, using some of the different freely > available SQLite tools. The closest I got was moving the db from MySQL > to Access (!!!), and then from Access to SQLite. Worked, sort of: the > contents of the DATETIME fields did not make it, so no good, in the end. > > However, looking at the converters that come with Typo (and that worked > great, btw), I have a feeling that something along those lines might be > the way to go. > > My question is: has anybody done this? That is: moved an existing Typo > db from MySQL to SQLite, using a ruby script? Loooking at the > converters, it seems as if it would be trivial. On the other hand: I am > not (yet?) really an ace Rubyist, so if such a script is already out > there... > > /Henning > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From henning at bertramonline.com Thu Jun 2 15:40:17 2005 From: henning at bertramonline.com (Henning Bertram) Date: Thu Jun 2 15:33:47 2005 Subject: [typo] MySQL to SQLite: any pointers? In-Reply-To: <9963c1bd05060210553c45f994@mail.gmail.com> References: <429EC33C.4080902@bertramonline.com> <9963c1bd05060210553c45f994@mail.gmail.com> Message-ID: <429F60A1.6040705@bertramonline.com> Thanks, Tobias -- but it still does not really work. Sqlite chokes on the ` characters. Tobias Luetke wrote: > Hey henning, > > One thing to try is something like this after creating the sqlite > schema at db/database.db > > mysqldump --lock-tables=FALSE --complete-insert=TRUE -t -u root typo > | sqlite db/database.db > > On 6/2/05, Henning Bertram wrote: > From booshank at gmail.com Fri Jun 3 10:33:03 2005 From: booshank at gmail.com (Robert Williams) Date: Fri Jun 3 10:26:00 2005 Subject: [typo] MySQL to SQLite: any pointers? In-Reply-To: <429F60A1.6040705@bertramonline.com> References: <429EC33C.4080902@bertramonline.com> <9963c1bd05060210553c45f994@mail.gmail.com> <429F60A1.6040705@bertramonline.com> Message-ID: On 02/06/05, Henning Bertram wrote: > Thanks, Tobias -- but it still does not really work. Sqlite chokes on > the ` characters. Try: mysqldump --lock-tables=FALSE --complete-insert=TRUE --skip-quote-names -t -u root typo | sqlite db/database.db From haazmatt at gmail.com Sat Jun 4 02:54:09 2005 From: haazmatt at gmail.com (Haazmatt) Date: Sat Jun 4 02:47:02 2005 Subject: [typo] shared blog Message-ID: Hi - I want to use Typo as a shared blog where multiple people can contribute, but I am still the admin. So I guess I want to add a new user type that can create articles, but can't really do any of the other admin functions. Could someone help me with this? I'm a bit new to rails. thanks, -Matt -- haazmatt@gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050603/e207d7b2/attachment.htm From tobias.luetke at gmail.com Sat Jun 4 09:56:52 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Sat Jun 4 09:49:45 2005 Subject: [typo] shared blog In-Reply-To: References: Message-ID: <9963c1bd05060406566508dac1@mail.gmail.com> Hey Matt, This functionality is not in typo currently. I guess it can be added but are you positive you need it? I find that this rights restriction trend is so common nowadays on the net that no one asks if it might just be too much. Once you allow someone to post on your blog you are already placing a lot of trust in him. I think there are better areas to spend time in then to try to virtually jail the person you obviously already trust into his confined and designated area... On a less philosophical note, just add a field to the user record which says admin int(1) 0/1 and put a before filter in all views which the user can't access sending him elsewhere. On 6/4/05, Haazmatt wrote: > Hi - > > I want to use Typo as a shared blog where multiple people can contribute, > but I am still the admin. So I guess I want to add a new user type that can > create articles, but can't really do any of the other admin functions. > Could someone help me with this? I'm a bit new to rails. > > thanks, > -Matt > > -- > haazmatt@gmail.com > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From haazmatt at gmail.com Wed Jun 8 11:37:26 2005 From: haazmatt at gmail.com (Haazmatt) Date: Wed Jun 8 11:33:14 2005 Subject: [typo] admin layout on IE Message-ID: I noticed that the admin layout is not displayed correctly on IE. The sidebar appear on top of the main view area. Does any have a css fix for this. I'm not a fan or user of IE, but a lot of people using my site will be. thanks, -Matt -- haazmatt@gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050608/862c957b/attachment.htm From rasputnik at hellooperator.net Wed Jun 8 11:41:58 2005 From: rasputnik at hellooperator.net (Dick Davies) Date: Wed Jun 8 11:37:52 2005 Subject: [typo] admin layout on IE In-Reply-To: References: Message-ID: <20050608154158.GD68436@eris.tenfour> * Haazmatt [0637 16:37]: > I noticed that the admin layout is not displayed correctly on IE. The > sidebar appear on top of the main view area. Does any have a css fix for > this. I'm not a fan or user of IE, but a lot of people using my site will > be. Don't give them admin ? :) -- 'You were doing well until everyone died' -- God Rasputin :: Jack of All Trades - Master of Nuns From haazmatt at gmail.com Thu Jun 9 13:42:36 2005 From: haazmatt at gmail.com (Haazmatt) Date: Thu Jun 9 13:38:23 2005 Subject: [typo] admin layout on IE In-Reply-To: <20050608154158.GD68436@eris.tenfour> References: <20050608154158.GD68436@eris.tenfour> Message-ID: Not really an option. I'm deploying typo as an intranet blog at my office that any one here can contribute to. I want it to look nice and I'm not really that much of a wiz with css, but I can wade through it. I was just hoping that someone else had run into this and had a fix. thanks, -Matt On 6/8/05, Dick Davies wrote: > > * Haazmatt [0637 16:37]: > > I noticed that the admin layout is not displayed correctly on IE. The > > sidebar appear on top of the main view area. Does any have a css fix for > > this. I'm not a fan or user of IE, but a lot of people using my site > will > > be. > > Don't give them admin ? :) > > > -- > 'You were doing well until everyone died' > -- God > Rasputin :: Jack of All Trades - Master of Nuns > -- haazmatt@gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050609/595c1a67/attachment.htm From tobias.luetke at gmail.com Thu Jun 9 14:44:41 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Thu Jun 9 14:40:27 2005 Subject: [typo] admin layout on IE In-Reply-To: References: <20050608154158.GD68436@eris.tenfour> Message-ID: <9963c1bd05060911446df18124@mail.gmail.com> Justin said he started working on a new admin interface. The current one has no future =) On 6/9/05, Haazmatt wrote: > Not really an option. I'm deploying typo as an intranet blog at my office > that any one here can contribute to. I want it to look nice and I'm not > really that much of a wiz with css, but I can wade through it. I was just > hoping that someone else had run into this and had a fix. > > thanks, > -Matt > > > On 6/8/05, Dick Davies wrote: > > * Haazmatt [0637 16:37]: > > > I noticed that the admin layout is not displayed correctly on IE. The > > > sidebar appear on top of the main view area. Does any have a css fix for > > > this. I'm not a fan or user of IE, but a lot of people using my site > will > > > be. > > > > Don't give them admin ? :) > > > > > > -- > > 'You were doing well until everyone died' > > -- God > > Rasputin :: Jack of All Trades - Master of Nuns > > > > > > -- > haazmatt@gmail.com > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From typo at isolated-designs.net Thu Jun 9 18:45:56 2005 From: typo at isolated-designs.net (Justin Palmer) Date: Thu Jun 9 18:42:13 2005 Subject: [typo] admin layout on IE In-Reply-To: <9963c1bd05060911446df18124@mail.gmail.com> References: <20050608154158.GD68436@eris.tenfour> <9963c1bd05060911446df18124@mail.gmail.com> Message-ID: <3287BD0F-7486-4224-889C-2E488DE67169@isolated-designs.net> On Jun 9, 2005, at 1:44 PM, Tobias Luetke wrote: > Justin said he started working on a new admin interface. The current > one has no future =) > > On 6/9/05, Haazmatt wrote: > >> Not really an option. I'm deploying typo as an intranet blog at >> my office >> that any one here can contribute to. I want it to look nice and >> I'm not >> really that much of a wiz with css, but I can wade through it. I >> was just >> hoping that someone else had run into this and had a fix. >> >> thanks, >> -Matt >> >> >> On 6/8/05, Dick Davies wrote: >> >>> * Haazmatt [0637 16:37]: >>> >>>> I noticed that the admin layout is not displayed correctly on >>>> IE. The >>>> sidebar appear on top of the main view area. Does any have a css >>>> fix for >>>> this. I'm not a fan or user of IE, but a lot of people using my >>>> site >>>> >> will >> >>>> be. >>>> >>> >>> Don't give them admin ? :) >>> >>> >>> -- >>> 'You were doing well until everyone died' >>> -- God >>> Rasputin :: Jack of All Trades - Master of Nuns >>> >>> >> >> >> >> -- >> haazmatt@gmail.com >> _______________________________________________ >> Typo-list mailing list >> Typo-list@rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> >> >> >> > > > -- > Tobi > http://www.snowdevil.ca - Snowboards that don't suck > http://typo.leetsoft.com - Open source weblog engine > http://blog.leetsoft.com - Technical weblog > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > I'll look at the current administration and see if I can spot the problem in-order to get it to render correctly in IE. -Justin From robby at planetargon.com Sat Jun 11 12:59:32 2005 From: robby at planetargon.com (Robby Russell) Date: Sat Jun 11 12:55:25 2005 Subject: [typo] High load Message-ID: <1118509172.17160.7.camel@linus> Just a FYI. Curt was nice enough to get slashdotted this morning, probably making his blog the first one to have that done to. Well, it seems that when you hit 400+ comments on a single typo post, it starts to bog the server down quite a bit. :-) Might need to do some query optimizing once this blows over. -Robby -- /****************************************************** * Robby Russell, Owner.Developer.Geek * PLANET ARGON, Open Source Solutions & Web Hosting * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 * www.planetargon.com | www.robbyonrails.com *******************************************************/ From robby at planetargon.com Sat Jun 11 13:44:57 2005 From: robby at planetargon.com (Robby Russell) Date: Sat Jun 11 13:40:49 2005 Subject: [typo] High load In-Reply-To: <1118509172.17160.7.camel@linus> References: <1118509172.17160.7.camel@linus> Message-ID: <1118511898.17160.20.camel@linus> On Sat, 2005-06-11 at 09:59 -0700, Robby Russell wrote: > Just a FYI. > > Curt was nice enough to get slashdotted this morning, probably making > his blog the first one to have that done to. > > Well, it seems that when you hit 400+ comments on a single typo post, it > starts to bog the server down quite a bit. :-) > > Might need to do some query optimizing once this blows over. > > -Robby > It looks like first of all his blog was set in 'development' mode. Switched that to production.. helped..a little. What I've had to do is create an unpublished article and move comments to it every so often. curthibbs_typo=# SELECT count(id) FROM comments WHERE article_id = 53; count ------- 939 Typo doesn't run efficiently when we get more than a few hundred comments X slashdot crowd. :-) -Robby -- /****************************************************** * Robby Russell, Owner.Developer.Geek * PLANET ARGON, Open Source Solutions & Web Hosting * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 * www.planetargon.com | www.robbyonrails.com *******************************************************/ From tobias.luetke at gmail.com Sat Jun 11 15:57:13 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Sat Jun 11 15:52:56 2005 Subject: [typo] High load In-Reply-To: <1118511898.17160.20.camel@linus> References: <1118509172.17160.7.camel@linus> <1118511898.17160.20.camel@linus> Message-ID: <9963c1bd05061112573c7f0984@mail.gmail.com> Thats some good data. I guess the solution to this is to make all of typos pages static. We already have the beginnings of a "posted xx minutes ago" javascript so this should be possible. On 6/11/05, Robby Russell wrote: > On Sat, 2005-06-11 at 09:59 -0700, Robby Russell wrote: > > Just a FYI. > > > > Curt was nice enough to get slashdotted this morning, probably making > > his blog the first one to have that done to. > > > > Well, it seems that when you hit 400+ comments on a single typo post, it > > starts to bog the server down quite a bit. :-) > > > > Might need to do some query optimizing once this blows over. > > > > -Robby > > > > It looks like first of all his blog was set in 'development' mode. > Switched that to production.. helped..a little. > > What I've had to do is create an unpublished article and move comments > to it every so often. > > curthibbs_typo=# SELECT count(id) FROM comments WHERE article_id = 53; > count > ------- > 939 > > Typo doesn't run efficiently when we get more than a few hundred > comments X slashdot crowd. :-) > > -Robby > > -- > /****************************************************** > * Robby Russell, Owner.Developer.Geek > * PLANET ARGON, Open Source Solutions & Web Hosting > * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 > * www.planetargon.com | www.robbyonrails.com > *******************************************************/ > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From robby at planetargon.com Sat Jun 11 16:49:09 2005 From: robby at planetargon.com (Robby Russell) Date: Sat Jun 11 16:44:58 2005 Subject: [typo] High load In-Reply-To: <9963c1bd05061112573c7f0984@mail.gmail.com> References: <1118509172.17160.7.camel@linus> <1118511898.17160.20.camel@linus> <9963c1bd05061112573c7f0984@mail.gmail.com> Message-ID: <1118522949.17160.37.camel@linus> On Sat, 2005-06-11 at 15:57 -0400, Tobias Luetke wrote: > Thats some good data. > # SELECT count(id) FROM comments WHERE article_id = 53; count ------- 1977 (1 row) Sheesh. :-) > I guess the solution to this is to make all of typos pages static. We > already have the beginnings of a "posted xx minutes ago" javascript > so this should be possible. -- /****************************************************** * Robby Russell, Owner.Developer.Geek * PLANET ARGON, Open Source Solutions & Web Hosting * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 * www.planetargon.com | www.robbyonrails.com *******************************************************/ From robby at planetargon.com Sun Jun 12 11:15:10 2005 From: robby at planetargon.com (Robby Russell) Date: Sun Jun 12 11:11:33 2005 Subject: [typo] High load In-Reply-To: <1118522949.17160.37.camel@linus> References: <1118509172.17160.7.camel@linus> <1118511898.17160.20.camel@linus> <9963c1bd05061112573c7f0984@mail.gmail.com> <1118522949.17160.37.camel@linus> Message-ID: <1118589310.17160.55.camel@linus> On Sat, 2005-06-11 at 13:49 -0700, Robby Russell wrote: > On Sat, 2005-06-11 at 15:57 -0400, Tobias Luetke wrote: > > Thats some good data. > > > > # SELECT count(id) FROM comments WHERE article_id = 53; > count > ------- > 1977 > (1 row) > > Sheesh. :-) > Somehow, I don't think that anyone would want to scroll this far. ;-) # SELECT count(id) FROM comments WHERE article_id = 53; count ------- 4109 (1 row) -- /****************************************************** * Robby Russell, Owner.Developer.Geek * PLANET ARGON, Open Source Solutions & Web Hosting * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 * www.planetargon.com | www.robbyonrails.com *******************************************************/ From anotherjesse at gmail.com Sun Jun 12 11:51:52 2005 From: anotherjesse at gmail.com (Jesse Andrews) Date: Sun Jun 12 11:47:38 2005 Subject: [typo] High load In-Reply-To: <1118589310.17160.55.camel@linus> References: <1118509172.17160.7.camel@linus> <1118511898.17160.20.camel@linus> <9963c1bd05061112573c7f0984@mail.gmail.com> <1118522949.17160.37.camel@linus> <1118589310.17160.55.camel@linus> Message-ID: <8677a6f805061208511782f62f@mail.gmail.com> I'd hate to see SELECT cost from ISP where user_id is 'robby'; ;) On 6/12/05, Robby Russell wrote: > On Sat, 2005-06-11 at 13:49 -0700, Robby Russell wrote: > > On Sat, 2005-06-11 at 15:57 -0400, Tobias Luetke wrote: > > > Thats some good data. > > > > > > > # SELECT count(id) FROM comments WHERE article_id = 53; > > count > > ------- > > 1977 > > (1 row) > > > > Sheesh. :-) > > > > Somehow, I don't think that anyone would want to scroll this far. ;-) > > # SELECT count(id) FROM comments WHERE article_id = 53; > count > ------- > 4109 > (1 row) > > -- > /****************************************************** > * Robby Russell, Owner.Developer.Geek > * PLANET ARGON, Open Source Solutions & Web Hosting > * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 > * www.planetargon.com | www.robbyonrails.com > *******************************************************/ > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From t.lucas at toolmantim.com Mon Jun 13 01:04:54 2005 From: t.lucas at toolmantim.com (Tim Lucas) Date: Mon Jun 13 01:00:35 2005 Subject: Curt's Blog (was Re: [typo] High load) In-Reply-To: <1118589310.17160.55.camel@linus> References: <1118509172.17160.7.camel@linus> <1118511898.17160.20.camel@linus> <9963c1bd05061112573c7f0984@mail.gmail.com> <1118522949.17160.37.camel@linus> <1118589310.17160.55.camel@linus> Message-ID: <2884d878ca0655856532bf6488828a01@toolmantim.com> ... and some lovely comments too: http://blog.curthibbs.us/articles/2005/06/10/ajax-on-rails-murphy-s-law - tim From jason at jasonhoffman.org Mon Jun 13 01:08:47 2005 From: jason at jasonhoffman.org (Jason Hoffman) Date: Mon Jun 13 01:04:32 2005 Subject: Curt's Blog (was Re: [typo] High load) In-Reply-To: <2884d878ca0655856532bf6488828a01@toolmantim.com> References: <1118509172.17160.7.camel@linus> <1118511898.17160.20.camel@linus> <9963c1bd05061112573c7f0984@mail.gmail.com> <1118522949.17160.37.camel@linus> <1118589310.17160.55.camel@linus> <2884d878ca0655856532bf6488828a01@toolmantim.com> Message-ID: <6E5A6220-224C-4730-8394-3DD847C62812@jasonhoffman.org> On Jun 12, 2005, at 10:04 PM, Tim Lucas wrote: > ... and some lovely comments too: > http://blog.curthibbs.us/articles/2005/06/10/ajax-on-rails-murphy-s- > law > > - tim > Hello Trackback spam. - J From robby at planetargon.com Mon Jun 13 10:57:01 2005 From: robby at planetargon.com (Robby Russell) Date: Mon Jun 13 10:53:24 2005 Subject: [typo] High load In-Reply-To: <8677a6f805061208511782f62f@mail.gmail.com> References: <1118509172.17160.7.camel@linus> <1118511898.17160.20.camel@linus> <9963c1bd05061112573c7f0984@mail.gmail.com> <1118522949.17160.37.camel@linus> <1118589310.17160.55.camel@linus> <8677a6f805061208511782f62f@mail.gmail.com> Message-ID: <1118674621.17160.91.camel@linus> On Sun, 2005-06-12 at 11:51 -0400, Jesse Andrews wrote: > I'd hate to see > > SELECT cost from ISP where user_id is 'robby'; > > ;) # SELECT count(id) FROM comments WHERE article_id = 53; count ------- 4860 (1 row) Actually, his blog didn't cause too much trouble. just initially when it started causing high loads, but it was fixed pretty quickly. (once the comments were the found to be the culprit) -Robby -- /****************************************************** * Robby Russell, Owner.Developer.Geek * PLANET ARGON, Open Source Solutions & Web Hosting * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 * www.planetargon.com | www.robbyonrails.com *******************************************************/ From anotherjesse at gmail.com Mon Jun 13 11:34:46 2005 From: anotherjesse at gmail.com (Jesse Andrews) Date: Mon Jun 13 11:30:26 2005 Subject: [typo] geocomments Message-ID: <8677a6f805061308346c54a6d1@mail.gmail.com> I coded up a google-maps hack for typo a few days ago: Write-up: http://overstimulate.com/articles/2005/06/09/geo-comments-gmaps-on-rails Example: http://overstimulate.com/articles/gmap/93 If we want it added to typo, I can clean it up a little (code wise) and Eriberri volunteered to help clean up the UI. Jesse From rsanheim at gmail.com Mon Jun 13 11:49:06 2005 From: rsanheim at gmail.com (Robert Sanheim) Date: Mon Jun 13 11:44:45 2005 Subject: [typo] geocomments In-Reply-To: <8677a6f805061308346c54a6d1@mail.gmail.com> References: <8677a6f805061308346c54a6d1@mail.gmail.com> Message-ID: Very cool. Seems like the possibilities for gmap hacking are endless. - rob On 6/13/05, Jesse Andrews wrote: > I coded up a google-maps hack for typo a few days ago: > > Write-up: http://overstimulate.com/articles/2005/06/09/geo-comments-gmaps-on-rails > Example: http://overstimulate.com/articles/gmap/93 > > If we want it added to typo, I can clean it up a little (code wise) > and Eriberri volunteered to help clean up the UI. > > Jesse > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- http://www.robsanheim.com/ From spiros at souljerky.com Mon Jun 13 17:35:31 2005 From: spiros at souljerky.com (spiros antonopoulos) Date: Mon Jun 13 17:30:49 2005 Subject: [typo] typo install problems at textdrive In-Reply-To: <8677a6f805061308346c54a6d1@mail.gmail.com> References: <8677a6f805061308346c54a6d1@mail.gmail.com> Message-ID: <9cc24dc89f2e3e6687f3ba7b25aa6c5c@souljerky.com> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: m_staff.gif Type: image/gif Size: 354 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050613/bce32a81/m_staff-0001.gif -------------- next part -------------- Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: topic.gif Type: image/gif Size: 158 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050613/bce32a81/topic-0001.gif -------------- next part -------------- Skipped content of type multipart/alternative From spiros at souljerky.com Mon Jun 13 20:04:55 2005 From: spiros at souljerky.com (spiros antonopoulos) Date: Mon Jun 13 20:00:10 2005 Subject: [typo] typo install problems at textdrive In-Reply-To: <9cc24dc89f2e3e6687f3ba7b25aa6c5c@souljerky.com> References: <8677a6f805061308346c54a6d1@mail.gmail.com> <9cc24dc89f2e3e6687f3ba7b25aa6c5c@souljerky.com> Message-ID: embarassing as it is... i just unpacked the typo tarball on the server rather than on my local machine (and then using ftp), restarted lighttp, and BINGO... Admin screen,,, -[s] On Jun 13, 2005, at 5:35 PM, spiros antonopoulos wrote: > > Hello Typo List, > > I've been having a difficult time installing Typo at Textdrive. > Marten at Textdrive thinks that it could be a Typo bug. > But maybe it's something fairly obvious to folks on this list... > Any help would be greatly appreciated. Thank you. > > A description of what's happening is available on this forum thread. > http://forum.textdrive.com/viewtopic.php?pid=34945#p34945 > > Here's what Marten has to say: > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Marten Veldthuis > > > > Posted on 13 Jun 2005 11:45 AM > Ok, console script is working. > > -bash-2.05b$ sudo -u enfant_terrible ../script/console > Loading development environment. > irb(main):001:0> Article.find_all > => [] > > so it connects to the db fine. So I try running the dispatch from the > console, and the following excerpt pops up: > >

> NoMethodError in > Articles#<action not set> >

>
undefined method `+' for nil:NilClass
> >
app/controllers/articles_controller.rb:124:in 
> `verify_user_exists'
> > So it seems like a bug in Typo. Just keeping you posted here, I can > dig a little deeper. > > - Marten > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1804 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050613/5aa066f4/attachment.bin From chanezon at gmail.com Wed Jun 15 03:04:18 2005 From: chanezon at gmail.com (Patrick Chanezon) Date: Wed Jun 15 02:59:55 2005 Subject: [typo] How do you upgrade the database schema from typo 1.0 to 2.0 Message-ID: Hi all, I'm moving from Typo 1.0 to 2.0 these days. I succeeded into moving all my code changes. But the database schema has changed a little bit. How do you typically do your migration? dump / new schema / restore? From patricklenz at gmail.com Wed Jun 15 03:14:17 2005 From: patricklenz at gmail.com (Patrick Lenz) Date: Wed Jun 15 03:09:54 2005 Subject: [typo] How do you upgrade the database schema from typo 1.0 to 2.0 In-Reply-To: References: Message-ID: <40fe713805061500141199eace@mail.gmail.com> Patrick, depending on which 1.0 release and database type you're on, there's an updater in typo/db/updaters to convert a MySQL table from typo 1.68 to 2.0. Regards, On 6/15/05, Patrick Chanezon wrote: > Hi all, > I'm moving from Typo 1.0 to 2.0 these days. > I succeeded into moving all my code changes. > But the database schema has changed a little bit. > How do you typically do your migration? dump / new schema / restore? > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > -- Patrick Lenz (scoop) http://poocs.net/ # Personal Weblog http://limited-overload.de/ # Web application development http://freshmeat.net/ # Free software archive http://topmedia.de/ # IT Storage Solutions From gilles.cherix at gmail.com Wed Jun 15 03:17:23 2005 From: gilles.cherix at gmail.com (Gilles Cherix) Date: Wed Jun 15 03:12:21 2005 Subject: [typo] How do you upgrade the database schema from typo 1.0 to 2.0 In-Reply-To: References: Message-ID: <763ECA7A-EA43-4F07-A87D-E5AFAE34C834@gmail.com> Hi Patrick, If you're using MySQL you can migrate automatically the schema with the db/updates/update.168.to.200.mysql.sql script. If not, you'll probably have to read the script to understand what has changed and modify your database by hand. Good Luck, gilles Le 15 juin 05 ? 09:04, Patrick Chanezon a ?crit : > Hi all, > I'm moving from Typo 1.0 to 2.0 these days. > I succeeded into moving all my code changes. > But the database schema has changed a little bit. > How do you typically do your migration? dump / new schema / restore? > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From c.r.mcgrath at gmail.com Wed Jun 15 04:50:39 2005 From: c.r.mcgrath at gmail.com (Chris McGrath) Date: Wed Jun 15 04:46:15 2005 Subject: [typo] How do you upgrade the database schema from typo 1.0 to 2.0 In-Reply-To: References: Message-ID: What I did was save all my old posts using MarsEdit, change my site to my typo2 install, and submit them all back. I had to fix up the categories and which markup language to use, and still have to fix up the posting dates. This might not be a scalable solution if you have lots of posts though. Chris On 6/15/05, Patrick Chanezon wrote: > Hi all, > I'm moving from Typo 1.0 to 2.0 these days. > I succeeded into moving all my code changes. > But the database schema has changed a little bit. > How do you typically do your migration? dump / new schema / restore? > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From chanezon at gmail.com Thu Jun 16 10:55:07 2005 From: chanezon at gmail.com (Patrick Chanezon) Date: Thu Jun 16 10:51:18 2005 Subject: [typo] How do you upgrade the database schema from typo 1.0 to 2.0 In-Reply-To: References: Message-ID: Thanks to all, sorry, I had not seen the upgrade script. It works fine. I had other problems not linked to typo, but to fastcgi, that I documented on my blog. I just moved my blog to typo 2 now. http://blog.chanezon.com/articles/2005/06/16/migrating-to-typo-2 P@ On 6/15/05, Chris McGrath wrote: > What I did was save all my old posts using MarsEdit, change my site to > my typo2 install, and submit them all back. I had to fix up the > categories and which markup language to use, and still have to fix up > the posting dates. > > This might not be a scalable solution if you have lots of posts though. > > Chris > > On 6/15/05, Patrick Chanezon wrote: > > Hi all, > > I'm moving from Typo 1.0 to 2.0 these days. > > I succeeded into moving all my code changes. > > But the database schema has changed a little bit. > > How do you typically do your migration? dump / new schema / restore? > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list@rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > From tobias.luetke at gmail.com Thu Jun 16 11:31:14 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Thu Jun 16 11:26:50 2005 Subject: [typo] How do you upgrade the database schema from typo 1.0 to 2.0 In-Reply-To: References: Message-ID: <9963c1bd05061608315ad13a57@mail.gmail.com> Hmm downgrading to fcgi 0.8.5 is not really an option and you should not advocate it. fcgi 0.8.5 has a huge memory leak. I made the 0.8.6 gem so please tell me what problems you where seeing so that I can update the gem. On 6/16/05, Patrick Chanezon wrote: > Thanks to all, sorry, I had not seen the upgrade script. > It works fine. > I had other problems not linked to typo, but to fastcgi, that I > documented on my blog. > > I just moved my blog to typo 2 now. > http://blog.chanezon.com/articles/2005/06/16/migrating-to-typo-2 > > P@ > > > On 6/15/05, Chris McGrath wrote: > > What I did was save all my old posts using MarsEdit, change my site to > > my typo2 install, and submit them all back. I had to fix up the > > categories and which markup language to use, and still have to fix up > > the posting dates. > > > > This might not be a scalable solution if you have lots of posts though. > > > > Chris > > > > On 6/15/05, Patrick Chanezon wrote: > > > Hi all, > > > I'm moving from Typo 1.0 to 2.0 these days. > > > I succeeded into moving all my code changes. > > > But the database schema has changed a little bit. > > > How do you typically do your migration? dump / new schema / restore? > > > > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list@rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From john.kopanas at protoseinc.com Fri Jun 17 16:06:11 2005 From: john.kopanas at protoseinc.com (John Kopanas) Date: Fri Jun 17 16:01:39 2005 Subject: [typo] Typo 2.0.6 on Lighttpd and Textdrive Message-ID: <4C51B9D8-C3CA-4696-A99F-F09CB7922FBD@protoseinc.com> When I go to my website run through Typo using the port number it works perfectly: http://blog.thedatingguy.com:8012 When I setup proxying in apache as seen here: http://manuals.textdrive.com/read/chapter/62 and I go to the website without the port number appended like this: http://blog.thedatingguy.com I get two problems: 1) the Apple processing ball even after I create a new comment stays next to the submit button... never stopping :-) 2) For a specific post of mine: http://blog.thedatingguy.com/articles/2005/06/17/what-would-you- change-in-the-world-of-dating I always get a precondition failed on submission of a comment. Also when I click my blog name on that page to return back to my home page I get a: Precondition Failed The precondition on the request for the URL / evaluated to false. Has anyone else run into this problem? Anyone know how to solve this problem? Is it my version of Typo of my setup of Lighttpd? On another note. Is it me or the older version of Typo seems nicer with better error messages? Or is what I perceive to be older not really older but newer? Thanks a lot for all your help! :-) From tobias.luetke at gmail.com Fri Jun 17 16:33:54 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Fri Jun 17 16:29:26 2005 Subject: [typo] Typo 2.0.6 on Lighttpd and Textdrive In-Reply-To: <4C51B9D8-C3CA-4696-A99F-F09CB7922FBD@protoseinc.com> References: <4C51B9D8-C3CA-4696-A99F-F09CB7922FBD@protoseinc.com> Message-ID: <9963c1bd050617133316fb7118@mail.gmail.com> The precondition failed thing is a problem with mod_security. Please talk to the textdrive guys about it. Its probably because you use a word like casino or poker in your post. The spinner doesn't stop because of a bug in safari, thats fixed in trunk. You can fix it by removing the Appear effect for the spinner div in the javascript of the read view On 6/17/05, John Kopanas wrote: > When I go to my website run through Typo using the port number it > works perfectly: > > http://blog.thedatingguy.com:8012 > > When I setup proxying in apache as seen here: > > http://manuals.textdrive.com/read/chapter/62 > > and I go to the website without the port number appended like this: > > http://blog.thedatingguy.com > > I get two problems: > > 1) the Apple processing ball even after I create a new comment stays > next to the submit button... never stopping :-) > > 2) For a specific post of mine: > > http://blog.thedatingguy.com/articles/2005/06/17/what-would-you- > change-in-the-world-of-dating > > I always get a precondition failed on submission of a comment. Also > when I click my blog name on that page to return back to my home > page I get a: > > Precondition Failed > > The precondition on the request for the URL / evaluated to false. > > Has anyone else run into this problem? Anyone know how to solve this > problem? Is it my version of Typo of my setup of Lighttpd? > > On another note. Is it me or the older version of Typo seems nicer > with better error messages? Or is what I perceive to be older not > really older but newer? > > Thanks a lot for all your help! :-) > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From jason at jasonhoffman.org Fri Jun 17 23:52:52 2005 From: jason at jasonhoffman.org (Jason Hoffman) Date: Fri Jun 17 23:48:28 2005 Subject: [typo] Typo 2.0.6 on Lighttpd and Textdrive In-Reply-To: <9963c1bd050617133316fb7118@mail.gmail.com> References: <4C51B9D8-C3CA-4696-A99F-F09CB7922FBD@protoseinc.com> <9963c1bd050617133316fb7118@mail.gmail.com> Message-ID: <8BB15FF2-89CD-405A-BB5C-82EC7FFD0E17@jasonhoffman.org> On Jun 17, 2005, at 1:33 PM, Tobias Luetke wrote: > The precondition failed thing is a problem with mod_security. Please >> >> http://blog.thedatingguy.com/articles/2005/06/17/what-would-you- >> change-in-the-world-of-dating >> It's the -dating which will show up as a refer when you click from that article to somewhere else. You can put SecFilterSelective "HTTP_REFERER" "-dating" "allow,nolog" in a .htaccess file and it'll go away. -dating spammers aren't too many, just about 10-20K a day textdrive- wise. - Jason From tobias.luetke at gmail.com Sat Jun 18 00:27:19 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Sat Jun 18 00:22:51 2005 Subject: [typo] Typo 2.0.6 on Lighttpd and Textdrive In-Reply-To: <8BB15FF2-89CD-405A-BB5C-82EC7FFD0E17@jasonhoffman.org> References: <4C51B9D8-C3CA-4696-A99F-F09CB7922FBD@protoseinc.com> <9963c1bd050617133316fb7118@mail.gmail.com> <8BB15FF2-89CD-405A-BB5C-82EC7FFD0E17@jasonhoffman.org> Message-ID: <9963c1bd050617212776b43f33@mail.gmail.com> > -dating spammers aren't too many, just about 10-20K a day textdrive- > wise. Holy $%^#! Do you have some statistics about the amount of spam you guys are getting? This sounds crazy! -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From jason at jasonhoffman.org Sat Jun 18 01:04:02 2005 From: jason at jasonhoffman.org (Jason Hoffman) Date: Sat Jun 18 00:59:35 2005 Subject: [typo] Typo 2.0.6 on Lighttpd and Textdrive In-Reply-To: <9963c1bd050617212776b43f33@mail.gmail.com> References: <4C51B9D8-C3CA-4696-A99F-F09CB7922FBD@protoseinc.com> <9963c1bd050617133316fb7118@mail.gmail.com> <8BB15FF2-89CD-405A-BB5C-82EC7FFD0E17@jasonhoffman.org> <9963c1bd050617212776b43f33@mail.gmail.com> Message-ID: On Jun 17, 2005, at 9:27 PM, Tobias Luetke wrote: >> -dating spammers aren't too many, just about 10-20K a day textdrive- >> wise. >> > > Holy $%^#! > > Do you have some statistics about the amount of spam you guys are > getting? This sounds crazy! Sure, For "web spam" (comment, trackback, forum, wiki ...), and across all the servers, there were 522,712 blocks over the last 24 hours (we parse it all audit data into remote audit logs and then into MySQL for an analysis that outputs a rbldnsd lists and mod_security rules; and run a few honey pots as well; this is how they're blocked). The crazy thing is that it doesn't include the worse offenders anymore: about 2 weeks ago I wrote http://weblog.textdrive.com/ article/89/ and it was because last year we started our little "cspamhaus" project and started working with Tipping Point and the Planet to push the results of our pattern and header analysis into the Tipping Point appliances. So the "poker" spammers still predominantly have 3 weird little signature headers that we found, and with both GET and POST blocks in the Tipping Point, it does a pretty consistent 400-500K blocks an hour (yes, that's half a million an hour; 1-5% are POST attempts). It's believable, there are a couple good sized MT blogs that we've blocked almost 65,000 attempts a month (they --spammers -- literally hit every post > 4 weeks old, 2-3 times each and they do it everyday). Email is still the worse though, in the last 24 hours, we've rejected 1,118,952 incoming emails as spam. I don't know. I still think this is nuts. I, for one, never realized the magnitude of the problem. - Jason From robby at planetargon.com Sat Jun 18 11:54:21 2005 From: robby at planetargon.com (Robby Russell) Date: Sat Jun 18 11:50:17 2005 Subject: [typo] handling amount of comments Message-ID: <1119110062.5781.132.camel@linus> Okay, so a week later.. here is some findings of having a Typo blog slashdotted. First of all, some numbers: > # SELECT count(id) FROM comments WHERE article_id = 53; > count > ------- > 6766 > (1 row) Imagine waiting for that to render and scrolling to the bottom to add another comment. heh. It'd take long than what we have set for our fastcgi timeout, so it'd show an error after a several hundred were made. Curt emailed me to say that he hasn't been able to login to his admin interface since the slashdotting. I believe that this might be due to the high number of comments. I just deleted all the comments from that entry and am awaiting him to confirm that he can now use the admin area. What would be a good way of handling this sort of situation with Typo? Should we add pagination to comments? What might cause the admin area to just not work after he types in his user/pass. Could the counts be bogging it down long enough to timeout fcgi? -Robby -- /****************************************************** * Robby Russell, Owner.Developer.Geek * PLANET ARGON, Open Source Solutions & Web Hosting * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 * www.planetargon.com | www.robbyonrails.com *******************************************************/ From jnewland at gmail.com Sat Jun 18 16:43:37 2005 From: jnewland at gmail.com (jesse newland) Date: Sat Jun 18 16:39:07 2005 Subject: [typo] handling amount of comments In-Reply-To: <1119110062.5781.132.camel@linus> References: <1119110062.5781.132.camel@linus> Message-ID: I think pagination is a great idea, as long as the thresholds are configurable in the admin interface. Also, an option to close comments after X comments would be great too. In a perfect world, this would shoot an e-mail to the admin saying something like "You just got slashdotted! Throw some ads on your page right now!" :) Jesse On 6/18/05, Robby Russell wrote: > > Okay, so a week later.. here is some findings of having a Typo blog > slashdotted. > > First of all, some numbers: > > > # SELECT count(id) FROM comments WHERE article_id = 53; > > count > > ------- > > 6766 > > (1 row) > > Imagine waiting for that to render and scrolling to the bottom to add > another comment. heh. It'd take long than what we have set for our > fastcgi timeout, so it'd show an error after a several hundred were > made. > > Curt emailed me to say that he hasn't been able to login to his admin > interface since the slashdotting. I believe that this might be due to > the high number of comments. I just deleted all the comments from that > entry and am awaiting him to confirm that he can now use the admin area. > > What would be a good way of handling this sort of situation with Typo? > Should we add pagination to comments? What might cause the admin area to > just not work after he types in his user/pass. Could the counts be > bogging it down long enough to timeout fcgi? > > -Robby > > -- > /****************************************************** > * Robby Russell, Owner.Developer.Geek > * PLANET ARGON, Open Source Solutions & Web Hosting > * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 > * www.planetargon.com | www.robbyonrails.com > *******************************************************/ > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- jnewland@gmail.com jnewland.com AIM: jbnewland 706.340.3625 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050618/e524ea8b/attachment.htm From robby at planetargon.com Sat Jun 18 16:53:38 2005 From: robby at planetargon.com (Robby Russell) Date: Sat Jun 18 16:49:33 2005 Subject: [typo] handling amount of comments In-Reply-To: References: <1119110062.5781.132.camel@linus> Message-ID: <1119128018.5781.156.camel@linus> On Sat, 2005-06-18 at 16:43 -0400, jesse newland wrote: > Also, an option to close comments after X comments would be great too. > In a perfect world, this would shoot an e-mail to the admin saying > something like "You just got slashdotted! Throw some ads on your page > right now!" :) > Yeah, well, in this scenario, the admin wanted everyone to comment. So, shutting off comments wasn't the solution. The quick-hack-solution was to move comments to an unpublished article ever 15 minutes via crontab. -Robby -- /****************************************************** * Robby Russell, Owner.Developer.Geek * PLANET ARGON, Open Source Solutions & Web Hosting * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 * www.planetargon.com | www.robbyonrails.com *******************************************************/ From tobias.luetke at gmail.com Sat Jun 18 17:15:37 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Sat Jun 18 17:11:07 2005 Subject: [typo] handling amount of comments In-Reply-To: <1119128018.5781.156.camel@linus> References: <1119110062.5781.132.camel@linus> <1119128018.5781.156.camel@linus> Message-ID: <9963c1bd0506181415643f8df0@mail.gmail.com> whats really weird is that i had 500 comments once myself and it didn't cause any grief other then long scrolling. Anyways, once static caching is in its no problem. I'm not so sure about pagination, i always dislike it and I think its really rare that a blog gets over 100 posts in normal operation. Hrm. On 6/18/05, Robby Russell wrote: > On Sat, 2005-06-18 at 16:43 -0400, jesse newland wrote: > > Also, an option to close comments after X comments would be great too. > > In a perfect world, this would shoot an e-mail to the admin saying > > something like "You just got slashdotted! Throw some ads on your page > > right now!" :) > > > > Yeah, well, in this scenario, the admin wanted everyone to comment. So, > shutting off comments wasn't the solution. The quick-hack-solution was > to move comments to an unpublished article ever 15 minutes via crontab. > > -Robby > > > -- > /****************************************************** > * Robby Russell, Owner.Developer.Geek > * PLANET ARGON, Open Source Solutions & Web Hosting > * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 > * www.planetargon.com | www.robbyonrails.com > *******************************************************/ > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From robby at planetargon.com Sat Jun 18 17:36:17 2005 From: robby at planetargon.com (Robby Russell) Date: Sat Jun 18 17:32:25 2005 Subject: [typo] handling amount of comments In-Reply-To: <9963c1bd0506181415643f8df0@mail.gmail.com> References: <1119110062.5781.132.camel@linus> <1119128018.5781.156.camel@linus> <9963c1bd0506181415643f8df0@mail.gmail.com> Message-ID: <1119130577.5781.160.camel@linus> On Sat, 2005-06-18 at 17:15 -0400, Tobias Luetke wrote: > whats really weird is that i had 500 comments once myself and it > didn't cause any grief other then long scrolling. Anyways, once static > caching is in its no problem. I'm not so sure about pagination, i > always dislike it and I think its really rare that a blog gets over > 100 posts in normal operation. > > Hrm. I'd think that with over 100 comments of un-threaded comments would be painful to look at on one screen anyways. While we're at it, what about threaded comments? I prefer this form of comment viewing/responding. (especially when the number of comments gets larger) -Robby -- /****************************************************** * Robby Russell, Owner.Developer.Geek * PLANET ARGON, Open Source Solutions & Web Hosting * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 * www.planetargon.com | www.robbyonrails.com *******************************************************/ From spiros at souljerky.com Sun Jun 19 11:49:06 2005 From: spiros at souljerky.com (spiros antonopoulos) Date: Sun Jun 19 11:45:09 2005 Subject: [typo] "recent comments" Message-ID: <947554516a1b4b1f6270b57c78c0eed5@souljerky.com> Here's a super elementary programming/rails/typo question... How would I change a copy of the text from the admin section's "recent comments" sidebar so that the links work on the front-end of the weblog? Thanks... -[s] From spiros at souljerky.com Sun Jun 19 11:49:48 2005 From: spiros at souljerky.com (spiros antonopoulos) Date: Sun Jun 19 11:45:50 2005 Subject: [typo] "recent comments" Message-ID: <43f3ec5e6fc1d9db23682b3fdafbd46c@souljerky.com> Here's a super elementary programming/rails/typo question... How would I change a copy of the text from the admin section's "recent comments" sidebar so that the links work on the front-end of the weblog? Thanks... -[s] From rasputnik at hellooperator.net Sun Jun 19 14:28:48 2005 From: rasputnik at hellooperator.net (Dick Davies) Date: Sun Jun 19 14:24:21 2005 Subject: [typo] rss toolkits? Message-ID: <20050619182848.GA609@eris.tenfour> Just started playing with typo and so far it's been great - but I was looking at limiting the number of recent posts listed under the del.icio.us sidebar, and could'nt see a way of tuning that without editing the helper - did I miss anything? Also I was looking at adding a couple more RSS feeds to my sidebar - is there any general rss framework that typo is using, or are things like the del.icio.us helpers 'rolling their own'? -- 'This must be Thursday. I never could get the hang of Thursdays.' -- Arthur Dent Rasputin :: Jack of All Trades - Master of Nuns From heathweaver at gmail.com Sun Jun 19 18:14:21 2005 From: heathweaver at gmail.com (Heath Weaver) Date: Sun Jun 19 18:09:50 2005 Subject: [typo] "recent comments" In-Reply-To: <43f3ec5e6fc1d9db23682b3fdafbd46c@souljerky.com> References: <43f3ec5e6fc1d9db23682b3fdafbd46c@souljerky.com> Message-ID: <299af9d9050619151418d600a6@mail.gmail.com> On 6/19/05, spiros antonopoulos wrote: > > > Here's a super elementary programming/rails/typo question... > > How would I change a copy of the text from the admin section's "recent > comments" sidebar so that the links work on the front-end of the > weblog? > > Thanks... > -[s] I am not sure I can do it for you here, but I think you need to just add: <%= render_recent_comments %> to the articles layout. This will use the _recent_comments.rhtml code. HTH -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050620/ba11953a/attachment.htm From spiros at souljerky.com Mon Jun 20 00:50:17 2005 From: spiros at souljerky.com (spiros antonopoulos) Date: Mon Jun 20 00:46:08 2005 Subject: [typo] "recent comments" In-Reply-To: <299af9d9050619151418d600a6@mail.gmail.com> References: <43f3ec5e6fc1d9db23682b3fdafbd46c@souljerky.com> <299af9d9050619151418d600a6@mail.gmail.com> Message-ID: thanks... i'm on the road in india so my internet accessibility is super spotty and low fi so i apologize for the accidental double post last time... re: i actually made a copy of recent_comments.rhtml and put it in the shared folder, then i used <%= render_partial "shared/recentcomments" %> --- the display works but the links do not... the recentcomments partial looks like this (basically a copy of recent_comments.rhtml from the admin):

recent comments

    <% for comment in Comment.find(:all, :limit => 7, :order => 'id DESC' ) %>
  • <%= link_to truncate(comment.body, 30), :controller => "comments", :action => "show", :id => comment.id, :article_id => comment.article_id %>
    by <%= truncate(comment.author, 20) %>
    <%= time_ago_in_words(comment.created_at) %> ago
  • <% end %>
--- any help would be greatly appreciated.. thank you! -[s] On Jun 20, 2005, at 3:44 AM, Heath Weaver wrote: > > > On 6/19/05, spiros antonopoulos wrote: >> Here's a super elementary programming/rails/typo question... >> >> How would I change a copy of the text from the admin section's "recent >> comments" sidebar so that the links work on the front-end of the >> weblog? >> >> Thanks... >> -[s] > I am not sure I can do it for you here, but I think you need to just > add: > > <%= render_recent_comments %> > > to the articles layout. This will use the _recent_comments.rhtml code. > > HTH > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1737 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20050620/83027d08/attachment.bin From pietro.ferrari at gmail.com Thu Jun 23 17:28:19 2005 From: pietro.ferrari at gmail.com (pietro ferrari) Date: Thu Jun 23 17:23:42 2005 Subject: [typo] allowing anyone to register Message-ID: <6eb9e8610506231428317bf393@mail.gmail.com> hi, i've just instaled typo and i'd like to know if it is possible to allow anyone to register an account in typo. or if not, is there any specific model/controller i can change to add this feature? pietro. From tobias.luetke at gmail.com Thu Jun 23 17:37:28 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Thu Jun 23 17:32:50 2005 Subject: [typo] allowing anyone to register In-Reply-To: <6eb9e8610506231428317bf393@mail.gmail.com> References: <6eb9e8610506231428317bf393@mail.gmail.com> Message-ID: <9963c1bd05062314375a9fa493@mail.gmail.com> No thats not currently in the code base. You would have to add this functionality yourself. There is a auth/signup method but it is disabled if there is already a user in the database. Removing this check should do what you want. On 6/23/05, pietro ferrari wrote: > hi, > > i've just instaled typo and i'd like to know if it is possible to > allow anyone to register an account in typo. or if not, is there any > specific model/controller i can change to add this feature? > > pietro. > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From lists at matiaspelenur.com Sat Jun 25 22:01:50 2005 From: lists at matiaspelenur.com (Matias Pelenur) Date: Sat Jun 25 21:57:03 2005 Subject: [typo] calling controller and caching from a sweeper class Message-ID: <42BE0C8E.5000700@matiaspelenur.com> [cross-posting to rails and typo lists] Hi, I'm tinkering with the code for typo, a rails-based blog engine. Typo has an XmlController with actions "rss" and "atom" which generate feed.xml files, and it uses a caches_page declaration to cache the files that get generated by those actions. It also has a Sweeper (Observer) class that expires those cached files when a blog post is created or modified: http://typo.leetsoft.com/trac/file/trunk/app/controllers/xml_controller.rb http://typo.leetsoft.com/trac/file/trunk/app/models/blog_sweeper.rb The normal behavior is that the files get deleted when expire_cache is called, and then re-created the next time the XmlController action is invoked. Now, I'm trying to force the files to be re-cached immediately after the expire_cache call from the Sweeper class. However I could not find a way to do that successfully. I've tried several ways, including instantiating the controller in the sweeper and calling the actions directly (which doesn't work), and the closest I got was using render_component_as_string from the base ApplicationController. That sort-of works in that it at least it calls the proper XmlController action, but it has two problems: the pages aren't cached, and also the response type changes to xml (which confuses the browser since the response is a redirect). I wonder if anyone has a good idea of how the caching and stuff works, and what I can do to force certain controller actions to run and get cached as if they had been invoked by the browser, but instead invoking them from within an observer or controller. I'm using rails 0.12.1 on ruby 1.8.2. Thanks in advance for any help, please let me know if you need any more info. --Matias From lists at matiaspelenur.com Mon Jun 27 04:01:59 2005 From: lists at matiaspelenur.com (Matias Pelenur) Date: Mon Jun 27 03:57:13 2005 Subject: [typo] Re: calling controller and caching from a sweeper class In-Reply-To: <42BE0C8E.5000700@matiaspelenur.com> References: <42BE0C8E.5000700@matiaspelenur.com> Message-ID: <42BFB277.1060800@matiaspelenur.com> Just wanted to post again before giving up on this... Is there a way to call a controller action directly and have the paged cached? See below for the whole story. So far the only solutions proposed are doing a system(wget), but there must be a better one... In any case even that option doesn't work; the reason I have this problem is because I want to password-protect (via Basic auth) the web app, but allow free access only to those feed .xml files. Because of the way auth goes through Apache, and because I'm using FastCGI so everything goes through dispatch.fcgi, I can only do what I want if I always have the physical cached files. In any case, even without this convoluted scenario of mine, there must be a way to do what I want... Imagine if some cached pages took a long time to generate; you might want to force-refresh them when there's a change to the model? Thanks, matias Matias Pelenur wrote: > [cross-posting to rails and typo lists] > > Hi, > I'm tinkering with the code for typo, a rails-based blog engine. > Typo has an XmlController with actions "rss" and "atom" which generate > feed.xml files, and it uses a caches_page declaration to cache the files > that get generated by those actions. It also has a Sweeper (Observer) > class that expires those cached files when a blog post is created or > modified: > > http://typo.leetsoft.com/trac/file/trunk/app/controllers/xml_controller.rb > http://typo.leetsoft.com/trac/file/trunk/app/models/blog_sweeper.rb > > The normal behavior is that the files get deleted when expire_cache is > called, and then re-created the next time the XmlController action is > invoked. > > Now, I'm trying to force the files to be re-cached immediately after the > expire_cache call from the Sweeper class. However I could not find a way > to do that successfully. > > I've tried several ways, including instantiating the controller in the > sweeper and calling the actions directly (which doesn't work), and the > closest I got was using render_component_as_string from the base > ApplicationController. That sort-of works in that it at least it calls > the proper XmlController action, but it has two problems: the pages > aren't cached, and also the response type changes to xml (which confuses > the browser since the response is a redirect). > > I wonder if anyone has a good idea of how the caching and stuff works, > and what I can do to force certain controller actions to run and get > cached as if they had been invoked by the browser, but instead invoking > them from within an observer or controller. > > I'm using rails 0.12.1 on ruby 1.8.2. > Thanks in advance for any help, please let me know if you need any more > info. > > --Matias > From duran at alphex.com Mon Jun 27 22:05:26 2005 From: duran at alphex.com (Duran Goodyear) Date: Mon Jun 27 22:00:30 2005 Subject: [typo] Beginners Error help, Message-ID: <2340.68.82.80.248.1119924326.squirrel@mail.mediahole.com> This is my first post, so be kind. I received this error message while trying to get typo (latest stable) running on my dev laptop using apache 2 (latest stable). begin code--- #!/usr/local/bin/ruby def dispatcher_error(path,e,msg="") error_message = "[#{Time.now}] Dispatcher failed to catch: #{e} (#{e.class})\n #{e.backtrace.join("\n ")}\n#{msg}" Logger.new(path).fatal(error_message) rescue Object => log_error STDERR << "Couldn't write to #{path} (#{e} [#{e.class}])\n" << error_message end begin require File.dirname(__FILE__) + "/../config/environment" require 'dispatcher' require 'fcgi' log_file_path = "#{RAILS_ROOT}/log/fastcgi.crash.log" FCGI.each_cgi do |cgi| begin Dispatcher.dispatch(cgi) rescue Object => rails_error dispatcher_error(log_file_path, rails_error) end end rescue Object => fcgi_error dispatcher_error(log_file_path, fcgi_error, "FCGI process #{$$} killed by this error\n") end end code-- Any thoughts? Thanks! ___________________________________________ duran.goodyear | duran@alphex.com | 267.978.2106 From tobias.luetke at gmail.com Mon Jun 27 23:28:39 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Mon Jun 27 23:23:54 2005 Subject: [typo] Beginners Error help, In-Reply-To: <2340.68.82.80.248.1119924326.squirrel@mail.mediahole.com> References: <2340.68.82.80.248.1119924326.squirrel@mail.mediahole.com> Message-ID: <9963c1bd050627202827899354@mail.gmail.com> Hehe, thats no error, thats actually ruby code. It looks like your apache doesn't have mod_fastcgi installed. If you are on gentoo you need to add -D FASTCGI to the apacheopts. On 6/27/05, Duran Goodyear wrote: > This is my first post, so be kind. > > I received this error message while trying to get typo (latest stable) running > on my dev laptop using apache 2 (latest stable). > > begin code--- > > #!/usr/local/bin/ruby > > def dispatcher_error(path,e,msg="") > error_message = > "[#{Time.now}] Dispatcher failed to catch: #{e} (#{e.class})\n > #{e.backtrace.join("\n ")}\n#{msg}" > Logger.new(path).fatal(error_message) > rescue Object => log_error > STDERR << "Couldn't write to #{path} (#{e} [#{e.class}])\n" << error_message > end > > begin > require File.dirname(__FILE__) + "/../config/environment" > require 'dispatcher' > require 'fcgi' > > log_file_path = "#{RAILS_ROOT}/log/fastcgi.crash.log" > > FCGI.each_cgi do |cgi| > begin > Dispatcher.dispatch(cgi) > rescue Object => rails_error > dispatcher_error(log_file_path, rails_error) > end > end > rescue Object => fcgi_error > dispatcher_error(log_file_path, fcgi_error, "FCGI process #{$$} killed by > this error\n") > end > > > end code-- > > Any thoughts? > > Thanks! > > ___________________________________________ > duran.goodyear | duran@alphex.com | 267.978.2106 > > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From markc at renta.net Tue Jun 28 08:48:16 2005 From: markc at renta.net (Mark Constable) Date: Tue Jun 28 08:43:44 2005 Subject: [typo] Blog API Message-ID: <200506282248.16544.markc@renta.net> Which blog API does typo use and are there any linux GUI clients that anyone knows about ? --markc From tobias.luetke at gmail.com Tue Jun 28 08:57:45 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Tue Jun 28 08:53:02 2005 Subject: [typo] Blog API In-Reply-To: <200506282248.16544.markc@renta.net> References: <200506282248.16544.markc@renta.net> Message-ID: <9963c1bd05062805579e51161@mail.gmail.com> http://typo.leetsoft.com/trac/wiki/DesktopClients On 6/28/05, Mark Constable wrote: > Which blog API does typo use and are there any linux > GUI clients that anyone knows about ? > > --markc > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From mburnham1973 at gmail.com Tue Jun 28 09:38:59 2005 From: mburnham1973 at gmail.com (Mike Burnham) Date: Tue Jun 28 09:34:12 2005 Subject: [typo] Recent Comments Message-ID: Is there a way besides querying the database to easily find new comments posted to a Typo blog? Regards, Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20050628/3a2bcaf9/attachment.htm From robby at planetargon.com Tue Jun 28 11:09:56 2005 From: robby at planetargon.com (Robby Russell) Date: Tue Jun 28 11:05:29 2005 Subject: [typo] Blog API In-Reply-To: <200506282248.16544.markc@renta.net> References: <200506282248.16544.markc@renta.net> Message-ID: <1119971397.10219.150.camel@linus> On Tue, 2005-06-28 at 22:48 +1000, Mark Constable wrote: > Which blog API does typo use and are there any linux > GUI clients that anyone knows about ? > If you look on the Typo site, this is answered. :-) http://typo.leetsoft.com/trac/wiki/DesktopClients I use BloGTK, see info here: http://www.robbyonrails.com/articles/2005/03/13/blogtk-and-typo Cheers, Robby -- /****************************************************** * Robby Russell, Owner.Developer.Geek * PLANET ARGON, Open Source Solutions & Web Hosting * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 * www.planetargon.com | www.robbyonrails.com *******************************************************/ From robby at planetargon.com Tue Jun 28 11:53:49 2005 From: robby at planetargon.com (Robby Russell) Date: Tue Jun 28 11:49:16 2005 Subject: [typo] Recent Comments In-Reply-To: References: Message-ID: <1119974029.10219.152.camel@linus> On Tue, 2005-06-28 at 08:38 -0500, Mike Burnham wrote: > Is there a way besides querying the database to easily find new > comments posted to a Typo blog? > You could use the RSS feed for comments. For example: http://www.robbyonrails.com/xml/commentrss/feed -- /****************************************************** * Robby Russell, Owner.Developer.Geek * PLANET ARGON, Open Source Solutions & Web Hosting * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 * www.planetargon.com | www.robbyonrails.com *******************************************************/ From rsanheim at gmail.com Tue Jun 28 14:12:21 2005 From: rsanheim at gmail.com (Robert Sanheim) Date: Tue Jun 28 14:08:05 2005 Subject: [typo] tags or categories? Message-ID: Does typo support tags for entries, and having multiple tags per post? Or does it use the standard one category per one post method? thanks, Rob Sanheim -- http://www.robsanheim.com/ From rasputnik at hellooperator.net Tue Jun 28 14:19:07 2005 From: rasputnik at hellooperator.net (Dick Davies) Date: Tue Jun 28 14:14:22 2005 Subject: [typo] tags or categories? In-Reply-To: References: Message-ID: <20050628181907.GD20492@eris.tenfour> * Robert Sanheim [0613 19:13]: > Does typo support tags for entries, and having multiple tags per post? > Or does it use the standard one category per one post method? You get multiple categories per post. -- 'Everybody I know who is right always agrees with ME.' -- Rev Lady Mal Rasputin :: Jack of All Trades - Master of Nuns From rsanheim at gmail.com Tue Jun 28 14:23:40 2005 From: rsanheim at gmail.com (Robert Sanheim) Date: Tue Jun 28 14:19:28 2005 Subject: [typo] tags or categories? In-Reply-To: References: <20050628181907.GD20492@eris.tenfour> Message-ID: Is there anyway to sync this up with delicious or simliar tag sites? Also, anyone have any tips for converting from Roller? :) - rob ps - sorry Dick, meant to send that to the whole list... On 6/28/05, Dick Davies wrote: > * Robert Sanheim [0613 19:13]: > > Does typo support tags for entries, and having multiple tags per post? > > Or does it use the standard one category per one post method? > > You get multiple categories per post. > > -- > 'Everybody I know who is right always agrees with ME.' > -- Rev Lady Mal > Rasputin :: Jack of All Trades - Master of Nuns > -- http://www.robsanheim.com/ -- http://www.robsanheim.com/ From jluster at jluster.org Tue Jun 28 14:23:41 2005 From: jluster at jluster.org (Jonas M Luster) Date: Tue Jun 28 14:19:37 2005 Subject: [typo] tags or categories? In-Reply-To: <20050628181907.GD20492@eris.tenfour> References: <20050628181907.GD20492@eris.tenfour> Message-ID: <164B64DE-62C5-4AE2-9554-26B4F2031369@jluster.org> >> Does typo support tags for entries, and having multiple tags per >> post? >> Or does it use the standard one category per one post method? >> > > You get multiple categories per post. Do this... open the appropriate files and amend the link_to to have a `:rel => "tag category"` -- that way, when Technorati or others come by, your categories will be added to the spidered tag list. I did it for my "Posted Under" and Sidebar links. jonas From robby at planetargon.com Tue Jun 28 14:41:37 2005 From: robby at planetargon.com (Robby Russell) Date: Tue Jun 28 14:37:10 2005 Subject: [typo] Recent Comments In-Reply-To: References: <1119974029.10219.152.camel@linus> Message-ID: <1119984098.10219.170.camel@linus> On Tue, 2005-06-28 at 11:13 -0500, Mike Burnham wrote: > Cool, thanks! I'm sure there are a lot of things like this in the > code. If only there was enough time in the day to study it. Its pretty > selfish of work, wife and kids to demand attention ;) Actually, looking at your blog, just scroll down the right side of the page til you see the 'Syndicate' section. ;-) http://blog.closingbracket.com/ http://blog.closingbracket.com/xml/commentrss/feed.xml -- /****************************************************** * Robby Russell, Owner.Developer.Geek * PLANET ARGON, Open Source Solutions & Web Hosting * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 * www.planetargon.com | www.robbyonrails.com *******************************************************/ From trejkaz at trypticon.org Tue Jun 28 19:54:10 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Tue Jun 28 19:50:00 2005 Subject: [typo] Comment ordering Message-ID: <20050629095410.dmbkde92osgcowws@home.trypticon.org> I've noticed that Typo will show the comments most recent first, but then when inserting the new comment with AJAX, it inserts it at the bottom. These two sorting orders would seem to be in conflict. Maybe it would just be better to sort the newest comments last. :-) TX ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From tobias.luetke at gmail.com Tue Jun 28 20:17:40 2005 From: tobias.luetke at gmail.com (Tobias Luetke) Date: Tue Jun 28 20:12:51 2005 Subject: [typo] Comment ordering In-Reply-To: <20050629095410.dmbkde92osgcowws@home.trypticon.org> References: <20050629095410.dmbkde92osgcowws@home.trypticon.org> Message-ID: <9963c1bd0506281717715f2026@mail.gmail.com> typo shows the posts most recent last. But i have heard bug reports about this issue. What database are you using and whats the environment? On 6/28/05, Trejkaz wrote: > I've noticed that Typo will show the comments most recent first, but then when > inserting the new comment with AJAX, it inserts it at the bottom. > > These two sorting orders would seem to be in conflict. Maybe it would just be > better to sort the newest comments last. :-) > > TX > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Tobi http://www.snowdevil.ca - Snowboards that don't suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog From trejkaz at trypticon.org Tue Jun 28 21:07:44 2005 From: trejkaz at trypticon.org (Trejkaz) Date: Tue Jun 28 21:03:28 2005 Subject: [typo] Comment ordering In-Reply-To: <9963c1bd0506281717715f2026@mail.gmail.com> References: <20050629095410.dmbkde92osgcowws@home.trypticon.org> <9963c1bd0506281717715f2026@mail.gmail.com> Message-ID: <20050629110744.0k52pkvww0wg40sc@home.trypticon.org> Quoting Tobias Luetke : > typo shows the posts most recent last. > > But i have heard bug reports about this issue. What database are you > using and whats the environment? I witnessed this using SQLite under Windows. TX ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From anotherjesse at gmail.com Wed Jun 29 00:59:12 2005 From: anotherjesse at gmail.com (Jesse Andrews) Date: Wed Jun 29 00:54:25 2005 Subject: [typo] Comment ordering In-Reply-To: <20050629110744.0k52pkvww0wg40sc@home.trypticon.org> References: <20050629095410.dmbkde92osgcowws@home.trypticon.org> <9963c1bd0506281717715f2026@mail.gmail.com> <20050629110744.0k52pkvww0wg40sc@home.trypticon.org> Message-ID: <8677a6f805062821595a6e11e7@mail.gmail.com> I've noticed some issues as well - I've noticed an issue with sorting being lexical instead of numeric on both typo and other apps on mysql. Jesse On 6/28/05, Trejkaz wrote: > Quoting Tobias Luetke : > > typo shows the posts most recent last. > > > > But i have heard bug reports about this issue. What database are you > > using and whats the environment? > > I witnessed this using SQLite under Windows. > > TX > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > _______________________________________________ > Typo-list mailing list > Typo-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From sergio.rael at gmail.com Wed Jun 29 02:06:42 2005 From: sergio.rael at gmail.com (Sergio Rael) Date: Wed Jun 29 02:01:56 2005 Subject: [typo] Comment ordering In-Reply-To: <9963c1bd0506281717715f2026@mail.gmail.com> References: <20050629095410.dmbkde92osgcowws@home.trypticon.org> <9963c1bd0506281717715f2026@mail.gmail.com> Message-ID: <48ab4e2805062823064d6708db@mail.gmail.com> 2005/6/29, Tobias Luetke : > But i have heard bug reports about this issue. What database are you > using and whats the environment? I have also noticed this issue with SQLite and Linux. Moving the same data to MySQL solved the problem.