From scott at sigkill.org Sat Jul 1 11:36:19 2006 From: scott at sigkill.org (Scott Laird) Date: Sat, 1 Jul 2006 08:36:19 -0700 Subject: [typo] 'Textile' selected, but 'Markdown' used... In-Reply-To: References: Message-ID: <14b7e5ef0607010836p59c1e4b5la5be630a4b76791c@mail.gmail.com> Hmm, we're supposed to have tests for this. Does 'rake test' run clean for you? Can you file a bug in trac for this. It really shouldn't be happening. Scott On 6/30/06, levi mccallum wrote: > > I have had this problem too. I just finally gave up from comparing > code, that I finally just changed to markup. > > Not much help from me. > > Levi > > On 6/30/06, R. N. Dominick wrote: > > I have 'Textile' set as the default text styling for Typo. However, in > > both the live preview when posting and the actual post to my blog, > > Markdown is used instead. Since I don't use much markup I only > > realized this when I attempted to make a post where a line started > > with a #. > > > > This only happened after I upgraded from the current stable install to > > trunk. I already cleared all the body_html out of the database, but it > > was regenerated using Markdown. Any suggestions (besides 'use > > Markdown')? > > > > Thanks. > > > > --r. > > _______________________________________________ > > 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/20060701/8471c587/attachment.html From johncwang at gmail.com Sat Jul 1 12:02:12 2006 From: johncwang at gmail.com (John Wang) Date: Sat, 1 Jul 2006 09:02:12 -0700 Subject: [typo] TOC - table of contents In-Reply-To: <83DC366F-BDBB-457F-AD33-5A7733560826@folkwolf.net> References: <22a4faec0606261509y353f0b1bw7be6655ae8987dfb@mail.gmail.com> <83DC366F-BDBB-457F-AD33-5A7733560826@folkwolf.net> Message-ID: <22a4faec0607010902q21a4ffb1wb389a4a59961229f@mail.gmail.com> On 6/26/06, Matt Rose wrote: > > as plugins. They're pretty easy to write, even without a lot of > coding knowledge. Use the components/plugins/sidebars/static > directory and controller as your guide, and you should have no trouble. It's coming along. I have two questions: (1) How can I pass @articles to the plugin? Various actions in the ArticlesController will populate @articles which I'd like to pass this to the TOC plugin. (2) Where is the sidebar generated? There doesn't seem to be mention of the sidebar in the ArticlesController or the articles views. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060701/9a7a3d01/attachment.html From rdominick at gmail.com Sat Jul 1 14:27:49 2006 From: rdominick at gmail.com (R. N. Dominick) Date: Sat, 1 Jul 2006 14:27:49 -0400 Subject: [typo] 'Textile' selected, but 'Markdown' used... In-Reply-To: <14b7e5ef0607010836p59c1e4b5la5be630a4b76791c@mail.gmail.com> References: <14b7e5ef0607010836p59c1e4b5la5be630a4b76791c@mail.gmail.com> Message-ID: On 7/1/06, Scott Laird wrote: > Hmm, we're supposed to have tests for this. Does 'rake test' run clean for > you? It didn't, and because I had brilliantly misconfigured my setup, it also cleared everything out of my databases. Live and learn. I deleted everyting, recreated the databases, and reinstalled Typo trunk from scratch. 'rake test' does run clean now, but the problem persists. I verified something else, though: both Textile _and_ Markdown are being applied to entries. You can see an example at: http://blog.peekle.net/ > Can you file a bug in trac for this. It really shouldn't be happening. trac rejected my ticket as spam, and I can't really take the time right now to figure out why. I'll try again later on tonight if need be. From stompy at stompy.org Sat Jul 1 16:48:19 2006 From: stompy at stompy.org (Stompy) Date: Sat, 1 Jul 2006 21:48:19 +0100 Subject: [typo] Archives Sidebar Plugin Problem Message-ID: <32920C3D-E93C-4713-9382-1F1B30DE2A7B@stompy.org> Has anyone else noticed that the Archives sidebar plugin isn't' working? I can't seem to find a test for this plugin either. __ Abizer. From vemon388 at gmail.com Sat Jul 1 16:57:50 2006 From: vemon388 at gmail.com (levi mccallum) Date: Sat, 1 Jul 2006 14:57:50 -0600 Subject: [typo] Archives Sidebar Plugin Problem In-Reply-To: <32920C3D-E93C-4713-9382-1F1B30DE2A7B@stompy.org> References: <32920C3D-E93C-4713-9382-1F1B30DE2A7B@stompy.org> Message-ID: Yeah, it has never worked for me. Levi On 7/1/06, Stompy wrote: > Has anyone else noticed that the Archives sidebar plugin isn't' working? > > I can't seem to find a test for this plugin either. > > __ > Abizer. > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From vemon388 at gmail.com Sat Jul 1 17:17:43 2006 From: vemon388 at gmail.com (levi mccallum) Date: Sat, 1 Jul 2006 15:17:43 -0600 Subject: [typo] svn update not working. Message-ID: Hey guys, I try to update my typo svn, I type this: svn up but then it out puts this: svn: Working copy 'tmp/cache' is missing or not locked really don't know what's going on. Levi From neuro at 7el.net Sat Jul 1 17:19:06 2006 From: neuro at 7el.net (Frederic de Villamil) Date: Sat, 01 Jul 2006 23:19:06 +0200 Subject: [typo] svn update not working. In-Reply-To: References: Message-ID: <44A6E6CA.9040007@7el.net> levi mccallum a ?crit : > Hey guys, > > I try to update my typo svn, > > I type this: > > svn up > > but then it out puts this: > > svn: Working copy 'tmp/cache' is missing or not locked > > really don't know what's going on. > > Levi rm -rf tmp/cache svn update -- 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 Sat Jul 1 17:27:14 2006 From: vemon388 at gmail.com (levi mccallum) Date: Sat, 1 Jul 2006 15:27:14 -0600 Subject: [typo] svn update not working. In-Reply-To: <44A6E6CA.9040007@7el.net> References: <44A6E6CA.9040007@7el.net> Message-ID: thanks. On 7/1/06, Frederic de Villamil wrote: > levi mccallum a ?crit : > > Hey guys, > > > > I try to update my typo svn, > > > > I type this: > > > > svn up > > > > but then it out puts this: > > > > svn: Working copy 'tmp/cache' is missing or not locked > > > > really don't know what's going on. > > > > Levi > > rm -rf tmp/cache > svn update > > > > -- > 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 > From gilgit at gmail.com Sat Jul 1 22:24:43 2006 From: gilgit at gmail.com (David Richardson) Date: Sat, 1 Jul 2006 20:24:43 -0600 Subject: [typo] Recent trunk with Mongrel Message-ID: <35ac07b90607011924m31c86d59hcb4482bfe89ade72@mail.gmail.com> Is anyone using a recent trunk version with Mongrel? I just tried 1057 with Mongrel (running directly, no proxy) and get a "you're being redirected" page when trying to authenticate. Can't get past this page. Trunk version from late April runs fine. Running Mongrel either directly or reverse-proxied by Apache. d.r. From rdominick at gmail.com Sat Jul 1 23:15:52 2006 From: rdominick at gmail.com (R. N. Dominick) Date: Sat, 1 Jul 2006 23:15:52 -0400 Subject: [typo] Cannot add ticket on Trac Message-ID: This is so frustrating... no matter what I do, the Typo trac rejects any ticket I try to add as spam. Grr! I'd love to report my Textile/Markdown problem officially, but I can't... From ernieoporto at gmail.com Sun Jul 2 10:24:16 2006 From: ernieoporto at gmail.com (Ernie Oporto) Date: Sun, 2 Jul 2006 10:24:16 -0400 Subject: [typo] Archives Sidebar Plugin Problem In-Reply-To: References: <32920C3D-E93C-4713-9382-1F1B30DE2A7B@stompy.org> Message-ID: Works for me in SVN revision 1004. On 7/1/06, levi mccallum wrote: > > Yeah, it has never worked for me. > > Levi > > On 7/1/06, Stompy wrote: > > Has anyone else noticed that the Archives sidebar plugin isn't' working? > > > > I can't seem to find a test for this plugin either. > > > > __ > > Abizer. > > _______________________________________________ > > 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 > -- Ernie http://www.shokk.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060702/bba32009/attachment.html From ernieoporto at gmail.com Sun Jul 2 10:28:06 2006 From: ernieoporto at gmail.com (Ernie Oporto) Date: Sun, 2 Jul 2006 10:28:06 -0400 Subject: [typo] Security fix for rails (routing) In-Reply-To: <10A9E092-A9E1-41A6-A78F-B099783D9D78@gmail.com> References: <10A9E092-A9E1-41A6-A78F-B099783D9D78@gmail.com> Message-ID: Has anyone done the update to 1.1.4 with any trunk versions? On 6/28/06, Gary Shewan wrote: > > A lot of people might have already seen this, but some might not have. I > wonder if this is the cause of some spiking processes that some people have > seen? > > > > Rails 1.1.3: Security fix and minor fixes > > > Gary > > _______________________________________________ > 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/20060702/df14dbec/attachment.html From scott at sigkill.org Sun Jul 2 10:54:00 2006 From: scott at sigkill.org (Scott Laird) Date: Sun, 2 Jul 2006 07:54:00 -0700 Subject: [typo] Recent trunk with Mongrel In-Reply-To: <35ac07b90607011924m31c86d59hcb4482bfe89ade72@mail.gmail.com> References: <35ac07b90607011924m31c86d59hcb4482bfe89ade72@mail.gmail.com> Message-ID: <14b7e5ef0607020754u50b86e69ta08785aeceb9af3@mail.gmail.com> I'm doing some work with the trunk and Mongrel right now. It works for me so far. What do you have to do to reproduce it? Scott On 7/1/06, David Richardson wrote: > > Is anyone using a recent trunk version with Mongrel? I just tried 1057 > with Mongrel (running directly, no proxy) and get a "you're being > redirected" page when trying to authenticate. Can't get past this > page. > > Trunk version from late April runs fine. Running Mongrel either > directly or reverse-proxied by Apache. > > d.r. > _______________________________________________ > 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/20060702/1f42db39/attachment.html From scott at sigkill.org Sun Jul 2 11:21:33 2006 From: scott at sigkill.org (Scott Laird) Date: Sun, 2 Jul 2006 08:21:33 -0700 Subject: [typo] Security fix for rails (routing) In-Reply-To: References: <10A9E092-A9E1-41A6-A78F-B099783D9D78@gmail.com> Message-ID: <14b7e5ef0607020821p2f36146fs827caa603a554dbd@mail.gmail.com> It tests fine for me, but I haven't used it for more then one or two test posts. Scott On 7/2/06, Ernie Oporto wrote: > > > Has anyone done the update to 1.1.4 with any trunk versions? > > > On 6/28/06, Gary Shewan wrote: > > > A lot of people might have already seen this, but some might not have. > > I wonder if this is the cause of some spiking processes that some people > > have seen? > > > > > > > > Rails 1.1.3: Security fix and minor fixes > > > > > > Gary > > > > _______________________________________________ > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060702/b999688d/attachment.html From trejkaz at trypticon.org Sun Jul 2 20:27:37 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Mon, 3 Jul 2006 10:27:37 +1000 (EST) Subject: [typo] Archives Sidebar Plugin Problem In-Reply-To: <32920C3D-E93C-4713-9382-1F1B30DE2A7B@stompy.org> References: <32920C3D-E93C-4713-9382-1F1B30DE2A7B@stompy.org> Message-ID: <41942.203.82.163.242.1151886457.squirrel@home.trypticon.org> > Has anyone else noticed that the Archives sidebar plugin isn't' working? > > I can't seem to find a test for this plugin either. Mine works in development but not in production, a truly odd thing. TX From gilgit at gmail.com Mon Jul 3 00:50:25 2006 From: gilgit at gmail.com (David Richardson) Date: Sun, 2 Jul 2006 22:50:25 -0600 Subject: [typo] Recent trunk with Mongrel In-Reply-To: <14b7e5ef0607020754u50b86e69ta08785aeceb9af3@mail.gmail.com> References: <35ac07b90607011924m31c86d59hcb4482bfe89ade72@mail.gmail.com> <14b7e5ef0607020754u50b86e69ta08785aeceb9af3@mail.gmail.com> Message-ID: <35ac07b90607022150ra0d2126he76a7ff513921a0@mail.gmail.com> On 7/2/06, Scott Laird wrote: > I'm doing some work with the trunk and Mongrel right now. It works for me > so far. What do you have to do to reproduce it? This happens every time I try to load an admin URL. I can't log in at all, Scott. Whether running behind Apache as a reverse proxy or addressing a running instance of Mongrel directly. After each login attempt I get a 'you are being redirected' message. I will set up a clean install and test Monday. Perhaps I can get more information with tcpflow. d.r. From gpsnospam at gmail.com Mon Jul 3 06:27:08 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Mon, 3 Jul 2006 11:27:08 +0100 Subject: [typo] Security fix for rails (routing) In-Reply-To: <14b7e5ef0607020821p2f36146fs827caa603a554dbd@mail.gmail.com> References: <10A9E092-A9E1-41A6-A78F-B099783D9D78@gmail.com> <14b7e5ef0607020821p2f36146fs827caa603a554dbd@mail.gmail.com> Message-ID: <096FF8A8-4966-4B25-BCE2-D7BFD2C503F6@gmail.com> On 2 Jul 2006, at 16:21, Scott Laird wrote: > It tests fine for me, but I haven't used it for more then one or > two test posts. > > On 7/2/06, Ernie Oporto < ernieoporto at gmail.com> wrote: > > Has anyone done the update to 1.1.4 with any trunk versions? Difficult because I've been on edge for a while and edge Rails isn't affected because the routing code was rewritten. I think if it works for Scott it'd be okay to try. Gary -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060703/afbad4bb/attachment.html From chrisjroos at gmail.com Mon Jul 3 16:25:57 2006 From: chrisjroos at gmail.com (Chris Roos) Date: Mon, 3 Jul 2006 21:25:57 +0100 Subject: [typo] Recent trunk with Mongrel In-Reply-To: <35ac07b90607022150ra0d2126he76a7ff513921a0@mail.gmail.com> References: <35ac07b90607011924m31c86d59hcb4482bfe89ade72@mail.gmail.com> <14b7e5ef0607020754u50b86e69ta08785aeceb9af3@mail.gmail.com> <35ac07b90607022150ra0d2126he76a7ff513921a0@mail.gmail.com> Message-ID: <3a5e51050607031325k59a0087bn905f810b54425533@mail.gmail.com> I've just got typo trunk running fine under mongrel on both freebsd and os x. On os x I have it running directly. On freebsd it is being fronted by apache 1.3. Chris On 7/3/06, David Richardson wrote: > On 7/2/06, Scott Laird wrote: > > I'm doing some work with the trunk and Mongrel right now. It works for me > > so far. What do you have to do to reproduce it? > This happens every time I try to load an admin URL. > I can't log in at all, Scott. Whether running behind Apache as a > reverse proxy or addressing a running instance of Mongrel directly. > After each login attempt I get a 'you are being redirected' message. I > will set up a clean install and test Monday. Perhaps I can get more > information with tcpflow. > > d.r. > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From ernieoporto at gmail.com Mon Jul 3 23:47:23 2006 From: ernieoporto at gmail.com (Ernie Oporto) Date: Mon, 3 Jul 2006 23:47:23 -0400 Subject: [typo] titles for tagged pages In-Reply-To: <200604040736.03542.trejkaz@trypticon.org> References: <200604021901.00280.trejkaz@trypticon.org> <14b7e5ef0604030650j1b2472cbmbb092b301a71d4cd@mail.gmail.com> <200604040736.03542.trejkaz@trypticon.org> Message-ID: Finally got around to posting this one-liner as a patch in Trac: http://www.typosphere.org/trac/ticket/958 This lets systems like Mint identify when people visit category or tag groupings which would otherwise show as the blog name, the same as the front page would. This might be good for other places like pagination and archive pages. On 4/3/06, Trejkaz wrote: > > On Monday 03 April 2006 23:50, Scott Laird wrote: > > One thing to remember--the search engine optimization people > > generally*discourage* putting your site name in the > > ofpages--apparently it causes a noticable drop in search > engineperformance. > > Now that's interesting. Those same people used to tell you to put it in > there > because it raised performance. Let me guess -- every spam site on the > internet then did it, and thus the odds of a real site doing it fell > dramatically, and we ended up back at step 1. > > In any case, should Typo remove the site name from all the titles? :-) > > TX > > -- > Email: trejkaz at trypticon.org > Jabber ID: trejkaz at trypticon.org > Web site: http://trypticon.org/ > GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 > > > _______________________________________________ > 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/20060703/c80d995d/attachment.html From kevin at sb.org Wed Jul 5 05:57:30 2006 From: kevin at sb.org (Kevin Ballard) Date: Wed, 5 Jul 2006 02:57:30 -0700 Subject: [typo] Cannot add ticket on Trac In-Reply-To: <e27d0ad0607012015i76253666nfb3605044e04a251@mail.gmail.com> References: <e27d0ad0607012015i76253666nfb3605044e04a251@mail.gmail.com> Message-ID: <51B9517E-824B-4685-BCAE-9A882B94249F@sb.org> Huh, that's odd. Perhaps you could post your problem here, and if it's legit someone else could add the ticket for you? On Jul 1, 2006, at 8:15 PM, R. N. Dominick wrote: > This is so frustrating... no matter what I do, the Typo trac rejects > any ticket I try to add as spam. Grr! I'd love to report my > Textile/Markdown problem officially, but I can't... -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2432 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060705/3b4fb2ac/attachment.bin From rdominick at gmail.com Wed Jul 5 16:47:48 2006 From: rdominick at gmail.com (R. N. Dominick) Date: Wed, 5 Jul 2006 16:47:48 -0400 Subject: [typo] Cannot add ticket on Trac In-Reply-To: <51B9517E-824B-4685-BCAE-9A882B94249F@sb.org> References: <e27d0ad0607012015i76253666nfb3605044e04a251@mail.gmail.com> <51B9517E-824B-4685-BCAE-9A882B94249F@sb.org> Message-ID: <e27d0ad0607051347v2cb1ee85ucb8fde0435425751@mail.gmail.com> On 7/5/06, Kevin Ballard <kevin at sb.org> wrote: > Huh, that's odd. Perhaps you could post your problem here, and if > it's legit someone else could add the ticket for you? Well, it's worth a shot. Here's my problem: With the current trunk, when I have Textile selected as the text filter to apply to a message, Markdown is applied as well. I had an example on my blog, but now, since I changed the default text filter to Markdown, it appears in Markdown only and I cannot save a change the text filter on the "edit entry" page. To check it out, someone else will have to try it. I have to admit, I'm getting pretty frustrated with Typo. From kevin at sb.org Wed Jul 5 23:17:00 2006 From: kevin at sb.org (Kevin Ballard) Date: Wed, 5 Jul 2006 20:17:00 -0700 Subject: [typo] Cannot add ticket on Trac In-Reply-To: <e27d0ad0607051347v2cb1ee85ucb8fde0435425751@mail.gmail.com> References: <e27d0ad0607012015i76253666nfb3605044e04a251@mail.gmail.com> <51B9517E-824B-4685-BCAE-9A882B94249F@sb.org> <e27d0ad0607051347v2cb1ee85ucb8fde0435425751@mail.gmail.com> Message-ID: <86B6ED13-BFA8-4B0E-948B-7E7FF8435909@sb.org> That's a, um, pretty bizarre problem. I can't imagine how that would possibly happen, since only one formatting style (markdown vs textile) is allowed in a text filter. Plus, it should be perfectly fine to change the textfilter from the edit page. On Jul 5, 2006, at 1:47 PM, R. N. Dominick wrote: > Well, it's worth a shot. Here's my problem: > > With the current trunk, when I have Textile selected as the text > filter to apply to a message, Markdown is applied as well. I had an > example on my blog, but now, since I changed the default text filter > to Markdown, it appears in Markdown only and I cannot save a change > the text filter on the "edit entry" page. To check it out, someone > else will have to try it. > > I have to admit, I'm getting pretty frustrated with Typo. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2432 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060705/a8acdc6a/attachment.bin From scott at sigkill.org Wed Jul 5 23:40:48 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 5 Jul 2006 20:40:48 -0700 Subject: [typo] Cannot add ticket on Trac In-Reply-To: <86B6ED13-BFA8-4B0E-948B-7E7FF8435909@sb.org> References: <e27d0ad0607012015i76253666nfb3605044e04a251@mail.gmail.com> <51B9517E-824B-4685-BCAE-9A882B94249F@sb.org> <e27d0ad0607051347v2cb1ee85ucb8fde0435425751@mail.gmail.com> <86B6ED13-BFA8-4B0E-948B-7E7FF8435909@sb.org> Message-ID: <14b7e5ef0607052040m80b9d4aj22aedeb59c9768ce@mail.gmail.com> Actually, redcloth has a limited ability to handle markdown formatting. So we might accidentally be running redcloth in textile+markdown mode. Scott On 7/5/06, Kevin Ballard <kevin at sb.org> wrote: > > That's a, um, pretty bizarre problem. I can't imagine how that would > possibly happen, since only one formatting style (markdown vs > textile) is allowed in a text filter. Plus, it should be perfectly > fine to change the textfilter from the edit page. > > On Jul 5, 2006, at 1:47 PM, R. N. Dominick wrote: > > > Well, it's worth a shot. Here's my problem: > > > > With the current trunk, when I have Textile selected as the text > > filter to apply to a message, Markdown is applied as well. I had an > > example on my blog, but now, since I changed the default text filter > > to Markdown, it appears in Markdown only and I cannot save a change > > the text filter on the "edit entry" page. To check it out, someone > > else will have to try it. > > > > I have to admit, I'm getting pretty frustrated with Typo. > > -- > Kevin Ballard > kevin at sb.org > http://kevin.sb.org > http://www.tildesoft.com > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060705/dccb26df/attachment.html From rdominick at gmail.com Thu Jul 6 07:48:12 2006 From: rdominick at gmail.com (R. N. Dominick) Date: Thu, 6 Jul 2006 07:48:12 -0400 Subject: [typo] Cannot add ticket on Trac In-Reply-To: <86B6ED13-BFA8-4B0E-948B-7E7FF8435909@sb.org> References: <e27d0ad0607012015i76253666nfb3605044e04a251@mail.gmail.com> <51B9517E-824B-4685-BCAE-9A882B94249F@sb.org> <e27d0ad0607051347v2cb1ee85ucb8fde0435425751@mail.gmail.com> <86B6ED13-BFA8-4B0E-948B-7E7FF8435909@sb.org> Message-ID: <e27d0ad0607060448s31696739o105ed1c19df5804c@mail.gmail.com> On 7/5/06, Kevin Ballard <kevin at sb.org> wrote: > That's a, um, pretty bizarre problem. I can't imagine how that would > possibly happen, since only one formatting style (markdown vs > textile) is allowed in a text filter. Plus, it should be perfectly > fine to change the textfilter from the edit page. I just tried to change the textfilter on an existing entry in my Typo install, both with Firefox and with Internet Explorer, with and without logging out of Typo after editing and storing the entry, and none of those actions changed the textfilter. From scott at sigkill.org Thu Jul 6 09:15:56 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 06:15:56 -0700 Subject: [typo] Please test Typo 3.99.1 gem Message-ID: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> I released a pair of Typo 4.0 pre-release gems yesterday to test out the new Typo installer. Can I get a few people to test out the new Typo 3.99.1gem? Do this: $ gem install typo $ typo install /some/path This should create a working Typo install in /some/path. The installer uses SQLite and Mongrel to produce a self-contained Typo setup. The next version will include directions for setting up HTTP proxying through Apache and Lighttpd; for now you can either do that yourself or just use Mongrel directly from your browser. There are still a handful of things to fix before Typo 4.0 is officially released, but we're getting really close now. The big things left are: 1. Installer: write proxying directions for common web servers. 2. Installer: document usage 3. Installer: minor code cleanup 4. Typo: one last sweep through Trac. 5. Typo: write a "what's new in 4.0" document. Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060706/811d729c/attachment-0001.html From scott at sigkill.org Thu Jul 6 09:21:58 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 06:21:58 -0700 Subject: [typo] Cannot add ticket on Trac In-Reply-To: <e27d0ad0607060448s31696739o105ed1c19df5804c@mail.gmail.com> References: <e27d0ad0607012015i76253666nfb3605044e04a251@mail.gmail.com> <51B9517E-824B-4685-BCAE-9A882B94249F@sb.org> <e27d0ad0607051347v2cb1ee85ucb8fde0435425751@mail.gmail.com> <86B6ED13-BFA8-4B0E-948B-7E7FF8435909@sb.org> <e27d0ad0607060448s31696739o105ed1c19df5804c@mail.gmail.com> Message-ID: <14b7e5ef0607060621w54528b7es673800429b8578ed@mail.gmail.com> Can you try something for me? Edit components/plugins/textfilters/textile_controller.rb and change RedCloth.newto RedCloth:: Textile.new. Then tell Typo to rebuild all of your cached HTML and see what happens. It should fix your problem. Now, should this fix go into the trunk or not? It'll change long-standing behavior, and may break some people's formatting. It's a bug, but it's an *old* bug. Opinions? Scott On 7/6/06, R. N. Dominick <rdominick at gmail.com> wrote: > > On 7/5/06, Kevin Ballard <kevin at sb.org> wrote: > > That's a, um, pretty bizarre problem. I can't imagine how that would > > possibly happen, since only one formatting style (markdown vs > > textile) is allowed in a text filter. Plus, it should be perfectly > > fine to change the textfilter from the edit page. > > I just tried to change the textfilter on an existing entry in my Typo > install, both with Firefox and with Internet Explorer, with and > without logging out of Typo after editing and storing the entry, and > none of those actions changed the textfilter. > _______________________________________________ > 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/20060706/5d131f31/attachment.html From dstrelau at gmail.com Thu Jul 6 09:41:26 2006 From: dstrelau at gmail.com (Dean Strelau) Date: Thu, 6 Jul 2006 09:41:26 -0400 Subject: [typo] Cannot add ticket on Trac In-Reply-To: <14b7e5ef0607060621w54528b7es673800429b8578ed@mail.gmail.com> References: <e27d0ad0607012015i76253666nfb3605044e04a251@mail.gmail.com> <51B9517E-824B-4685-BCAE-9A882B94249F@sb.org> <e27d0ad0607051347v2cb1ee85ucb8fde0435425751@mail.gmail.com> <86B6ED13-BFA8-4B0E-948B-7E7FF8435909@sb.org> <e27d0ad0607060448s31696739o105ed1c19df5804c@mail.gmail.com> <14b7e5ef0607060621w54528b7es673800429b8578ed@mail.gmail.com> Message-ID: <aaec3bd90607060641k40d95692t7519cb79f1e3e7cb@mail.gmail.com> On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > Now, should this fix go into the trunk or not? It'll change long-standing > behavior, and may break some people's formatting. It's a bug, but it's an > *old* bug. Opinions? > I noticed this behavior a while ago[1], and frankly, I love it. I much prefer Markdown's linking syntax with Textile's formatting. [1]:<http://zenchic.net/articles/2006/03/11/redcloth-supports-markdown-links > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060706/8d332d7f/attachment.html From dstrelau at gmail.com Thu Jul 6 09:53:14 2006 From: dstrelau at gmail.com (Dean Strelau) Date: Thu, 6 Jul 2006 09:53:14 -0400 Subject: [typo] Cannot add ticket on Trac In-Reply-To: <aaec3bd90607060641k40d95692t7519cb79f1e3e7cb@mail.gmail.com> References: <e27d0ad0607012015i76253666nfb3605044e04a251@mail.gmail.com> <51B9517E-824B-4685-BCAE-9A882B94249F@sb.org> <e27d0ad0607051347v2cb1ee85ucb8fde0435425751@mail.gmail.com> <86B6ED13-BFA8-4B0E-948B-7E7FF8435909@sb.org> <e27d0ad0607060448s31696739o105ed1c19df5804c@mail.gmail.com> <14b7e5ef0607060621w54528b7es673800429b8578ed@mail.gmail.com> <aaec3bd90607060641k40d95692t7519cb79f1e3e7cb@mail.gmail.com> Message-ID: <aaec3bd90607060653j6fe5dd71h7bb228468557c2e9@mail.gmail.com> (Sorry, that sent before I was finished) Would it be possible to just add "Textile+Markdown" in the text filter menu? I really haven't looked to see how text filters work, so I have no idea if this is even possible. It seems like it couldn't take too much. That being said, I completely understand if it's better for everyone else to just switch and use pure Textile. I realize I'm probably in the minority here. As long as I can switch it back, I have no qualms. :) || Dean On 7/6/06, Dean Strelau <dstrelau at gmail.com> wrote: > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > Now, should this fix go into the trunk or not? It'll change > > long-standing behavior, and may break some people's formatting. It's a bug, > > but it's an *old* bug. Opinions? > > > > I noticed this behavior a while ago[1], and frankly, I love it. I much > prefer Markdown's linking syntax with Textile's formatting. > > [1]:< > http://zenchic.net/articles/2006/03/11/redcloth-supports-markdown-links> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060706/a73cdf14/attachment.html From pantulis at gmail.com Thu Jul 6 13:56:17 2006 From: pantulis at gmail.com (=?ISO-8859-1?Q?Juan_Lupi=F3n?=) Date: Thu, 6 Jul 2006 19:56:17 +0200 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> Message-ID: <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> I'm getting a '404 Not found' error when running 'sudo get imstall typo' on my Mac. On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > I released a pair of Typo 4.0 pre-release gems yesterday to test out the new > Typo installer. Can I get a few people to test out the new Typo 3.99.1 gem? > Do this: > > $ gem install typo -- ---------------------------------------------------- http://hronia.blogalia.com From steve.longdo at gmail.com Thu Jul 6 14:07:22 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Thu, 6 Jul 2006 13:07:22 -0500 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> Message-ID: <cc4e85f30607061107w68c2b20dn4a9c687383f2b870@mail.gmail.com> You want `sudo gem install typo`, no get and not imstall. Good Luck -Steve http://www.stevelongdo.com On 7/6/06, Juan Lupi?n <pantulis at gmail.com> wrote: > > I'm getting a '404 Not found' error when running 'sudo get imstall > typo' on my Mac. > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > I released a pair of Typo 4.0 pre-release gems yesterday to test out the > new > > Typo installer. Can I get a few people to test out the new Typo 3.99.1gem? > > Do this: > > > > $ gem install typo > > > -- > ---------------------------------------------------- > http://hronia.blogalia.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060706/2a90b444/attachment.html From mail at paulbarry.com Thu Jul 6 14:13:19 2006 From: mail at paulbarry.com (Paul Barry) Date: Thu, 6 Jul 2006 14:13:19 -0400 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> Message-ID: <d0d1f5ac0607061113r2062d632xd4bb66bc0006bfa@mail.gmail.com> Related to this http://www.typosphere.org/trac/ticket/920, and there may be another ticket for it, is that in the most recent version of the trunk that I checked out (might have been 10 days ago), this wasn't in there, and also, the articles were sorted by created_at instead of published_at on the main page. Is this fix going to be in 4.0? On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > I released a pair of Typo 4.0 pre-release gems yesterday to test out the > new Typo installer. Can I get a few people to test out the new Typo > 3.99.1 gem? Do this: > > $ gem install typo > $ typo install /some/path > > This should create a working Typo install in /some/path. The installer > uses SQLite and Mongrel to produce a self-contained Typo setup. The next > version will include directions for setting up HTTP proxying through Apache > and Lighttpd; for now you can either do that yourself or just use Mongrel > directly from your browser. > > There are still a handful of things to fix before Typo 4.0 is officially > released, but we're getting really close now. The big things left are: > > 1. Installer: write proxying directions for common web servers. > 2. Installer: document usage > 3. Installer: minor code cleanup > 4. Typo: one last sweep through Trac. > 5. Typo: write a "what's new in 4.0" document. > > > 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/20060706/f54344e3/attachment.html From scott at sigkill.org Thu Jul 6 14:13:37 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 11:13:37 -0700 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> Message-ID: <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> Still? It should have been copied to all GEM mirrors by now. It worked fine for me this morning. I need to figure out how to do 'gem install --verbose typo', and I need to figure out where the 'master' gem server lives. As things stand, it takes 3+ hours from the time I upload a gem until it's usable. Scott On 7/6/06, Juan Lupi?n <pantulis at gmail.com> wrote: > > I'm getting a '404 Not found' error when running 'sudo get imstall > typo' on my Mac. > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > I released a pair of Typo 4.0 pre-release gems yesterday to test out the > new > > Typo installer. Can I get a few people to test out the new Typo 3.99.1gem? > > Do this: > > > > $ gem install typo > > > -- > ---------------------------------------------------- > http://hronia.blogalia.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060706/ec7835a9/attachment-0001.html From scott at sigkill.org Thu Jul 6 14:14:27 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 11:14:27 -0700 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <d0d1f5ac0607061113r2062d632xd4bb66bc0006bfa@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d0d1f5ac0607061113r2062d632xd4bb66bc0006bfa@mail.gmail.com> Message-ID: <14b7e5ef0607061114l59c4b9edxb28bf58e86c6fe30@mail.gmail.com> It's already in the trunk. Scott On 7/6/06, Paul Barry <mail at paulbarry.com> wrote: > > Related to this http://www.typosphere.org/trac/ticket/920, and there may > be another ticket for it, is that in the most recent version of the trunk > that I checked out (might have been 10 days ago), this wasn't in there, and > also, the articles were sorted by created_at instead of published_at on the > main page. Is this fix going to be in 4.0? > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > I released a pair of Typo 4.0 pre-release gems yesterday to test out the > new Typo installer. Can I get a few people to test out the new Typo > 3.99.1 gem? Do this: > > $ gem install typo > $ typo install /some/path > > This should create a working Typo install in /some/path. The installer > uses SQLite and Mongrel to produce a self-contained Typo setup. The next > version will include directions for setting up HTTP proxying through Apache > and Lighttpd; for now you can either do that yourself or just use Mongrel > directly from your browser. > > There are still a handful of things to fix before Typo 4.0 is officially > released, but we're getting really close now. The big things left are: > > 1. Installer: write proxying directions for common web servers. > 2. Installer: document usage > 3. Installer: minor code cleanup > 4. Typo: one last sweep through Trac. > 5. Typo: write a "what's new in 4.0" document. > > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060706/df7532ff/attachment.html From mail at paulbarry.com Thu Jul 6 14:49:01 2006 From: mail at paulbarry.com (Paul Barry) Date: Thu, 6 Jul 2006 14:49:01 -0400 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> Message-ID: <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> I just ran gem install typo and it seemed to work. I can't test it yet though, I think because my host blocks port 4517, which seems to be the port typo choose to start mongrel on. At the end of the install, if says this: Look in installer/apache.conf.example to see how to integrate with Apache. Except there is no file called apache.conf.example in there. On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > Still? It should have been copied to all GEM mirrors by now. It worked > fine for me this morning. > > I need to figure out how to do 'gem install --verbose typo', and I need to > figure out where the 'master' gem server lives. As things stand, it takes > 3+ hours from the time I upload a gem until it's usable. > > > Scott > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > I'm getting a '404 Not found' error when running 'sudo get imstall > > typo' on my Mac. > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > I released a pair of Typo 4.0 pre-release gems yesterday to test out > > the new > > > Typo installer. Can I get a few people to test out the new Typo > > 3.99.1 gem? > > > Do this: > > > > > > $ gem install typo > > > > > > -- > > ---------------------------------------------------- > > http://hronia.blogalia.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/20060706/03013a98/attachment.html From scott at sigkill.org Thu Jul 6 14:54:35 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 11:54:35 -0700 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> Message-ID: <14b7e5ef0607061154k3ddc02b6qb72b657c435b0228@mail.gmail.com> The documentation is still a work in progress :-). You can change the port this way: typo stop /path/to/typo typo config /path/to/typo port-number=9999 typo start /path/to/typo The mongrel port number is picked randomly from [4000..4999]. I'd rather not use a single fixed port, because I'd like to make multiple-typos-per-host installs easy. I'll take suggestions for better algorithms if anyone has one. Scott On 7/6/06, Paul Barry <mail at paulbarry.com> wrote: > > I just ran gem install typo and it seemed to work. I can't test it yet > though, I think because my host blocks port 4517, which seems to be the port > typo choose to start mongrel on. At the end of the install, if says this: > > Look in installer/apache.conf.example to see how to integrate with Apache. > > Except there is no file called apache.conf.example in there. > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > Still? It should have been copied to all GEM mirrors by now. It worked > > fine for me this morning. > > > > I need to figure out how to do 'gem install --verbose typo', and I need > > to figure out where the 'master' gem server lives. As things stand, it > > takes 3+ hours from the time I upload a gem until it's usable. > > > > > > Scott > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > > > I'm getting a '404 Not found' error when running 'sudo get imstall > > > typo' on my Mac. > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > I released a pair of Typo 4.0 pre-release gems yesterday to test out > > > the new > > > > Typo installer. Can I get a few people to test out the new Typo > > > 3.99.1 gem? > > > > Do this: > > > > > > > > $ gem install typo > > > > > > > > > -- > > > ---------------------------------------------------- > > > http://hronia.blogalia.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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060706/1c2cf79f/attachment.html From mail at paulbarry.com Thu Jul 6 15:03:10 2006 From: mail at paulbarry.com (Paul Barry) Date: Thu, 6 Jul 2006 15:03:10 -0400 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> Message-ID: <d0d1f5ac0607061203q317daa00j9421b94465bd717e@mail.gmail.com> I did a clean install first, that worked. Then I tried to upgrade an existing typo, and I got this: copying /test/mocks/themes/123-numbers-in-path/about.markdown copying /test/mocks/themes/CamelCaseDirectory/about.markdown copying /test/mocks/themes/azure/about.markdown /usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir': File exists - /home/paulbarry/typo/test/mocks/themes/azure (Errno::EEXIST) from /usr/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir' from /usr/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p' from /usr/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p' So then I just did a clean install again, then copied over my sqlite files and my theme files, ran rake db:migrate (which did nothing) and then I got my "upgraded" site. The main page still sorts by created_at and the permalinks are generated from created_at. On 7/6/06, Paul Barry <mail at paulbarry.com> wrote: > > I just ran gem install typo and it seemed to work. I can't test it yet > though, I think because my host blocks port 4517, which seems to be the port > typo choose to start mongrel on. At the end of the install, if says this: > > Look in installer/apache.conf.example to see how to integrate with Apache. > > Except there is no file called apache.conf.example in there. > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > Still? It should have been copied to all GEM mirrors by now. It worked > > fine for me this morning. > > > > I need to figure out how to do 'gem install --verbose typo', and I need > > to figure out where the 'master' gem server lives. As things stand, it > > takes 3+ hours from the time I upload a gem until it's usable. > > > > > > Scott > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > > > I'm getting a '404 Not found' error when running 'sudo get imstall > > > typo' on my Mac. > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > I released a pair of Typo 4.0 pre-release gems yesterday to test out > > > the new > > > > Typo installer. Can I get a few people to test out the new Typo > > > 3.99.1 gem? > > > > Do this: > > > > > > > > $ gem install typo > > > > > > > > > -- > > > ---------------------------------------------------- > > > http://hronia.blogalia.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/20060706/15055660/attachment-0001.html From scott at sigkill.org Thu Jul 6 15:06:58 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 12:06:58 -0700 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <d0d1f5ac0607061203q317daa00j9421b94465bd717e@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> <d0d1f5ac0607061203q317daa00j9421b94465bd717e@mail.gmail.com> Message-ID: <14b7e5ef0607061206q7abbc880x63a0cb8164f9737c@mail.gmail.com> Thanks. I haven't fully dealt with the "upgrade an existing typo" case yet, and the created_at/published_at fix went into the trunk after 3.99.1 was frozen. I'll try to spit out 3.99.2 in the next 24 hours, once I've had a few more bug reports. Scott On 7/6/06, Paul Barry <mail at paulbarry.com> wrote: > > I did a clean install first, that worked. Then I tried to upgrade an > existing typo, and I got this: > > copying /test/mocks/themes/123-numbers-in-path/about.markdown > copying /test/mocks/themes/CamelCaseDirectory/about.markdown > copying /test/mocks/themes/azure/about.markdown > /usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir': File exists - > /home/paulbarry/typo/test/mocks/themes/azure (Errno::EEXIST) > from /usr/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir' > from /usr/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p' > from /usr/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p' > > So then I just did a clean install again, then copied over my sqlite files > and my theme files, ran rake db:migrate (which did nothing) and then I got > my "upgraded" site. > > The main page still sorts by created_at and the permalinks are generated > from created_at. > > On 7/6/06, Paul Barry < mail at paulbarry.com> wrote: > > > I just ran gem install typo and it seemed to work. I can't test it yet > > though, I think because my host blocks port 4517, which seems to be the port > > typo choose to start mongrel on. At the end of the install, if says this: > > > > Look in installer/apache.conf.example to see how to integrate with > > Apache. > > > > Except there is no file called apache.conf.example in there. > > > > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > Still? It should have been copied to all GEM mirrors by now. It > > > worked fine for me this morning. > > > > > > I need to figure out how to do 'gem install --verbose typo', and I > > > need to figure out where the 'master' gem server lives. As things stand, it > > > takes 3+ hours from the time I upload a gem until it's usable. > > > > > > > > > Scott > > > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > > > > > I'm getting a '404 Not found' error when running 'sudo get imstall > > > > typo' on my Mac. > > > > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > > I released a pair of Typo 4.0 pre-release gems yesterday to test > > > > out the new > > > > > Typo installer. Can I get a few people to test out the new Typo > > > > 3.99.1 gem? > > > > > Do this: > > > > > > > > > > $ gem install typo > > > > > > > > > > > > -- > > > > ---------------------------------------------------- > > > > http://hronia.blogalia.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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060706/57b95fae/attachment.html From kevwil at gmail.com Thu Jul 6 15:10:05 2006 From: kevwil at gmail.com (Kevin Williams) Date: Thu, 6 Jul 2006 13:10:05 -0600 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <14b7e5ef0607061154k3ddc02b6qb72b657c435b0228@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> <14b7e5ef0607061154k3ddc02b6qb72b657c435b0228@mail.gmail.com> Message-ID: <683a886f0607061210v613dfb1pe08c9e6bff1381e4@mail.gmail.com> I have rails & mongrel & sqlite3-ruby all set up on Windows, and it seems to install and run fine. There are a few "path not found" messages, and the tests claimed to have failed, but it seems to run. Scott, thanks for taking the time to work on Typo. Rails needs typo, IMHO, and I'm happy to run my blog on a Rails app rather than ... anything else. :) On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > The documentation is still a work in progress :-). > > You can change the port this way: > > typo stop /path/to/typo > typo config /path/to/typo port-number=9999 > typo start /path/to/typo > > The mongrel port number is picked randomly from [4000..4999]. I'd rather > not use a single fixed port, because I'd like to make > multiple-typos-per-host installs easy. I'll take suggestions for better > algorithms if anyone has one. > > > Scott > > > On 7/6/06, Paul Barry <mail at paulbarry.com> wrote: > > > > I just ran gem install typo and it seemed to work. I can't test it yet > though, I think because my host blocks port 4517, which seems to be the port > typo choose to start mongrel on. At the end of the install, if says this: > > > > Look in installer/apache.conf.example to see how to integrate with Apache. > > > > Except there is no file called apache.conf.example in there. > > > > > > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > Still? It should have been copied to all GEM mirrors by now. It worked > fine for me this morning. > > > > > > I need to figure out how to do 'gem install --verbose typo', and I need > to figure out where the 'master' gem server lives. As things stand, it > takes 3+ hours from the time I upload a gem until it's usable. > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > > > > > I'm getting a '404 Not found' error when running 'sudo get imstall > > > > typo' on my Mac. > > > > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > > I released a pair of Typo 4.0 pre-release gems yesterday to test out > the new > > > > > Typo installer. Can I get a few people to test out the new Typo > 3.99.1 gem? > > > > > Do this: > > > > > > > > > > $ gem install typo > > > > > > > > > > > > -- > > > > ---------------------------------------------------- > > > > http://hronia.blogalia.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 > > -- Cheers, Kevin From steve.longdo at gmail.com Thu Jul 6 15:10:12 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Thu, 6 Jul 2006 14:10:12 -0500 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <14b7e5ef0607061154k3ddc02b6qb72b657c435b0228@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> <14b7e5ef0607061154k3ddc02b6qb72b657c435b0228@mail.gmail.com> Message-ID: <cc4e85f30607061210j24a11557w176b1afb2bee7e0@mail.gmail.com> Can mongrel be bound to UNIX sockets like FCGI or does it only work with ports? It would be nice if the tmp/sockets/ directory could be the default instead of a port. On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > The documentation is still a work in progress :-). > > You can change the port this way: > > typo stop /path/to/typo > typo config /path/to/typo port-number=9999 > typo start /path/to/typo > > The mongrel port number is picked randomly from [4000..4999]. I'd rather > not use a single fixed port, because I'd like to make > multiple-typos-per-host installs easy. I'll take suggestions for better > algorithms if anyone has one. > > > Scott > > On 7/6/06, Paul Barry <mail at paulbarry.com> wrote: > > > I just ran gem install typo and it seemed to work. I can't test it yet > > though, I think because my host blocks port 4517, which seems to be the port > > typo choose to start mongrel on. At the end of the install, if says this: > > > > Look in installer/apache.conf.example to see how to integrate with > > Apache. > > > > Except there is no file called apache.conf.example in there. > > > > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > Still? It should have been copied to all GEM mirrors by now. It > > > worked fine for me this morning. > > > > > > I need to figure out how to do 'gem install --verbose typo', and I > > > need to figure out where the 'master' gem server lives. As things stand, it > > > takes 3+ hours from the time I upload a gem until it's usable. > > > > > > > > > Scott > > > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > > > > > I'm getting a '404 Not found' error when running 'sudo get imstall > > > > typo' on my Mac. > > > > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > > I released a pair of Typo 4.0 pre-release gems yesterday to test > > > > out the new > > > > > Typo installer. Can I get a few people to test out the new Typo > > > > 3.99.1 gem? > > > > > Do this: > > > > > > > > > > $ gem install typo > > > > > > > > > > > > -- > > > > ---------------------------------------------------- > > > > http://hronia.blogalia.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/20060706/ec7e77f7/attachment-0001.html From scott at sigkill.org Thu Jul 6 15:18:30 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 12:18:30 -0700 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <683a886f0607061210v613dfb1pe08c9e6bff1381e4@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> <14b7e5ef0607061154k3ddc02b6qb72b657c435b0228@mail.gmail.com> <683a886f0607061210v613dfb1pe08c9e6bff1381e4@mail.gmail.com> Message-ID: <14b7e5ef0607061218o1ef89907q1bcb00501d4245c3@mail.gmail.com> Out of curiosity, which tests failed? cd to the new Typo directory and run 'rake test'. It'd be nice to get all of the test failures fixed. Scott On 7/6/06, Kevin Williams <kevwil at gmail.com> wrote: > > I have rails & mongrel & sqlite3-ruby all set up on Windows, and it > seems to install and run fine. There are a few "path not found" > messages, and the tests claimed to have failed, but it seems to run. > > Scott, thanks for taking the time to work on Typo. Rails needs typo, > IMHO, and I'm happy to run my blog on a Rails app rather than ... > anything else. :) > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > The documentation is still a work in progress :-). > > > > You can change the port this way: > > > > typo stop /path/to/typo > > typo config /path/to/typo port-number=9999 > > typo start /path/to/typo > > > > The mongrel port number is picked randomly from [4000..4999]. I'd > rather > > not use a single fixed port, because I'd like to make > > multiple-typos-per-host installs easy. I'll take suggestions for better > > algorithms if anyone has one. > > > > > > Scott > > > > > > On 7/6/06, Paul Barry <mail at paulbarry.com> wrote: > > > > > > I just ran gem install typo and it seemed to work. I can't test it > yet > > though, I think because my host blocks port 4517, which seems to be the > port > > typo choose to start mongrel on. At the end of the install, if says > this: > > > > > > Look in installer/apache.conf.example to see how to integrate with > Apache. > > > > > > Except there is no file called apache.conf.example in there. > > > > > > > > > > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > > > Still? It should have been copied to all GEM mirrors by now. It > worked > > fine for me this morning. > > > > > > > > I need to figure out how to do 'gem install --verbose typo', and I > need > > to figure out where the 'master' gem server lives. As things stand, it > > takes 3+ hours from the time I upload a gem until it's usable. > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > > > > > > > I'm getting a '404 Not found' error when running 'sudo get imstall > > > > > typo' on my Mac. > > > > > > > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > I released a pair of Typo 4.0 pre-release gems yesterday to test > out > > the new > > > > > > Typo installer. Can I get a few people to test out the new Typo > > 3.99.1 gem? > > > > > > Do this: > > > > > > > > > > > > $ gem install typo > > > > > > > > > > > > > > > -- > > > > > ---------------------------------------------------- > > > > > http://hronia.blogalia.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 > > > > > > > -- > Cheers, > > Kevin > _______________________________________________ > 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/20060706/bd2a7ae8/attachment.html From scott at sigkill.org Thu Jul 6 15:16:27 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 12:16:27 -0700 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <cc4e85f30607061210j24a11557w176b1afb2bee7e0@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> <14b7e5ef0607061154k3ddc02b6qb72b657c435b0228@mail.gmail.com> <cc4e85f30607061210j24a11557w176b1afb2bee7e0@mail.gmail.com> Message-ID: <14b7e5ef0607061216n57790435l280c03243411c74a@mail.gmail.com> To the best of my knowedge, it only uses ports. I've never seen a HTTP proxy that can bind to unix domain sockets. If you'd like, you can say 'typo config PATH bind-address=127.0.0.1', and then restart typo. That'll tell Mongrel to bind to localhost. Scott On 7/6/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > Can mongrel be bound to UNIX sockets like FCGI or does it only work with > ports? It would be nice if the tmp/sockets/ directory could be the default > instead of a port. > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > The documentation is still a work in progress :-). > > > > You can change the port this way: > > > > typo stop /path/to/typo > > typo config /path/to/typo port-number=9999 > > typo start /path/to/typo > > > > The mongrel port number is picked randomly from [4000..4999]. I'd > > rather not use a single fixed port, because I'd like to make > > multiple-typos-per-host installs easy. I'll take suggestions for better > > algorithms if anyone has one. > > > > > > Scott > > > > On 7/6/06, Paul Barry < mail at paulbarry.com> wrote: > > > > > I just ran gem install typo and it seemed to work. I can't test it > > > yet though, I think because my host blocks port 4517, which seems to be the > > > port typo choose to start mongrel on. At the end of the install, if says > > > this: > > > > > > Look in installer/apache.conf.example to see how to integrate with > > > Apache. > > > > > > Except there is no file called apache.conf.example in there. > > > > > > > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > > > Still? It should have been copied to all GEM mirrors by now. It > > > > worked fine for me this morning. > > > > > > > > I need to figure out how to do 'gem install --verbose typo', and I > > > > need to figure out where the 'master' gem server lives. As things stand, it > > > > takes 3+ hours from the time I upload a gem until it's usable. > > > > > > > > > > > > Scott > > > > > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > > > > > > > I'm getting a '404 Not found' error when running 'sudo get imstall > > > > > typo' on my Mac. > > > > > > > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > I released a pair of Typo 4.0 pre-release gems yesterday to test > > > > > out the new > > > > > > Typo installer. Can I get a few people to test out the new Typo > > > > > 3.99.1 gem? > > > > > > Do this: > > > > > > > > > > > > $ gem install typo > > > > > > > > > > > > > > > -- > > > > > ---------------------------------------------------- > > > > > http://hronia.blogalia.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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060706/95f91a3b/attachment-0001.html From mail at paulbarry.com Thu Jul 6 15:26:19 2006 From: mail at paulbarry.com (Paul Barry) Date: Thu, 6 Jul 2006 15:26:19 -0400 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <14b7e5ef0607061206q7abbc880x63a0cb8164f9737c@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> <d0d1f5ac0607061203q317daa00j9421b94465bd717e@mail.gmail.com> <14b7e5ef0607061206q7abbc880x63a0cb8164f9737c@mail.gmail.com> Message-ID: <d0d1f5ac0607061226v4e5e7007of3ff887066b76d27@mail.gmail.com> No problem, I realized that I don't actually really need my created_at and published_at to be different, so I just ran "update contents set created_at = published_at" as a work around for the problem. I just had some old entries that I migrated over from a different blog, and I wanted them to show up with the original published_at. This is really helpful, because setting up everything is kind of overwhelming and painful. I like the idea that you are saying mongrel/sqlite is the way to go for a basic vps hosted blog, that should make the install a lot less painful for other people. On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > Thanks. I haven't fully dealt with the "upgrade an existing typo" case > yet, and the created_at/published_at fix went into the trunk after 3.99.1was frozen. I'll try to spit out > 3.99.2 in the next 24 hours, once I've had a few more bug reports. > > > Scott > > On 7/6/06, Paul Barry <mail at paulbarry.com> wrote: > > > > I did a clean install first, that worked. Then I tried to upgrade an > > existing typo, and I got this: > > > > copying /test/mocks/themes/123-numbers-in-path/about.markdown > > copying /test/mocks/themes/CamelCaseDirectory/about.markdown > > copying /test/mocks/themes/azure/about.markdown > > /usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir': File exists - > > /home/paulbarry/typo/test/mocks/themes/azure (Errno::EEXIST) > > from /usr/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir' > > from /usr/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p' > > from /usr/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p' > > > > So then I just did a clean install again, then copied over my sqlite > > files and my theme files, ran rake db:migrate (which did nothing) and then I > > got my "upgraded" site. > > > > The main page still sorts by created_at and the permalinks are generated > > from created_at. > > > > On 7/6/06, Paul Barry < mail at paulbarry.com> wrote: > > > > > I just ran gem install typo and it seemed to work. I can't test it > > > yet though, I think because my host blocks port 4517, which seems to be the > > > port typo choose to start mongrel on. At the end of the install, if says > > > this: > > > > > > Look in installer/apache.conf.example to see how to integrate with > > > Apache. > > > > > > Except there is no file called apache.conf.example in there. > > > > > > > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > > > Still? It should have been copied to all GEM mirrors by now. It > > > > worked fine for me this morning. > > > > > > > > I need to figure out how to do 'gem install --verbose typo', and I > > > > need to figure out where the 'master' gem server lives. As things stand, it > > > > takes 3+ hours from the time I upload a gem until it's usable. > > > > > > > > > > > > Scott > > > > > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > > > > > > > I'm getting a '404 Not found' error when running 'sudo get imstall > > > > > typo' on my Mac. > > > > > > > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > I released a pair of Typo 4.0 pre-release gems yesterday to test > > > > > out the new > > > > > > Typo installer. Can I get a few people to test out the new Typo > > > > > 3.99.1 gem? > > > > > > Do this: > > > > > > > > > > > > $ gem install typo > > > > > > > > > > > > > > > -- > > > > > ---------------------------------------------------- > > > > > http://hronia.blogalia.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/20060706/a1963f02/attachment.html From kevwil at gmail.com Thu Jul 6 15:14:57 2006 From: kevwil at gmail.com (Kevin Williams) Date: Thu, 6 Jul 2006 13:14:57 -0600 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <cc4e85f30607061210j24a11557w176b1afb2bee7e0@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> <14b7e5ef0607061154k3ddc02b6qb72b657c435b0228@mail.gmail.com> <cc4e85f30607061210j24a11557w176b1afb2bee7e0@mail.gmail.com> Message-ID: <683a886f0607061214t168600ebpe45a5f2666a9b68a@mail.gmail.com> AFAIK, no. It's an http server only, and http is a tcp protocol. It's an interesting idea, though. Perhaps a plugin could be written? I don't know. Interesting idea, for sure. On 7/6/06, Steve Longdo <steve.longdo at gmail.com> wrote: > Can mongrel be bound to UNIX sockets like FCGI or does it only work with > ports? It would be nice if the tmp/sockets/ directory could be the default > instead of a port. > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > The documentation is still a work in progress :-). > > > > You can change the port this way: > > > > typo stop /path/to/typo > > typo config /path/to/typo port-number=9999 > > typo start /path/to/typo > > > > The mongrel port number is picked randomly from [4000..4999]. I'd rather > not use a single fixed port, because I'd like to make > multiple-typos-per-host installs easy. I'll take suggestions for better > algorithms if anyone has one. > > > > > > > > Scott > > > > > > > > > > On 7/6/06, Paul Barry < mail at paulbarry.com> wrote: > > > > > > > > I just ran gem install typo and it seemed to work. I can't test it yet > though, I think because my host blocks port 4517, which seems to be the port > typo choose to start mongrel on. At the end of the install, if says this: > > > > > > Look in installer/apache.conf.example to see how to integrate with > Apache. > > > > > > Except there is no file called apache.conf.example in there. > > > > > > > > > > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > > > Still? It should have been copied to all GEM mirrors by now. It > worked fine for me this morning. > > > > > > > > I need to figure out how to do 'gem install --verbose typo', and I > need to figure out where the 'master' gem server lives. As things stand, it > takes 3+ hours from the time I upload a gem until it's usable. > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > > > > > > > I'm getting a '404 Not found' error when running 'sudo get imstall > > > > > typo' on my Mac. > > > > > > > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > I released a pair of Typo 4.0 pre-release gems yesterday to test > out the new > > > > > > Typo installer. Can I get a few people to test out the new Typo > 3.99.1 gem? > > > > > > Do this: > > > > > > > > > > > > $ gem install typo > > > > > > > > > > > > > > > -- > > > > > > ---------------------------------------------------- > > > > > http://hronia.blogalia.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 > > -- Cheers, Kevin From pantulis at gmail.com Thu Jul 6 16:13:46 2006 From: pantulis at gmail.com (=?ISO-8859-1?Q?Juan_Lupi=F3n?=) Date: Thu, 6 Jul 2006 22:13:46 +0200 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> Message-ID: <d1bd39e90607061313y24a85511kb8a60486019a6dd9@mail.gmail.com> On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > Still? It should have been copied to all GEM mirrors by now. It worked > fine for me this morning. It has just worked fine right now. Five minutes ago it failed. And no typos this time :-) -- ---------------------------------------------------- http://hronia.blogalia.com From scott at sigkill.org Thu Jul 6 16:21:30 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 13:21:30 -0700 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <d1bd39e90607061313y24a85511kb8a60486019a6dd9@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> <d1bd39e90607061313y24a85511kb8a60486019a6dd9@mail.gmail.com> Message-ID: <14b7e5ef0607061321i36e5dd7eu4419a20c2a354d8e@mail.gmail.com> The gem download servers are load balanced, so one bad server can probably cause intermittent problems. I'm not sure what the best way around this is. Scott On 7/6/06, Juan Lupi?n <pantulis at gmail.com> wrote: > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > Still? It should have been copied to all GEM mirrors by now. It worked > > fine for me this morning. > > It has just worked fine right now. Five minutes ago it failed. > > And no typos this time :-) > > -- > ---------------------------------------------------- > http://hronia.blogalia.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060706/6ce91bb9/attachment.html From kevwil at gmail.com Thu Jul 6 16:24:50 2006 From: kevwil at gmail.com (Kevin Williams) Date: Thu, 6 Jul 2006 14:24:50 -0600 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <14b7e5ef0607061218o1ef89907q1bcb00501d4245c3@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> <14b7e5ef0607061154k3ddc02b6qb72b657c435b0228@mail.gmail.com> <683a886f0607061210v613dfb1pe08c9e6bff1381e4@mail.gmail.com> <14b7e5ef0607061218o1ef89907q1bcb00501d4245c3@mail.gmail.com> Message-ID: <683a886f0607061324hfb13ef5u22320bead4c5c123@mail.gmail.com> All tests passed. On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > Out of curiosity, which tests failed? cd to the new Typo directory and run > 'rake test'. It'd be nice to get all of the test failures fixed. > > > Scott > > > On 7/6/06, Kevin Williams <kevwil at gmail.com> wrote: > > I have rails & mongrel & sqlite3-ruby all set up on Windows, and it > > seems to install and run fine. There are a few "path not found" > > messages, and the tests claimed to have failed, but it seems to run. > > > > Scott, thanks for taking the time to work on Typo. Rails needs typo, > > IMHO, and I'm happy to run my blog on a Rails app rather than ... > > anything else. :) > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > The documentation is still a work in progress :-). > > > > > > You can change the port this way: > > > > > > typo stop /path/to/typo > > > typo config /path/to/typo port-number=9999 > > > typo start /path/to/typo > > > > > > The mongrel port number is picked randomly from [4000..4999]. I'd > rather > > > not use a single fixed port, because I'd like to make > > > multiple-typos-per-host installs easy. I'll take suggestions for better > > > algorithms if anyone has one. > > > > > > > > > Scott > > > > > > > > > On 7/6/06, Paul Barry <mail at paulbarry.com> wrote: > > > > > > > > I just ran gem install typo and it seemed to work. I can't test it > yet > > > though, I think because my host blocks port 4517, which seems to be the > port > > > typo choose to start mongrel on. At the end of the install, if says > this: > > > > > > > > Look in installer/apache.conf.example to see how to integrate with > Apache. > > > > > > > > Except there is no file called apache.conf.example in there. > > > > > > > > > > > > > > > > On 7/6/06, Scott Laird <scott at sigkill.org > wrote: > > > > > > > > > > Still? It should have been copied to all GEM mirrors by now. It > worked > > > fine for me this morning. > > > > > > > > > > I need to figure out how to do 'gem install --verbose typo', and I > need > > > to figure out where the 'master' gem server lives. As things stand, it > > > takes 3+ hours from the time I upload a gem until it's usable. > > > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > > > > > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > > > > > > > > > I'm getting a '404 Not found' error when running 'sudo get imstall > > > > > > typo' on my Mac. > > > > > > > > > > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > I released a pair of Typo 4.0 pre-release gems yesterday to test > out > > > the new > > > > > > > Typo installer. Can I get a few people to test out the new Typo > > > 3.99.1 gem? > > > > > > > Do this: > > > > > > > > > > > > > > $ gem install typo > > > > > > > > > > > > > > > > > > -- > > > > > > > ---------------------------------------------------- > > > > > > http://hronia.blogalia.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 > > > > > > > > > > > > -- > > Cheers, > > > > Kevin > > _______________________________________________ > > 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 From scott at sigkill.org Thu Jul 6 16:28:19 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 13:28:19 -0700 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <683a886f0607061324hfb13ef5u22320bead4c5c123@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> <14b7e5ef0607061154k3ddc02b6qb72b657c435b0228@mail.gmail.com> <683a886f0607061210v613dfb1pe08c9e6bff1381e4@mail.gmail.com> <14b7e5ef0607061218o1ef89907q1bcb00501d4245c3@mail.gmail.com> <683a886f0607061324hfb13ef5u22320bead4c5c123@mail.gmail.com> Message-ID: <14b7e5ef0607061328m3344234ewf003d95f41eefaa4@mail.gmail.com> Hmm. All tests passed, but the installer reported that tests failed. Can you try this? cd /path/to/typo irb status = system("rake test") # is status == true? status = system("rake test > /dev/null") # is status == true? status = system("rake test > /dev/null 2> /dev/null") # is status == true? I suspect that the problem is the last '2> /dev/null' under Windows. Scott On 7/6/06, Kevin Williams <kevwil at gmail.com> wrote: > > All tests passed. > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > Out of curiosity, which tests failed? cd to the new Typo directory and > run > > 'rake test'. It'd be nice to get all of the test failures fixed. > > > > > > Scott > > > > > > On 7/6/06, Kevin Williams <kevwil at gmail.com> wrote: > > > I have rails & mongrel & sqlite3-ruby all set up on Windows, and it > > > seems to install and run fine. There are a few "path not found" > > > messages, and the tests claimed to have failed, but it seems to run. > > > > > > Scott, thanks for taking the time to work on Typo. Rails needs typo, > > > IMHO, and I'm happy to run my blog on a Rails app rather than ... > > > anything else. :) > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > The documentation is still a work in progress :-). > > > > > > > > You can change the port this way: > > > > > > > > typo stop /path/to/typo > > > > typo config /path/to/typo port-number=9999 > > > > typo start /path/to/typo > > > > > > > > The mongrel port number is picked randomly from [4000..4999]. I'd > > rather > > > > not use a single fixed port, because I'd like to make > > > > multiple-typos-per-host installs easy. I'll take suggestions for > better > > > > algorithms if anyone has one. > > > > > > > > > > > > Scott > > > > > > > > > > > > On 7/6/06, Paul Barry <mail at paulbarry.com> wrote: > > > > > > > > > > I just ran gem install typo and it seemed to work. I can't test > it > > yet > > > > though, I think because my host blocks port 4517, which seems to be > the > > port > > > > typo choose to start mongrel on. At the end of the install, if says > > this: > > > > > > > > > > Look in installer/apache.conf.example to see how to integrate with > > Apache. > > > > > > > > > > Except there is no file called apache.conf.example in there. > > > > > > > > > > > > > > > > > > > > On 7/6/06, Scott Laird <scott at sigkill.org > wrote: > > > > > > > > > > > > Still? It should have been copied to all GEM mirrors by > now. It > > worked > > > > fine for me this morning. > > > > > > > > > > > > I need to figure out how to do 'gem install --verbose typo', and > I > > need > > > > to figure out where the 'master' gem server lives. As things stand, > it > > > > takes 3+ hours from the time I upload a gem until it's usable. > > > > > > > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > > > > > > > > > > > I'm getting a '404 Not found' error when running 'sudo get > imstall > > > > > > > typo' on my Mac. > > > > > > > > > > > > > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > I released a pair of Typo 4.0 pre-release gems yesterday to > test > > out > > > > the new > > > > > > > > Typo installer. Can I get a few people to test out the new > Typo > > > > 3.99.1 gem? > > > > > > > > Do this: > > > > > > > > > > > > > > > > $ gem install typo > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > ---------------------------------------------------- > > > > > > > http://hronia.blogalia.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 > > > > > > > > > > > > > > > > > -- > > > Cheers, > > > > > > Kevin > > > _______________________________________________ > > > 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 > _______________________________________________ > 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/20060706/8a51f3cf/attachment.html From pantulis at gmail.com Thu Jul 6 16:40:14 2006 From: pantulis at gmail.com (=?ISO-8859-1?Q?Juan_Lupi=F3n?=) Date: Thu, 6 Jul 2006 22:40:14 +0200 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> Message-ID: <d1bd39e90607061340g1f340b6apacee16eef76e66d2@mail.gmail.com> On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > I released a pair of Typo 4.0 pre-release gems yesterday to test out the new > Typo installer. Can I get a few people to test out the new Typo 3.99.1 gem? > Do this: > > $ gem install typo > $ typo install /some/path I found that the path *must* be an absolute path. 'typo install ./typo' failed with chdir throwing (Errno::ENOENT) Maybe the docs should state this more clearly. On the other hands, some tests failed, this is the trace: Tamarindo:~/Sites/typo juan$ rake test --trace (in /Users/juan/Sites/typo) ** Invoke test (first_time) ** Execute test ** Invoke test:units (first_time) ** Invoke db:test:prepare (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:test:prepare ** Invoke db:test:clone (first_time) ** Invoke db:schema:dump (first_time) ** Invoke environment ** Execute db:schema:dump ** Execute db:test:clone ** Invoke db:schema:load (first_time) ** Invoke environment ** Execute db:schema:load ** Execute test:units /usr/local/bin/ruby -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" "test/unit/article_test.rb" "test/unit/audioscrobbler_test.rb" "test/unit/blacklist_pattern_test.rb" "test/unit/blog_test.rb" "test/unit/category_test.rb" "test/unit/comment_test.rb" "test/unit/configuration_test.rb" "test/unit/delicious_test.rb" "test/unit/flickr_test.rb" "test/unit/fortythree_test.rb" "test/unit/magnolia_test.rb" "test/unit/metafragment_test.rb" "test/unit/notification_mailer_test.rb" "test/unit/observer_test.rb" "test/unit/page_cache_test.rb" "test/unit/page_test.rb" "test/unit/ping_test.rb" "test/unit/redirect_test.rb" "test/unit/resource_test.rb" "test/unit/sidebar_test.rb" "test/unit/tag_test.rb" "test/unit/text_filter_test.rb" "test/unit/theme_test.rb" "test/unit/trackback_test.rb" "test/unit/trigger_test.rb" "test/unit/user_test.rb" "test/unit/content_state/factory_test.rb" Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader Started ............................................................................................................................................. Finished in 16.85309 seconds. 141 tests, 458 assertions, 0 failures, 0 errors ** Invoke test:functionals (first_time) ** Invoke db:test:prepare ** Execute test:functionals /usr/local/bin/ruby -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" "test/functional/accounts_controller_test.rb" "test/functional/articles_controller_test.rb" "test/functional/backend_controller_test.rb" "test/functional/redirect_controller_test.rb" "test/functional/textfilter_controller_test.rb" "test/functional/theme_controller_test.rb" "test/functional/xml_controller_test.rb" "test/functional/admin/article_preview_test.rb" "test/functional/admin/blacklist_controller_test.rb" "test/functional/admin/categories_controller_test.rb" "test/functional/admin/comments_controller_test.rb" "test/functional/admin/content_controller_test.rb" "test/functional/admin/general_controller_test.rb" "test/functional/admin/pages_controller_test.rb" "test/functional/admin/resources_controller_test.rb" "test/functional/admin/textfilters_controller_test.rb" "test/functional/admin/themes_controller_test.rb" "test/functional/admin/trackbacks_controller_test.rb" "test/functional/admin/users_controller_test.rb" Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader Started .......................................................................................................E.................................................................................................... Finished in 71.014778 seconds. 1) Error: test_comment_spam_markdown_smarty(ArticlesControllerTest): ActiveRecord::Transactions::TransactionError: Transaction aborted /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:84:in `transaction' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:84:in `transaction' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:118:in `transaction' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:124:in `replace' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/associations.rb:895:in `notify_users=' /Users/juan/Sites/typo/config/../app/models/article.rb:180:in `add_notifications' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:333:in `callback' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:330:in `callback' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:260:in `create_without_timestamps' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/timestamp.rb:30:in `create' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1718:in `create_or_update_without_callbacks' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in `create_or_update' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1392:in `save_without_validation' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:724:in `save_without_transactions' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:126:in `save' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in `transaction' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:91:in `transaction' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:118:in `transaction' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:126:in `save' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1398:in `save_without_validation!' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:734:in `save!' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:699:in `create!' ./test/functional/articles_controller_test.rb:27:in `setup_without_fixtures' /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:548:in `setup' 204 tests, 792 assertions, 0 failures, 1 errors rake aborted! Test failures /Users/juan/Sites/typo/config/../vendor/rails/railties/lib/tasks/testing.rake:35 /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke' /usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 /usr/local/bin/rake:18 -- ---------------------------------------------------- http://hronia.blogalia.com From kevwil at gmail.com Thu Jul 6 16:46:26 2006 From: kevwil at gmail.com (Kevin Williams) Date: Thu, 6 Jul 2006 14:46:26 -0600 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <14b7e5ef0607061328m3344234ewf003d95f41eefaa4@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> <14b7e5ef0607061154k3ddc02b6qb72b657c435b0228@mail.gmail.com> <683a886f0607061210v613dfb1pe08c9e6bff1381e4@mail.gmail.com> <14b7e5ef0607061218o1ef89907q1bcb00501d4245c3@mail.gmail.com> <683a886f0607061324hfb13ef5u22320bead4c5c123@mail.gmail.com> <14b7e5ef0607061328m3344234ewf003d95f41eefaa4@mail.gmail.com> Message-ID: <683a886f0607061346t7d6e0c2cu821dcdffb7fc65a6@mail.gmail.com> Only the first one returned true - the others give "The system cannot find the path specified." message. On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > Hmm. All tests passed, but the installer reported that tests failed. Can > you try this? > > cd /path/to/typo > irb > status = system("rake test") > # is status == true? > status = system("rake test > /dev/null") > # is status == true? > status = system("rake test > /dev/null 2> /dev/null") > # is status == true? > > I suspect that the problem is the last '2> /dev/null' under Windows. > > > Scott > > > On 7/6/06, Kevin Williams <kevwil at gmail.com> wrote: > > > All tests passed. > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > Out of curiosity, which tests failed? cd to the new Typo directory and > run > > 'rake test'. It'd be nice to get all of the test failures fixed. > > > > > > Scott > > > > > > On 7/6/06, Kevin Williams <kevwil at gmail.com> wrote: > > > I have rails & mongrel & sqlite3-ruby all set up on Windows, and it > > > seems to install and run fine. There are a few "path not found" > > > messages, and the tests claimed to have failed, but it seems to run. > > > > > > Scott, thanks for taking the time to work on Typo. Rails needs typo, > > > IMHO, and I'm happy to run my blog on a Rails app rather than ... > > > anything else. :) > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org > wrote: > > > > The documentation is still a work in progress :-). > > > > > > > > You can change the port this way: > > > > > > > > typo stop /path/to/typo > > > > typo config /path/to/typo port-number=9999 > > > > typo start /path/to/typo > > > > > > > > The mongrel port number is picked randomly from [4000..4999]. I'd > > rather > > > > not use a single fixed port, because I'd like to make > > > > multiple-typos-per-host installs easy. I'll take suggestions for > better > > > > algorithms if anyone has one. > > > > > > > > > > > > Scott > > > > > > > > > > > > On 7/6/06, Paul Barry <mail at paulbarry.com> wrote: > > > > > > > > > > I just ran gem install typo and it seemed to work. I can't test it > > yet > > > > though, I think because my host blocks port 4517, which seems to be > the > > port > > > > typo choose to start mongrel on. At the end of the install, if says > > this: > > > > > > > > > > Look in installer/apache.conf.example to see how to integrate with > > Apache. > > > > > > > > > > Except there is no file called apache.conf.example in there. > > > > > > > > > > > > > > > > > > > > On 7/6/06, Scott Laird <scott at sigkill.org > wrote: > > > > > > > > > > > > Still? It should have been copied to all GEM mirrors by now. It > > worked > > > > fine for me this morning. > > > > > > > > > > > > I need to figure out how to do 'gem install --verbose typo', and I > > need > > > > to figure out where the 'master' gem server lives. As things stand, > it > > > > takes 3+ hours from the time I upload a gem until it's usable. > > > > > > > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > > > > > > > > > > > I'm getting a '404 Not found' error when running 'sudo get > imstall > > > > > > > typo' on my Mac. > > > > > > > > > > > > > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > I released a pair of Typo 4.0 pre-release gems yesterday to > test > > out > > > > the new > > > > > > > > Typo installer. Can I get a few people to test out the new > Typo > > > > 3.99.1 gem? > > > > > > > > Do this: > > > > > > > > > > > > > > > > $ gem install typo > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > ---------------------------------------------------- > > > > > > > http://hronia.blogalia.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 > > > > > > > > > > > > > > > > > -- > > > Cheers, > > > > > > Kevin > > > _______________________________________________ > > > 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 > _______________________________________________ > > 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 From scott at sigkill.org Thu Jul 6 16:48:41 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 13:48:41 -0700 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <d1bd39e90607061340g1f340b6apacee16eef76e66d2@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061340g1f340b6apacee16eef76e66d2@mail.gmail.com> Message-ID: <14b7e5ef0607061348w2edfafdfyf342529870962ceb@mail.gmail.com> Thanks. The absolute/relative path thing is a bug, and I'll fix it for the next release. I'm not sure what's up with the test failure. I'll look into it tonight and see what's up. Scott On 7/6/06, Juan Lupi?n <pantulis at gmail.com> wrote: > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > I released a pair of Typo 4.0 pre-release gems yesterday to test out the > new > > Typo installer. Can I get a few people to test out the new Typo 3.99.1gem? > > Do this: > > > > $ gem install typo > > $ typo install /some/path > > I found that the path *must* be an absolute path. 'typo install > ./typo' failed with chdir throwing (Errno::ENOENT) Maybe the docs > should state this more clearly. > > On the other hands, some tests failed, this is the trace: > > Tamarindo:~/Sites/typo juan$ rake test --trace > (in /Users/juan/Sites/typo) > ** Invoke test (first_time) > ** Execute test > ** Invoke test:units (first_time) > ** Invoke db:test:prepare (first_time) > ** Invoke environment (first_time) > ** Execute environment > ** Execute db:test:prepare > ** Invoke db:test:clone (first_time) > ** Invoke db:schema:dump (first_time) > ** Invoke environment > ** Execute db:schema:dump > ** Execute db:test:clone > ** Invoke db:schema:load (first_time) > ** Invoke environment > ** Execute db:schema:load > ** Execute test:units > /usr/local/bin/ruby -Ilib:test > "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1 > /lib/rake/rake_test_loader.rb" > "test/unit/article_test.rb" "test/unit/audioscrobbler_test.rb" > "test/unit/blacklist_pattern_test.rb" "test/unit/blog_test.rb" > "test/unit/category_test.rb" "test/unit/comment_test.rb" > "test/unit/configuration_test.rb" "test/unit/delicious_test.rb" > "test/unit/flickr_test.rb" "test/unit/fortythree_test.rb" > "test/unit/magnolia_test.rb" "test/unit/metafragment_test.rb" > "test/unit/notification_mailer_test.rb" "test/unit/observer_test.rb" > "test/unit/page_cache_test.rb" "test/unit/page_test.rb" > "test/unit/ping_test.rb" "test/unit/redirect_test.rb" > "test/unit/resource_test.rb" "test/unit/sidebar_test.rb" > "test/unit/tag_test.rb" "test/unit/text_filter_test.rb" > "test/unit/theme_test.rb" "test/unit/trackback_test.rb" > "test/unit/trigger_test.rb" "test/unit/user_test.rb" > "test/unit/content_state/factory_test.rb" > Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1 > /lib/rake/rake_test_loader > Started > > ............................................................................................................................................. > Finished in 16.85309 seconds. > > 141 tests, 458 assertions, 0 failures, 0 errors > ** Invoke test:functionals (first_time) > ** Invoke db:test:prepare > ** Execute test:functionals > /usr/local/bin/ruby -Ilib:test > "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1 > /lib/rake/rake_test_loader.rb" > "test/functional/accounts_controller_test.rb" > "test/functional/articles_controller_test.rb" > "test/functional/backend_controller_test.rb" > "test/functional/redirect_controller_test.rb" > "test/functional/textfilter_controller_test.rb" > "test/functional/theme_controller_test.rb" > "test/functional/xml_controller_test.rb" > "test/functional/admin/article_preview_test.rb" > "test/functional/admin/blacklist_controller_test.rb" > "test/functional/admin/categories_controller_test.rb" > "test/functional/admin/comments_controller_test.rb" > "test/functional/admin/content_controller_test.rb" > "test/functional/admin/general_controller_test.rb" > "test/functional/admin/pages_controller_test.rb" > "test/functional/admin/resources_controller_test.rb" > "test/functional/admin/textfilters_controller_test.rb" > "test/functional/admin/themes_controller_test.rb" > "test/functional/admin/trackbacks_controller_test.rb" > "test/functional/admin/users_controller_test.rb" > Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1 > /lib/rake/rake_test_loader > Started > > .......................................................................................................E.................................................................................................... > Finished in 71.014778 seconds. > > 1) Error: > test_comment_spam_markdown_smarty(ArticlesControllerTest): > ActiveRecord::Transactions::TransactionError: Transaction aborted > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:84:in > `transaction' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:84:in > `transaction' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:118:in > `transaction' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:124:in > `replace' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/associations.rb:895:in > `notify_users=' > /Users/juan/Sites/typo/config/../app/models/article.rb:180:in > `add_notifications' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:333:in > `callback' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:330:in > `callback' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:260:in > `create_without_timestamps' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/timestamp.rb:30:in > `create' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1718:in > `create_or_update_without_callbacks' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in > `create_or_update' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1392:in > `save_without_validation' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:724:in > `save_without_transactions' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:126:in > `save' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in > `transaction' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:91:in > `transaction' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:118:in > `transaction' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:126:in > `save' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1398:in > `save_without_validation!' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:734:in > `save!' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:699:in > `create!' > ./test/functional/articles_controller_test.rb:27:in > `setup_without_fixtures' > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:548:in > `setup' > > 204 tests, 792 assertions, 0 failures, 1 errors > rake aborted! > Test failures > > /Users/juan/Sites/typo/config/../vendor/rails/railties/lib/tasks/testing.rake:35 > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke' > /usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 > /usr/local/bin/rake:18 > > > -- > ---------------------------------------------------- > http://hronia.blogalia.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060706/eeca38be/attachment.html From scott at sigkill.org Thu Jul 6 16:55:52 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 13:55:52 -0700 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <683a886f0607061346t7d6e0c2cu821dcdffb7fc65a6@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> <14b7e5ef0607061154k3ddc02b6qb72b657c435b0228@mail.gmail.com> <683a886f0607061210v613dfb1pe08c9e6bff1381e4@mail.gmail.com> <14b7e5ef0607061218o1ef89907q1bcb00501d4245c3@mail.gmail.com> <683a886f0607061324hfb13ef5u22320bead4c5c123@mail.gmail.com> <14b7e5ef0607061328m3344234ewf003d95f41eefaa4@mail.gmail.com> <683a886f0607061346t7d6e0c2cu821dcdffb7fc65a6@mail.gmail.com> Message-ID: <14b7e5ef0607061355j784899a7ke44c605a9103acb6@mail.gmail.com> Okay, thanks. I'll have to do a bit of digging to find the right way to silence Rake under Windows. Anyone know this off the top of their heads? Scott On 7/6/06, Kevin Williams <kevwil at gmail.com> wrote: > > Only the first one returned true - the others give "The system cannot > find the path specified." message. > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > Hmm. All tests passed, but the installer reported that tests > failed. Can > > you try this? > > > > cd /path/to/typo > > irb > > status = system("rake test") > > # is status == true? > > status = system("rake test > /dev/null") > > # is status == true? > > status = system("rake test > /dev/null 2> /dev/null") > > # is status == true? > > > > I suspect that the problem is the last '2> /dev/null' under Windows. > > > > > > Scott > > > > > > On 7/6/06, Kevin Williams <kevwil at gmail.com> wrote: > > > > > All tests passed. > > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > Out of curiosity, which tests failed? cd to the new Typo directory > and > > run > > > 'rake test'. It'd be nice to get all of the test failures fixed. > > > > > > > > > Scott > > > > > > > > > On 7/6/06, Kevin Williams <kevwil at gmail.com> wrote: > > > > I have rails & mongrel & sqlite3-ruby all set up on Windows, and it > > > > seems to install and run fine. There are a few "path not found" > > > > messages, and the tests claimed to have failed, but it seems to run. > > > > > > > > Scott, thanks for taking the time to work on Typo. Rails needs typo, > > > > IMHO, and I'm happy to run my blog on a Rails app rather than ... > > > > anything else. :) > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org > wrote: > > > > > The documentation is still a work in progress :-). > > > > > > > > > > You can change the port this way: > > > > > > > > > > typo stop /path/to/typo > > > > > typo config /path/to/typo port-number=9999 > > > > > typo start /path/to/typo > > > > > > > > > > The mongrel port number is picked randomly from [4000..4999]. I'd > > > rather > > > > > not use a single fixed port, because I'd like to make > > > > > multiple-typos-per-host installs easy. I'll take suggestions for > > better > > > > > algorithms if anyone has one. > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > On 7/6/06, Paul Barry <mail at paulbarry.com> wrote: > > > > > > > > > > > > I just ran gem install typo and it seemed to work. I can't test > it > > > yet > > > > > though, I think because my host blocks port 4517, which seems to > be > > the > > > port > > > > > typo choose to start mongrel on. At the end of the install, if > says > > > this: > > > > > > > > > > > > Look in installer/apache.conf.example to see how to integrate > with > > > Apache. > > > > > > > > > > > > Except there is no file called apache.conf.example in there. > > > > > > > > > > > > > > > > > > > > > > > > On 7/6/06, Scott Laird <scott at sigkill.org > wrote: > > > > > > > > > > > > > > Still? It should have been copied to all GEM mirrors by > now. It > > > worked > > > > > fine for me this morning. > > > > > > > > > > > > > > I need to figure out how to do 'gem install --verbose typo', > and I > > > need > > > > > to figure out where the 'master' gem server lives. As things > stand, > > it > > > > > takes 3+ hours from the time I upload a gem until it's usable. > > > > > > > > > > > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > > > > > > > > > > > > > I'm getting a '404 Not found' error when running 'sudo get > > imstall > > > > > > > > typo' on my Mac. > > > > > > > > > > > > > > > > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > > I released a pair of Typo 4.0 pre-release gems yesterday > to > > test > > > out > > > > > the new > > > > > > > > > Typo installer. Can I get a few people to test out the > new > > Typo > > > > > 3.99.1 gem? > > > > > > > > > Do this: > > > > > > > > > > > > > > > > > > $ gem install typo > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > ---------------------------------------------------- > > > > > > > > http://hronia.blogalia.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 > > > > > > > > > > > > > > > > > > > > > > -- > > > > Cheers, > > > > > > > > Kevin > > > > _______________________________________________ > > > > 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 > > _______________________________________________ > > > > 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 > _______________________________________________ > 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/20060706/c6089137/attachment-0001.html From kevwil at gmail.com Thu Jul 6 16:58:22 2006 From: kevwil at gmail.com (Kevin Williams) Date: Thu, 6 Jul 2006 14:58:22 -0600 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <14b7e5ef0607061348w2edfafdfyf342529870962ceb@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061340g1f340b6apacee16eef76e66d2@mail.gmail.com> <14b7e5ef0607061348w2edfafdfyf342529870962ceb@mail.gmail.com> Message-ID: <683a886f0607061358q10a94056p9578b47782198cef@mail.gmail.com> The test thing is because /dev/null doesn't exist in Windows. I get the same error if I run "echo 'hello' > /dev/null" in a command prompt window. However, if I "mkdir dev" then run the above again, it works. To Windows, /dev/null is a path with posix separators and it tries to find <current_drive>:\dev\ and write to the file "null". On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > Thanks. The absolute/relative path thing is a bug, and I'll fix it for the > next release. > > I'm not sure what's up with the test failure. I'll look into it tonight and > see what's up. > > > Scott > > > On 7/6/06, Juan Lupi?n <pantulis at gmail.com> wrote: > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > I released a pair of Typo 4.0 pre-release gems yesterday to test out the > new > > > Typo installer. Can I get a few people to test out the new Typo 3.99.1 > gem? > > > Do this: > > > > > > $ gem install typo > > > $ typo install /some/path > > > > I found that the path *must* be an absolute path. 'typo install > > ./typo' failed with chdir throwing (Errno::ENOENT) > Maybe the docs > > should state this more clearly. > > > > On the other hands, some tests failed, this is the trace: > > > > Tamarindo:~/Sites/typo juan$ rake test --trace > > (in /Users/juan/Sites/typo) > > ** Invoke test (first_time) > > ** Execute test > > ** Invoke test:units (first_time) > > ** Invoke db:test:prepare (first_time) > > ** Invoke environment (first_time) > > ** Execute environment > > ** Execute db:test:prepare > > ** Invoke db:test:clone (first_time) > > ** Invoke db:schema:dump (first_time) > > ** Invoke environment > > ** Execute db:schema:dump > > ** Execute db:test:clone > > ** Invoke db:schema:load (first_time) > > ** Invoke environment > > ** Execute db:schema:load > > ** Execute test:units > > /usr/local/bin/ruby -Ilib:test > > > "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" > > "test/unit/article_test.rb" > "test/unit/audioscrobbler_test.rb" > > "test/unit/blacklist_pattern_test.rb" > "test/unit/blog_test.rb" > > "test/unit/category_test.rb" "test/unit/comment_test.rb" > > "test/unit/configuration_test.rb" > "test/unit/delicious_test.rb" > > "test/unit/flickr_test.rb" "test/unit/fortythree_test.rb" > > "test/unit/magnolia_test.rb" > "test/unit/metafragment_test.rb" > > "test/unit/notification_mailer_test.rb" > "test/unit/observer_test.rb" > > "test/unit/page_cache_test.rb" "test/unit/page_test.rb" > > "test/unit/ping_test.rb" "test/unit/redirect_test.rb" > > "test/unit/resource_test.rb" "test/unit/sidebar_test.rb" > > "test/unit/tag_test.rb" "test/unit/text_filter_test.rb" > > "test/unit/theme_test.rb" "test/unit/trackback_test.rb" > > "test/unit/trigger_test.rb" "test/unit/user_test.rb" > > "test/unit/content_state/factory_test.rb" > > Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake- > 0.7.1/lib/rake/rake_test_loader > > Started > > > ............................................................................................................................................. > > Finished in 16.85309 seconds. > > > > 141 tests, 458 assertions, 0 failures, 0 errors > > ** Invoke test:functionals (first_time) > > ** Invoke db:test:prepare > > ** Execute test:functionals > > /usr/local/bin/ruby -Ilib:test > > "/usr/local/lib/ruby/gems/1.8/gems/rake- > 0.7.1/lib/rake/rake_test_loader.rb" > > "test/functional/accounts_controller_test.rb" > > "test/functional/articles_controller_test.rb" > > "test/functional/backend_controller_test.rb" > > "test/functional/redirect_controller_test.rb" > > "test/functional/textfilter_controller_test.rb" > > "test/functional/theme_controller_test.rb" > > "test/functional/xml_controller_test.rb" > > "test/functional/admin/article_preview_test.rb" > > "test/functional/admin/blacklist_controller_test.rb" > > "test/functional/admin/categories_controller_test.rb" > > "test/functional/admin/comments_controller_test.rb" > > "test/functional/admin/content_controller_test.rb" > > "test/functional/admin/general_controller_test.rb" > > "test/functional/admin/pages_controller_test.rb" > > "test/functional/admin/resources_controller_test.rb" > > "test/functional/admin/textfilters_controller_test.rb" > > "test/functional/admin/themes_controller_test.rb" > > "test/functional/admin/trackbacks_controller_test.rb" > > "test/functional/admin/users_controller_test.rb" > > Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake- > 0.7.1/lib/rake/rake_test_loader > > Started > > > .......................................................................................................E.................................................................................................... > > Finished in 71.014778 seconds. > > > > 1) Error: > > > test_comment_spam_markdown_smarty(ArticlesControllerTest): > > ActiveRecord::Transactions::TransactionError: Transaction > aborted > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:84:in > > `transaction' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:84:in > > `transaction' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:118:in > > `transaction' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:124:in > > `replace' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/associations.rb:895:in > > `notify_users=' > > > /Users/juan/Sites/typo/config/../app/models/article.rb:180:in > > `add_notifications' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:333:in > > `callback' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:330:in > > `callback' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:260:in > > `create_without_timestamps' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/timestamp.rb:30:in > > `create' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1718:in > > `create_or_update_without_callbacks' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in > > `create_or_update' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1392:in > > `save_without_validation' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:724:in > > `save_without_transactions' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:126:in > > `save' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in > > `transaction' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:91:in > > `transaction' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:118:in > > `transaction' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:126:in > > `save' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1398:in > > `save_without_validation!' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:734:in > > `save!' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:699:in > > `create!' > > ./test/functional/articles_controller_test.rb:27:in > `setup_without_fixtures' > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:548:in > > `setup' > > > > 204 tests, 792 assertions, 0 failures, 1 errors > > rake aborted! > > Test failures > > > /Users/juan/Sites/typo/config/../vendor/rails/railties/lib/tasks/testing.rake:35 > > /usr/local/lib/ruby/gems/1.8/gems/rake- > 0.7.1/lib/rake.rb:387:in `execute' > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in > `execute' > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in > `invoke' > > /usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in > `invoke' > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in > `run' > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 > > /usr/local/bin/rake:18 > > > > > > -- > > ---------------------------------------------------- > > http://hronia.blogalia.com > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > -- Cheers, Kevin From scott at sigkill.org Thu Jul 6 17:01:43 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 14:01:43 -0700 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <683a886f0607061358q10a94056p9578b47782198cef@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061340g1f340b6apacee16eef76e66d2@mail.gmail.com> <14b7e5ef0607061348w2edfafdfyf342529870962ceb@mail.gmail.com> <683a886f0607061358q10a94056p9578b47782198cef@mail.gmail.com> Message-ID: <14b7e5ef0607061401k3bfadce4o610f59250037ffc7@mail.gmail.com> Interesting. I seem to remember something about DOS having a special-case handler for /dev/null (or was it /dev/nul -- it was DOS). It looks like I'm going to have to find (or write) a system() wrapper that knows about Windows. Does this work: system('rake test > nul:') how about adding 2> nul: ? Scott On 7/6/06, Kevin Williams <kevwil at gmail.com> wrote: > > The test thing is because /dev/null doesn't exist in Windows. I get > the same error if I run "echo 'hello' > /dev/null" in a command prompt > window. > > However, if I "mkdir dev" then run the above again, it works. To > Windows, /dev/null is a path with posix separators and it tries to > find <current_drive>:\dev\ and write to the file "null". > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > Thanks. The absolute/relative path thing is a bug, and I'll fix it for > the > > next release. > > > > I'm not sure what's up with the test failure. I'll look into it tonight > and > > see what's up. > > > > > > Scott > > > > > > On 7/6/06, Juan Lupi?n <pantulis at gmail.com> wrote: > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > I released a pair of Typo 4.0 pre-release gems yesterday to test out > the > > new > > > > Typo installer. Can I get a few people to test out the new Typo > 3.99.1 > > gem? > > > > Do this: > > > > > > > > $ gem install typo > > > > $ typo install /some/path > > > > > > I found that the path *must* be an absolute path. 'typo install > > > ./typo' failed with chdir throwing (Errno::ENOENT) > > Maybe the docs > > > should state this more clearly. > > > > > > On the other hands, some tests failed, this is the trace: > > > > > > Tamarindo:~/Sites/typo juan$ rake test --trace > > > (in /Users/juan/Sites/typo) > > > ** Invoke test (first_time) > > > ** Execute test > > > ** Invoke test:units (first_time) > > > ** Invoke db:test:prepare (first_time) > > > ** Invoke environment (first_time) > > > ** Execute environment > > > ** Execute db:test:prepare > > > ** Invoke db:test:clone (first_time) > > > ** Invoke db:schema:dump (first_time) > > > ** Invoke environment > > > ** Execute db:schema:dump > > > ** Execute db:test:clone > > > ** Invoke db:schema:load (first_time) > > > ** Invoke environment > > > ** Execute db:schema:load > > > ** Execute test:units > > > /usr/local/bin/ruby -Ilib:test > > > > > "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1 > /lib/rake/rake_test_loader.rb" > > > "test/unit/article_test.rb" > > "test/unit/audioscrobbler_test.rb" > > > "test/unit/blacklist_pattern_test.rb" > > "test/unit/blog_test.rb" > > > "test/unit/category_test.rb" "test/unit/comment_test.rb" > > > "test/unit/configuration_test.rb" > > "test/unit/delicious_test.rb" > > > "test/unit/flickr_test.rb" "test/unit/fortythree_test.rb" > > > "test/unit/magnolia_test.rb" > > "test/unit/metafragment_test.rb" > > > "test/unit/notification_mailer_test.rb" > > "test/unit/observer_test.rb" > > > "test/unit/page_cache_test.rb" "test/unit/page_test.rb" > > > "test/unit/ping_test.rb" "test/unit/redirect_test.rb" > > > "test/unit/resource_test.rb" "test/unit/sidebar_test.rb" > > > "test/unit/tag_test.rb" "test/unit/text_filter_test.rb" > > > "test/unit/theme_test.rb" "test/unit/trackback_test.rb" > > > "test/unit/trigger_test.rb" "test/unit/user_test.rb" > > > "test/unit/content_state/factory_test.rb" > > > Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake- > > 0.7.1/lib/rake/rake_test_loader > > > Started > > > > > > ............................................................................................................................................. > > > Finished in 16.85309 seconds. > > > > > > 141 tests, 458 assertions, 0 failures, 0 errors > > > ** Invoke test:functionals (first_time) > > > ** Invoke db:test:prepare > > > ** Execute test:functionals > > > /usr/local/bin/ruby -Ilib:test > > > "/usr/local/lib/ruby/gems/1.8/gems/rake- > > 0.7.1/lib/rake/rake_test_loader.rb" > > > "test/functional/accounts_controller_test.rb" > > > "test/functional/articles_controller_test.rb" > > > "test/functional/backend_controller_test.rb" > > > "test/functional/redirect_controller_test.rb" > > > "test/functional/textfilter_controller_test.rb" > > > "test/functional/theme_controller_test.rb" > > > "test/functional/xml_controller_test.rb" > > > "test/functional/admin/article_preview_test.rb" > > > "test/functional/admin/blacklist_controller_test.rb" > > > "test/functional/admin/categories_controller_test.rb" > > > "test/functional/admin/comments_controller_test.rb" > > > "test/functional/admin/content_controller_test.rb" > > > "test/functional/admin/general_controller_test.rb" > > > "test/functional/admin/pages_controller_test.rb" > > > "test/functional/admin/resources_controller_test.rb" > > > "test/functional/admin/textfilters_controller_test.rb" > > > "test/functional/admin/themes_controller_test.rb" > > > "test/functional/admin/trackbacks_controller_test.rb" > > > "test/functional/admin/users_controller_test.rb" > > > Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake- > > 0.7.1/lib/rake/rake_test_loader > > > Started > > > > > > .......................................................................................................E.................................................................................................... > > > Finished in 71.014778 seconds. > > > > > > 1) Error: > > > > > test_comment_spam_markdown_smarty(ArticlesControllerTest): > > > ActiveRecord::Transactions::TransactionError: Transaction > > aborted > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:84:in > > > `transaction' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:84:in > > > `transaction' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:118:in > > > `transaction' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:124:in > > > `replace' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/associations.rb:895:in > > > `notify_users=' > > > > > /Users/juan/Sites/typo/config/../app/models/article.rb:180:in > > > `add_notifications' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:333:in > > > `callback' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:330:in > > > `callback' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:260:in > > > `create_without_timestamps' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/timestamp.rb:30:in > > > `create' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1718:in > > > `create_or_update_without_callbacks' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in > > > `create_or_update' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1392:in > > > `save_without_validation' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:724:in > > > `save_without_transactions' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:126:in > > > `save' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in > > > `transaction' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:91:in > > > `transaction' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:118:in > > > `transaction' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:126:in > > > `save' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1398:in > > > `save_without_validation!' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:734:in > > > `save!' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:699:in > > > `create!' > > > ./test/functional/articles_controller_test.rb:27:in > > `setup_without_fixtures' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:548:in > > > `setup' > > > > > > 204 tests, 792 assertions, 0 failures, 1 errors > > > rake aborted! > > > Test failures > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/railties/lib/tasks/testing.rake:35 > > > /usr/local/lib/ruby/gems/1.8/gems/rake- > > 0.7.1/lib/rake.rb:387:in `execute' > > > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in > > `execute' > > > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in > > `invoke' > > > /usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' > > > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in > > `invoke' > > > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in > > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 > > > /usr/local/bin/rake:18 > > > > > > > > > -- > > > ---------------------------------------------------- > > > http://hronia.blogalia.com > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > -- > Cheers, > > Kevin > _______________________________________________ > 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/20060706/de4c0732/attachment-0001.html From scott at sigkill.org Thu Jul 6 17:25:11 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 14:25:11 -0700 Subject: [typo] Themes Message-ID: <14b7e5ef0607061425q7d992dc5x6d8badb71cf55f1a@mail.gmail.com> During the theme contest, I offered to add one or two of the winning themes to Typo 4.0. Since we're about a week away from 4.0 right now, it's time to decide what we're going to add. I really don't want to add more then a couple extra themes; post 4.0 we'll look at ways to package new themes (and sidebars and text filters) to make them easier to install, so I don't want to bloat the tree with dozens of themes. On the other hand, it'd be nice to have more then just Azure available, even if it's just to remind developers that we can't assume that Azure is the only theme around. So, I'd like to get a bit of feedback from people. Is this a good idea at all? If so, which theme(s) should we add? These are probably my three favorite Typo themes (although the list changes from week to week): Origami: http://typo.leevigraham.com/ Lush: http://typogarden.com/articles/2005/11/28/lush-theme Brighthouse: http://www.height1percent.com/pages/brighthouse/ I'm not sure if the authors of all three themes would even consent to having them bundled with Typo, and I'd rather not include any theme that requires *too* many graphics files--our .gem is around 600k right now, and I don't want to add a couple MB of images to it if I can avoid it. If we can come to some sort of consensus here, then I'll go ahead and talk to the authors and see what we can add. Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060706/888e7b32/attachment.html From jake at whoisjake.com Thu Jul 6 17:32:25 2006 From: jake at whoisjake.com (Jake Good) Date: Thu, 06 Jul 2006 16:32:25 -0500 Subject: [typo] Themes In-Reply-To: <14b7e5ef0607061425q7d992dc5x6d8badb71cf55f1a@mail.gmail.com> References: <14b7e5ef0607061425q7d992dc5x6d8badb71cf55f1a@mail.gmail.com> Message-ID: <44AD8169.4000603@whoisjake.com> All three of those themes rock. I personally use a slightly modified Brighthouse on my site (http://www.thoughtstoblog.com) Jake Scott Laird wrote: > During the theme contest, I offered to add one or two of the winning > themes to Typo 4.0. Since we're about a week away from 4.0 right now, > it's time to decide what we're going to add. I really don't want to > add more then a couple extra themes; post 4.0 we'll look at ways to > package new themes (and sidebars and text filters) to make them easier > to install, so I don't want to bloat the tree with dozens of themes. > On the other hand, it'd be nice to have more then just Azure > available, even if it's just to remind developers that we can't assume > that Azure is the only theme around. > > So, I'd like to get a bit of feedback from people. Is this a good > idea at all? If so, which theme(s) should we add? > > These are probably my three favorite Typo themes (although the list > changes from week to week): > > Origami: http://typo.leevigraham.com/ > Lush: http://typogarden.com/articles/2005/11/28/lush-theme > Brighthouse: http://www.height1percent.com/pages/brighthouse/ > > I'm not sure if the authors of all three themes would even consent to > having them bundled with Typo, and I'd rather not include any theme > that requires *too* many graphics files--our .gem is around 600k right > now, and I don't want to add a couple MB of images to it if I can > avoid it. > > If we can come to some sort of consensus here, then I'll go ahead and > talk to the authors and see what we can add. > > > Scott > ------------------------------------------------------------------------ > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From josh at hasmanythrough.com Thu Jul 6 17:39:38 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Thu, 6 Jul 2006 14:39:38 -0700 Subject: [typo] Themes In-Reply-To: <14b7e5ef0607061425q7d992dc5x6d8badb71cf55f1a@mail.gmail.com> References: <14b7e5ef0607061425q7d992dc5x6d8badb71cf55f1a@mail.gmail.com> Message-ID: <D5A83D35-E061-4A02-AE92-8BC5DDE70392@hasmanythrough.com> On Jul 6, 2006, at 2:25 PM, Scott Laird wrote: > So, I'd like to get a bit of feedback from people. Is this a good > idea at all? If so, which theme(s) should we add? > > These are probably my three favorite Typo themes (although the list > changes from week to week): > > Origami: http://typo.leevigraham.com/ > Lush: http://typogarden.com/articles/2005/11/28/lush-theme > Brighthouse: http://www.height1percent.com/pages/brighthouse/ Those are all very pretty, but I'd vote against having all the themes be as ornate as Origami or Lush. I use a slight mod of Scribbish (I switched from Lush and couldn't be happier), and it's a great clean design for a blog where you don't want to have a zillion images downloaded with every page view. http://quotedprintable.com/pages/scribbish -- Josh Susser http://blog.hasmanythrough.com From scott at sigkill.org Thu Jul 6 17:49:23 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 14:49:23 -0700 Subject: [typo] Themes In-Reply-To: <D5A83D35-E061-4A02-AE92-8BC5DDE70392@hasmanythrough.com> References: <14b7e5ef0607061425q7d992dc5x6d8badb71cf55f1a@mail.gmail.com> <D5A83D35-E061-4A02-AE92-8BC5DDE70392@hasmanythrough.com> Message-ID: <14b7e5ef0607061449h5fd26bb5gc314d4b09e327231@mail.gmail.com> Ah, that's the other one I was looking for. It's not all that exciting visually, but it's clean. Okay, so let's call it 4 candidates now :-). Scott On 7/6/06, Josh Susser <josh at hasmanythrough.com> wrote: > > > On Jul 6, 2006, at 2:25 PM, Scott Laird wrote: > > So, I'd like to get a bit of feedback from people. Is this a good > > idea at all? If so, which theme(s) should we add? > > > > These are probably my three favorite Typo themes (although the list > > changes from week to week): > > > > Origami: http://typo.leevigraham.com/ > > Lush: http://typogarden.com/articles/2005/11/28/lush-theme > > Brighthouse: http://www.height1percent.com/pages/brighthouse/ > > Those are all very pretty, but I'd vote against having all the themes > be as ornate as Origami or Lush. I use a slight mod of Scribbish (I > switched from Lush and couldn't be happier), and it's a great clean > design for a blog where you don't want to have a zillion images > downloaded with every page view. > > http://quotedprintable.com/pages/scribbish > > -- > Josh Susser > http://blog.hasmanythrough.com > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060706/6db4b03c/attachment.html From pantulis at gmail.com Thu Jul 6 18:00:49 2006 From: pantulis at gmail.com (=?ISO-8859-1?Q?Juan_Lupi=F3n?=) Date: Fri, 7 Jul 2006 00:00:49 +0200 Subject: [typo] Themes In-Reply-To: <14b7e5ef0607061449h5fd26bb5gc314d4b09e327231@mail.gmail.com> References: <14b7e5ef0607061425q7d992dc5x6d8badb71cf55f1a@mail.gmail.com> <D5A83D35-E061-4A02-AE92-8BC5DDE70392@hasmanythrough.com> <14b7e5ef0607061449h5fd26bb5gc314d4b09e327231@mail.gmail.com> Message-ID: <d1bd39e90607061500l239b21c4lb53d126d89c1cb45@mail.gmail.com> On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > Ah, that's the other one I was looking for. It's not all that exciting > visually, but it's clean. Okay, so let's call it 4 candidates now :-). Another vote for Scribbish. -- ---------------------------------------------------- http://sobrerailes.com From kevwil at gmail.com Thu Jul 6 18:18:35 2006 From: kevwil at gmail.com (Kevin Williams) Date: Thu, 6 Jul 2006 16:18:35 -0600 Subject: [typo] Themes In-Reply-To: <d1bd39e90607061500l239b21c4lb53d126d89c1cb45@mail.gmail.com> References: <14b7e5ef0607061425q7d992dc5x6d8badb71cf55f1a@mail.gmail.com> <D5A83D35-E061-4A02-AE92-8BC5DDE70392@hasmanythrough.com> <14b7e5ef0607061449h5fd26bb5gc314d4b09e327231@mail.gmail.com> <d1bd39e90607061500l239b21c4lb53d126d89c1cb45@mail.gmail.com> Message-ID: <683a886f0607061518g6abaa96fndad7422ee214e8d1@mail.gmail.com> I've tried all those listed - I use Scribbish on my blog. I found Origami much too rich and slow. http://www.almostserio.us/ On 7/6/06, Juan Lupi?n <pantulis at gmail.com> wrote: > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > Ah, that's the other one I was looking for. It's not all that exciting > > visually, but it's clean. Okay, so let's call it 4 candidates now :-). > > Another vote for Scribbish. > > -- > ---------------------------------------------------- > http://sobrerailes.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Cheers, Kevin From mattrose at folkwolf.net Thu Jul 6 20:36:12 2006 From: mattrose at folkwolf.net (Matt Rose) Date: Thu, 6 Jul 2006 20:36:12 -0400 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> Message-ID: <B1CCEB2B-E0C5-4787-9A90-197DFF2A11A2@folkwolf.net> Thanks so much for all the time you've put into this. I appreciate it more than I can say. The install went flawlessly. I've found some problems with the release, should I file them against the release, or against trunk. Matt On 6-Jul-06, at 9:15 AM, Scott Laird wrote: > I released a pair of Typo 4.0 pre-release gems yesterday to test > out the new Typo installer. Can I get a few people to test out the > new Typo 3.99.1 gem? Do this: > > $ gem install typo > $ typo install /some/path > > This should create a working Typo install in /some/path. The > installer uses SQLite and Mongrel to produce a self-contained Typo > setup. The next version will include directions for setting up > HTTP proxying through Apache and Lighttpd; for now you can either > do that yourself or just use Mongrel directly from your browser. > > There are still a handful of things to fix before Typo 4.0 is > officially released, but we're getting really close now. The big > things left are: > > 1. Installer: write proxying directions for common web servers. > 2. Installer: document usage > 3. Installer: minor code cleanup > 4. Typo: one last sweep through Trac. > 5. Typo: write a "what's new in 4.0" document. > > > Scott > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From scott at sigkill.org Thu Jul 6 20:40:44 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 17:40:44 -0700 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <B1CCEB2B-E0C5-4787-9A90-197DFF2A11A2@folkwolf.net> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <B1CCEB2B-E0C5-4787-9A90-197DFF2A11A2@folkwolf.net> Message-ID: <14b7e5ef0607061740v23507bcbu83aa071941c4c8fd@mail.gmail.com> File them against the trunk for now. I'll recategorize as needed :-). Scott On 7/6/06, Matt Rose <mattrose at folkwolf.net> wrote: > > Thanks so much for all the time you've put into this. I appreciate > it more than I can say. > > The install went flawlessly. > > I've found some problems with the release, should I file them against > the release, or against trunk. > > Matt > > > On 6-Jul-06, at 9:15 AM, Scott Laird wrote: > > > I released a pair of Typo 4.0 pre-release gems yesterday to test > > out the new Typo installer. Can I get a few people to test out the > > new Typo 3.99.1 gem? Do this: > > > > $ gem install typo > > $ typo install /some/path > > > > This should create a working Typo install in /some/path. The > > installer uses SQLite and Mongrel to produce a self-contained Typo > > setup. The next version will include directions for setting up > > HTTP proxying through Apache and Lighttpd; for now you can either > > do that yourself or just use Mongrel directly from your browser. > > > > There are still a handful of things to fix before Typo 4.0 is > > officially released, but we're getting really close now. The big > > things left are: > > > > 1. Installer: write proxying directions for common web servers. > > 2. Installer: document usage > > 3. Installer: minor code cleanup > > 4. Typo: one last sweep through Trac. > > 5. Typo: write a "what's new in 4.0" document. > > > > > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060706/41a70bce/attachment-0001.html From mattrose at folkwolf.net Thu Jul 6 20:46:43 2006 From: mattrose at folkwolf.net (Matt Rose) Date: Thu, 6 Jul 2006 20:46:43 -0400 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <B1CCEB2B-E0C5-4787-9A90-197DFF2A11A2@folkwolf.net> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <B1CCEB2B-E0C5-4787-9A90-197DFF2A11A2@folkwolf.net> Message-ID: <DD877439-2254-441D-A92C-322E959CB52F@folkwolf.net> never mind. I was trying to add an article before I saved the config Matt On 6-Jul-06, at 8:36 PM, Matt Rose wrote: > Thanks so much for all the time you've put into this. I appreciate > it more than I can say. > > The install went flawlessly. > > I've found some problems with the release, should I file them against > the release, or against trunk. > > Matt > > > On 6-Jul-06, at 9:15 AM, Scott Laird wrote: > >> I released a pair of Typo 4.0 pre-release gems yesterday to test >> out the new Typo installer. Can I get a few people to test out the >> new Typo 3.99.1 gem? Do this: >> >> $ gem install typo >> $ typo install /some/path >> >> This should create a working Typo install in /some/path. The >> installer uses SQLite and Mongrel to produce a self-contained Typo >> setup. The next version will include directions for setting up >> HTTP proxying through Apache and Lighttpd; for now you can either >> do that yourself or just use Mongrel directly from your browser. >> >> There are still a handful of things to fix before Typo 4.0 is >> officially released, but we're getting really close now. The big >> things left are: >> >> 1. Installer: write proxying directions for common web servers. >> 2. Installer: document usage >> 3. Installer: minor code cleanup >> 4. Typo: one last sweep through Trac. >> 5. Typo: write a "what's new in 4.0" document. >> >> >> 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 scott at sigkill.org Thu Jul 6 20:50:10 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 17:50:10 -0700 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <DD877439-2254-441D-A92C-322E959CB52F@folkwolf.net> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <B1CCEB2B-E0C5-4787-9A90-197DFF2A11A2@folkwolf.net> <DD877439-2254-441D-A92C-322E959CB52F@folkwolf.net> Message-ID: <14b7e5ef0607061750g35114a90uc991a79c04c667b8@mail.gmail.com> That's still sort of a bug, but it'll have to wait until after 4.0.0 :-). Scott On 7/6/06, Matt Rose <mattrose at folkwolf.net> wrote: > > > never mind. I was trying to add an article before I saved the config > > Matt > > On 6-Jul-06, at 8:36 PM, Matt Rose wrote: > > > Thanks so much for all the time you've put into this. I appreciate > > it more than I can say. > > > > The install went flawlessly. > > > > I've found some problems with the release, should I file them against > > the release, or against trunk. > > > > Matt > > > > > > On 6-Jul-06, at 9:15 AM, Scott Laird wrote: > > > >> I released a pair of Typo 4.0 pre-release gems yesterday to test > >> out the new Typo installer. Can I get a few people to test out the > >> new Typo 3.99.1 gem? Do this: > >> > >> $ gem install typo > >> $ typo install /some/path > >> > >> This should create a working Typo install in /some/path. The > >> installer uses SQLite and Mongrel to produce a self-contained Typo > >> setup. The next version will include directions for setting up > >> HTTP proxying through Apache and Lighttpd; for now you can either > >> do that yourself or just use Mongrel directly from your browser. > >> > >> There are still a handful of things to fix before Typo 4.0 is > >> officially released, but we're getting really close now. The big > >> things left are: > >> > >> 1. Installer: write proxying directions for common web servers. > >> 2. Installer: document usage > >> 3. Installer: minor code cleanup > >> 4. Typo: one last sweep through Trac. > >> 5. Typo: write a "what's new in 4.0" document. > >> > >> > >> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060706/36a76afb/attachment.html From steve.longdo at gmail.com Thu Jul 6 22:06:13 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Thu, 6 Jul 2006 21:06:13 -0500 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <14b7e5ef0607061750g35114a90uc991a79c04c667b8@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <B1CCEB2B-E0C5-4787-9A90-197DFF2A11A2@folkwolf.net> <DD877439-2254-441D-A92C-322E959CB52F@folkwolf.net> <14b7e5ef0607061750g35114a90uc991a79c04c667b8@mail.gmail.com> Message-ID: <cc4e85f30607061906x5aa12e23y2ae4fee917a06cbf@mail.gmail.com> I would join Matt and probably everyone else who follows Typo and the mailing list in congratulating you for your hard work, Scott. You are saving the entire Typo-sphere! On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > That's still sort of a bug, but it'll have to wait until after 4.0.0 :-). > > > Scott > > On 7/6/06, Matt Rose < mattrose at folkwolf.net> wrote: > > > > > never mind. I was trying to add an article before I saved the config > > > > Matt > > > > On 6-Jul-06, at 8:36 PM, Matt Rose wrote: > > > > > Thanks so much for all the time you've put into this. I appreciate > > > it more than I can say. > > > > > > The install went flawlessly. > > > > > > I've found some problems with the release, should I file them against > > > the release, or against trunk. > > > > > > Matt > > > > > > > > > On 6-Jul-06, at 9:15 AM, Scott Laird wrote: > > > > > >> I released a pair of Typo 4.0 pre-release gems yesterday to test > > >> out the new Typo installer. Can I get a few people to test out the > > >> new Typo 3.99.1 gem? Do this: > > >> > > >> $ gem install typo > > >> $ typo install /some/path > > >> > > >> This should create a working Typo install in /some/path. The > > >> installer uses SQLite and Mongrel to produce a self-contained Typo > > >> setup. The next version will include directions for setting up > > >> HTTP proxying through Apache and Lighttpd; for now you can either > > >> do that yourself or just use Mongrel directly from your browser. > > >> > > >> There are still a handful of things to fix before Typo 4.0 is > > >> officially released, but we're getting really close now. The big > > >> things left are: > > >> > > >> 1. Installer: write proxying directions for common web servers. > > >> 2. Installer: document usage > > >> 3. Installer: minor code cleanup > > >> 4. Typo: one last sweep through Trac. > > >> 5. Typo: write a "what's new in 4.0" document. > > >> > > >> > > >> 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 > > > > > _______________________________________________ > 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/20060706/98006bfc/attachment.html From kevwil at gmail.com Thu Jul 6 23:36:29 2006 From: kevwil at gmail.com (Kevin Williams) Date: Thu, 6 Jul 2006 21:36:29 -0600 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <14b7e5ef0607061401k3bfadce4o610f59250037ffc7@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061340g1f340b6apacee16eef76e66d2@mail.gmail.com> <14b7e5ef0607061348w2edfafdfyf342529870962ceb@mail.gmail.com> <683a886f0607061358q10a94056p9578b47782198cef@mail.gmail.com> <14b7e5ef0607061401k3bfadce4o610f59250037ffc7@mail.gmail.com> Message-ID: <683a886f0607062036m466860e3u80d108fd4580e641@mail.gmail.com> irb(main):001:0> system("rake test >nul: 2>nul:") => true That worked on XP SP2 just a second ago. Earlier today I was on 2003 server. On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > Interesting. I seem to remember something about DOS having a special-case > handler for /dev/null (or was it /dev/nul -- it was DOS). > > It looks like I'm going to have to find (or write) a system() wrapper that > knows about Windows. Does this work: > > system('rake test > nul:') > > how about adding 2> nul: ? > > > Scott > > > On 7/6/06, Kevin Williams < kevwil at gmail.com> wrote: > > > The test thing is because /dev/null doesn't exist in Windows. I get > the same error if I run "echo 'hello' > /dev/null" in a command prompt > window. > > However, if I "mkdir dev" then run the above again, it works. To > Windows, /dev/null is a path with posix separators and it tries to > find <current_drive>:\dev\ and write to the file "null". > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > Thanks. The absolute/relative path thing is a bug, and I'll fix it for > the > > next release. > > > > I'm not sure what's up with the test failure. I'll look into it tonight > and > > see what's up. > > > > > > Scott > > > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > I released a pair of Typo 4.0 pre-release gems yesterday to test out > the > > new > > > > Typo installer. Can I get a few people to test out the new Typo > 3.99.1 > > gem? > > > > Do this: > > > > > > > > $ gem install typo > > > > $ typo install /some/path > > > > > > I found that the path *must* be an absolute path. 'typo install > > > ./typo' failed with chdir throwing (Errno::ENOENT) > > Maybe the docs > > > should state this more clearly. > > > > > > On the other hands, some tests failed, this is the trace: > > > > > > Tamarindo:~/Sites/typo juan$ rake test --trace > > > (in /Users/juan/Sites/typo) > > > ** Invoke test (first_time) > > > ** Execute test > > > ** Invoke test:units (first_time) > > > ** Invoke db:test:prepare (first_time) > > > ** Invoke environment (first_time) > > > ** Execute environment > > > ** Execute db:test:prepare > > > ** Invoke db:test:clone (first_time) > > > ** Invoke db:schema:dump (first_time) > > > ** Invoke environment > > > ** Execute db:schema:dump > > > ** Execute db:test:clone > > > ** Invoke db:schema:load (first_time) > > > ** Invoke environment > > > ** Execute db:schema:load > > > ** Execute test:units > > > /usr/local/bin/ruby -Ilib:test > > > > > > "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" > > > "test/unit/article_test.rb" > > "test/unit/audioscrobbler_test.rb" > > > "test/unit/blacklist_pattern_test.rb" > > "test/unit/blog_test.rb" > > > "test/unit/category_test.rb" "test/unit/comment_test.rb" > > > "test/unit/configuration_test.rb" > > "test/unit/delicious_test.rb" > > > "test/unit/flickr_test.rb" "test/unit/fortythree_test.rb" > > > "test/unit/magnolia_test.rb" > > "test/unit/metafragment_test.rb" > > > "test/unit/notification_mailer_test.rb" > > "test/unit/observer_test.rb" > > > "test/unit/page_cache_test.rb" "test/unit/page_test.rb" > > > "test/unit/ping_test.rb" "test/unit/redirect_test.rb" > > > "test/unit/resource_test.rb" "test/unit/sidebar_test.rb" > > > "test/unit/tag_test.rb" "test/unit/text_filter_test.rb" > > > "test/unit/theme_test.rb" "test/unit/trackback_test.rb" > > > "test/unit/trigger_test.rb" "test/unit/user_test.rb" > > > "test/unit/content_state/factory_test.rb" > > > Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake- > > 0.7.1/lib/rake/rake_test_loader > > > Started > > > > > > ............................................................................................................................................. > > > Finished in 16.85309 seconds. > > > > > > 141 tests, 458 assertions, 0 failures, 0 errors > > > ** Invoke test:functionals (first_time) > > > ** Invoke db:test:prepare > > > ** Execute test:functionals > > > /usr/local/bin/ruby -Ilib:test > > > "/usr/local/lib/ruby/gems/1.8/gems/rake- > > 0.7.1/lib/rake/rake_test_loader.rb" > > > "test/functional/accounts_controller_test.rb" > > > "test/functional/articles_controller_test.rb" > > > "test/functional/backend_controller_test.rb" > > > "test/functional/redirect_controller_test.rb" > > > "test/functional/textfilter_controller_test.rb" > > > "test/functional/theme_controller_test.rb" > > > "test/functional/xml_controller_test.rb" > > > "test/functional/admin/article_preview_test.rb" > > > "test/functional/admin/blacklist_controller_test.rb" > > > "test/functional/admin/categories_controller_test.rb" > > > "test/functional/admin/comments_controller_test.rb" > > > "test/functional/admin/content_controller_test.rb" > > > "test/functional/admin/general_controller_test.rb" > > > "test/functional/admin/pages_controller_test.rb" > > > "test/functional/admin/resources_controller_test.rb" > > > "test/functional/admin/textfilters_controller_test.rb" > > > "test/functional/admin/themes_controller_test.rb" > > > "test/functional/admin/trackbacks_controller_test.rb" > > > "test/functional/admin/users_controller_test.rb" > > > Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake- > > 0.7.1/lib/rake/rake_test_loader > > > Started > > > > > > .......................................................................................................E.................................................................................................... > > > Finished in 71.014778 seconds. > > > > > > 1) Error: > > > > > > test_comment_spam_markdown_smarty(ArticlesControllerTest): > > > ActiveRecord::Transactions::TransactionError: > Transaction > > aborted > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:84:in > > > `transaction' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:84:in > > > `transaction' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:118:in > > > `transaction' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:124:in > > > `replace' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/associations.rb:895:in > > > `notify_users=' > > > > > > /Users/juan/Sites/typo/config/../app/models/article.rb:180:in > > > `add_notifications' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:333:in > > > `callback' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:330:in > > > `callback' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:260:in > > > `create_without_timestamps' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/timestamp.rb:30:in > > > `create' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1718:in > > > `create_or_update_without_callbacks' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in > > > `create_or_update' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1392:in > > > `save_without_validation' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:724:in > > > `save_without_transactions' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:126:in > > > `save' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in > > > `transaction' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:91:in > > > `transaction' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:118:in > > > `transaction' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:126:in > > > `save' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1398:in > > > `save_without_validation!' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:734:in > > > `save!' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:699:in > > > `create!' > > > ./test/functional/articles_controller_test.rb:27:in > > `setup_without_fixtures' > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:548:in > > > `setup' > > > > > > 204 tests, 792 assertions, 0 failures, 1 errors > > > rake aborted! > > > Test failures > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/railties/lib/tasks/testing.rake:35 > > > /usr/local/lib/ruby/gems/1.8/gems/rake- > > 0.7.1/lib/rake.rb:387:in `execute' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in > > `execute' > > > > > /usr/local/lib/ruby/gems/1.8/gems/rake- > 0.7.1/lib/rake.rb:357:in > > `invoke' > > > /usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in > > `invoke' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in > > `run' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in > > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/rake- > 0.7.1/bin/rake:7 > > > /usr/local/bin/rake:18 > > > > > > > > > -- > > > ---------------------------------------------------- > > > http://hronia.blogalia.com > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > -- > Cheers, > > Kevin > _______________________________________________ > > 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 From dlandrith at mac.com Thu Jul 6 23:51:13 2006 From: dlandrith at mac.com (David King Landrith) Date: Thu, 6 Jul 2006 23:51:13 -0400 Subject: [typo] feedback on some new features I'm working on Message-ID: <D5D83898-5397-47FA-9FC1-6CBC0EC07D1E@mac.com> Hi guys, I'm starting a new blog, and since I've been using Ruby at my work for 4 years, and since I want to grow familiar with rails, I've decided to use typo. I've run a medium traffic, group blog using wordpress before, and I actually designed the prototype theme my new blog in wordpress, which I'm now in the process of converting to typo. The wordpress/apache version is here: http:// www.mormonmentality.org u/p previewer. The typo/lighttpd version is still a work in progress (I hope to have it mostly wrapped up this weekend), and it is at http://beta.mormonmentality.org u/p betauser . So far, I think typo is pretty slick. I'm interested in contributing, and I see that the 4.0 release is nearing completion. I take it that this means that the time is nearing on deciding new features for the post-4.0 release. There are a couple of things that I intend to add to my version in the next week or two: 1. introduce user privilege levels and user types. My blog is going to be a large group blog, and I will need this sooner rather than later. (This is the one gap between typo and wordpress that is an absolute obstacle to long term deployment.) I have a few things already in mind here. I can go into it in some detail if you all are ready for a proposal. 2. ability to have a right sidebar and a left sidebar (most blogs, in my opinion, have lines of text that are too long, and therefore too hard on the eyes). I'll probably start out with a hack of some sort and try to work it in more gracefully as I get a better handle on how the sidebar works.) 3. separating out some parts of the contents table for article and comment specific data. In my opinion, there seem to be too many single use fields to justify a single table for the whole set. A fourth item that I have already implemented is an increase in the number of indices in the tables to make sure that common joins are correctly optimized. A fifth item that I have already implemented is a short_title field for the contents table, along with a one line change to the appropriate admin page. The sql to change this is as follows: alter table contents add column short_title varchar(60) default NULL after title; the changes to the admin page at app/views/admin/content/_form.rhtml involve inserting the following 4 lines at line 8: 8 <p> 9 <label for="article_short_title">Short Title:</label><br /> 10 <%= text_field 'article', 'short_title' %> 11 </p> This allows for a short version of the title to be specified for places where an abbreviation is appropriate. This is especially advantageous for elements in the sidebar which may want a meaningful abridgment of the name due to space constraints. Specifically, I have a latest_comments plugin that uses it that has the following controller: class Plugins::Sidebars::LatestCommentsController < Sidebars::ComponentPlugin setting :title, "Latest Comments", :label => "Title" setting :count, 20, :label => "Number of Comments" setting :show_comment_author, true, :label => "Show Comment Author", :input_type => :checkbox setting :show_article_title, true, :label => "Show Article Title", :input_type => :checkbox # not used yet # setting :link_to_more, true, :label => "Link to More Comments (requires comments page)", :input_type => :checkbox def self.display_name "Latest Comments" end def self.description "Links to the latest comments" end def content begin @articles = Article.find( :all, :select => "contents.*, comments.author AS comment_author, comments.id AS comment_id", :joins => 'LEFT JOIN contents AS comments ON comments.article_id = contents.id', :conditions => 'comments.type = "Comment"', :order => "comments.created_at DESC", :limit => @sb_config['count']) rescue Exception => e logger.info e nil end end end (This is my first typo sidebar thing, so excuse any egregious errors or omissions) Then it has a default display that looks like this: <h3><%=h title %></h3> <% if @articles.empty? -%> <ul id="latest_comments"> <li>No Comments</li> </ul> <% else %> <ul id="latest_comments"> <li>Last: <%= # I realize that this is a pretty cloogey way # to do the date, but I'm not great with the # rails date thingies yet d = @articles.first.created_at p = d.strftime("%p").downcase i = d.strftime("%I").to_i.to_s m = d.strftime("%M").to_i.to_s t = d.strftime("%a, %b %e") "#{t}, #{i}:#{m}#{p}" %></li> <% @articles.each do | article | title = '' title << "#{article.comment_author}: " if show_comment_author linked_title = '' if show_article_title # this works for now, but it should be simplified using # the coalesce function in the content method of the # controller and offering an option in the controller to # use short_title if article.short_title.to_s.empty? linked_title << (article.title.to_s.empty? ? '[no title]' : article.title) else linked_title << article.short_title.to_s end end url = "#{article_url(article)}#comment-# {article.comment_id}" %> <li><%= link_to(title, url) %></li> <% end %> </ul> <% end -%> I'm new to all of this and new to this community. What's the best way to work out these kinds of additions? ------------------------------------------------------- David King Landrith (w) 617.227.4469x213 (h) 617.696.7133 One useless man is a disgrace, two are called a law firm, and three or more become a congress -- John Adams ------------------------------------------------------- public key available upon request From scott at sigkill.org Fri Jul 7 00:04:57 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 21:04:57 -0700 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <683a886f0607062036m466860e3u80d108fd4580e641@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061340g1f340b6apacee16eef76e66d2@mail.gmail.com> <14b7e5ef0607061348w2edfafdfyf342529870962ceb@mail.gmail.com> <683a886f0607061358q10a94056p9578b47782198cef@mail.gmail.com> <14b7e5ef0607061401k3bfadce4o610f59250037ffc7@mail.gmail.com> <683a886f0607062036m466860e3u80d108fd4580e641@mail.gmail.com> Message-ID: <14b7e5ef0607062104o739dd9d1s8965ec3db1880e8d@mail.gmail.com> Okay. That looks easy enough. I'll add it to 3.99.2, when I have a chance. Scott On 7/6/06, Kevin Williams <kevwil at gmail.com> wrote: > > irb(main):001:0> system("rake test >nul: 2>nul:") > => true > > > That worked on XP SP2 just a second ago. Earlier today I was on 2003 > server. > > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > Interesting. I seem to remember something about DOS having a > special-case > > handler for /dev/null (or was it /dev/nul -- it was DOS). > > > > It looks like I'm going to have to find (or write) a system() wrapper > that > > knows about Windows. Does this work: > > > > system('rake test > nul:') > > > > how about adding 2> nul: ? > > > > > > Scott > > > > > > On 7/6/06, Kevin Williams < kevwil at gmail.com> wrote: > > > > > The test thing is because /dev/null doesn't exist in Windows. I get > > the same error if I run "echo 'hello' > /dev/null" in a command prompt > > window. > > > > However, if I "mkdir dev" then run the above again, it works. To > > Windows, /dev/null is a path with posix separators and it tries to > > find <current_drive>:\dev\ and write to the file "null". > > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > Thanks. The absolute/relative path thing is a bug, and I'll fix it > for > > the > > > next release. > > > > > > I'm not sure what's up with the test failure. I'll look into it > tonight > > and > > > see what's up. > > > > > > > > > Scott > > > > > > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > > I released a pair of Typo 4.0 pre-release gems yesterday to test > out > > the > > > new > > > > > Typo installer. Can I get a few people to test out the new Typo > > 3.99.1 > > > gem? > > > > > Do this: > > > > > > > > > > $ gem install typo > > > > > $ typo install /some/path > > > > > > > > I found that the path *must* be an absolute path. 'typo install > > > > ./typo' failed with chdir throwing (Errno::ENOENT) > > > Maybe the docs > > > > should state this more clearly. > > > > > > > > On the other hands, some tests failed, this is the trace: > > > > > > > > Tamarindo:~/Sites/typo juan$ rake test --trace > > > > (in /Users/juan/Sites/typo) > > > > ** Invoke test (first_time) > > > > ** Execute test > > > > ** Invoke test:units (first_time) > > > > ** Invoke db:test:prepare (first_time) > > > > ** Invoke environment (first_time) > > > > ** Execute environment > > > > ** Execute db:test:prepare > > > > ** Invoke db:test:clone (first_time) > > > > ** Invoke db:schema:dump (first_time) > > > > ** Invoke environment > > > > ** Execute db:schema:dump > > > > ** Execute db:test:clone > > > > ** Invoke db:schema:load (first_time) > > > > ** Invoke environment > > > > ** Execute db:schema:load > > > > ** Execute test:units > > > > /usr/local/bin/ruby -Ilib:test > > > > > > > > > "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1 > /lib/rake/rake_test_loader.rb" > > > > "test/unit/article_test.rb" > > > "test/unit/audioscrobbler_test.rb" > > > > "test/unit/blacklist_pattern_test.rb" > > > "test/unit/blog_test.rb" > > > > "test/unit/category_test.rb" "test/unit/comment_test.rb" > > > > "test/unit/configuration_test.rb" > > > "test/unit/delicious_test.rb" > > > > "test/unit/flickr_test.rb" "test/unit/fortythree_test.rb" > > > > "test/unit/magnolia_test.rb" > > > "test/unit/metafragment_test.rb" > > > > "test/unit/notification_mailer_test.rb" > > > "test/unit/observer_test.rb" > > > > "test/unit/page_cache_test.rb" "test/unit/page_test.rb" > > > > "test/unit/ping_test.rb" "test/unit/redirect_test.rb" > > > > "test/unit/resource_test.rb" "test/unit/sidebar_test.rb" > > > > "test/unit/tag_test.rb" "test/unit/text_filter_test.rb" > > > > "test/unit/theme_test.rb" "test/unit/trackback_test.rb" > > > > "test/unit/trigger_test.rb" "test/unit/user_test.rb" > > > > "test/unit/content_state/factory_test.rb" > > > > Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake- > > > 0.7.1/lib/rake/rake_test_loader > > > > Started > > > > > > > > > > ............................................................................................................................................. > > > > Finished in 16.85309 seconds. > > > > > > > > 141 tests, 458 assertions, 0 failures, 0 errors > > > > ** Invoke test:functionals (first_time) > > > > ** Invoke db:test:prepare > > > > ** Execute test:functionals > > > > /usr/local/bin/ruby -Ilib:test > > > > "/usr/local/lib/ruby/gems/1.8/gems/rake- > > > 0.7.1/lib/rake/rake_test_loader.rb" > > > > "test/functional/accounts_controller_test.rb" > > > > "test/functional/articles_controller_test.rb" > > > > "test/functional/backend_controller_test.rb" > > > > "test/functional/redirect_controller_test.rb" > > > > "test/functional/textfilter_controller_test.rb" > > > > "test/functional/theme_controller_test.rb" > > > > "test/functional/xml_controller_test.rb" > > > > "test/functional/admin/article_preview_test.rb" > > > > "test/functional/admin/blacklist_controller_test.rb" > > > > "test/functional/admin/categories_controller_test.rb" > > > > "test/functional/admin/comments_controller_test.rb" > > > > "test/functional/admin/content_controller_test.rb" > > > > "test/functional/admin/general_controller_test.rb" > > > > "test/functional/admin/pages_controller_test.rb" > > > > "test/functional/admin/resources_controller_test.rb" > > > > "test/functional/admin/textfilters_controller_test.rb" > > > > "test/functional/admin/themes_controller_test.rb" > > > > "test/functional/admin/trackbacks_controller_test.rb" > > > > "test/functional/admin/users_controller_test.rb" > > > > Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake- > > > 0.7.1/lib/rake/rake_test_loader > > > > Started > > > > > > > > > > .......................................................................................................E.................................................................................................... > > > > Finished in 71.014778 seconds. > > > > > > > > 1) Error: > > > > > > > > > test_comment_spam_markdown_smarty(ArticlesControllerTest): > > > > ActiveRecord::Transactions::TransactionError: > > Transaction > > > aborted > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:84:in > > > > `transaction' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:84:in > > > > `transaction' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:118:in > > > > `transaction' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:124:in > > > > `replace' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/associations.rb:895:in > > > > `notify_users=' > > > > > > > > > /Users/juan/Sites/typo/config/../app/models/article.rb:180:in > > > > `add_notifications' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:333:in > > > > `callback' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:330:in > > > > `callback' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:260:in > > > > `create_without_timestamps' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/timestamp.rb:30:in > > > > `create' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1718:in > > > > `create_or_update_without_callbacks' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in > > > > `create_or_update' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1392:in > > > > `save_without_validation' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:724:in > > > > `save_without_transactions' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:126:in > > > > `save' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in > > > > `transaction' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:91:in > > > > `transaction' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:118:in > > > > `transaction' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:126:in > > > > `save' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/base.rb:1398:in > > > > `save_without_validation!' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:734:in > > > > `save!' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/validations.rb:699:in > > > > `create!' > > > > ./test/functional/articles_controller_test.rb:27:in > > > `setup_without_fixtures' > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:548:in > > > > `setup' > > > > > > > > 204 tests, 792 assertions, 0 failures, 1 errors > > > > rake aborted! > > > > Test failures > > > > > > > > > > /Users/juan/Sites/typo/config/../vendor/rails/railties/lib/tasks/testing.rake:35 > > > > /usr/local/lib/ruby/gems/1.8/gems/rake- > > > 0.7.1/lib/rake.rb:387:in `execute' > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in > > > `execute' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rake- > > 0.7.1/lib/rake.rb:357:in > > > `invoke' > > > > /usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in > > > `invoke' > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in > > > `run' > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/rake- > > 0.7.1/bin/rake:7 > > > > /usr/local/bin/rake:18 > > > > > > > > > > > > -- > > > > ---------------------------------------------------- > > > > http://hronia.blogalia.com > > > > _______________________________________________ > > > > Typo-list mailing list > > > > Typo-list at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > -- > > Cheers, > > > > Kevin > > _______________________________________________ > > > > 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 > _______________________________________________ > 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/20060706/12b3d6df/attachment-0001.html From scott at sigkill.org Fri Jul 7 00:34:12 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 6 Jul 2006 21:34:12 -0700 Subject: [typo] feedback on some new features I'm working on In-Reply-To: <D5D83898-5397-47FA-9FC1-6CBC0EC07D1E@mac.com> References: <D5D83898-5397-47FA-9FC1-6CBC0EC07D1E@mac.com> Message-ID: <14b7e5ef0607062134q845a0c8t4b3745d6427631cd@mail.gmail.com> On 7/6/06, David King Landrith <dlandrith at mac.com> wrote: > > > 1. introduce user privilege levels and user types. My blog is going > to be a large group blog, and I will need this sooner rather than > later. (This is the one gap between typo and wordpress that is an > absolute obstacle to long term deployment.) It's on the roadmap, as is integration with OpenID. No one has really started on it, though. > I have a few things already in mind here. I can go into it in some > detail if you all are ready for a proposal. > > 2. ability to have a right sidebar and a left sidebar (most blogs, in > my opinion, have lines of text that are too long, and therefore too > hard on the eyes). I'll probably start out with a hack of some sort > and try to work it in more gracefully as I get a better handle on how > the sidebar works.) A few people have requested this. It'll break all of our current themes, though, and it'll make a mess of our sidebar editor, which was a pain to get to the state it's in now. On the other hand, it's probably not that hard to support an arbitrary number of sidebars. 3. separating out some parts of the contents table for article and > comment specific data. In my opinion, there seem to be too many > single use fields to justify a single table for the whole set. That's going to cause a world of hurt. Really. We need to refactor some of the fields out--there are quite a few redundant fields, or things that we can move into the serialized column because they're rare. But breaking things back out will break a lot of code reuse, and it's all been *nasty* code to get right. A fourth item that I have already implemented is an increase in the > number of indices in the tables to make sure that common joins are > correctly optimized. Yeah. I found a 6-second query today in a module I'd never used. Then I accidentally blew away my test DB while trying to fix it. > A fifth item that I have already implemented is a short_title field > for the contents table, along with a one line change to the > appropriate admin page. > > The sql to change this is as follows: > > alter table contents add column short_title varchar(60) default NULL > after title; > > the changes to the admin page at app/views/admin/content/_form.rhtml > involve inserting the following 4 lines at line 8: > > 8 <p> > 9 <label for="article_short_title">Short Title:</label><br /> > 10 <%= text_field 'article', 'short_title' %> > 11 </p> > > This allows for a short version of the title to be specified for > places where an abbreviation is appropriate. This is especially > advantageous for elements in the sidebar which may want a meaningful > abridgment of the name due to space constraints. Specifically, I have > a latest_comments plugin that uses it that has the following controller: > > class Plugins::Sidebars::LatestCommentsController < > Sidebars::ComponentPlugin > > setting :title, "Latest Comments", :label => "Title" > setting :count, 20, :label => "Number of Comments" > setting :show_comment_author, true, :label => "Show Comment > Author", :input_type => :checkbox > setting :show_article_title, true, :label => "Show Article > Title", :input_type => :checkbox > # not used yet > # setting :link_to_more, true, :label => "Link to More Comments > (requires comments page)", :input_type => :checkbox > > def self.display_name > "Latest Comments" > end > > def self.description > "Links to the latest comments" > end > > def content > begin > @articles = Article.find( :all, > :select => "contents.*, > comments.author AS comment_author, comments.id AS comment_id", > :joins => 'LEFT JOIN contents AS > comments ON comments.article_id = contents.id', > :conditions => 'comments.type = "Comment"', > :order => "comments.created_at DESC", > :limit => @sb_config['count']) > rescue Exception => e > logger.info e > nil > end > end > > end > > (This is my first typo sidebar thing, so excuse any egregious errors > or omissions) > > Then it has a default display that looks like this: > > <h3><%=h title %></h3> > <% if @articles.empty? -%> > <ul id="latest_comments"> > <li>No Comments</li> > </ul> > <% else %> > <ul id="latest_comments"> > <li>Last: <%= > # I realize that this is a pretty cloogey way > # to do the date, but I'm not great with the > # rails date thingies yet > d = @articles.first.created_at > p = d.strftime("%p").downcase > i = d.strftime("%I").to_i.to_s > m = d.strftime("%M").to_i.to_s > t = d.strftime("%a, %b %e") > "#{t}, #{i}:#{m}#{p}" %></li> > <% @articles.each do | article | > title = '' > title << "#{article.comment_author}: " if > show_comment_author > linked_title = '' > if show_article_title > # this works for now, but it should be simplified using > # the coalesce function in the content method of the > # controller and offering an option in the > controller to > # use short_title > if article.short_title.to_s.empty? > linked_title << (article.title.to_s.empty? ? > '[no title]' : article.title) > else > linked_title << article.short_title.to_s > end > end > url = "#{article_url(article)}#comment-# > {article.comment_id}" > %> > <li><%= link_to(title, url) %></li> > <% end %> > </ul> > <% end -%> I'm not sure if this is generally useful or not. I'd like to avoid adding non-metaweb API fields where we can, although I have a few of my own that will probably go into 4.1 if I can keep them from being hideously ugly. What's the point of having a title that's too long to display? I'm new to all of this and new to this community. What's the best way > to work out these kinds of additions? > By and large, sending mail here works as well as anything. I'm going to add a few milestone-4.1 to-do items to Trac soon. Other then that, send patches via Trac. Patches with tests attached are more likely to be merged. Patches that change major pieces of code without tests will probably sit for months, if they get merged at all. Core pieces, like multiuser support or anything that makes changes to the contents table should probably be discussed a bit first. Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060706/0ecd2627/attachment.html From dlandrith at mac.com Fri Jul 7 01:48:47 2006 From: dlandrith at mac.com (David King Landrith) Date: Fri, 7 Jul 2006 01:48:47 -0400 Subject: [typo] feedback on some new features I'm working on In-Reply-To: <14b7e5ef0607062134q845a0c8t4b3745d6427631cd@mail.gmail.com> References: <D5D83898-5397-47FA-9FC1-6CBC0EC07D1E@mac.com> <14b7e5ef0607062134q845a0c8t4b3745d6427631cd@mail.gmail.com> Message-ID: <565732A6-2685-4462-8871-359431B0D848@mac.com> On Jul 7, 2006, at 12:34 AM, Scott Laird wrote: > > A fifth item that I have already implemented is a short_title field > for the contents table, along with a one line change to the > appropriate admin page. > > I'm not sure if this is generally useful or not. I'd like to avoid > adding non-metaweb API fields where we can, although I have a few > of my own that will probably go into 4.1 if I can keep them from > being hideously ugly. What's the point of having a title that's > too long to display? Well, most titles can be meaningfully abridged. For example, a title like "The Extremes of Good and Evil" is not unduly long, but will almost always wrap in a recent comments sidebar that is formatted: <author>: <article name>. So that abridging it to "Extremes of Good & Evil" or even just "Extremes" for that kind of display is useful. Another example would be "Movie Review: The Life Aquatic" which could be meaningfully abridged to "Life Aquatic," though there is good reason for maintaining a longer title for the main article. Basically, the title of a post is something that should be informative in its own right, but the entry in the sidebar need do nothing more than simply refer to that title. Thus, it's appropriate to consider them two separate entities. When I used a wordpress blog, I just used the "excerpt" field for this purpose, because there was no known use for the field as far as I could determine. I got several inquiries about how I managed to maintain two different titles for dispaly in the recent comments section (and the most commented articles section), and Be-Revolution supports this as a standard feature, so I'm fairly sure that there are those who would use it. ------------------------------------------------------- David King Landrith (w) 617.227.4469x213 (h) 617.696.7133 One useless man is a disgrace, two are called a law firm, and three or more become a congress -- John Adams ------------------------------------------------------- public key available upon request -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060707/a0926907/attachment.html From rdominick at gmail.com Fri Jul 7 03:10:43 2006 From: rdominick at gmail.com (R. N. Dominick) Date: Fri, 7 Jul 2006 03:10:43 -0400 Subject: [typo] Cannot add ticket on Trac In-Reply-To: <14b7e5ef0607060621w54528b7es673800429b8578ed@mail.gmail.com> References: <e27d0ad0607012015i76253666nfb3605044e04a251@mail.gmail.com> <51B9517E-824B-4685-BCAE-9A882B94249F@sb.org> <e27d0ad0607051347v2cb1ee85ucb8fde0435425751@mail.gmail.com> <86B6ED13-BFA8-4B0E-948B-7E7FF8435909@sb.org> <e27d0ad0607060448s31696739o105ed1c19df5804c@mail.gmail.com> <14b7e5ef0607060621w54528b7es673800429b8578ed@mail.gmail.com> Message-ID: <e27d0ad0607070010t1d822e0x3caf4d174a0ec78c@mail.gmail.com> On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > Can you try something for me? Edit > components/plugins/textfilters/textile_controller.rb and > change RedCloth.new to RedCloth::Textile.new. Then tell Typo to rebuild all > of your cached HTML and see what happens. It should fix your problem. That didn't work for me; instead, it removed all formatting from entries. Using irb to try this I get "uninitialized constant RedCloth::Textile.new". This, however, does work: RedCloth.new(text).to_html(:textile) > Now, should this fix go into the trunk or not? It'll change long-standing > behavior, and may break some people's formatting. It's a bug, but it's an > *old* bug. Opinions? As a new user, I can tell you I was surprised to find this happening -- and it didn't happen when I was running the stable-2.6-with-frozen-Rails release. Which, on looking, used code very similar to my fix, above, to render textile: txt = RedCloth.new(txt, restrictions).to_html(:textile) I vote "yeah, it should go in, with an option to apply both Textile and Markdown for those who want it". From scott at sigkill.org Fri Jul 7 10:33:25 2006 From: scott at sigkill.org (Scott Laird) Date: Fri, 7 Jul 2006 07:33:25 -0700 Subject: [typo] Cannot add ticket on Trac In-Reply-To: <e27d0ad0607070010t1d822e0x3caf4d174a0ec78c@mail.gmail.com> References: <e27d0ad0607012015i76253666nfb3605044e04a251@mail.gmail.com> <51B9517E-824B-4685-BCAE-9A882B94249F@sb.org> <e27d0ad0607051347v2cb1ee85ucb8fde0435425751@mail.gmail.com> <86B6ED13-BFA8-4B0E-948B-7E7FF8435909@sb.org> <e27d0ad0607060448s31696739o105ed1c19df5804c@mail.gmail.com> <14b7e5ef0607060621w54528b7es673800429b8578ed@mail.gmail.com> <e27d0ad0607070010t1d822e0x3caf4d174a0ec78c@mail.gmail.com> Message-ID: <14b7e5ef0607070733x52b01c87n7eff9cd1f1a18966@mail.gmail.com> 2.6 did Textile only? Okay, I'm probably going to revert back to the old behavior for now, and add a new filter that handles textile+markdown. Scott On 7/7/06, R. N. Dominick <rdominick at gmail.com> wrote: > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > Can you try something for me? Edit > > components/plugins/textfilters/textile_controller.rb and > > change RedCloth.new to RedCloth::Textile.new. Then tell Typo to rebuild > all > > of your cached HTML and see what happens. It should fix your problem. > > That didn't work for me; instead, it removed all formatting from > entries. Using irb to try this I get "uninitialized constant > RedCloth::Textile.new". > > This, however, does work: > > RedCloth.new(text).to_html(:textile) > > > Now, should this fix go into the trunk or not? It'll change > long-standing > > behavior, and may break some people's formatting. It's a bug, but it's > an > > *old* bug. Opinions? > > As a new user, I can tell you I was surprised to find this happening > -- and it didn't happen when I was running the > stable-2.6-with-frozen-Rails release. Which, on looking, used code > very similar to my fix, above, to render textile: > > txt = RedCloth.new(txt, restrictions).to_html(:textile) > > I vote "yeah, it should go in, with an option to apply both Textile > and Markdown for those who want it". > _______________________________________________ > 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/20060707/1e6f4b69/attachment.html From scott at sigkill.org Fri Jul 7 12:56:15 2006 From: scott at sigkill.org (Scott Laird) Date: Fri, 7 Jul 2006 09:56:15 -0700 Subject: [typo] Typo 3.99.2 available-ish Message-ID: <14b7e5ef0607070956t65e35c2ei5de09b46b958eb26@mail.gmail.com> Typo 3.99.2 is out. It includes a few installer fixes (relative directories and Windows /dev/null), templates for Apache and Lighttpd configs, and all of yesterday's Typo fixes. It'll probably be a couple hours before Rubyforge finishes copying it everywhere, but you can grab a copy from http://scottstuff.net/misc/typo-3.99.2.gem if 'gem install typo' fails with a 404. Apparently there was a permissions problem with one Rubyforge mirror yesterday, that's what caused all of the 404s the people kept seeing. They've fixed it, but it still may take a while for 3.99.2 to copy. Please test this release and let me know how it goes. Thanks. Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060707/f30ca2ca/attachment.html From ernieoporto at gmail.com Fri Jul 7 16:10:26 2006 From: ernieoporto at gmail.com (Ernie Oporto) Date: Fri, 7 Jul 2006 16:10:26 -0400 Subject: [typo] Typo 3.99.2 available-ish In-Reply-To: <14b7e5ef0607070956t65e35c2ei5de09b46b958eb26@mail.gmail.com> References: <14b7e5ef0607070956t65e35c2ei5de09b46b958eb26@mail.gmail.com> Message-ID: <f91ac86d0607071310t4a7f0530n7d33219afe091ee3@mail.gmail.com> Is the plan for typo gem updates going to be for release installs, or will it also include milestoned svn trunk installs? On 7/7/06, Scott Laird <scott at sigkill.org> wrote: > > Typo 3.99.2 is out. It includes a few installer fixes (relative > directories and Windows /dev/null), templates for Apache and Lighttpd > configs, and all of yesterday's Typo fixes. It'll probably be a couple > hours before Rubyforge finishes copying it everywhere, but you can grab a > copy from http://scottstuff.net/misc/typo-3.99.2.gem if 'gem install typo' > fails with a 404. > > Apparently there was a permissions problem with one Rubyforge mirror > yesterday, that's what caused all of the 404s the people kept seeing. > They've fixed it, but it still may take a while for 3.99.2 to copy. > > Please test this release and let me know how it goes. Thanks. > > > Scott > > _______________________________________________ > 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/20060707/b2441d7d/attachment.html From ernieoporto at gmail.com Fri Jul 7 16:12:45 2006 From: ernieoporto at gmail.com (Ernie Oporto) Date: Fri, 7 Jul 2006 16:12:45 -0400 Subject: [typo] Themes In-Reply-To: <683a886f0607061518g6abaa96fndad7422ee214e8d1@mail.gmail.com> References: <14b7e5ef0607061425q7d992dc5x6d8badb71cf55f1a@mail.gmail.com> <D5A83D35-E061-4A02-AE92-8BC5DDE70392@hasmanythrough.com> <14b7e5ef0607061449h5fd26bb5gc314d4b09e327231@mail.gmail.com> <d1bd39e90607061500l239b21c4lb53d126d89c1cb45@mail.gmail.com> <683a886f0607061518g6abaa96fndad7422ee214e8d1@mail.gmail.com> Message-ID: <f91ac86d0607071312x5b2724a5t1db19f1b9b874bd4@mail.gmail.com> Definitely scribbish. On 7/6/06, Kevin Williams <kevwil at gmail.com> wrote: > > I've tried all those listed - I use Scribbish on my blog. I found > Origami much too rich and slow. > > http://www.almostserio.us/ > > On 7/6/06, Juan Lupi?n <pantulis at gmail.com> wrote: > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > Ah, that's the other one I was looking for. It's not all that > exciting > > > visually, but it's clean. Okay, so let's call it 4 candidates now > :-). > > > > Another vote for Scribbish. > -- Ernie http://www.shokk.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060707/61538bde/attachment.html From scott at sigkill.org Fri Jul 7 16:22:18 2006 From: scott at sigkill.org (Scott Laird) Date: Fri, 7 Jul 2006 13:22:18 -0700 Subject: [typo] Typo 3.99.2 available-ish In-Reply-To: <f91ac86d0607071310t4a7f0530n7d33219afe091ee3@mail.gmail.com> References: <14b7e5ef0607070956t65e35c2ei5de09b46b958eb26@mail.gmail.com> <f91ac86d0607071310t4a7f0530n7d33219afe091ee3@mail.gmail.com> Message-ID: <14b7e5ef0607071322o258d0e2ftfb8144114b93c1b2@mail.gmail.com> The plan is that releases will be available as .gems (as well as .tar.gz and .zip, just like before). I'm going to try to do more frequent stable releases, but I'm not planning on doing "checkpoint" releases out of subversion. You can actually use the installer directly out of subversion, but it's not really documented yet. Basically, the full command is 'typo install PATH [VERSION]'. VERSION can refer to any version available via gems, *or* it can be the string 'cwd', in which case it uses the current working directory as the source for the install. So, if you have a checked-out SVN tree, you can run the installer via './bin/typo install PATH cwd'. Scott On 7/7/06, Ernie Oporto <ernieoporto at gmail.com> wrote: > > > Is the plan for typo gem updates going to be for release installs, or will > it also include milestoned svn trunk installs? > > > On 7/7/06, Scott Laird <scott at sigkill.org> wrote: > > > Typo 3.99.2 is out. It includes a few installer fixes (relative > directories and Windows /dev/null), templates for Apache and Lighttpd > configs, and all of yesterday's Typo fixes. It'll probably be a couple > hours before Rubyforge finishes copying it everywhere, but you can grab a > copy from http://scottstuff.net/misc/typo-3.99.2.gem if 'gem install typo' > fails with a 404. > > Apparently there was a permissions problem with one Rubyforge mirror > yesterday, that's what caused all of the 404s the people kept seeing. > They've fixed it, but it still may take a while for 3.99.2 to copy. > > Please test this release and let me know how it goes. Thanks. > > > Scott > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060707/4221515e/attachment.html From william.a at carrel.org Fri Jul 7 17:00:43 2006 From: william.a at carrel.org (Andy Carrel) Date: Fri, 7 Jul 2006 14:00:43 -0700 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <683a886f0607061214t168600ebpe45a5f2666a9b68a@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> <14b7e5ef0607061154k3ddc02b6qb72b657c435b0228@mail.gmail.com> <cc4e85f30607061210j24a11557w176b1afb2bee7e0@mail.gmail.com> <683a886f0607061214t168600ebpe45a5f2666a9b68a@mail.gmail.com> Message-ID: <e14291c50607071400l6f05a291xb04b866294b819bf@mail.gmail.com> It's also worth noting that the FCGI protocol != HTTP even remotely. That said, there is no reason you can't speak HTTP on a UNIX domain socket. The telnet packaged with the BSDs has been able to connect to named sockets for a while now. The difference in overhead doesn't seem like it would be significant enough to warrant that though. On 7/6/06, Kevin Williams <kevwil at gmail.com> wrote: > > AFAIK, no. It's an http server only, and http is a tcp protocol. > > It's an interesting idea, though. Perhaps a plugin could be written? I > don't know. Interesting idea, for sure. > > On 7/6/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > Can mongrel be bound to UNIX sockets like FCGI or does it only work with > > ports? It would be nice if the tmp/sockets/ directory could be the > default > > instead of a port. > > > > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > The documentation is still a work in progress :-). > > > > > > You can change the port this way: > > > > > > typo stop /path/to/typo > > > typo config /path/to/typo port-number=9999 > > > typo start /path/to/typo > > > > > > The mongrel port number is picked randomly from [4000..4999]. I'd > rather > > not use a single fixed port, because I'd like to make > > multiple-typos-per-host installs easy. I'll take suggestions for better > > algorithms if anyone has one. > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > On 7/6/06, Paul Barry < mail at paulbarry.com> wrote: > > > > > > > > > > > I just ran gem install typo and it seemed to work. I can't test it > yet > > though, I think because my host blocks port 4517, which seems to be the > port > > typo choose to start mongrel on. At the end of the install, if says > this: > > > > > > > > Look in installer/apache.conf.example to see how to integrate with > > Apache. > > > > > > > > Except there is no file called apache.conf.example in there. > > > > > > > > > > > > > > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > > > > > Still? It should have been copied to all GEM mirrors by now. It > > worked fine for me this morning. > > > > > > > > > > I need to figure out how to do 'gem install --verbose typo', and I > > need to figure out where the 'master' gem server lives. As things > stand, it > > takes 3+ hours from the time I upload a gem until it's usable. > > > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > > > > > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > > > > > > > > > I'm getting a '404 Not found' error when running 'sudo get > imstall > > > > > > typo' on my Mac. > > > > > > > > > > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > I released a pair of Typo 4.0 pre-release gems yesterday to > test > > out the new > > > > > > > Typo installer. Can I get a few people to test out the new > Typo > > 3.99.1 gem? > > > > > > > Do this: > > > > > > > > > > > > > > $ gem install typo > > > > > > > > > > > > > > > > > > -- > > > > > > > > ---------------------------------------------------- > > > > > > http://hronia.blogalia.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 > > > > > > > -- > Cheers, > > Kevin > _______________________________________________ > 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/20060707/3849282a/attachment-0001.html From scott at sigkill.org Fri Jul 7 17:06:10 2006 From: scott at sigkill.org (Scott Laird) Date: Fri, 7 Jul 2006 14:06:10 -0700 Subject: [typo] Please test Typo 3.99.1 gem In-Reply-To: <e14291c50607071400l6f05a291xb04b866294b819bf@mail.gmail.com> References: <14b7e5ef0607060615u4eddf5d2mbfddacbea7394421@mail.gmail.com> <d1bd39e90607061056j276deb46lb9b7a24b858b5975@mail.gmail.com> <14b7e5ef0607061113re3f3d08va5b83f0aebc90dd3@mail.gmail.com> <d0d1f5ac0607061149j511eb7d4h416d1b44b2beef2@mail.gmail.com> <14b7e5ef0607061154k3ddc02b6qb72b657c435b0228@mail.gmail.com> <cc4e85f30607061210j24a11557w176b1afb2bee7e0@mail.gmail.com> <683a886f0607061214t168600ebpe45a5f2666a9b68a@mail.gmail.com> <e14291c50607071400l6f05a291xb04b866294b819bf@mail.gmail.com> Message-ID: <14b7e5ef0607071406q15ccc1baq6aa63237fc9259e@mail.gmail.com> Yeah. The only real advantage that I can see is better namespace control--it's easy to see that /home/bob/typo.http is unique and controller by bob, while TCP port 4623 is more trouble-prone. However, I haven't seen a single web server that can proxy onto unix domain sockets, or a web browser that can use them. So running Typo over HTTP over unix domain sockets is kind of pointless right now. Scott On 7/7/06, Andy Carrel <william.a at carrel.org> wrote: > > It's also worth noting that the FCGI protocol != HTTP even remotely. > > That said, there is no reason you can't speak HTTP on a UNIX domain > socket. The telnet packaged with the BSDs has been able to connect to named > sockets for a while now. The difference in overhead doesn't seem like it > would be significant enough to warrant that though. > > On 7/6/06, Kevin Williams <kevwil at gmail.com > wrote: > > > AFAIK, no. It's an http server only, and http is a tcp protocol. > > > > It's an interesting idea, though. Perhaps a plugin could be written? I > > don't know. Interesting idea, for sure. > > > > On 7/6/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > Can mongrel be bound to UNIX sockets like FCGI or does it only work > > with > > > ports? It would be nice if the tmp/sockets/ directory could be the > > default > > > instead of a port. > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > The documentation is still a work in progress :-). > > > > > > > > You can change the port this way: > > > > > > > > typo stop /path/to/typo > > > > typo config /path/to/typo port-number=9999 > > > > typo start /path/to/typo > > > > > > > > The mongrel port number is picked randomly from [4000..4999]. I'd > > rather > > > not use a single fixed port, because I'd like to make > > > multiple-typos-per-host installs easy. I'll take suggestions for > > better > > > algorithms if anyone has one. > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > > > On 7/6/06, Paul Barry < mail at paulbarry.com> wrote: > > > > > > > > > > > > > > I just ran gem install typo and it seemed to work. I can't test > > it yet > > > though, I think because my host blocks port 4517, which seems to be > > the port > > > typo choose to start mongrel on. At the end of the install, if says > > this: > > > > > > > > > > Look in installer/apache.conf.example to see how to integrate with > > > > > Apache. > > > > > > > > > > Except there is no file called apache.conf.example in there. > > > > > > > > > > > > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > > > > > Still? It should have been copied to all GEM mirrors by > > now. It > > > worked fine for me this morning. > > > > > > > > > > > > I need to figure out how to do 'gem install --verbose typo', and > > I > > > need to figure out where the 'master' gem server lives. As things > > stand, it > > > takes 3+ hours from the time I upload a gem until it's usable. > > > > > > > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com > wrote: > > > > > > > > > > > > > I'm getting a '404 Not found' error when running 'sudo get > > imstall > > > > > > > typo' on my Mac. > > > > > > > > > > > > > > > > > > > > > On 7/6/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > I released a pair of Typo 4.0 pre-release gems yesterday to > > test > > > out the new > > > > > > > > Typo installer. Can I get a few people to test out the new > > Typo > > > 3.99.1 gem? > > > > > > > > Do this: > > > > > > > > > > > > > > > > $ gem install typo > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > ---------------------------------------------------- > > > > > > > http://hronia.blogalia.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 > > > > > > > > > > > > -- > > Cheers, > > > > Kevin > > _______________________________________________ > > 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/20060707/cdd61b0a/attachment.html From victor-rini at comcast.net Fri Jul 7 17:52:21 2006 From: victor-rini at comcast.net (victor-rini at comcast.net) Date: Fri, 07 Jul 2006 21:52:21 +0000 Subject: [typo] Sqlite3 problems in typo 3.99.2 Message-ID: <070720062152.9907.44AED792000DB4F1000026B322007348400702079DD39D019B0C0790@comcast.net> This may be a problem in my sqlite3 setup. When running rake tests: Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader Started .E.....EE.........FF............E.......................................................................................................E.... Finished in 30.888954 seconds. 1) Error: test_create(ArticleTest): ActiveRecord::RecordNotFound: Couldn't find Article with ID=0 /Users/victorr/Rails/typo3992/config/../vendor/rails/activerecord/lib/active_record/base.rb:955:in `find_one' /Users/victorr/Rails/typo3992/config/../vendor/rails/activerecord/lib/active_record/base.rb:941:in `find_from_ids' /Users/victorr/Rails/typo3992/config/../vendor/rails/activerecord/lib/active_record/base.rb:382:in `find' ./test/unit/article_test.rb:36:in `test_create' 2) Error: test_future_publishing(ArticleTest): NoMethodError: You have a nil object when you didn't expect it! The error occured while evaluating nil.publish! Among others. In a checked out svn tree running mysql - all the tests work just fine. Thoughts? From scott at sigkill.org Fri Jul 7 18:01:02 2006 From: scott at sigkill.org (Scott Laird) Date: Fri, 7 Jul 2006 15:01:02 -0700 Subject: [typo] Sqlite3 problems in typo 3.99.2 In-Reply-To: <070720062152.9907.44AED792000DB4F1000026B322007348400702079DD39D019B0C0790@comcast.net> References: <070720062152.9907.44AED792000DB4F1000026B322007348400702079DD39D019B0C0790@comcast.net> Message-ID: <14b7e5ef0607071501j6321cebeu9c6d152f979681e7@mail.gmail.com> Known SQLite3 problem if you don't have SWIG installed. Install swig, then uninstall and reinstall sqlite3-ruby. I should probably add a check in the installer to verify that swig exists, but I'm not sure how that'll play with Windows. Scott On 7/7/06, victor-rini at comcast.net <victor-rini at comcast.net> wrote: > > This may be a problem in my sqlite3 setup. When running rake tests: > > Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1 > /lib/rake/rake_test_loader > Started > > .E.....EE.........FF............E.......................................................................................................E.... > Finished in 30.888954 seconds. > > 1) Error: > test_create(ArticleTest): > ActiveRecord::RecordNotFound: Couldn't find Article with ID=0 > /Users/victorr/Rails/typo3992/config/../vendor/rails/activerecord/lib/active_record/base.rb:955:in > `find_one' > /Users/victorr/Rails/typo3992/config/../vendor/rails/activerecord/lib/active_record/base.rb:941:in > `find_from_ids' > /Users/victorr/Rails/typo3992/config/../vendor/rails/activerecord/lib/active_record/base.rb:382:in > `find' > ./test/unit/article_test.rb:36:in `test_create' > > 2) Error: > test_future_publishing(ArticleTest): > NoMethodError: You have a nil object when you didn't expect it! > The error occured while evaluating nil.publish! > > Among others. > > In a checked out svn tree running mysql - all the tests work just fine. > Thoughts? > _______________________________________________ > 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/20060707/7b40a849/attachment-0001.html From victor-rini at comcast.net Fri Jul 7 18:18:06 2006 From: victor-rini at comcast.net (Victor Rini) Date: Fri, 07 Jul 2006 15:18:06 -0700 Subject: [typo] Sqlite3 problems in typo 3.99.2 In-Reply-To: <14b7e5ef0607071501j6321cebeu9c6d152f979681e7@mail.gmail.com> References: <070720062152.9907.44AED792000DB4F1000026B322007348400702079DD39D019B0C0790@comcast.net> <14b7e5ef0607071501j6321cebeu9c6d152f979681e7@mail.gmail.com> Message-ID: <44AEDD9E.6060405@comcast.net> Scott Laird wrote: > Known SQLite3 problem if you don't have SWIG installed. Install swig, > then uninstall and reinstall sqlite3-ruby. Worked like a dream. Thanks. From vemon388 at gmail.com Fri Jul 7 18:28:15 2006 From: vemon388 at gmail.com (levi mccallum) Date: Fri, 7 Jul 2006 17:28:15 -0500 Subject: [typo] Themes In-Reply-To: <f91ac86d0607071312x5b2724a5t1db19f1b9b874bd4@mail.gmail.com> References: <14b7e5ef0607061425q7d992dc5x6d8badb71cf55f1a@mail.gmail.com> <D5A83D35-E061-4A02-AE92-8BC5DDE70392@hasmanythrough.com> <14b7e5ef0607061449h5fd26bb5gc314d4b09e327231@mail.gmail.com> <d1bd39e90607061500l239b21c4lb53d126d89c1cb45@mail.gmail.com> <683a886f0607061518g6abaa96fndad7422ee214e8d1@mail.gmail.com> <f91ac86d0607071312x5b2724a5t1db19f1b9b874bd4@mail.gmail.com> Message-ID: <fb023dc70607071528q3bf041bfrd0f5d8c8f2a537da@mail.gmail.com> We are really a week away from 4.0? On 7/7/06, Ernie Oporto <ernieoporto at gmail.com> wrote: > > > Definitely scribbish. > > > > On 7/6/06, Kevin Williams <kevwil at gmail.com> wrote: > > > > I've tried all those listed - I use Scribbish on my blog. I found > > Origami much too rich and slow. > > > > http://www.almostserio.us/ > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > Ah, that's the other one I was looking for. It's not all that > > exciting > > > > visually, but it's clean. Okay, so let's call it 4 candidates now > > :-). > > > > > > Another vote for Scribbish. > > > > > > -- > Ernie > http://www.shokk.com/blog/ > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060707/89c0544f/attachment.html From scott at sigkill.org Fri Jul 7 18:36:39 2006 From: scott at sigkill.org (Scott Laird) Date: Fri, 7 Jul 2006 15:36:39 -0700 Subject: [typo] Themes In-Reply-To: <fb023dc70607071528q3bf041bfrd0f5d8c8f2a537da@mail.gmail.com> References: <14b7e5ef0607061425q7d992dc5x6d8badb71cf55f1a@mail.gmail.com> <D5A83D35-E061-4A02-AE92-8BC5DDE70392@hasmanythrough.com> <14b7e5ef0607061449h5fd26bb5gc314d4b09e327231@mail.gmail.com> <d1bd39e90607061500l239b21c4lb53d126d89c1cb45@mail.gmail.com> <683a886f0607061518g6abaa96fndad7422ee214e8d1@mail.gmail.com> <f91ac86d0607071312x5b2724a5t1db19f1b9b874bd4@mail.gmail.com> <fb023dc70607071528q3bf041bfrd0f5d8c8f2a537da@mail.gmail.com> Message-ID: <14b7e5ef0607071536o336876e4i81b93d07db61e1b0@mail.gmail.com> Probably about that. It'll be done when it's done, but we're pretty close. Scott On 7/7/06, levi mccallum <vemon388 at gmail.com> wrote: > > We are really a week away from 4.0? > > On 7/7/06, Ernie Oporto <ernieoporto at gmail.com> wrote: > > > > Definitely scribbish. > > > > On 7/6/06, Kevin Williams < kevwil at gmail.com> wrote: > > > > I've tried all those listed - I use Scribbish on my blog. I found > > Origami much too rich and slow. > > > > http://www.almostserio.us/ > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > Ah, that's the other one I was looking for. It's not all that > > exciting > > > > visually, but it's clean. Okay, so let's call it 4 candidates now > > :-). > > > > > > Another vote for Scribbish. > > > > > > -- > Ernie > http://www.shokk.com/blog/ > > _______________________________________________ > 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/20060707/3e970665/attachment.html From zerohalo at gmail.com Fri Jul 7 19:08:05 2006 From: zerohalo at gmail.com (zer0halo) Date: Fri, 7 Jul 2006 18:08:05 -0500 Subject: [typo] Themes In-Reply-To: <14b7e5ef0607071536o336876e4i81b93d07db61e1b0@mail.gmail.com> References: <14b7e5ef0607061425q7d992dc5x6d8badb71cf55f1a@mail.gmail.com> <D5A83D35-E061-4A02-AE92-8BC5DDE70392@hasmanythrough.com> <14b7e5ef0607061449h5fd26bb5gc314d4b09e327231@mail.gmail.com> <d1bd39e90607061500l239b21c4lb53d126d89c1cb45@mail.gmail.com> <683a886f0607061518g6abaa96fndad7422ee214e8d1@mail.gmail.com> <f91ac86d0607071312x5b2724a5t1db19f1b9b874bd4@mail.gmail.com> <fb023dc70607071528q3bf041bfrd0f5d8c8f2a537da@mail.gmail.com> <14b7e5ef0607071536o336876e4i81b93d07db61e1b0@mail.gmail.com> Message-ID: <92b38bd50607071608t6085d876ue7afbf026ac7f270@mail.gmail.com> Having looked and tried most themes out there, I agree with the comments on Origami and Lush. Scribbish is the opposite extreme, but it does give someone something to work with. I'd say if you're going to include Brighthouse, you wouldn't really need Scribbish as they're similar (very slimmed down, few graphics). I'd say Brighthouse is better, but that's really a matter of opinion. How about throwing in a dark theme as an option? Two good ones I've tried are: Hemmingway <http://warpspire.com/hemingway> iWTAP2 (hmm, can't find the link right now; it's similar to Hemmingway) A couple other nice ones, that are different in style than those mentioned: BrownType <http://typogarden.com/articles/2005/12/01/brown-type-theme> Modernist <http://typogarden.com/articles/2005/11/16/modernist-theme> Thanks, Scott, for putting it all together. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060707/8adb0c53/attachment.html From vemon388 at gmail.com Fri Jul 7 19:16:06 2006 From: vemon388 at gmail.com (levi mccallum) Date: Fri, 7 Jul 2006 18:16:06 -0500 Subject: [typo] Themes In-Reply-To: <14b7e5ef0607071536o336876e4i81b93d07db61e1b0@mail.gmail.com> References: <14b7e5ef0607061425q7d992dc5x6d8badb71cf55f1a@mail.gmail.com> <D5A83D35-E061-4A02-AE92-8BC5DDE70392@hasmanythrough.com> <14b7e5ef0607061449h5fd26bb5gc314d4b09e327231@mail.gmail.com> <d1bd39e90607061500l239b21c4lb53d126d89c1cb45@mail.gmail.com> <683a886f0607061518g6abaa96fndad7422ee214e8d1@mail.gmail.com> <f91ac86d0607071312x5b2724a5t1db19f1b9b874bd4@mail.gmail.com> <fb023dc70607071528q3bf041bfrd0f5d8c8f2a537da@mail.gmail.com> <14b7e5ef0607071536o336876e4i81b93d07db61e1b0@mail.gmail.com> Message-ID: <fb023dc70607071616q7ff64158x7a9b81a73b6bba69@mail.gmail.com> crap, I expected it to be sometime next year. On 7/7/06, Scott Laird <scott at sigkill.org> wrote: > > Probably about that. It'll be done when it's done, but we're pretty > close. > > > Scott > > > On 7/7/06, levi mccallum < vemon388 at gmail.com> wrote: > > > > We are really a week away from 4.0? > > > > On 7/7/06, Ernie Oporto < ernieoporto at gmail.com> wrote: > > > > > > > Definitely scribbish. > > > > > > > > On 7/6/06, Kevin Williams < kevwil at gmail.com> wrote: > > > > > > I've tried all those listed - I use Scribbish on my blog. I found > > > Origami much too rich and slow. > > > > > > http://www.almostserio.us/ > > > > > > On 7/6/06, Juan Lupi?n < pantulis at gmail.com> wrote: > > > > On 7/6/06, Scott Laird <scott at sigkill.org> wrote: > > > > > Ah, that's the other one I was looking for. It's not all that > > > exciting > > > > > visually, but it's clean. Okay, so let's call it 4 candidates now > > > :-). > > > > > > > > Another vote for Scribbish. > > > > > > > > > > > -- > > Ernie > > http://www.shokk.com/blog/ > > > > _______________________________________________ > > 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/20060707/4ed78f39/attachment.html From dlandrith at mac.com Sat Jul 8 02:45:26 2006 From: dlandrith at mac.com (David King Landrith) Date: Sat, 8 Jul 2006 02:45:26 -0400 Subject: [typo] proposal part 1: multi-user permissions scheme Message-ID: <D195C19D-3E2C-4B49-A583-D0C0ADE867C3@mac.com> Hi guys, I just threw this together tonight. It's is my first run at a proposal for a permissions scheme. I welcome your feedback. My main priority is to create the best, most thorough permissions scheme available for any blog. I take the requirements for this to be as follows: 1. provide a simple setup for entry-level bloggers (similar to wordpress permissions) 2. provide granular permissions control for expert users 3. allow for hierarchical style permissions (similar to wordpress permissions) 4. provide something that will scale easily with changes to typo 5. make sure that the consequences of all permissions are completely computable using a standard set of algorithms that blindly computes access based off of a well designed database structures; thus, there should be no "if superuser then..." type of conditionals in the code. 6. back it up with the appropriate database tables (of course); the sql for this will be in the next email (it was too large to be included in this email) Toward this end, I envision the following different kinds of permissions types, each of which will be treated as logically independent from each other: 10. Read 20. Edit 30. Create 40. Delete 50. Configure Moreover, we have the following different kinds of permission scopes. This set of scopes is treated as a scale; with permission privileges increasing as the numbers increase. 1. the scope covering things that one owns 2. the scope covering things one owns, plus those beneath ones permission level 3. the scope covering all things These scopes are intersected with the permission types to yield meaningful permission boundaries. We then have master permission zones: 1000 Content 2000 Blog Settings 3000 Sidebars Each of these has sub types: Content 1001. Comments 1002. Post Drafts 1003. Published Posts Blog Settings 2001. Blog users 2002. Blog theme settings Sidebars 3001. Blog Roll Sidebar The idea here is that you can add as many different sub-types as you want. For example, it may be appropriate to add a content subtype of "Moderation Queue" and/or "Spam Queue." There is plenty of room for these and other sub-types. The permission boundaries are applied either (a) to the master types (which applies to all subtype permissions) or (b) to the subtypes (treated as atomic units of permission that override master type settings). So where are these permission boundaries applied? They are applied in user roles: 1. Default Permission; master role = none 2. Anonymous User; master role = 1 3. User; master role = 1 4. Guest Author; master role = 1 5. Author 1; master role = 4 6. Author 2; master role = 4 7. Author 3; master role = 4 8. Editor 1; master role = 4 9. Editor 2; master role = 9 10. Editor 3; master role = 10 11. Sidebar Admin; master role = 1 12. Admin 1; master role = 10 13. Admin 2; master role = 12 14. Admin 3; master role = 12 15. Super User; master role = none Master roles are the roles from which permissions are inherited. Thus, the user inherits the default permissions of the Anonymous user. These inherited values may be overridden, but if not overridden, then they keep the database from being overrun by redundant data (e.g., there doesn't need to be an entry allowing for every role to read comments, because that's inherited). Moreover, these are conceived of as hierarchically organized. Author 2 can edit author 1 posts but not vice versa. Editors can edit author posts, but not vice versa. The way that this is set up allows you to enter permissions for Author 1 once, and then other 2 author types get the same permissions, but sits atop it in the hierarchy (see the sql in the next email -- there is as "level" field in the user_roles table that determines this hierarchy) The user table is keyed to the these roles. So the beginner user simply assigns users to one of the above pre-made roles, and never needs to know about the details. Expert users can edit these types and create new roles to meet their security needs. This is kind of a cryptic explanation. I'm hoping that the sql in the next email that outlines the database portion of it makes the implementation more obvious. In any case, all of this is manifest in the sql for the database tables and their contents; all of these are new tables, except the "alter table" for the users table at the end. The SQL will be in the next email. ------------------------------------------------------- David King Landrith (w) 617.227.4469x213 (h) 617.696.7133 One useless man is a disgrace, two are called a law firm, and three or more become a congress -- John Adams ------------------------------------------------------- public key available upon request -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060708/bde05980/attachment-0001.html From dlandrith at mac.com Sat Jul 8 02:46:18 2006 From: dlandrith at mac.com (David King Landrith) Date: Sat, 8 Jul 2006 02:46:18 -0400 Subject: [typo] proposal for multi-user permissions scheme Message-ID: <72517F6B-DBC5-4540-80AA-AB85DABB8E99@mac.com> Hi guys, Here's the SQL that I referred to in the preceding email. Hopefully it makes the whole setup seem more obvious. Best, Dave CREATE TABLE user_roles ( id int(10) unsigned NOT NULL auto_increment, name char(20) default NULL, master_role_id int(10) unsigned default NULL, level int(10) unsigned default NULL, PRIMARY KEY (id), KEY idx_level_masterRoleId (level, master_role_id), KEY idx_masterRoleId (master_role_id), CONSTRAINT userroles__master_role_id FOREIGN KEY (master_role_id) REFERENCES user_roles (id) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; insert into user_roles (id, name, master_role_id, level) values (1, "Default Permission", NULL, 10), (2, "Anonymous User", 1, 20), (3, "User", 1, 30), (4, "Guest Author", 1, 40), (5, "Author 1", 4, 50), (6, "Author 2", 4, 60), (7, "Author 3", 4, 70), (8, "Editor 1", 4, 80), (9, "Editor 2", 9, 90), (10, "Editor 3", 10, 100), (11, "Sidebar Admin", 1, 110), (12, "Admin 1", 10, 120), (13, "Admin 2", 12, 130), (14, "Admin 3", 12, 140), (15, "Super User", NULL, 1000); CREATE TABLE permission_types ( id int(10) unsigned NOT NULL auto_increment, name char(20) not null, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; insert into permission_types (id, name) values (10, "Read"), (20, "Edit"), (30, "Create"), (40, "Delete"), (50, "Configure"); CREATE TABLE permission_zones ( id int(10) unsigned NOT NULL auto_increment, name char(100) not null, master_zone_id int(10) unsigned default NULL, PRIMARY KEY (id), KEY idx_masterZoneId (master_zone_id), CONSTRAINT userroles__master_zone_id FOREIGN KEY (master_zone_id) REFERENCES permission_zones (id) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; insert into permission_zones (id, name, master_zone_id) values (1000, "Default Content", NULL), (1001, "Comments", 1000), (1002, "Post Drafts", 1000), (1003, "Published Posts", 1000), (2000, "Default Blog settings", NULL), (2001, "Blog users", 2000), (2002, "Blog theme settings", 2000), (3000, "Default Sidebars", NULL), (3001, "Blog Roll Sidebar", 3000); CREATE TABLE permission_scopes ( id int(10) unsigned NOT NULL auto_increment, name char(100) not null, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; insert into permission_scopes (id, name) values (1, "own"), (2, "own & those below"), (3, "own & all others"); CREATE TABLE userroles_permissions ( id int(10) unsigned NOT NULL auto_increment, user_role_id int(10) unsigned NOT NULL default 0, permission_zone_id int(10) unsigned NOT NULL default 0, permission_type_id int(10) unsigned NOT NULL default 0, permission_scope_id int(10) unsigned NOT NULL default 0, PRIMARY KEY (ID), KEY idx_userRoleId_pZoneId_pTypeId_pScopeId (user_role_id, permission_zone_id, permission_type_id, permission_scope_id), KEY idx_pZoneId_pTypeId_pScopeId (permission_zone_id, permission_type_id, permission_scope_id), KEY idx_pTypeId_pScopeId (permission_type_id, permission_scope_id), KEY idx_pScopeId (permission_type_id), CONSTRAINT userroles_permissions__user_role_id FOREIGN KEY (user_role_id) REFERENCES user_roles (id), CONSTRAINT userroles_permissions__pzone_id FOREIGN KEY (permission_zone_id) REFERENCES permission_zones (id), CONSTRAINT userroles_permissions__ptype_id FOREIGN KEY (permission_zone_id) REFERENCES permission_types (id), CONSTRAINT userroles_permissions__pscope_id FOREIGN KEY (permission_scope_id) REFERENCES permission_scopes (id) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; insert into userroles_permissions (user_role_id, permission_zone_id, permission_type_id, permission_zone_id) values -- By default, ALL users can (1, 1001, 10, 3), -- view all comments (1, 1001, 30, 1), -- create comments (1, 1003, 10, 3), -- read all posts (1, 2000, 10, 3), -- read all sidebars -- guest authors can (4, 1002, 10, 1), -- read own drafts (4, 1002, 20, 1), -- edit own drafts (4, 1002, 30, 1), -- create own drafts (4, 1002, 40, 1), -- delete own drafts -- authors can (5, 1001, 20, 2), -- edit comments on own threads and those beneath (5, 1002, 10, 3), -- read all drafts (5, 1003, 30, 1), -- create their own published posts (5, 1003, 30, 2), -- edit own posts and those beneath them -- editors can do this plus (8, 1001, 20, 2), -- edit comments on all threads beneath them (8, 1001, 40, 2), -- delete comments on all threads beneath them (8, 1002, 40, 2), -- delete drafts of those beneath them (8, 1003, 40, 3), -- delete all posts beneath them -- sidebar admins can (11, 3001, 20, 2), -- create, edit, and delete their sidebar entries (11, 3001, 30, 2), (11, 3001, 40, 2), (11, 3001, 50, 2), -- superuser can do everything (15, 1000, 10, 3), -- create, edit, delete, configure all content (15, 1000, 20, 3), (15, 1000, 30, 3), (15, 1000, 40, 3), (15, 1001, 50, 3), (15, 2000, 10, 3), -- create, edit, delete, configure all site admin (15, 2000, 20, 3), (15, 2000, 30, 3), (15, 2000, 40, 3), (15, 2000, 50, 3), (15, 3000, 10, 3),-- create, edit, delete, configure all sidebars (15, 3000, 20, 3), (15, 3000, 30, 3), (15, 3000, 40, 3), (15, 3000, 50, 3); alter table users add column user_role_id int(10) unsigned NOT NULL default 1 after name, add KEY idx_userRoleID (user_RoleID); ------------------------------------------------------- David King Landrith (w) 617.227.4469x213 (h) 617.696.7133 One useless man is a disgrace, two are called a law firm, and three or more become a congress -- John Adams ------------------------------------------------------- public key available upon request -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060708/437e5559/attachment-0001.html From meta at pobox.com Sat Jul 8 10:35:29 2006 From: meta at pobox.com (mathew) Date: Sat, 8 Jul 2006 09:35:29 -0500 Subject: [typo] proposal for multi-user permissions scheme In-Reply-To: <72517F6B-DBC5-4540-80AA-AB85DABB8E99@mac.com> References: <72517F6B-DBC5-4540-80AA-AB85DABB8E99@mac.com> Message-ID: <E16BD106-3281-4CE7-8F8A-3D993DB2424C@pobox.com> The proposal seems very elaborate, yet as far as I can tell it fails the simple use case I have: "Like today, except only registered users with accounts can post comments." Am I missing something? mathew From scott at sigkill.org Sat Jul 8 15:25:44 2006 From: scott at sigkill.org (Scott Laird) Date: Sat, 8 Jul 2006 12:25:44 -0700 Subject: [typo] Memory leak fixed (and speed improved, too) Message-ID: <14b7e5ef0607081225v247429d1lde38b9b8262f5e27@mail.gmail.com> I think the Great Typo Memory Leak of 2006 has been fixed: http://scottstuff.net/blog/articles/2006/07/08/ding-dong-the-memory-leak-in-typo-is-dead It was an interaction between the action cache and all of the other filters that we're using--when the action cache's before_filter found a cache hit, it cancels the rest of the filter chain and returns the cached results to the user. Unfortunately, if any of the other filters are saving data in their before_filter and planning on dropping it in their after_filter, then they're going to cause a memory leak, because the after_filter will never be called. The fix is to straighen out the filter order. I moved the cache's filters to the very outside, and that gave us a big speed boost, as well as fixing the memory leak. Longer-term, we need to audit our filters, because they're getting too complex. But for now, I think we're okay. I also fixed a bunch of slow DB queries. On my test DB, we were making almost 300 calls to the DB just to render the index page. We're back down around 40 now, and 21 of those are Blog.find(1), which we should be able to get rid of. I killed off two queries that were taking > 3 seconds to finish (one for the archive sidebar and one for the index page paginator). By and large, we should now be similar to Typo 2.6's performance, and perhaps a bit ahead. On my laptop, the action cache is up around 25 requests/second on the index page, which is around 2M hits/day. Unfortuantely, without the cache it still takes almost 1 second to render, but I should be able to speed that up. Picking a random article page seems faster, 45 requests/sec from the cache and about 1.8 req/sec without the cache. I'd like to be able to serve 5 pages/second from a blog with lots of content on moderate hardware without using the cache, but that's probably faster then we can go right now. I've probably introduced a few bugs while speeding all of this up. I haven't tested mysql or sqlite at all yet, although they're proabably okay. Can people please check it out for me? Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060708/9b4ab071/attachment.html From dlandrith at mac.com Sat Jul 8 15:30:35 2006 From: dlandrith at mac.com (David King Landrith) Date: Sat, 8 Jul 2006 15:30:35 -0400 Subject: [typo] proposal for multi-user permissions scheme In-Reply-To: <E16BD106-3281-4CE7-8F8A-3D993DB2424C@pobox.com> References: <72517F6B-DBC5-4540-80AA-AB85DABB8E99@mac.com> <E16BD106-3281-4CE7-8F8A-3D993DB2424C@pobox.com> Message-ID: <12A03B90-781A-47A6-8E73-B1D8FC981564@mac.com> On Jul 8, 2006, at 10:35 AM, mathew wrote: > The proposal seems very elaborate, yet as far as I can tell it fails > the simple use case I have: > > "Like today, except only registered users with accounts can post > comments." > > Am I missing something? This is all determined by the contents of the userroles_permission table, and it can be adjusted however you want. The sql that I've provided for insertions reflects a default value in which all users can comment. But that's easily changed on a database level. All you'd have to do to remedy this is delete the following row from the userroles_permission table: user_role_id: 1 # anonymous user permission_zone_id: 1001 # comment zone permission_type_id: 30 # create permission_zone_id: 1 # own And insert the following row in its place: user_role_id: 3 # user permission_zone_id: 1001 # comment zone permission_type_id: 30 # create permission_zone_id: 1 # own This could be effected in the "advanced/expert" level permissions adjustment user-interface that allows fine tuning, and it could also be effected by offering it as on option activated with a checkbox in the "beginner" level interface. But it is a permissions level that is easily allowable, and that can be given expression in any number of user interface approaches. ------------------------------------------------------- David King Landrith (w) 617.227.4469x213 (h) 617.696.7133 One useless man is a disgrace, two are called a law firm, and three or more become a congress -- John Adams ------------------------------------------------------- public key available upon request From minter at lunenburg.org Sat Jul 8 21:18:05 2006 From: minter at lunenburg.org (H. Wade Minter) Date: Sat, 8 Jul 2006 21:18:05 -0400 Subject: [typo] Typo, Mongrel, and non-root-urls Message-ID: <069D6F21-51B4-4187-A510-08E4F0B2D74F@lunenburg.org> I'm trying to migrate my Typo installation at http:// www.lunenburg.org/wade/ from Apache/FastCGI to Mongrel via Apache proxies. The problem seems to be that Typo/Rails isn't liking the fact that Mongrel is running the blog at http://localhost:4001/ but the Apache proxy isn't at a root URL (/wade instead). I've tried the reverse_proxy_fix plugin, but it doesn't seem to be working. I can go to the root of the website just fine, but if I try to go to any other sub-URL (for example, http://www.lunenburg.org/ wade/articles/category/general), I get a "Page not found" error. Is there any particular bit I need to twiddle, in environment.rb or something, to get this to play nicely? Or do I need to fall back to Apache/FastCGI? I'm running Typo SVN rev 1088. Thanks, Wade From scott at sigkill.org Sat Jul 8 21:40:28 2006 From: scott at sigkill.org (scott at sigkill.org) Date: Sat, 8 Jul 2006 18:40:28 -0700 Subject: [typo] Typo, Mongrel, and non-root-urls In-Reply-To: <069D6F21-51B4-4187-A510-08E4F0B2D74F@lunenburg.org> References: <069D6F21-51B4-4187-A510-08E4F0B2D74F@lunenburg.org> Message-ID: <14b7e5ef0607081840r59c36a93v280a712c1f735d0e@mail.gmail.com> I think non-root hosting with mongrel is still a bit tricky. I'll look at it once I've closed a few more bugs. On 7/8/06, H. Wade Minter <minter at lunenburg.org> wrote: > I'm trying to migrate my Typo installation at http:// > www.lunenburg.org/wade/ from Apache/FastCGI to Mongrel via Apache > proxies. The problem seems to be that Typo/Rails isn't liking the > fact that Mongrel is running the blog at http://localhost:4001/ but > the Apache proxy isn't at a root URL (/wade instead). > > I've tried the reverse_proxy_fix plugin, but it doesn't seem to be > working. I can go to the root of the website just fine, but if I try > to go to any other sub-URL (for example, http://www.lunenburg.org/ > wade/articles/category/general), I get a "Page not found" error. > > Is there any particular bit I need to twiddle, in environment.rb or > something, to get this to play nicely? Or do I need to fall back to > Apache/FastCGI? > > I'm running Typo SVN rev 1088. > > Thanks, > Wade > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From minter at lunenburg.org Sat Jul 8 22:17:39 2006 From: minter at lunenburg.org (H. Wade Minter) Date: Sat, 8 Jul 2006 22:17:39 -0400 Subject: [typo] Typo, Mongrel, and non-root-urls In-Reply-To: <14b7e5ef0607081840r59c36a93v280a712c1f735d0e@mail.gmail.com> References: <069D6F21-51B4-4187-A510-08E4F0B2D74F@lunenburg.org> <14b7e5ef0607081840r59c36a93v280a712c1f735d0e@mail.gmail.com> Message-ID: <F5785F4B-6AC4-47F4-A31B-DCA9BCCDFDAF@lunenburg.org> Alright - I've switched back to FastCGI for now. If you've got anything you want me to test, let me know. --Wade On Jul 8, 2006, at 9:40 PM, scott at sigkill.org wrote: > I think non-root hosting with mongrel is still a bit tricky. I'll > look at it once I've closed a few more bugs. > > On 7/8/06, H. Wade Minter <minter at lunenburg.org> wrote: >> I'm trying to migrate my Typo installation at http:// >> www.lunenburg.org/wade/ from Apache/FastCGI to Mongrel via Apache >> proxies. The problem seems to be that Typo/Rails isn't liking the >> fact that Mongrel is running the blog at http://localhost:4001/ but >> the Apache proxy isn't at a root URL (/wade instead). >> >> I've tried the reverse_proxy_fix plugin, but it doesn't seem to be >> working. I can go to the root of the website just fine, but if I try >> to go to any other sub-URL (for example, http://www.lunenburg.org/ >> wade/articles/category/general), I get a "Page not found" error. >> >> Is there any particular bit I need to twiddle, in environment.rb or >> something, to get this to play nicely? Or do I need to fall back to >> Apache/FastCGI? >> >> I'm running Typo SVN rev 1088. >> >> Thanks, >> Wade >> _______________________________________________ >> 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 johncwang at gmail.com Sat Jul 8 22:34:01 2006 From: johncwang at gmail.com (John Wang) Date: Sat, 8 Jul 2006 19:34:01 -0700 Subject: [typo] XML-RPC and Digg Message-ID: <22a4faec0607081934y7c305c59j3d9113ced33e8a32@mail.gmail.com> I've been trying to get Digg to post articles to my Typo 2.6 blog using the metaWeblog API. Right now Digg reports back that Typo says the article has been successfully posted but nothing shows up in the database. I applied the nil patch to cgi_methods.rb but nothing changed. I also checked trac and most of the tickets seem to have errors associated with them and/or populates the database with an inactive article. Has anyone seen something like this or gotten Typo to work with Digg? Thanks -- John Wang http://www.dev411.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060708/50ae5d5b/attachment.html From jake at whoisjake.com Sat Jul 8 22:56:53 2006 From: jake at whoisjake.com (Jake Good) Date: Sat, 08 Jul 2006 21:56:53 -0500 Subject: [typo] typo:flickr fliter failing Message-ID: <44B07075.3060009@whoisjake.com> I'm getting this error now (after svn update today, rev. 1088) when I use the typo:flickr tag: `179119548? could not be displayed because: private method `gsub? called for {}:Hash After a quick pass through the text filter I'm lost... Anyone else seeing this? Jake From steve.longdo at gmail.com Sat Jul 8 23:10:25 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Sat, 8 Jul 2006 22:10:25 -0500 Subject: [typo] MySQL error after SVN up to 1088... Message-ID: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> I did a fresh checkout of r1088 and ran 'rake migrate' to update. I believe that is a migration from 42 to 46. This ran without error. When I attempt to view the site I get a message stating: Controller stack got out of kilter! I saw this in the log: Processing ArchivesController#index (for 127.0.0.1 at 2006-07-08 22:01:11) Blog Load (0.002360) SELECT * FROM blogs ORDER BY id LIMIT 1 Trigger Load (0.000713) SELECT * FROM triggers WHERE (due_at <= '2006-07-08 22:01:11') Content Load (0.000000) Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''12'' at line 1: select count(*) as count, extract(year from published_at)||' '||lpad(extract(month from published_at),2,'0') as date from contents where type='Article' and published = 1 and published_at < '2006-07-08 22:01:11' group by date order by date desc limit '12' Anybody seen this before? Is the Archives Sidebar broken? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060708/9e410694/attachment-0001.html From minter at lunenburg.org Sat Jul 8 23:18:10 2006 From: minter at lunenburg.org (H. Wade Minter) Date: Sat, 8 Jul 2006 23:18:10 -0400 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> Message-ID: <DA4849F7-6215-4016-B587-5BBD2401B7D7@lunenburg.org> I On Jul 8, 2006, at 11:10 PM, Steve Longdo wrote: > I did a fresh checkout of r1088 and ran 'rake migrate' to update. > I believe that is a migration from 42 to 46. This ran without > error. When I attempt to view the site I get a message stating: > Controller stack got out of kilter! > > I saw this in the log: > Processing ArchivesController#index (for 127.0.0.1 at 2006-07-08 > 22:01:11) > Blog Load (0.002360) SELECT * FROM blogs ORDER BY id LIMIT 1 > Trigger Load ( 0.000713) SELECT * FROM triggers WHERE (due_at > <= '2006-07-08 22:01:11') > Content Load (0.000000) Mysql::Error: You have an error in your > SQL syntax; check the manual that corresponds to your MySQL server > version for the right syntax to use near ''12'' at line 1: select > count(*) as count, extract(year from published_at)||' '||lpad > (extract(month from published_at),2,'0') as date from contents > where type='Article' and published = 1 and published_at < > '2006-07-08 22:01:11' group by date order by date desc limit '12' > > Anybody seen this before? Is the Archives Sidebar broken? I noticed that as well when I upgraded, but haven't had the time to track it down. But yeah, I saw the exact same thing. --Wade From steve.longdo at gmail.com Sat Jul 8 23:19:36 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Sat, 8 Jul 2006 22:19:36 -0500 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> Message-ID: <cc4e85f30607082019j2589b519pc43f74ca3dd20374@mail.gmail.com> Yeah. The sidebar configuration makes the limit 12 out ot be String which MySQL doesn't like. I have removed the Archive sidebar for now and the site loads correctly. I'll see if I can patch the Archives Sidebar. On 7/8/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > I did a fresh checkout of r1088 and ran 'rake migrate' to update. I > believe that is a migration from 42 to 46. This ran without error. When I > attempt to view the site I get a message stating: Controller stack got out > of kilter! > > I saw this in the log: > Processing ArchivesController#index (for 127.0.0.1 at 2006-07-08 22:01:11) > Blog Load (0.002360) SELECT * FROM blogs ORDER BY id LIMIT 1 > Trigger Load ( 0.000713) SELECT * FROM triggers WHERE (due_at <= > '2006-07-08 22:01:11') > Content Load (0.000000) Mysql::Error: You have an error in your SQL > syntax; check the manual that corresponds to your MySQL server version for > the right syntax to use near ''12'' at line 1: select count(*) as count, > extract(year from published_at)||' '||lpad(extract(month from > published_at),2,'0') as date from contents where type='Article' and > published = 1 and published_at < '2006-07-08 22:01:11' group by date order > by date desc limit '12' > > Anybody seen this before? Is the Archives Sidebar broken? > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060708/142a7109/attachment.html From scott at sigkill.org Sat Jul 8 23:26:22 2006 From: scott at sigkill.org (Scott Laird) Date: Sat, 8 Jul 2006 20:26:22 -0700 Subject: [typo] typo:flickr fliter failing In-Reply-To: <44B07075.3060009@whoisjake.com> References: <44B07075.3060009@whoisjake.com> Message-ID: <14b7e5ef0607082026k1ca23788yc58495860457d2b8@mail.gmail.com> Can you paste the whole backtrace so we can see which line numbers are involved? Scott On 7/8/06, Jake Good <jake at whoisjake.com> wrote: > > I'm getting this error now (after svn update today, rev. 1088) when I > use the typo:flickr tag: > > `179119548' could not be displayed because: > private method `gsub' called for {}:Hash > > After a quick pass through the text filter I'm lost... Anyone else > seeing this? > > Jake > _______________________________________________ > 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/20060708/84a7da7a/attachment.html From steve.longdo at gmail.com Sun Jul 9 00:13:04 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Sat, 8 Jul 2006 23:13:04 -0500 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <DA4849F7-6215-4016-B587-5BBD2401B7D7@lunenburg.org> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <DA4849F7-6215-4016-B587-5BBD2401B7D7@lunenburg.org> Message-ID: <cc4e85f30607082113q277be3a7s27ff2f8ba5a31fde@mail.gmail.com> Well the fix for the MySQL error is simple enough just add "to_i" to the count variable that is passed on line 19 of the archives controller. It still doesn't render correctly though: Archives - Master Archive <http://localhost:3000/articles/archives> - 1 () <http://localhost:3000/articles/find_by_date?month=0&year=1> On 7/8/06, H. Wade Minter <minter at lunenburg.org> wrote: > > I > On Jul 8, 2006, at 11:10 PM, Steve Longdo wrote: > > > I did a fresh checkout of r1088 and ran 'rake migrate' to update. > > I believe that is a migration from 42 to 46. This ran without > > error. When I attempt to view the site I get a message stating: > > Controller stack got out of kilter! > > > > I saw this in the log: > > Processing ArchivesController#index (for 127.0.0.1 at 2006-07-08 > > 22:01:11) > > Blog Load (0.002360) SELECT * FROM blogs ORDER BY id LIMIT 1 > > Trigger Load ( 0.000713) SELECT * FROM triggers WHERE (due_at > > <= '2006-07-08 22:01:11') > > Content Load (0.000000) Mysql::Error: You have an error in your > > SQL syntax; check the manual that corresponds to your MySQL server > > version for the right syntax to use near ''12'' at line 1: select > > count(*) as count, extract(year from published_at)||' '||lpad > > (extract(month from published_at),2,'0') as date from contents > > where type='Article' and published = 1 and published_at < > > '2006-07-08 22:01:11' group by date order by date desc limit '12' > > > > Anybody seen this before? Is the Archives Sidebar broken? > > I noticed that as well when I upgraded, but haven't had the time to > track it down. But yeah, I saw the exact same thing. > > --Wade > > _______________________________________________ > 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/20060708/af3c3c86/attachment.html From scott at sigkill.org Sun Jul 9 00:48:53 2006 From: scott at sigkill.org (Scott Laird) Date: Sat, 8 Jul 2006 21:48:53 -0700 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <cc4e85f30607082113q277be3a7s27ff2f8ba5a31fde@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <DA4849F7-6215-4016-B587-5BBD2401B7D7@lunenburg.org> <cc4e85f30607082113q277be3a7s27ff2f8ba5a31fde@mail.gmail.com> Message-ID: <14b7e5ef0607082148v4f182c3bia4c13f43899c34a7@mail.gmail.com> Can you give 1089 a try? Scott On 7/8/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > Well the fix for the MySQL error is simple enough just add "to_i" to the > count variable that is passed on line 19 of the archives controller. It > still doesn't render correctly though: > > Archives > > - Master Archive <http://localhost:3000/articles/archives> > - 1 () <http://localhost:3000/articles/find_by_date?month=0&year=1> > > > > On 7/8/06, H. Wade Minter <minter at lunenburg.org> wrote: > > > > I > > On Jul 8, 2006, at 11:10 PM, Steve Longdo wrote: > > > > > I did a fresh checkout of r1088 and ran 'rake migrate' to update. > > > I believe that is a migration from 42 to 46. This ran without > > > error. When I attempt to view the site I get a message stating: > > > Controller stack got out of kilter! > > > > > > I saw this in the log: > > > Processing ArchivesController#index (for 127.0.0.1 at 2006-07-08 > > > 22:01:11) > > > Blog Load ( 0.002360) SELECT * FROM blogs ORDER BY id LIMIT 1 > > > Trigger Load ( 0.000713) SELECT * FROM triggers WHERE (due_at > > > <= '2006-07-08 22:01:11') > > > Content Load (0.000000) Mysql::Error: You have an error in your > > > SQL syntax; check the manual that corresponds to your MySQL server > > > version for the right syntax to use near ''12'' at line 1: select > > > count(*) as count, extract(year from published_at)||' '||lpad > > > (extract(month from published_at),2,'0') as date from contents > > > where type='Article' and published = 1 and published_at < > > > '2006-07-08 22:01:11' group by date order by date desc limit '12' > > > > > > Anybody seen this before? Is the Archives Sidebar broken? > > > > I noticed that as well when I upgraded, but haven't had the time to > > track it down. But yeah, I saw the exact same thing. > > > > --Wade > > > > _______________________________________________ > > 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/20060708/47dd9271/attachment.html From scott at sigkill.org Sun Jul 9 00:51:17 2006 From: scott at sigkill.org (Scott Laird) Date: Sat, 8 Jul 2006 21:51:17 -0700 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <14b7e5ef0607082148v4f182c3bia4c13f43899c34a7@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <DA4849F7-6215-4016-B587-5BBD2401B7D7@lunenburg.org> <cc4e85f30607082113q277be3a7s27ff2f8ba5a31fde@mail.gmail.com> <14b7e5ef0607082148v4f182c3bia4c13f43899c34a7@mail.gmail.com> Message-ID: <14b7e5ef0607082151y352f29d3la84f061e29d658cd@mail.gmail.com> If that doesn't work, then can you run this query and send me the results? select count(*) as count, extract(year from published_at)||' '||lpad(extract(month from published_at),2,'0') as date from contents where type='Article' group by date order by date desc limit 5; Scott On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > Can you give 1089 a try? > > > Scott > > > On 7/8/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > > Well the fix for the MySQL error is simple enough just add "to_i" to the > count variable that is passed on line 19 of the archives controller. It > still doesn't render correctly though: > > > Archives > Master Archive > 1 () > > > On 7/8/06, H. Wade Minter < minter at lunenburg.org> wrote: > > I > > On Jul 8, 2006, at 11:10 PM, Steve Longdo wrote: > > > > > I did a fresh checkout of r1088 and ran 'rake migrate' to update. > > > I believe that is a migration from 42 to 46. This ran without > > > error. When I attempt to view the site I get a message stating: > > > Controller stack got out of kilter! > > > > > > I saw this in the log: > > > Processing ArchivesController#index (for 127.0.0.1 at 2006-07-08 > > > 22:01:11) > > > Blog Load ( 0.002360) SELECT * FROM blogs ORDER BY id LIMIT 1 > > > Trigger Load ( 0.000713) SELECT * FROM triggers WHERE (due_at > > > <= '2006-07-08 22:01:11') > > > Content Load (0.000000) Mysql::Error: You have an error in your > > > SQL syntax; check the manual that corresponds to your MySQL server > > > version for the right syntax to use near ''12'' at line 1: select > > > count(*) as count, extract(year from published_at)||' '||lpad > > > (extract(month from published_at),2,'0') as date from contents > > > where type='Article' and published = 1 and published_at < > > > '2006-07-08 22:01:11' group by date order by date desc limit '12' > > > > > > Anybody seen this before? Is the Archives Sidebar broken? > > > > I noticed that as well when I upgraded, but haven't had the time to > > track it down. But yeah, I saw the exact same thing. > > > > --Wade > > > > _______________________________________________ > > 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 steve.longdo at gmail.com Sun Jul 9 01:50:51 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Sun, 9 Jul 2006 00:50:51 -0500 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <14b7e5ef0607082151y352f29d3la84f061e29d658cd@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <DA4849F7-6215-4016-B587-5BBD2401B7D7@lunenburg.org> <cc4e85f30607082113q277be3a7s27ff2f8ba5a31fde@mail.gmail.com> <14b7e5ef0607082148v4f182c3bia4c13f43899c34a7@mail.gmail.com> <14b7e5ef0607082151y352f29d3la84f061e29d658cd@mail.gmail.com> Message-ID: <cc4e85f30607082250q2a41a2f0jf1eef17ed2889944@mail.gmail.com> 1089 resolves the SQL error, but the archives sidebar still renders as 1(). Here is the result of that query: mysql> select count(*) as count, extract(year from published_at)||' '> '||lpad(extract(month from published_at),2,'0') as date from contents -> where type='Article' group by date order by date desc limit 5; +-------+------+ | count | date | +-------+------+ | 71 | 1 | +-------+------+ 1 row in set (0.01 sec) On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > > If that doesn't work, then can you run this query and send me the results? > > select count(*) as count, extract(year from published_at)||' > '||lpad(extract(month from published_at),2,'0') as date from contents > where type='Article' group by date order by date desc limit 5; > > > Scott > > On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > > Can you give 1089 a try? > > > > > > Scott > > > > > > On 7/8/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > > > > > Well the fix for the MySQL error is simple enough just add "to_i" to the > > count variable that is passed on line 19 of the archives controller. It > > still doesn't render correctly though: > > > > > > Archives > > Master Archive > > 1 () > > > > > > On 7/8/06, H. Wade Minter < minter at lunenburg.org> wrote: > > > I > > > On Jul 8, 2006, at 11:10 PM, Steve Longdo wrote: > > > > > > > I did a fresh checkout of r1088 and ran 'rake migrate' to update. > > > > I believe that is a migration from 42 to 46. This ran without > > > > error. When I attempt to view the site I get a message stating: > > > > Controller stack got out of kilter! > > > > > > > > I saw this in the log: > > > > Processing ArchivesController#index (for 127.0.0.1 at 2006-07-08 > > > > 22:01:11) > > > > Blog Load ( 0.002360) SELECT * FROM blogs ORDER BY id LIMIT 1 > > > > Trigger Load ( 0.000713) SELECT * FROM triggers WHERE (due_at > > > > <= '2006-07-08 22:01:11') > > > > Content Load (0.000000) Mysql::Error: You have an error in your > > > > SQL syntax; check the manual that corresponds to your MySQL server > > > > version for the right syntax to use near ''12'' at line 1: select > > > > count(*) as count, extract(year from published_at)||' '||lpad > > > > (extract(month from published_at),2,'0') as date from contents > > > > where type='Article' and published = 1 and published_at < > > > > '2006-07-08 22:01:11' group by date order by date desc limit '12' > > > > > > > > Anybody seen this before? Is the Archives Sidebar broken? > > > > > > I noticed that as well when I upgraded, but haven't had the time to > > > track it down. But yeah, I saw the exact same thing. > > > > > > --Wade > > > > > > _______________________________________________ > > > 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/20060709/9f35c66e/attachment.html From scott at sigkill.org Sun Jul 9 10:25:48 2006 From: scott at sigkill.org (Scott Laird) Date: Sun, 9 Jul 2006 07:25:48 -0700 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <cc4e85f30607082250q2a41a2f0jf1eef17ed2889944@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <DA4849F7-6215-4016-B587-5BBD2401B7D7@lunenburg.org> <cc4e85f30607082113q277be3a7s27ff2f8ba5a31fde@mail.gmail.com> <14b7e5ef0607082148v4f182c3bia4c13f43899c34a7@mail.gmail.com> <14b7e5ef0607082151y352f29d3la84f061e29d658cd@mail.gmail.com> <cc4e85f30607082250q2a41a2f0jf1eef17ed2889944@mail.gmail.com> Message-ID: <14b7e5ef0607090725o20dc6ed3re863a9bc40e84ea0@mail.gmail.com> That's... bizarre. Can you play with it a bit? Does extract(month from published_at) and extract(year from published_at) work right? Scott On 7/8/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > 1089 resolves the SQL error, but the archives sidebar still renders as > 1(). > > Here is the result of that query: > > mysql> select count(*) as count, extract(year from published_at)||' > > '> '||lpad(extract(month from published_at),2,'0') as date from > contents > -> where type='Article' group by date order by date desc limit 5; > +-------+------+ > | count | date | > +-------+------+ > | 71 | 1 | > +-------+------+ > 1 row in set (0.01 sec) > > > > On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > > > > If that doesn't work, then can you run this query and send me the > > results? > > > > select count(*) as count, extract(year from published_at)||' > > '||lpad(extract(month from published_at),2,'0') as date from contents > > where type='Article' group by date order by date desc limit 5; > > > > > > Scott > > > > On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > > > Can you give 1089 a try? > > > > > > > > > Scott > > > > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > > > Well the fix for the MySQL error is simple enough just add "to_i" to > > the > > > count variable that is passed on line 19 of the archives > > controller. It > > > still doesn't render correctly though: > > > > > > > > > Archives > > > Master Archive > > > 1 () > > > > > > > > > On 7/8/06, H. Wade Minter < minter at lunenburg.org > wrote: > > > > I > > > > On Jul 8, 2006, at 11:10 PM, Steve Longdo wrote: > > > > > > > > > I did a fresh checkout of r1088 and ran 'rake migrate' to update. > > > > > I believe that is a migration from 42 to 46. This ran without > > > > > error. When I attempt to view the site I get a message stating: > > > > > Controller stack got out of kilter! > > > > > > > > > > I saw this in the log: > > > > > Processing ArchivesController#index (for 127.0.0.1 at 2006-07-08 > > > > > 22:01:11) > > > > > Blog Load ( 0.002360) SELECT * FROM blogs ORDER BY id LIMIT 1 > > > > > Trigger Load ( 0.000713) SELECT * FROM triggers WHERE (due_at > > > > > <= '2006-07-08 22:01:11') > > > > > Content Load (0.000000) Mysql::Error: You have an error in > > your > > > > > SQL syntax; check the manual that corresponds to your MySQL server > > > > > version for the right syntax to use near ''12'' at line 1: select > > > > > count(*) as count, extract(year from published_at)||' '||lpad > > > > > (extract(month from published_at),2,'0') as date from contents > > > > > where type='Article' and published = 1 and published_at < > > > > > '2006-07-08 22:01:11' group by date order by date desc limit '12' > > > > > > > > > > Anybody seen this before? Is the Archives Sidebar broken? > > > > > > > > I noticed that as well when I upgraded, but haven't had the time to > > > > track it down. But yeah, I saw the exact same thing. > > > > > > > > --Wade > > > > > > > > _______________________________________________ > > > > 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/20060709/4c52511f/attachment.html From urban at bettong.net Sun Jul 9 11:27:18 2006 From: urban at bettong.net (Urban Hafner) Date: Sun, 9 Jul 2006 17:27:18 +0200 Subject: [typo] Why is the body of the static sidebar escaped? Message-ID: <A9F89480-86E9-4EC7-BA66-20B55589EFCB@bettong.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hej! Changeset 1091 escapes the contents of the static sidebar. Until now I had static sidebar that contained a list of links. Now it obviously displays the escaped HTML, which I assume wasn't the idea ... Urban - -- http://bettong.net - Urban's Blog -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (Darwin) iD8DBQFEsSBeggNuVCIrEyURAjqIAKCKjJYoMzsBs9Gaf6V5vm43MqeKCACguM81 iFdotsKyrDE8EW97pIw2jMc= =Ai7L -----END PGP SIGNATURE----- From steve.longdo at gmail.com Sun Jul 9 11:34:32 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Sun, 9 Jul 2006 10:34:32 -0500 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <14b7e5ef0607090725o20dc6ed3re863a9bc40e84ea0@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <DA4849F7-6215-4016-B587-5BBD2401B7D7@lunenburg.org> <cc4e85f30607082113q277be3a7s27ff2f8ba5a31fde@mail.gmail.com> <14b7e5ef0607082148v4f182c3bia4c13f43899c34a7@mail.gmail.com> <14b7e5ef0607082151y352f29d3la84f061e29d658cd@mail.gmail.com> <cc4e85f30607082250q2a41a2f0jf1eef17ed2889944@mail.gmail.com> <14b7e5ef0607090725o20dc6ed3re863a9bc40e84ea0@mail.gmail.com> Message-ID: <cc4e85f30607090834r35088d41x5f0a86f7de6988c2@mail.gmail.com> Seems to be something with the || concat. I switched to the function: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 4.1.14-standard mysql> select count(*) as count, concat(extract(year from published_at),lpad(extract(month from published_at),2,'0')) as date from contents where type='Article' group by date order by date desc limit 5; +-------+--------+ | count | date | +-------+--------+ | 1 | 200607 | | 8 | 200606 | | 7 | 200605 | | 5 | 200604 | | 14 | 200603 | +-------+--------+ 5 rows in set (0.03 sec) Is it maybe just an issue on MySQL prior to version 5? Most of the shared hosts haven't upgraded to 5 yet... On 7/9/06, Scott Laird <scott at sigkill.org> wrote: > > That's... bizarre. > > Can you play with it a bit? Does extract(month from published_at) and > extract(year from published_at) work right? > > > Scott > > On 7/8/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > 1089 resolves the SQL error, but the archives sidebar still renders as > 1(). > > Here is the result of that query: > > mysql> select count(*) as count, extract(year from published_at)||' > > '> '||lpad(extract(month from published_at),2,'0') as date from > contents > -> where type='Article' group by date order by date desc limit 5; > +-------+------+ > | count | date | > +-------+------+ > | 71 | 1 | > +-------+------+ > 1 row in set (0.01 sec) > > > > On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > > > > If that doesn't work, then can you run this query and send me the > > results? > > > > select count(*) as count, extract(year from published_at)||' > > '||lpad(extract(month from published_at),2,'0') as date from contents > > where type='Article' group by date order by date desc limit 5; > > > > > > Scott > > > > On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > > > Can you give 1089 a try? > > > > > > > > > Scott > > > > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > > > Well the fix for the MySQL error is simple enough just add "to_i" to > > the > > > count variable that is passed on line 19 of the archives > > controller. It > > > still doesn't render correctly though: > > > > > > > > > Archives > > > Master Archive > > > 1 () > > > > > > > > > On 7/8/06, H. Wade Minter < minter at lunenburg.org > wrote: > > > > I > > > > On Jul 8, 2006, at 11:10 PM, Steve Longdo wrote: > > > > > > > > > I did a fresh checkout of r1088 and ran 'rake migrate' to update. > > > > > I believe that is a migration from 42 to 46. This ran without > > > > > error. When I attempt to view the site I get a message stating: > > > > > Controller stack got out of kilter! > > > > > > > > > > I saw this in the log: > > > > > Processing ArchivesController#index (for 127.0.0.1 at 2006-07-08 > > > > > 22:01:11) > > > > > Blog Load ( 0.002360) SELECT * FROM blogs ORDER BY id LIMIT 1 > > > > > Trigger Load ( 0.000713) SELECT * FROM triggers WHERE (due_at > > > > > <= '2006-07-08 22:01:11') > > > > > Content Load (0.000000) Mysql::Error: You have an error in > > your > > > > > SQL syntax; check the manual that corresponds to your MySQL server > > > > > version for the right syntax to use near ''12'' at line 1: select > > > > > count(*) as count, extract(year from published_at)||' '||lpad > > > > > (extract(month from published_at),2,'0') as date from contents > > > > > where type='Article' and published = 1 and published_at < > > > > > '2006-07-08 22:01:11' group by date order by date desc limit '12' > > > > > > > > > > Anybody seen this before? Is the Archives Sidebar broken? > > > > > > > > I noticed that as well when I upgraded, but haven't had the time to > > > > track it down. But yeah, I saw the exact same thing. > > > > > > > > --Wade > > > > > > > > _______________________________________________ > > > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060709/26b67131/attachment-0001.html From jake at whoisjake.com Sun Jul 9 11:47:34 2006 From: jake at whoisjake.com (Jake Good) Date: Sun, 09 Jul 2006 10:47:34 -0500 Subject: [typo] typo:flickr fliter failing In-Reply-To: <14b7e5ef0607082026k1ca23788yc58495860457d2b8@mail.gmail.com> References: <44B07075.3060009@whoisjake.com> <14b7e5ef0607082026k1ca23788yc58495860457d2b8@mail.gmail.com> Message-ID: <44B12516.9080303@whoisjake.com> Processing ArticlesController#index (for XX.XXX.XX.XXX at 2006-07-09 08:43:59) [GET] Parameters: {"action"=>"index", "controller"=>"articles"} Rendering within ../../themes/brighthouse/layouts/default Rendering articles/index private method `gsub' called for {}:Hash (NoMethodError) /usr/lib/ruby/1.8/cgi.rb:370:in `unescapeHTML' ../config/../components/plugins/textfilters/flickr_controller.rb:58:in `macrofilter' ../config/../lib/text_filter_plugin.rb:79:in `filtertext' ../config/../lib/text_filter_plugin.rb:78:in `gsub' ../config/../lib/text_filter_plugin.rb:78:in `filtertext' ../config/../components/plugins/textfilters/macropost_controller.rb:10:in `filtertext' ../config/../components/plugins/textfilters/macropost_controller.rb:9:in `inject' ../config/../components/plugins/textfilters/macropost_controller.rb:9:in `each' ../config/../components/plugins/textfilters/macropost_controller.rb:9:in `inject' ../config/../components/plugins/textfilters/macropost_controller.rb:9:in `filtertext' ../config/../app/models/text_filter.rb:52:in `filter_text' ../config/../app/models/text_filter.rb:47:in `each' ../config/../app/models/text_filter.rb:47:in `filter_text' ../config/../app/models/text_filter.rb:67:in `filter_text_for_controller' ../config/../app/models/content.rb:132:in `populate_html_fields' ../config/../app/models/content.rb:130:in `each' ../config/../app/models/content.rb:130:in `populate_html_fields' ../config/../app/models/content.rb:140:in `html' ../config/../app/models/content.rb:52:in `body_html' ../config/../app/models/content.rb:50:in `body_html' ../config/../app/views/./articles/_article.rhtml:4:in `_run_rhtml_articles__article' ../config/../vendor/rails/actionpack/lib/action_view/base.rb:314:in `send' ../config/../vendor/rails/actionpack/lib/action_view/base.rb:314:in `compile_and_render_template' ../config/../vendor/rails/actionpack/lib/action_view/base.rb:290:in `render_template' ../config/../vendor/rails/actionpack/lib/action_view/base.rb:249:in `render_file' ../config/../vendor/rails/actionpack/lib/action_view/base.rb:264:in `render' ../config/../vendor/rails/actionpack/lib/action_view/partials.rb:59:in `render_partial' ../config/../vendor/rails/actionpack/lib/action_view/partials.rb:58:in `benchmark' ../config/../vendor/rails/actionpack/lib/action_view/partials.rb:58:in `render_partial' ../config/../app/views/./articles/index.rhtml:3:in `_run_rhtml_articles_index' ../config/../app/views/./articles/index.rhtml:1:in `each' ../config/../app/views/./articles/index.rhtml:1:in `_run_rhtml_articles_index' ../config/../vendor/rails/actionpack/lib/action_view/base.rb:314:in `send' ../config/../vendor/rails/actionpack/lib/action_view/base.rb:314:in `compile_and_render_template' ../config/../vendor/rails/actionpack/lib/action_view/base.rb:290:in `render_template' ../config/../vendor/rails/actionpack/lib/action_view/base.rb:249:in `render_file' ../config/../vendor/rails/actionpack/lib/action_controller/base.rb:699:in `render_file' ../config/../vendor/rails/actionpack/lib/action_controller/base.rb:621:in `render_with_no_layout' ../config/../vendor/rails/actionpack/lib/action_controller/layout.rb:243:in `render_without_benchmark' ../config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in `render' ../config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in `measure' ../config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in `render' ../config/../vendor/rails/actionpack/lib/action_controller/base.rb:911:in `perform_action_without_filters' ../config/../vendor/rails/actionpack/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' ../config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' ../config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `measure' ../config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' ../config/../vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in `perform_action' ../config/../vendor/rails/actionpack/lib/action_controller/base.rb:381:in `send' ../config/../vendor/rails/actionpack/lib/action_controller/base.rb:381:in `process_without_filters' ../config/../vendor/rails/actionpack/lib/action_controller/filters.rb:377:in `process_without_session_management_support' ../config/../vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in `process' ../config/../vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' ../config/../vendor/rails/railties/lib/fcgi_handler.rb:150:in `process_request' ../config/../vendor/rails/railties/lib/fcgi_handler.rb:54:in `process!' ../config/../vendor/rails/railties/lib/fcgi_handler.rb:53:in `each_cgi' /usr/lib/ruby/1.8/fcgi.rb:597:in `each' /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' ../config/../vendor/rails/railties/lib/fcgi_handler.rb:53:in `process!' ../config/../vendor/rails/railties/lib/fcgi_handler.rb:23:in `process!' dispatch.fcgi:34 Scott Laird wrote: > Can you paste the whole backtrace so we can see which line numbers are > involved? > > > Scott > > On 7/8/06, *Jake Good* < jake at whoisjake.com > <mailto:jake at whoisjake.com>> wrote: > > I'm getting this error now (after svn update today, rev. 1088) when I > use the typo:flickr tag: > > `179119548' could not be displayed because: > private method `gsub' called for {}:Hash > > After a quick pass through the text filter I'm lost... Anyone else > seeing this? > > Jake > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org <mailto:Typo-list at rubyforge.org> > http://rubyforge.org/mailman/listinfo/typo-list > <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 Sun Jul 9 11:57:13 2006 From: scott at sigkill.org (Scott Laird) Date: Sun, 9 Jul 2006 08:57:13 -0700 Subject: [typo] Why is the body of the static sidebar escaped? In-Reply-To: <A9F89480-86E9-4EC7-BA66-20B55589EFCB@bettong.net> References: <A9F89480-86E9-4EC7-BA66-20B55589EFCB@bettong.net> Message-ID: <14b7e5ef0607090857i228d33adue992ec3d51592dce@mail.gmail.com> Yeah, that's not quite right. Give me a few minutes. Scott On 7/9/06, Urban Hafner <urban at bettong.net> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hej! > > Changeset 1091 escapes the contents of the static sidebar. Until now > I had static sidebar that contained a list of links. Now it obviously > displays the escaped HTML, which I assume wasn't the idea ... > > Urban > - -- > http://bettong.net - Urban's Blog > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.4 (Darwin) > > iD8DBQFEsSBeggNuVCIrEyURAjqIAKCKjJYoMzsBs9Gaf6V5vm43MqeKCACguM81 > iFdotsKyrDE8EW97pIw2jMc= > =Ai7L > -----END PGP SIGNATURE----- > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060709/f8c373df/attachment.html From scott at sigkill.org Sun Jul 9 12:04:13 2006 From: scott at sigkill.org (Scott Laird) Date: Sun, 9 Jul 2006 09:04:13 -0700 Subject: [typo] Why is the body of the static sidebar escaped? In-Reply-To: <14b7e5ef0607090857i228d33adue992ec3d51592dce@mail.gmail.com> References: <A9F89480-86E9-4EC7-BA66-20B55589EFCB@bettong.net> <14b7e5ef0607090857i228d33adue992ec3d51592dce@mail.gmail.com> Message-ID: <14b7e5ef0607090904k4f5aec2bg9db618efcb6193fb@mail.gmail.com> Can you give r1096 a try? Scott On 7/9/06, Scott Laird <scott at sigkill.org> wrote: > > Yeah, that's not quite right. Give me a few minutes. > > > Scott > > > On 7/9/06, Urban Hafner <urban at bettong.net > wrote: > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Hej! > > > > Changeset 1091 escapes the contents of the static sidebar. Until now > > I had static sidebar that contained a list of links. Now it obviously > > displays the escaped HTML, which I assume wasn't the idea ... > > > > Urban > > - -- > > http://bettong.net - Urban's Blog > > > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.4 (Darwin) > > > > iD8DBQFEsSBeggNuVCIrEyURAjqIAKCKjJYoMzsBs9Gaf6V5vm43MqeKCACguM81 > > iFdotsKyrDE8EW97pIw2jMc= > > =Ai7L > > -----END PGP SIGNATURE----- > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060709/7c04b5b5/attachment.html From scott at sigkill.org Sun Jul 9 12:04:45 2006 From: scott at sigkill.org (Scott Laird) Date: Sun, 9 Jul 2006 09:04:45 -0700 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <cc4e85f30607090834r35088d41x5f0a86f7de6988c2@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <DA4849F7-6215-4016-B587-5BBD2401B7D7@lunenburg.org> <cc4e85f30607082113q277be3a7s27ff2f8ba5a31fde@mail.gmail.com> <14b7e5ef0607082148v4f182c3bia4c13f43899c34a7@mail.gmail.com> <14b7e5ef0607082151y352f29d3la84f061e29d658cd@mail.gmail.com> <cc4e85f30607082250q2a41a2f0jf1eef17ed2889944@mail.gmail.com> <14b7e5ef0607090725o20dc6ed3re863a9bc40e84ea0@mail.gmail.com> <cc4e85f30607090834r35088d41x5f0a86f7de6988c2@mail.gmail.com> Message-ID: <14b7e5ef0607090904h743b5e11j67a7151d22bf3114@mail.gmail.com> Can you try r1096? Scott On 7/9/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > Seems to be something with the || concat. I switched to the function: > > Welcome to the MySQL monitor. Commands end with ; or \g. > Your MySQL connection id is 1 to server version: 4.1.14-standard > > mysql> select count(*) as count, concat(extract(year from > published_at),lpad(extract(month from published_at),2,'0')) as date from > contents where type='Article' group by date order by date desc limit 5; > +-------+--------+ > | count | date | > +-------+--------+ > | 1 | 200607 | > | 8 | 200606 | > | 7 | 200605 | > | 5 | 200604 | > | 14 | 200603 | > +-------+--------+ > 5 rows in set (0.03 sec) > > Is it maybe just an issue on MySQL prior to version 5? Most of the shared > hosts haven't upgraded to 5 yet... > > On 7/9/06, Scott Laird < scott at sigkill.org> wrote: > > > That's... bizarre. > > Can you play with it a bit? Does extract(month from published_at) and > extract(year from published_at) work right? > > > Scott > > On 7/8/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > 1089 resolves the SQL error, but the archives sidebar still renders as > 1(). > > Here is the result of that query: > > mysql> select count(*) as count, extract(year from published_at)||' > > '> '||lpad(extract(month from published_at),2,'0') as date from > contents > -> where type='Article' group by date order by date desc limit 5; > +-------+------+ > | count | date | > +-------+------+ > | 71 | 1 | > +-------+------+ > 1 row in set (0.01 sec) > > > > On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > > > > If that doesn't work, then can you run this query and send me the > > results? > > > > select count(*) as count, extract(year from published_at)||' > > '||lpad(extract(month from published_at),2,'0') as date from contents > > where type='Article' group by date order by date desc limit 5; > > > > > > Scott > > > > On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > > > Can you give 1089 a try? > > > > > > > > > Scott > > > > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > > > Well the fix for the MySQL error is simple enough just add "to_i" to > > the > > > count variable that is passed on line 19 of the archives > > controller. It > > > still doesn't render correctly though: > > > > > > > > > Archives > > > Master Archive > > > 1 () > > > > > > > > > On 7/8/06, H. Wade Minter < minter at lunenburg.org > wrote: > > > > I > > > > On Jul 8, 2006, at 11:10 PM, Steve Longdo wrote: > > > > > > > > > I did a fresh checkout of r1088 and ran 'rake migrate' to update. > > > > > I believe that is a migration from 42 to 46. This ran without > > > > > error. When I attempt to view the site I get a message stating: > > > > > Controller stack got out of kilter! > > > > > > > > > > I saw this in the log: > > > > > Processing ArchivesController#index (for 127.0.0.1 at 2006-07-08 > > > > > 22:01:11) > > > > > Blog Load ( 0.002360) SELECT * FROM blogs ORDER BY id LIMIT 1 > > > > > Trigger Load ( 0.000713) SELECT * FROM triggers WHERE (due_at > > > > > <= '2006-07-08 22:01:11') > > > > > Content Load (0.000000) Mysql::Error: You have an error in > > your > > > > > SQL syntax; check the manual that corresponds to your MySQL server > > > > > version for the right syntax to use near ''12'' at line 1: select > > > > > count(*) as count, extract(year from published_at)||' '||lpad > > > > > (extract(month from published_at),2,'0') as date from contents > > > > > where type='Article' and published = 1 and published_at < > > > > > '2006-07-08 22:01:11' group by date order by date desc limit '12' > > > > > > > > > > Anybody seen this before? Is the Archives Sidebar broken? > > > > > > > > I noticed that as well when I upgraded, but haven't had the time to > > > > track it down. But yeah, I saw the exact same thing. > > > > > > > > --Wade > > > > > > > > _______________________________________________ > > > > 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 > > > > _______________________________________________ > 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/20060709/95bc0ebc/attachment-0001.html From chris at heartsong.biz Sun Jul 9 12:22:48 2006 From: chris at heartsong.biz (Chris Clark) Date: Sun, 9 Jul 2006 09:22:48 -0700 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <14b7e5ef0607090904h743b5e11j67a7151d22bf3114@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <DA4849F7-6215-4016-B587-5BBD2401B7D7@lunenburg.org> <cc4e85f30607082113q277be3a7s27ff2f8ba5a31fde@mail.gmail.com> <14b7e5ef0607082148v4f182c3bia4c13f43899c34a7@mail.gmail.com> <14b7e5ef0607082151y352f29d3la84f061e29d658cd@mail.gmail.com> <cc4e85f30607082250q2a41a2f0jf1eef17ed2889944@mail.gmail.com> <14b7e5ef0607090725o20dc6ed3re863a9bc40e84ea0@mail.gmail.com> <cc4e85f30607090834r35088d41x5f0a86f7de6988c2@mail.gmail.com> <14b7e5ef0607090904h743b5e11j67a7151d22bf3114@mail.gmail.com> Message-ID: <5F58BC43-E063-4BCB-A2EB-D19F695448B7@heartsong.biz> Been following this, as I gave up on the archives a while ago, just didn't have time to dig into it. I just tried r1096, and now I see the archives again, though it comes across as a linked 1 with 460 articles in it. Clicking the link / articles/find_by_date?month=0&year=1 gives an argument out of range error On Jul 9, 2006, at 9:04 AM, Scott Laird wrote: > Can you try r1096? > > > Scott > > On 7/9/06, Steve Longdo <steve.longdo at gmail.com> wrote: > Seems to be something with the || concat. I switched to the function: > > Welcome to the MySQL monitor. Commands end with ; or \g. > Your MySQL connection id is 1 to server version: 4.1.14-standard > > mysql> select count(*) as count, concat(extract(year from > published_at),lpad(extract(month from published_at),2,'0')) as > date from contents where type='Article' group by date order by > date desc limit 5; > +-------+--------+ > | count | date | > +-------+--------+ > | 1 | 200607 | > | 8 | 200606 | > | 7 | 200605 | > | 5 | 200604 | > | 14 | 200603 | > +-------+--------+ > 5 rows in set (0.03 sec) > > Is it maybe just an issue on MySQL prior to version 5? Most of the > shared hosts haven't upgraded to 5 yet... > > On 7/9/06, Scott Laird < scott at sigkill.org> wrote: > That's... bizarre. > > Can you play with it a bit? Does extract(month from published_at) > and extract(year from published_at) work right? > > > Scott > > On 7/8/06, Steve Longdo <steve.longdo at gmail.com> wrote: > 1089 resolves the SQL error, but the archives sidebar still renders > as 1(). > > Here is the result of that query: > > mysql> select count(*) as count, extract(year from published_at)||' > > '> '||lpad(extract(month from published_at),2,'0') as date > from contents > -> where type='Article' group by date order by date desc limit 5; > +-------+------+ > | count | date | > +-------+------+ > | 71 | 1 | > +-------+------+ > 1 row in set (0.01 sec) > > > > On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > If that doesn't work, then can you run this query and send me the > results? > > select count(*) as count, extract(year from published_at)||' > '||lpad(extract(month from published_at),2,'0') as date from contents > where type='Article' group by date order by date desc limit 5; > > > Scott > > On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > > Can you give 1089 a try? > > > > > > Scott > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > Well the fix for the MySQL error is simple enough just add "to_i" > to the > > count variable that is passed on line 19 of the archives > controller. It > > still doesn't render correctly though: > > > > > > Archives > > Master Archive > > 1 () > > > > > > On 7/8/06, H. Wade Minter < minter at lunenburg.org > wrote: > > > I > > > On Jul 8, 2006, at 11:10 PM, Steve Longdo wrote: > > > > > > > I did a fresh checkout of r1088 and ran 'rake migrate' to > update. > > > > I believe that is a migration from 42 to 46. This ran without > > > > error. When I attempt to view the site I get a message stating: > > > > Controller stack got out of kilter! > > > > > > > > I saw this in the log: > > > > Processing ArchivesController#index (for 127.0.0.1 at 2006-07-08 > > > > 22:01:11) > > > > Blog Load ( 0.002360) SELECT * FROM blogs ORDER BY id > LIMIT 1 > > > > Trigger Load ( 0.000713) SELECT * FROM triggers WHERE > (due_at > > > > <= '2006-07-08 22:01:11') > > > > Content Load (0.000000) Mysql::Error: You have an error > in your > > > > SQL syntax; check the manual that corresponds to your MySQL > server > > > > version for the right syntax to use near ''12'' at line 1: > select > > > > count(*) as count, extract(year from published_at)||' '||lpad > > > > (extract(month from published_at),2,'0') as date from contents > > > > where type='Article' and published = 1 and published_at < > > > > '2006-07-08 22:01:11' group by date order by date desc limit > '12' > > > > > > > > Anybody seen this before? Is the Archives Sidebar broken? > > > > > > I noticed that as well when I upgraded, but haven't had the > time to > > > track it down. But yeah, I saw the exact same thing. > > > > > > --Wade > > > > > > _______________________________________________ > > > 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 > > > > _______________________________________________ > 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/20060709/e8e9094b/attachment.html From scott at sigkill.org Sun Jul 9 12:27:36 2006 From: scott at sigkill.org (Scott Laird) Date: Sun, 9 Jul 2006 09:27:36 -0700 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <5F58BC43-E063-4BCB-A2EB-D19F695448B7@heartsong.biz> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <DA4849F7-6215-4016-B587-5BBD2401B7D7@lunenburg.org> <cc4e85f30607082113q277be3a7s27ff2f8ba5a31fde@mail.gmail.com> <14b7e5ef0607082148v4f182c3bia4c13f43899c34a7@mail.gmail.com> <14b7e5ef0607082151y352f29d3la84f061e29d658cd@mail.gmail.com> <cc4e85f30607082250q2a41a2f0jf1eef17ed2889944@mail.gmail.com> <14b7e5ef0607090725o20dc6ed3re863a9bc40e84ea0@mail.gmail.com> <cc4e85f30607090834r35088d41x5f0a86f7de6988c2@mail.gmail.com> <14b7e5ef0607090904h743b5e11j67a7151d22bf3114@mail.gmail.com> <5F58BC43-E063-4BCB-A2EB-D19F695448B7@heartsong.biz> Message-ID: <14b7e5ef0607090927u2cbf8c34xd196fcbf10032af4@mail.gmail.com> This is mysql? On 7/9/06, Chris Clark <chris at heartsong.biz> wrote: > > Been following this, as I gave up on the archives a while ago, just didn't > have time to dig into it.I just tried r1096, and now I see the archives > again, though it comes across as a linked 1 with 460 articles in it. > Clicking the link /articles/find_by_date?month=0&year=1 gives an argument > out of range error > On Jul 9, 2006, at 9:04 AM, Scott Laird wrote: > > Can you try r1096? > > > Scott > > On 7/9/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > > Seems to be something with the || concat. I switched to the function: > > > > Welcome to the MySQL monitor. Commands end with ; or \g. > > Your MySQL connection id is 1 to server version: 4.1.14-standard > > > > mysql> select count(*) as count, concat(extract(year from > > published_at),lpad(extract(month from published_at),2,'0')) as date from > > contents where type='Article' group by date order by date desc limit 5; > > +-------+--------+ > > | count | date | > > +-------+--------+ > > | 1 | 200607 | > > | 8 | 200606 | > > | 7 | 200605 | > > | 5 | 200604 | > > | 14 | 200603 | > > +-------+--------+ > > 5 rows in set (0.03 sec) > > > > Is it maybe just an issue on MySQL prior to version 5? Most of the > > shared hosts haven't upgraded to 5 yet... > > > > On 7/9/06, Scott Laird < scott at sigkill.org> wrote: > > > > > That's... bizarre. > > > > Can you play with it a bit? Does extract(month from published_at) and > > extract(year from published_at) work right? > > > > > > Scott > > > > On 7/8/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > > > 1089 resolves the SQL error, but the archives sidebar still renders > > as 1(). > > > > Here is the result of that query: > > > > mysql> select count(*) as count, extract(year from published_at)||' > > > > '> '||lpad(extract(month from published_at),2,'0') as date from > > contents > > -> where type='Article' group by date order by date desc limit 5; > > +-------+------+ > > | count | date | > > +-------+------+ > > | 71 | 1 | > > +-------+------+ > > 1 row in set (0.01 sec) > > > > > > > > On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > If that doesn't work, then can you run this query and send me the > > > results? > > > > > > select count(*) as count, extract(year from published_at)||' > > > '||lpad(extract(month from published_at),2,'0') as date from contents > > > where type='Article' group by date order by date desc limit 5; > > > > > > > > > Scott > > > > > > On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > > > > Can you give 1089 a try? > > > > > > > > > > > > Scott > > > > > > > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > > > > > > Well the fix for the MySQL error is simple enough just add "to_i" to > > > the > > > > count variable that is passed on line 19 of the archives > > > controller. It > > > > still doesn't render correctly though: > > > > > > > > > > > > Archives > > > > Master Archive > > > > 1 () > > > > > > > > > > > > On 7/8/06, H. Wade Minter < minter at lunenburg.org > wrote: > > > > > I > > > > > On Jul 8, 2006, at 11:10 PM, Steve Longdo wrote: > > > > > > > > > > > I did a fresh checkout of r1088 and ran 'rake migrate' to > > > update. > > > > > > I believe that is a migration from 42 to 46. This ran without > > > > > > error. When I attempt to view the site I get a message stating: > > > > > > Controller stack got out of kilter! > > > > > > > > > > > > I saw this in the log: > > > > > > Processing ArchivesController#index (for 127.0.0.1 at 2006-07-08 > > > > > > 22:01:11) > > > > > > Blog Load ( 0.002360) SELECT * FROM blogs ORDER BY id LIMIT > > > 1 > > > > > > Trigger Load ( 0.000713) SELECT * FROM triggers WHERE > > > (due_at > > > > > > <= '2006-07-08 22:01:11') > > > > > > Content Load (0.000000) Mysql::Error: You have an error in > > > your > > > > > > SQL syntax; check the manual that corresponds to your MySQL > > > server > > > > > > version for the right syntax to use near ''12'' at line 1: > > > select > > > > > > count(*) as count, extract(year from published_at)||' '||lpad > > > > > > (extract(month from published_at),2,'0') as date from contents > > > > > > where type='Article' and published = 1 and published_at < > > > > > > '2006-07-08 22:01:11' group by date order by date desc limit > > > '12' > > > > > > > > > > > > Anybody seen this before? Is the Archives Sidebar broken? > > > > > > > > > > I noticed that as well when I upgraded, but haven't had the time > > > to > > > > > track it down. But yeah, I saw the exact same thing. > > > > > > > > > > --Wade > > > > > > > > > > _______________________________________________ > > > > > 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 > > > > > > > > _______________________________________________ > > 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/20060709/6371b0f0/attachment-0001.html From scott at sigkill.org Sun Jul 9 12:31:40 2006 From: scott at sigkill.org (Scott Laird) Date: Sun, 9 Jul 2006 09:31:40 -0700 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <14b7e5ef0607090927u2cbf8c34xd196fcbf10032af4@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <cc4e85f30607082113q277be3a7s27ff2f8ba5a31fde@mail.gmail.com> <14b7e5ef0607082148v4f182c3bia4c13f43899c34a7@mail.gmail.com> <14b7e5ef0607082151y352f29d3la84f061e29d658cd@mail.gmail.com> <cc4e85f30607082250q2a41a2f0jf1eef17ed2889944@mail.gmail.com> <14b7e5ef0607090725o20dc6ed3re863a9bc40e84ea0@mail.gmail.com> <cc4e85f30607090834r35088d41x5f0a86f7de6988c2@mail.gmail.com> <14b7e5ef0607090904h743b5e11j67a7151d22bf3114@mail.gmail.com> <5F58BC43-E063-4BCB-A2EB-D19F695448B7@heartsong.biz> <14b7e5ef0607090927u2cbf8c34xd196fcbf10032af4@mail.gmail.com> Message-ID: <14b7e5ef0607090931ob952768nde2c1419d8f256b8@mail.gmail.com> Okay, try the current one. I stopped concatenating things inside of the DB, that should be a lot more portable. Scott On 7/9/06, Scott Laird <scott at sigkill.org> wrote: > > This is mysql? > > On 7/9/06, Chris Clark <chris at heartsong.biz> wrote: > > > Been following this, as I gave up on the archives a while ago, just > > didn't have time to dig into it.I just tried r1096, and now I see the > > archives again, though it comes across as a linked 1 with 460 articles in > > it. Clicking the link /articles/find_by_date?month=0&year=1 gives an > > argument out of range error > > On Jul 9, 2006, at 9:04 AM, Scott Laird wrote: > > > > Can you try r1096? > > > > > > Scott > > > > On 7/9/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > Seems to be something with the || concat. I switched to the function: > > > > > > > > > Welcome to the MySQL monitor. Commands end with ; or \g. > > > Your MySQL connection id is 1 to server version: 4.1.14-standard > > > > > > mysql> select count(*) as count, concat(extract(year from > > > published_at),lpad(extract(month from published_at),2,'0')) as date from > > > contents where type='Article' group by date order by date desc limit 5; > > > +-------+--------+ > > > | count | date | > > > +-------+--------+ > > > | 1 | 200607 | > > > | 8 | 200606 | > > > | 7 | 200605 | > > > | 5 | 200604 | > > > | 14 | 200603 | > > > +-------+--------+ > > > 5 rows in set (0.03 sec) > > > > > > Is it maybe just an issue on MySQL prior to version 5? Most of the > > > shared hosts haven't upgraded to 5 yet... > > > > > > On 7/9/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > That's... bizarre. > > > > > > Can you play with it a bit? Does extract(month from published_at) and > > > extract(year from published_at) work right? > > > > > > > > > Scott > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > 1089 resolves the SQL error, but the archives sidebar still renders > > > as 1(). > > > > > > Here is the result of that query: > > > > > > mysql> select count(*) as count, extract(year from published_at)||' > > > > > > '> '||lpad(extract(month from published_at),2,'0') as date from > > > contents > > > -> where type='Article' group by date order by date desc limit 5; > > > +-------+------+ > > > | count | date | > > > +-------+------+ > > > | 71 | 1 | > > > +-------+------+ > > > 1 row in set (0.01 sec) > > > > > > > > > > > > On 7/8/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > If that doesn't work, then can you run this query and send me the > > > > results? > > > > > > > > select count(*) as count, extract(year from published_at)||' > > > > '||lpad(extract(month from published_at),2,'0') as date from > > > > contents > > > > where type='Article' group by date order by date desc limit 5; > > > > > > > > > > > > Scott > > > > > > > > On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > > > > > Can you give 1089 a try? > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > > > > > > > > > Well the fix for the MySQL error is simple enough just add "to_i" > > > > to the > > > > > count variable that is passed on line 19 of the archives > > > > controller. It > > > > > still doesn't render correctly though: > > > > > > > > > > > > > > > Archives > > > > > Master Archive > > > > > 1 () > > > > > > > > > > > > > > > On 7/8/06, H. Wade Minter < minter at lunenburg.org > wrote: > > > > > > I > > > > > > On Jul 8, 2006, at 11:10 PM, Steve Longdo wrote: > > > > > > > > > > > > > I did a fresh checkout of r1088 and ran 'rake migrate' to > > > > update. > > > > > > > I believe that is a migration from 42 to 46. This ran without > > > > > > > > > > > error. When I attempt to view the site I get a message > > > > stating: > > > > > > > Controller stack got out of kilter! > > > > > > > > > > > > > > I saw this in the log: > > > > > > > Processing ArchivesController#index (for 127.0.0.1 at > > > > 2006-07-08 > > > > > > > 22:01:11) > > > > > > > Blog Load ( 0.002360) SELECT * FROM blogs ORDER BY id > > > > LIMIT 1 > > > > > > > Trigger Load ( 0.000713) SELECT * FROM triggers WHERE > > > > (due_at > > > > > > > <= '2006-07-08 22:01:11') > > > > > > > Content Load (0.000000) Mysql::Error: You have an error in > > > > your > > > > > > > SQL syntax; check the manual that corresponds to your MySQL > > > > server > > > > > > > version for the right syntax to use near ''12'' at line 1: > > > > select > > > > > > > count(*) as count, extract(year from published_at)||' '||lpad > > > > > > > (extract(month from published_at),2,'0') as date from contents > > > > > > > > > > > where type='Article' and published = 1 and published_at < > > > > > > > '2006-07-08 22:01:11' group by date order by date desc limit > > > > '12' > > > > > > > > > > > > > > Anybody seen this before? Is the Archives Sidebar broken? > > > > > > > > > > > > I noticed that as well when I upgraded, but haven't had the time > > > > to > > > > > > track it down. But yeah, I saw the exact same thing. > > > > > > > > > > > > --Wade > > > > > > > > > > > > _______________________________________________ > > > > > > 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 > > > > > > > > > > > > _______________________________________________ > > > 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/20060709/56103eaf/attachment.html From steve.longdo at gmail.com Sun Jul 9 14:20:24 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Sun, 9 Jul 2006 13:20:24 -0500 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <14b7e5ef0607090931ob952768nde2c1419d8f256b8@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <14b7e5ef0607082148v4f182c3bia4c13f43899c34a7@mail.gmail.com> <14b7e5ef0607082151y352f29d3la84f061e29d658cd@mail.gmail.com> <cc4e85f30607082250q2a41a2f0jf1eef17ed2889944@mail.gmail.com> <14b7e5ef0607090725o20dc6ed3re863a9bc40e84ea0@mail.gmail.com> <cc4e85f30607090834r35088d41x5f0a86f7de6988c2@mail.gmail.com> <14b7e5ef0607090904h743b5e11j67a7151d22bf3114@mail.gmail.com> <5F58BC43-E063-4BCB-A2EB-D19F695448B7@heartsong.biz> <14b7e5ef0607090927u2cbf8c34xd196fcbf10032af4@mail.gmail.com> <14b7e5ef0607090931ob952768nde2c1419d8f256b8@mail.gmail.com> Message-ID: <cc4e85f30607091120h17550182w24bf6bff73a397ac@mail.gmail.com> Now I get this, which is certainly an improvement, the generated links look good: Archives - Master Archive <http://localhost:3000/articles/archives> - 2006 7 () <http://localhost:3000/articles/2006/7> - 2006 6 () <http://localhost:3000/articles/2006/6> - 2006 5 () <http://localhost:3000/articles/2006/5> - 2006 4 () <http://localhost:3000/articles/2006/4> - 2006 3 () <http://localhost:3000/articles/2006/3> - 2006 2 () <http://localhost:3000/articles/2006/2> - 2006 1 () <http://localhost:3000/articles/2006/1> - 2005 12 () <http://localhost:3000/articles/2005/12> - 2005 11 () <http://localhost:3000/articles/2005/11> - 2005 10 () <http://localhost:3000/articles/2005/10> Processing ArchivesController#index (for 127.0.0.1 at 2006-07-09 13:08:47) Blog Load (0.001680) SELECT * FROM blogs ORDER BY id LIMIT 1 Trigger Load (0.000905) SELECT * FROM triggers WHERE (due_at <= '2006-07-09 13:08:47') Content Load (0.026332) select count(*) as count, extract(year from published_at) as year,extract(month from published_at) as month from contents where type='Article' and published = 1 and published_at < '2006-07-09 13:08:47' group by year,month order by year desc,month desc limit 12 Content Columns (0.000892) SHOW FIELDS FROM contents Rendering plugins/sidebars/archives/content mysql> select count(*) as count, extract(year from published_at) as year,extract(month from published_at) as month from contents where type='Article' and published = 1 and published_at < '2006-07-09 13:08:47' group by year,month order by year desc,month desc limit 12 -> ; +-------+------+-------+ | count | year | month | +-------+------+-------+ | 1 | 2006 | 7 | | 8 | 2006 | 6 | | 7 | 2006 | 5 | | 5 | 2006 | 4 | | 14 | 2006 | 3 | | 9 | 2006 | 2 | | 5 | 2006 | 1 | | 7 | 2005 | 12 | | 9 | 2005 | 11 | | 5 | 2005 | 10 | +-------+------+-------+ 10 rows in set (0.03 sec) On 7/9/06, Scott Laird <scott at sigkill.org> wrote: > > Okay, try the current one. I stopped concatenating things inside of the > DB, that should be a lot more portable. > > > Scott > > On 7/9/06, Scott Laird <scott at sigkill.org> wrote: > > > > This is mysql? > > > > On 7/9/06, Chris Clark < chris at heartsong.biz> wrote: > > > > > Been following this, as I gave up on the archives a while ago, just > > > didn't have time to dig into it.I just tried r1096, and now I see the > > > archives again, though it comes across as a linked 1 with 460 articles in > > > it. Clicking the link /articles/find_by_date?month=0&year=1 gives an > > > argument out of range error > > > On Jul 9, 2006, at 9:04 AM, Scott Laird wrote: > > > > > > Can you try r1096? > > > > > > > > > Scott > > > > > > On 7/9/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > Seems to be something with the || concat. I switched to the > > > > function: > > > > > > > > Welcome to the MySQL monitor. Commands end with ; or \g. > > > > Your MySQL connection id is 1 to server version: 4.1.14-standard > > > > > > > > mysql> select count(*) as count, concat(extract(year from > > > > published_at),lpad(extract(month from published_at),2,'0')) as date from > > > > contents where type='Article' group by date order by date desc limit 5; > > > > +-------+--------+ > > > > | count | date | > > > > +-------+--------+ > > > > | 1 | 200607 | > > > > | 8 | 200606 | > > > > | 7 | 200605 | > > > > | 5 | 200604 | > > > > | 14 | 200603 | > > > > +-------+--------+ > > > > 5 rows in set (0.03 sec) > > > > > > > > Is it maybe just an issue on MySQL prior to version 5? Most of the > > > > shared hosts haven't upgraded to 5 yet... > > > > > > > > On 7/9/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > > That's... bizarre. > > > > > > > > Can you play with it a bit? Does extract(month from published_at) > > > > and extract(year from published_at) work right? > > > > > > > > > > > > Scott > > > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > > 1089 resolves the SQL error, but the archives sidebar still > > > > renders as 1(). > > > > > > > > Here is the result of that query: > > > > > > > > mysql> select count(*) as count, extract(year from published_at)||' > > > > > > > > '> '||lpad(extract(month from published_at),2,'0') as date from > > > > contents > > > > -> where type='Article' group by date order by date desc limit > > > > 5; > > > > +-------+------+ > > > > | count | date | > > > > +-------+------+ > > > > | 71 | 1 | > > > > +-------+------+ > > > > 1 row in set (0.01 sec) > > > > > > > > > > > > > > > > On 7/8/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > > > If that doesn't work, then can you run this query and send me the > > > > > results? > > > > > > > > > > select count(*) as count, extract(year from published_at)||' > > > > > '||lpad(extract(month from published_at),2,'0') as date from > > > > > contents > > > > > where type='Article' group by date order by date desc limit 5; > > > > > > > > > > > > > > > Scott > > > > > > > > > > On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > Can you give 1089 a try? > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > > > > > > > > > > > > Well the fix for the MySQL error is simple enough just add > > > > > "to_i" to the > > > > > > count variable that is passed on line 19 of the archives > > > > > controller. It > > > > > > still doesn't render correctly though: > > > > > > > > > > > > > > > > > > Archives > > > > > > Master Archive > > > > > > 1 () > > > > > > > > > > > > > > > > > > On 7/8/06, H. Wade Minter < minter at lunenburg.org > wrote: > > > > > > > I > > > > > > > On Jul 8, 2006, at 11:10 PM, Steve Longdo wrote: > > > > > > > > > > > > > > > I did a fresh checkout of r1088 and ran 'rake migrate' to > > > > > update. > > > > > > > > I believe that is a migration from 42 to 46. This ran > > > > > without > > > > > > > > error. When I attempt to view the site I get a message > > > > > stating: > > > > > > > > Controller stack got out of kilter! > > > > > > > > > > > > > > > > I saw this in the log: > > > > > > > > Processing ArchivesController#index (for 127.0.0.1 at > > > > > 2006-07-08 > > > > > > > > 22:01:11) > > > > > > > > Blog Load ( 0.002360) SELECT * FROM blogs ORDER BY id > > > > > LIMIT 1 > > > > > > > > Trigger Load ( 0.000713) SELECT * FROM triggers WHERE > > > > > (due_at > > > > > > > > <= '2006-07-08 22:01:11') > > > > > > > > Content Load (0.000000) Mysql::Error: You have an error > > > > > in your > > > > > > > > SQL syntax; check the manual that corresponds to your MySQL > > > > > server > > > > > > > > version for the right syntax to use near ''12'' at line 1: > > > > > select > > > > > > > > count(*) as count, extract(year from published_at)||' > > > > > '||lpad > > > > > > > > (extract(month from published_at),2,'0') as date from > > > > > contents > > > > > > > > where type='Article' and published = 1 and published_at < > > > > > > > > '2006-07-08 22:01:11' group by date order by date desc limit > > > > > '12' > > > > > > > > > > > > > > > > Anybody seen this before? Is the Archives Sidebar broken? > > > > > > > > > > > > > > I noticed that as well when I upgraded, but haven't had the > > > > > time to > > > > > > > track it down. But yeah, I saw the exact same thing. > > > > > > > > > > > > > > --Wade > > > > > > > > > > > > > > _______________________________________________ > > > > > > > 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 > > > > > > > > > > > > > > > > _______________________________________________ > > > > 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/20060709/af41ede3/attachment-0001.html From scott at sigkill.org Sun Jul 9 14:28:45 2006 From: scott at sigkill.org (scott at sigkill.org) Date: Sun, 9 Jul 2006 11:28:45 -0700 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <cc4e85f30607091120h17550182w24bf6bff73a397ac@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <14b7e5ef0607082151y352f29d3la84f061e29d658cd@mail.gmail.com> <cc4e85f30607082250q2a41a2f0jf1eef17ed2889944@mail.gmail.com> <14b7e5ef0607090725o20dc6ed3re863a9bc40e84ea0@mail.gmail.com> <cc4e85f30607090834r35088d41x5f0a86f7de6988c2@mail.gmail.com> <14b7e5ef0607090904h743b5e11j67a7151d22bf3114@mail.gmail.com> <5F58BC43-E063-4BCB-A2EB-D19F695448B7@heartsong.biz> <14b7e5ef0607090927u2cbf8c34xd196fcbf10032af4@mail.gmail.com> <14b7e5ef0607090931ob952768nde2c1419d8f256b8@mail.gmail.com> <cc4e85f30607091120h17550182w24bf6bff73a397ac@mail.gmail.com> Message-ID: <14b7e5ef0607091128j75ed04ffy7a7f9d78bd417a78@mail.gmail.com> Hmm. It's closer at least :-) I suspect this will easier to fix, but I'm away from my computer right now, and it'll be a few hours before I can fix it. Scott On 7/9/06, Steve Longdo <steve.longdo at gmail.com> wrote: > Now I get this, which is certainly an improvement, the generated links look > good: > Archives > > - Master Archive <http://localhost:3000/articles/archives> > - 2006 7 () <http://localhost:3000/articles/2006/7> > - 2006 6 () <http://localhost:3000/articles/2006/6> > - 2006 5 () <http://localhost:3000/articles/2006/5> > - 2006 4 () <http://localhost:3000/articles/2006/4> > - 2006 3 () <http://localhost:3000/articles/2006/3> > - 2006 2 () <http://localhost:3000/articles/2006/2> > - 2006 1 () <http://localhost:3000/articles/2006/1> > - 2005 12 () <http://localhost:3000/articles/2005/12> > - 2005 11 () <http://localhost:3000/articles/2005/11> > - 2005 10 () <http://localhost:3000/articles/2005/10> > > Processing ArchivesController#index (for 127.0.0.1 at 2006-07-09 13:08:47) > Blog Load (0.001680) SELECT * FROM blogs ORDER BY id LIMIT 1 > Trigger Load (0.000905) SELECT * FROM triggers WHERE (due_at <= > '2006-07-09 13:08:47') > Content Load (0.026332) select count(*) as count, extract(year from > published_at) as year,extract(month from published_at) as month from > contents where type='Article' and published = 1 and published_at < > '2006-07-09 13:08:47' group by year,month order by year desc,month desc > limit 12 > Content Columns (0.000892) SHOW FIELDS FROM contents > Rendering plugins/sidebars/archives/content > > mysql> select count(*) as count, extract(year from published_at) as > year,extract(month from published_at) as month from contents where > type='Article' and published = 1 and published_at < '2006-07-09 13:08:47' > group by year,month order by year desc,month desc limit 12 > -> ; > +-------+------+-------+ > | count | year | month | > +-------+------+-------+ > | 1 | 2006 | 7 | > | 8 | 2006 | 6 | > | 7 | 2006 | 5 | > | 5 | 2006 | 4 | > | 14 | 2006 | 3 | > | 9 | 2006 | 2 | > | 5 | 2006 | 1 | > | 7 | 2005 | 12 | > | 9 | 2005 | 11 | > | 5 | 2005 | 10 | > +-------+------+-------+ > 10 rows in set (0.03 sec) > > > > On 7/9/06, Scott Laird <scott at sigkill.org> wrote: > > > > Okay, try the current one. I stopped concatenating things inside of the > > DB, that should be a lot more portable. > > > > > > Scott > > > > On 7/9/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > This is mysql? > > > > > > On 7/9/06, Chris Clark < chris at heartsong.biz> wrote: > > > > > > > Been following this, as I gave up on the archives a while ago, just > > > > didn't have time to dig into it.I just tried r1096, and now I see the > > > > archives again, though it comes across as a linked 1 with 460 articles > in > > > > it. Clicking the link /articles/find_by_date?month=0&year=1 gives an > > > > argument out of range error > > > > On Jul 9, 2006, at 9:04 AM, Scott Laird wrote: > > > > > > > > Can you try r1096? > > > > > > > > > > > > Scott > > > > > > > > On 7/9/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > > > Seems to be something with the || concat. I switched to the > > > > > function: > > > > > > > > > > Welcome to the MySQL monitor. Commands end with ; or \g. > > > > > Your MySQL connection id is 1 to server version: 4.1.14-standard > > > > > > > > > > mysql> select count(*) as count, concat(extract(year from > > > > > published_at),lpad(extract(month from published_at),2,'0')) as date > from > > > > > contents where type='Article' group by date order by date desc > limit 5; > > > > > +-------+--------+ > > > > > | count | date | > > > > > +-------+--------+ > > > > > | 1 | 200607 | > > > > > | 8 | 200606 | > > > > > | 7 | 200605 | > > > > > | 5 | 200604 | > > > > > | 14 | 200603 | > > > > > +-------+--------+ > > > > > 5 rows in set (0.03 sec) > > > > > > > > > > Is it maybe just an issue on MySQL prior to version 5? Most of the > > > > > shared hosts haven't upgraded to 5 yet... > > > > > > > > > > On 7/9/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > > > > That's... bizarre. > > > > > > > > > > Can you play with it a bit? Does extract(month from published_at) > > > > > and extract(year from published_at) work right? > > > > > > > > > > > > > > > Scott > > > > > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > > > > 1089 resolves the SQL error, but the archives sidebar still > > > > > renders as 1(). > > > > > > > > > > Here is the result of that query: > > > > > > > > > > mysql> select count(*) as count, extract(year from published_at)||' > > > > > > > > > > '> '||lpad(extract(month from published_at),2,'0') as date from > > > > > contents > > > > > -> where type='Article' group by date order by date desc limit > > > > > 5; > > > > > +-------+------+ > > > > > | count | date | > > > > > +-------+------+ > > > > > | 71 | 1 | > > > > > +-------+------+ > > > > > 1 row in set (0.01 sec) > > > > > > > > > > > > > > > > > > > > On 7/8/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > > > > > If that doesn't work, then can you run this query and send me the > > > > > > results? > > > > > > > > > > > > select count(*) as count, extract(year from published_at)||' > > > > > > '||lpad(extract(month from published_at),2,'0') as date from > > > > > > contents > > > > > > where type='Article' group by date order by date desc limit 5; > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > > Can you give 1089 a try? > > > > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > > > > > > > > > > > > > > > Well the fix for the MySQL error is simple enough just add > > > > > > "to_i" to the > > > > > > > count variable that is passed on line 19 of the archives > > > > > > controller. It > > > > > > > still doesn't render correctly though: > > > > > > > > > > > > > > > > > > > > > Archives > > > > > > > Master Archive > > > > > > > 1 () > > > > > > > > > > > > > > > > > > > > > On 7/8/06, H. Wade Minter < minter at lunenburg.org > wrote: > > > > > > > > I > > > > > > > > On Jul 8, 2006, at 11:10 PM, Steve Longdo wrote: > > > > > > > > > > > > > > > > > I did a fresh checkout of r1088 and ran 'rake migrate' to > > > > > > update. > > > > > > > > > I believe that is a migration from 42 to 46. This ran > > > > > > without > > > > > > > > > error. When I attempt to view the site I get a message > > > > > > stating: > > > > > > > > > Controller stack got out of kilter! > > > > > > > > > > > > > > > > > > I saw this in the log: > > > > > > > > > Processing ArchivesController#index (for 127.0.0.1 at > > > > > > 2006-07-08 > > > > > > > > > 22:01:11) > > > > > > > > > Blog Load ( 0.002360) SELECT * FROM blogs ORDER BY id > > > > > > LIMIT 1 > > > > > > > > > Trigger Load ( 0.000713) SELECT * FROM triggers WHERE > > > > > > (due_at > > > > > > > > > <= '2006-07-08 22:01:11') > > > > > > > > > Content Load (0.000000) Mysql::Error: You have an error > > > > > > in your > > > > > > > > > SQL syntax; check the manual that corresponds to your MySQL > > > > > > server > > > > > > > > > version for the right syntax to use near ''12'' at line 1: > > > > > > select > > > > > > > > > count(*) as count, extract(year from published_at)||' > > > > > > '||lpad > > > > > > > > > (extract(month from published_at),2,'0') as date from > > > > > > contents > > > > > > > > > where type='Article' and published = 1 and published_at < > > > > > > > > > '2006-07-08 22:01:11' group by date order by date desc limit > > > > > > '12' > > > > > > > > > > > > > > > > > > Anybody seen this before? Is the Archives Sidebar broken? > > > > > > > > > > > > > > > > I noticed that as well when I upgraded, but haven't had the > > > > > > time to > > > > > > > > track it down. But yeah, I saw the exact same thing. > > > > > > > > > > > > > > > > --Wade > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > 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 steve.longdo at gmail.com Sun Jul 9 15:28:55 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Sun, 9 Jul 2006 14:28:55 -0500 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <14b7e5ef0607091128j75ed04ffy7a7f9d78bd417a78@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <cc4e85f30607082250q2a41a2f0jf1eef17ed2889944@mail.gmail.com> <14b7e5ef0607090725o20dc6ed3re863a9bc40e84ea0@mail.gmail.com> <cc4e85f30607090834r35088d41x5f0a86f7de6988c2@mail.gmail.com> <14b7e5ef0607090904h743b5e11j67a7151d22bf3114@mail.gmail.com> <5F58BC43-E063-4BCB-A2EB-D19F695448B7@heartsong.biz> <14b7e5ef0607090927u2cbf8c34xd196fcbf10032af4@mail.gmail.com> <14b7e5ef0607090931ob952768nde2c1419d8f256b8@mail.gmail.com> <cc4e85f30607091120h17550182w24bf6bff73a397ac@mail.gmail.com> <14b7e5ef0607091128j75ed04ffy7a7f9d78bd417a78@mail.gmail.com> Message-ID: <cc4e85f30607091228m15642d38ga19de0f95fe31e77@mail.gmail.com> Two things, my theme overrode plugin/sidebars/archives/content.rhtml. So that is part of the weirdness. The default archives displays the aricle_count but the months were still numeric. I changed line 23 of archives controller to: :name => "#{entry.year} #{Date::MONTHNAMES[entry.month.to_i]}", I'm not sure if this is consider the best/most efficient way to get the Month name mapped to the int value. Should I have used something like strftime('%m',entry.month.to_i) instead? On 7/9/06, scott at sigkill.org <scott at sigkill.org> wrote: > > Hmm. It's closer at least :-) > > I suspect this will easier to fix, but I'm away from my computer right > now, and it'll be a few hours before I can fix it. > > > Scott > > On 7/9/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > Now I get this, which is certainly an improvement, the generated links > look > > good: > > Archives > > > > - Master Archive <http://localhost:3000/articles/archives> > > - 2006 7 () <http://localhost:3000/articles/2006/7> > > - 2006 6 () <http://localhost:3000/articles/2006/6> > > - 2006 5 () <http://localhost:3000/articles/2006/5> > > - 2006 4 () <http://localhost:3000/articles/2006/4> > > - 2006 3 () <http://localhost:3000/articles/2006/3> > > - 2006 2 () <http://localhost:3000/articles/2006/2> > > - 2006 1 () <http://localhost:3000/articles/2006/1> > > - 2005 12 () <http://localhost:3000/articles/2005/12> > > - 2005 11 () <http://localhost:3000/articles/2005/11> > > - 2005 10 () <http://localhost:3000/articles/2005/10> > > > > Processing ArchivesController#index (for 127.0.0.1 at 2006-07-09 > 13:08:47) > > Blog Load (0.001680) SELECT * FROM blogs ORDER BY id LIMIT 1 > > Trigger Load (0.000905) SELECT * FROM triggers WHERE (due_at <= > > '2006-07-09 13:08:47') > > Content Load (0.026332) select count(*) as count, extract(year from > > published_at) as year,extract(month from published_at) as month from > > contents where type='Article' and published = 1 and published_at < > > '2006-07-09 13:08:47' group by year,month order by year desc,month desc > > limit 12 > > Content Columns (0.000892) SHOW FIELDS FROM contents > > Rendering plugins/sidebars/archives/content > > > > mysql> select count(*) as count, extract(year from published_at) as > > year,extract(month from published_at) as month from contents where > > type='Article' and published = 1 and published_at < '2006-07-09 > 13:08:47' > > group by year,month order by year desc,month desc limit 12 > > -> ; > > +-------+------+-------+ > > | count | year | month | > > +-------+------+-------+ > > | 1 | 2006 | 7 | > > | 8 | 2006 | 6 | > > | 7 | 2006 | 5 | > > | 5 | 2006 | 4 | > > | 14 | 2006 | 3 | > > | 9 | 2006 | 2 | > > | 5 | 2006 | 1 | > > | 7 | 2005 | 12 | > > | 9 | 2005 | 11 | > > | 5 | 2005 | 10 | > > +-------+------+-------+ > > 10 rows in set (0.03 sec) > > > > > > > > On 7/9/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > Okay, try the current one. I stopped concatenating things inside of > the > > > DB, that should be a lot more portable. > > > > > > > > > Scott > > > > > > On 7/9/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > > > This is mysql? > > > > > > > > On 7/9/06, Chris Clark < chris at heartsong.biz> wrote: > > > > > > > > > Been following this, as I gave up on the archives a while ago, > just > > > > > didn't have time to dig into it.I just tried r1096, and now I see > the > > > > > archives again, though it comes across as a linked 1 with 460 > articles > > in > > > > > it. Clicking the link /articles/find_by_date?month=0&year=1 gives > an > > > > > argument out of range error > > > > > On Jul 9, 2006, at 9:04 AM, Scott Laird wrote: > > > > > > > > > > Can you try r1096? > > > > > > > > > > > > > > > Scott > > > > > > > > > > On 7/9/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > > > > > Seems to be something with the || concat. I switched to the > > > > > > function: > > > > > > > > > > > > Welcome to the MySQL monitor. Commands end with ; or \g. > > > > > > Your MySQL connection id is 1 to server version: 4.1.14-standard > > > > > > > > > > > > mysql> select count(*) as count, concat(extract(year from > > > > > > published_at),lpad(extract(month from published_at),2,'0')) as > date > > from > > > > > > contents where type='Article' group by date order by date desc > > limit 5; > > > > > > +-------+--------+ > > > > > > | count | date | > > > > > > +-------+--------+ > > > > > > | 1 | 200607 | > > > > > > | 8 | 200606 | > > > > > > | 7 | 200605 | > > > > > > | 5 | 200604 | > > > > > > | 14 | 200603 | > > > > > > +-------+--------+ > > > > > > 5 rows in set (0.03 sec) > > > > > > > > > > > > Is it maybe just an issue on MySQL prior to version 5? Most of > the > > > > > > shared hosts haven't upgraded to 5 yet... > > > > > > > > > > > > On 7/9/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > > > > > > That's... bizarre. > > > > > > > > > > > > Can you play with it a bit? Does extract(month from > published_at) > > > > > > and extract(year from published_at) work right? > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > > > > > > 1089 resolves the SQL error, but the archives sidebar still > > > > > > renders as 1(). > > > > > > > > > > > > Here is the result of that query: > > > > > > > > > > > > mysql> select count(*) as count, extract(year from > published_at)||' > > > > > > > > > > > > '> '||lpad(extract(month from published_at),2,'0') as date > from > > > > > > contents > > > > > > -> where type='Article' group by date order by date desc > limit > > > > > > 5; > > > > > > +-------+------+ > > > > > > | count | date | > > > > > > +-------+------+ > > > > > > | 71 | 1 | > > > > > > +-------+------+ > > > > > > 1 row in set (0.01 sec) > > > > > > > > > > > > > > > > > > > > > > > > On 7/8/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > > > > > > > If that doesn't work, then can you run this query and send me > the > > > > > > > results? > > > > > > > > > > > > > > select count(*) as count, extract(year from published_at)||' > > > > > > > '||lpad(extract(month from published_at),2,'0') as date from > > > > > > > contents > > > > > > > where type='Article' group by date order by date desc limit > 5; > > > > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > > > Can you give 1089 a try? > > > > > > > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > Well the fix for the MySQL error is simple enough just add > > > > > > > "to_i" to the > > > > > > > > count variable that is passed on line 19 of the archives > > > > > > > controller. It > > > > > > > > still doesn't render correctly though: > > > > > > > > > > > > > > > > > > > > > > > > Archives > > > > > > > > Master Archive > > > > > > > > 1 () > > > > > > > > > > > > > > > > > > > > > > > > On 7/8/06, H. Wade Minter < minter at lunenburg.org > wrote: > > > > > > > > > I > > > > > > > > > On Jul 8, 2006, at 11:10 PM, Steve Longdo wrote: > > > > > > > > > > > > > > > > > > > I did a fresh checkout of r1088 and ran 'rake migrate' > to > > > > > > > update. > > > > > > > > > > I believe that is a migration from 42 to 46. This ran > > > > > > > without > > > > > > > > > > error. When I attempt to view the site I get a message > > > > > > > stating: > > > > > > > > > > Controller stack got out of kilter! > > > > > > > > > > > > > > > > > > > > I saw this in the log: > > > > > > > > > > Processing ArchivesController#index (for 127.0.0.1 at > > > > > > > 2006-07-08 > > > > > > > > > > 22:01:11) > > > > > > > > > > Blog Load ( 0.002360) SELECT * FROM blogs ORDER BY > id > > > > > > > LIMIT 1 > > > > > > > > > > Trigger Load ( 0.000713) SELECT * FROM triggers > WHERE > > > > > > > (due_at > > > > > > > > > > <= '2006-07-08 22:01:11') > > > > > > > > > > Content Load (0.000000) Mysql::Error: You have an > error > > > > > > > in your > > > > > > > > > > SQL syntax; check the manual that corresponds to your > MySQL > > > > > > > server > > > > > > > > > > version for the right syntax to use near ''12'' at line > 1: > > > > > > > select > > > > > > > > > > count(*) as count, extract(year from published_at)||' > > > > > > > '||lpad > > > > > > > > > > (extract(month from published_at),2,'0') as date from > > > > > > > contents > > > > > > > > > > where type='Article' and published = 1 and published_at > < > > > > > > > > > > '2006-07-08 22:01:11' group by date order by date desc > limit > > > > > > > '12' > > > > > > > > > > > > > > > > > > > > Anybody seen this before? Is the Archives Sidebar > broken? > > > > > > > > > > > > > > > > > > I noticed that as well when I upgraded, but haven't had > the > > > > > > > time to > > > > > > > > > track it down. But yeah, I saw the exact same thing. > > > > > > > > > > > > > > > > > > --Wade > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060709/494134e4/attachment-0001.html From nertzy at gmail.com Sun Jul 9 17:45:26 2006 From: nertzy at gmail.com (Grant Hutchins) Date: Sun, 9 Jul 2006 16:45:26 -0500 Subject: [typo] Why is the body of the static sidebar escaped? In-Reply-To: <14b7e5ef0607090904k4f5aec2bg9db618efcb6193fb@mail.gmail.com> References: <A9F89480-86E9-4EC7-BA66-20B55589EFCB@bettong.net> <14b7e5ef0607090857i228d33adue992ec3d51592dce@mail.gmail.com> <14b7e5ef0607090904k4f5aec2bg9db618efcb6193fb@mail.gmail.com> Message-ID: <cc58f7290607091445r18ee2815j8a93deceb3d3b732@mail.gmail.com> My fault, I submitted a patch that turned out to be wrong, but didn't make it clear that my second patch was meant to <em>replace</em> the first one. Thanks for fixing it. On 7/9/06, Scott Laird <scott at sigkill.org> wrote: > Can you give r1096 a try? > > > Scott > > > On 7/9/06, Scott Laird <scott at sigkill.org> wrote: > > > > Yeah, that's not quite right. Give me a few minutes. > > > > > > > > Scott > > > > > > > > On 7/9/06, Urban Hafner <urban at bettong.net > wrote: > > > -----BEGIN PGP SIGNED MESSAGE----- > > > Hash: SHA1 > > > > > > Hej! > > > > > > Changeset 1091 escapes the contents of the static sidebar. Until now > > > I had static sidebar that contained a list of links. Now it obviously > > > displays the escaped HTML, which I assume wasn't the idea ... > > > > > > Urban > > > - -- > > > http://bettong.net - Urban's Blog > > > > > > > > > -----BEGIN PGP SIGNATURE----- > > > Version: GnuPG v1.4.4 (Darwin) > > > > > > > iD8DBQFEsSBeggNuVCIrEyURAjqIAKCKjJYoMzsBs9Gaf6V5vm43MqeKCACguM81 > > > iFdotsKyrDE8EW97pIw2jMc= > > > =Ai7L > > > -----END PGP SIGNATURE----- > > > _______________________________________________ > > > 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 > > -- Grant Hutchins nertzy at gmail.com From scott at sigkill.org Sun Jul 9 20:19:36 2006 From: scott at sigkill.org (Scott Laird) Date: Sun, 9 Jul 2006 17:19:36 -0700 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <cc4e85f30607091228m15642d38ga19de0f95fe31e77@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <14b7e5ef0607090725o20dc6ed3re863a9bc40e84ea0@mail.gmail.com> <cc4e85f30607090834r35088d41x5f0a86f7de6988c2@mail.gmail.com> <14b7e5ef0607090904h743b5e11j67a7151d22bf3114@mail.gmail.com> <5F58BC43-E063-4BCB-A2EB-D19F695448B7@heartsong.biz> <14b7e5ef0607090927u2cbf8c34xd196fcbf10032af4@mail.gmail.com> <14b7e5ef0607090931ob952768nde2c1419d8f256b8@mail.gmail.com> <cc4e85f30607091120h17550182w24bf6bff73a397ac@mail.gmail.com> <14b7e5ef0607091128j75ed04ffy7a7f9d78bd417a78@mail.gmail.com> <cc4e85f30607091228m15642d38ga19de0f95fe31e77@mail.gmail.com> Message-ID: <14b7e5ef0607091719w68551fd2l3e70c5287f9ea20c@mail.gmail.com> Okay, I fixed the monthname problem. Is anything else still broken? Scott On 7/9/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > Two things, my theme overrode plugin/sidebars/archives/content.rhtml. So > that is part of the weirdness. The default archives displays the > aricle_count but the months were still numeric. I changed > line 23 of archives controller to: > :name => "#{entry.year} #{Date::MONTHNAMES[entry.month.to_i]}", > > I'm not sure if this is consider the best/most efficient way to get the > Month name mapped to the int value. Should I have used something like > strftime('%m', entry.month.to_i) instead? > > > On 7/9/06, scott at sigkill.org <scott at sigkill.org > wrote: > > > > Hmm. It's closer at least :-) > > > > I suspect this will easier to fix, but I'm away from my computer right > > now, and it'll be a few hours before I can fix it. > > > > > > Scott > > > > On 7/9/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > Now I get this, which is certainly an improvement, the generated links > > look > > > good: > > > Archives > > > > > > - Master Archive <http://localhost:3000/articles/archives> > > > - 2006 7 () < http://localhost:3000/articles/2006/7> > > > - 2006 6 () <http://localhost:3000/articles/2006/6> > > > - 2006 5 () < http://localhost:3000/articles/2006/5> > > > - 2006 4 () <http://localhost:3000/articles/2006/4> > > > - 2006 3 () < http://localhost:3000/articles/2006/3> > > > - 2006 2 () <http://localhost:3000/articles/2006/2> > > > - 2006 1 () < http://localhost:3000/articles/2006/1> > > > - 2005 12 () <http://localhost:3000/articles/2005/12> > > > - 2005 11 () < http://localhost:3000/articles/2005/11> > > > - 2005 10 () <http://localhost:3000/articles/2005/10> > > > > > > Processing ArchivesController#index (for 127.0.0.1 at 2006-07-09 > > 13:08:47) > > > Blog Load (0.001680) SELECT * FROM blogs ORDER BY id LIMIT 1 > > > Trigger Load (0.000905) SELECT * FROM triggers WHERE (due_at <= > > > '2006-07-09 13:08:47') > > > Content Load (0.026332) select count(*) as count, extract(year > > from > > > published_at) as year,extract(month from published_at) as month from > > > contents where type='Article' and published = 1 and published_at < > > > '2006-07-09 13:08:47' group by year,month order by year desc,month > > desc > > > limit 12 > > > Content Columns (0.000892) SHOW FIELDS FROM contents > > > Rendering plugins/sidebars/archives/content > > > > > > mysql> select count(*) as count, extract(year from published_at) as > > > year,extract(month from published_at) as month from contents where > > > type='Article' and published = 1 and published_at < '2006-07-09 > > 13:08:47' > > > group by year,month order by year desc,month desc limit 12 > > > -> ; > > > +-------+------+-------+ > > > | count | year | month | > > > +-------+------+-------+ > > > | 1 | 2006 | 7 | > > > | 8 | 2006 | 6 | > > > | 7 | 2006 | 5 | > > > | 5 | 2006 | 4 | > > > | 14 | 2006 | 3 | > > > | 9 | 2006 | 2 | > > > | 5 | 2006 | 1 | > > > | 7 | 2005 | 12 | > > > | 9 | 2005 | 11 | > > > | 5 | 2005 | 10 | > > > +-------+------+-------+ > > > 10 rows in set (0.03 sec) > > > > > > > > > > > > On 7/9/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > Okay, try the current one. I stopped concatenating things inside of > > the > > > > DB, that should be a lot more portable. > > > > > > > > > > > > Scott > > > > > > > > On 7/9/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > > > > > This is mysql? > > > > > > > > > > On 7/9/06, Chris Clark < chris at heartsong.biz> wrote: > > > > > > > > > > > Been following this, as I gave up on the archives a while ago, > > just > > > > > > didn't have time to dig into it.I just tried r1096, and now I > > see the > > > > > > archives again, though it comes across as a linked 1 with 460 > > articles > > > in > > > > > > it. Clicking the link /articles/find_by_date?month=0&year=1 > > gives an > > > > > > argument out of range error > > > > > > On Jul 9, 2006, at 9:04 AM, Scott Laird wrote: > > > > > > > > > > > > Can you try r1096? > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > On 7/9/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > > > > > > > Seems to be something with the || concat. I switched to the > > > > > > > function: > > > > > > > > > > > > > > Welcome to the MySQL monitor. Commands end with ; or \g. > > > > > > > Your MySQL connection id is 1 to server version: > > 4.1.14-standard > > > > > > > > > > > > > > mysql> select count(*) as count, concat(extract(year from > > > > > > > published_at),lpad(extract(month from > > published_at),2,'0')) as date > > > from > > > > > > > contents where type='Article' group by date order by date > > desc > > > limit 5; > > > > > > > +-------+--------+ > > > > > > > | count | date | > > > > > > > +-------+--------+ > > > > > > > | 1 | 200607 | > > > > > > > | 8 | 200606 | > > > > > > > | 7 | 200605 | > > > > > > > | 5 | 200604 | > > > > > > > | 14 | 200603 | > > > > > > > +-------+--------+ > > > > > > > 5 rows in set (0.03 sec) > > > > > > > > > > > > > > Is it maybe just an issue on MySQL prior to version 5? Most > > of the > > > > > > > shared hosts haven't upgraded to 5 yet... > > > > > > > > > > > > > > On 7/9/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > > > > > > > > That's... bizarre. > > > > > > > > > > > > > > Can you play with it a bit? Does extract(month from > > published_at) > > > > > > > and extract(year from published_at) work right? > > > > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com > wrote: > > > > > > > > > > > > > > > 1089 resolves the SQL error, but the archives sidebar still > > > > > > > renders as 1(). > > > > > > > > > > > > > > Here is the result of that query: > > > > > > > > > > > > > > mysql> select count(*) as count, extract(year from > > published_at)||' > > > > > > > > > > > > > > '> '||lpad(extract(month from published_at),2,'0') as > > date from > > > > > > > contents > > > > > > > -> where type='Article' group by date order by date desc > > limit > > > > > > > 5; > > > > > > > +-------+------+ > > > > > > > | count | date | > > > > > > > +-------+------+ > > > > > > > | 71 | 1 | > > > > > > > +-------+------+ > > > > > > > 1 row in set (0.01 sec) > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 7/8/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > > > > > > > > > If that doesn't work, then can you run this query and send > > me the > > > > > > > > results? > > > > > > > > > > > > > > > > select count(*) as count, extract(year from published_at)||' > > > > > > > > '||lpad(extract(month from published_at),2,'0') as date > > from > > > > > > > > contents > > > > > > > > where type='Article' group by date order by date desc limit > > 5; > > > > > > > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > On 7/8/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > > > > Can you give 1089 a try? > > > > > > > > > > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > > > > > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > Well the fix for the MySQL error is simple enough just add > > > > > > > > > > "to_i" to the > > > > > > > > > count variable that is passed on line 19 of the archives > > > > > > > > controller. It > > > > > > > > > still doesn't render correctly though: > > > > > > > > > > > > > > > > > > > > > > > > > > > Archives > > > > > > > > > Master Archive > > > > > > > > > 1 () > > > > > > > > > > > > > > > > > > > > > > > > > > > On 7/8/06, H. Wade Minter < minter at lunenburg.org > wrote: > > > > > > > > > > I > > > > > > > > > > On Jul 8, 2006, at 11:10 PM, Steve Longdo wrote: > > > > > > > > > > > > > > > > > > > > > I did a fresh checkout of r1088 and ran 'rake migrate' > > to > > > > > > > > update. > > > > > > > > > > > I believe that is a migration from 42 to 46. This ran > > > > > > > > without > > > > > > > > > > > error. When I attempt to view the site I get a > > message > > > > > > > > stating: > > > > > > > > > > > Controller stack got out of kilter! > > > > > > > > > > > > > > > > > > > > > > I saw this in the log: > > > > > > > > > > > Processing ArchivesController#index (for 127.0.0.1 at > > > > > > > > 2006-07-08 > > > > > > > > > > > 22:01:11) > > > > > > > > > > > Blog Load ( 0.002360) SELECT * FROM blogs ORDER BY > > id > > > > > > > > LIMIT 1 > > > > > > > > > > > Trigger Load ( 0.000713 ) SELECT * FROM triggers > > WHERE > > > > > > > > (due_at > > > > > > > > > > > <= '2006-07-08 22:01:11') > > > > > > > > > > > Content Load (0.000000 ) Mysql::Error: You have an > > error > > > > > > > > in your > > > > > > > > > > > SQL syntax; check the manual that corresponds to your > > MySQL > > > > > > > > server > > > > > > > > > > > version for the right syntax to use near ''12'' at > > line 1: > > > > > > > > select > > > > > > > > > > > count(*) as count, extract(year from published_at)||' > > > > > > > > '||lpad > > > > > > > > > > > (extract(month from published_at),2,'0') as date from > > > > > > > > contents > > > > > > > > > > > where type='Article' and published = 1 and > > published_at < > > > > > > > > > > > '2006-07-08 22:01:11' group by date order by date desc > > limit > > > > > > > > '12' > > > > > > > > > > > > > > > > > > > > > > Anybody seen this before? Is the Archives Sidebar > > broken? > > > > > > > > > > > > > > > > > > > > I noticed that as well when I upgraded, but haven't had > > the > > > > > > > > time to > > > > > > > > > > track it down. But yeah, I saw the exact same thing. > > > > > > > > > > > > > > > > > > > > --Wade > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > 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 > > > > > _______________________________________________ > 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/20060709/dae272a5/attachment-0001.html From steve.longdo at gmail.com Sun Jul 9 22:17:33 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Sun, 9 Jul 2006 21:17:33 -0500 Subject: [typo] MySQL error after SVN up to 1088... In-Reply-To: <14b7e5ef0607091719w68551fd2l3e70c5287f9ea20c@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <cc4e85f30607090834r35088d41x5f0a86f7de6988c2@mail.gmail.com> <14b7e5ef0607090904h743b5e11j67a7151d22bf3114@mail.gmail.com> <5F58BC43-E063-4BCB-A2EB-D19F695448B7@heartsong.biz> <14b7e5ef0607090927u2cbf8c34xd196fcbf10032af4@mail.gmail.com> <14b7e5ef0607090931ob952768nde2c1419d8f256b8@mail.gmail.com> <cc4e85f30607091120h17550182w24bf6bff73a397ac@mail.gmail.com> <14b7e5ef0607091128j75ed04ffy7a7f9d78bd417a78@mail.gmail.com> <cc4e85f30607091228m15642d38ga19de0f95fe31e77@mail.gmail.com> <14b7e5ef0607091719w68551fd2l3e70c5287f9ea20c@mail.gmail.com> Message-ID: <cc4e85f30607091917n65fee0bdqed6970202fa0667@mail.gmail.com> Looks good to me Scott! :-) On 7/9/06, Scott Laird <scott at sigkill.org> wrote: > > Okay, I fixed the monthname problem. Is anything else still broken? > > > Scott > > On 7/9/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > Two things, my theme overrode plugin/sidebars/archives/content.rhtml. > So that is part of the weirdness. The default archives displays the > aricle_count but the months were still numeric. I changed > line 23 of archives controller to: > :name => "#{entry.year} #{Date::MONTHNAMES[entry.month.to_i]}", > > I'm not sure if this is consider the best/most efficient way to get the > Month name mapped to the int value. Should I have used something like > strftime('%m', entry.month.to_i) instead? > > > On 7/9/06, scott at sigkill.org <scott at sigkill.org > wrote: > > > > Hmm. It's closer at least :-) > > > > I suspect this will easier to fix, but I'm away from my computer right > > now, and it'll be a few hours before I can fix it. > > > > > > Scott > > > > On 7/9/06, Steve Longdo <steve.longdo at gmail.com > wrote: > > > Now I get this, which is certainly an improvement, the generated links > > look > > > good: > > > Archives > > > > > > - Master Archive <http://localhost:3000/articles/archives > > > > - 2006 7 () < http://localhost:3000/articles/2006/7> > > > - 2006 6 () <http://localhost:3000/articles/2006/6 > > > > - 2006 5 () < http://localhost:3000/articles/2006/5> > > > - 2006 4 () <http://localhost:3000/articles/2006/4 > > > > - 2006 3 () < http://localhost:3000/articles/2006/3> > > > - 2006 2 () <http://localhost:3000/articles/2006/2 > > > > - 2006 1 () < http://localhost:3000/articles/2006/1> > > > - 2005 12 () <http://localhost:3000/articles/2005/12 > > > > - 2005 11 () < http://localhost:3000/articles/2005/11> > > > - 2005 10 () <http://localhost:3000/articles/2005/10 > > > > > > > Processing ArchivesController#index (for 127.0.0.1 at 2006-07-09 > > 13:08:47) > > > Blog Load (0.001680) SELECT * FROM blogs ORDER BY id LIMIT 1 > > > Trigger Load ( 0.000905) SELECT * FROM triggers WHERE (due_at <= > > > '2006-07-09 13:08:47') > > > Content Load (0.026332) select count(*) as count, extract(year > > from > > > published_at) as year,extract(month from published_at) as month from > > > contents where type='Article' and published = 1 and published_at < > > > '2006-07-09 13:08:47' group by year,month order by year desc,month > > desc > > > limit 12 > > > Content Columns (0.000892) SHOW FIELDS FROM contents > > > Rendering plugins/sidebars/archives/content > > > > > > mysql> select count(*) as count, extract(year from published_at) as > > > year,extract(month from published_at) as month from contents where > > > type='Article' and published = 1 and published_at < '2006-07-09 > > 13:08:47' > > > group by year,month order by year desc,month desc limit 12 > > > -> ; > > > +-------+------+-------+ > > > | count | year | month | > > > +-------+------+-------+ > > > | 1 | 2006 | 7 | > > > | 8 | 2006 | 6 | > > > | 7 | 2006 | 5 | > > > | 5 | 2006 | 4 | > > > | 14 | 2006 | 3 | > > > | 9 | 2006 | 2 | > > > | 5 | 2006 | 1 | > > > | 7 | 2005 | 12 | > > > | 9 | 2005 | 11 | > > > | 5 | 2005 | 10 | > > > +-------+------+-------+ > > > 10 rows in set (0.03 sec) > > > > > > > > > > > > On 7/9/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > Okay, try the current one. I stopped concatenating things inside of > > the > > > > DB, that should be a lot more portable. > > > > > > > > > > > > Scott > > > > > > > > On 7/9/06, Scott Laird <scott at sigkill.org> wrote: > > > > > > > > > > This is mysql? > > > > > > > > > > On 7/9/06, Chris Clark < chris at heartsong.biz> wrote: > > > > > > > > > > > Been following this, as I gave up on the archives a while ago, > > just > > > > > > didn't have time to dig into it.I just tried r1096, and now I > > see the > > > > > > archives again, though it comes across as a linked 1 with 460 > > articles > > > in > > > > > > it. Clicking the link /articles/find_by_date?month=0&year=1 > > gives an > > > > > > argument out of range error > > > > > > On Jul 9, 2006, at 9:04 AM, Scott Laird wrote: > > > > > > > > > > > > Can you try r1096? > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > On 7/9/06, Steve Longdo < steve.longdo at gmail.com > wrote: > > > > > > > > > > > > > > Seems to be something with the || concat. I switched to the > > > > > > > function: > > > > > > > > > > > > > > Welcome to the MySQL monitor. Commands end with ; or \g. > > > > > > > Your MySQL connection id is 1 to server version: > > 4.1.14-standard > > > > > > > > > > > > > > mysql> select count(*) as count, concat(extract(year from > > > > > > > published_at),lpad(extract(month from > > published_at),2,'0')) as date > > > from > > > > > > > contents where type='Article' group by date order by date > > desc > > > limit 5; > > > > > > > +-------+--------+ > > > > > > > | count | date | > > > > > > > +-------+--------+ > > > > > > > | 1 | 200607 | > > > > > > > | 8 | 200606 | > > > > > > > | 7 | 200605 | > > > > > > > | 5 | 200604 | > > > > > > > | 14 | 200603 | > > > > > > > +-------+--------+ > > > > > > > 5 rows in set (0.03 sec) > > > > > > > > > > > > > > Is it maybe just an issue on MySQL prior to version 5? Most > > of the > > > > > > > shared hosts haven't upgraded to 5 yet... > > > > > > > > > > > > > > On 7/9/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > > > > > > > > That's... bizarre. > > > > > > > > > > > > > > Can you play with it a bit? Does extract(month from > > published_at) > > > > > > > and extract(year from published_at) work right? > > > > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com > wrote: > > > > > > > > > > > > > > > 1089 resolves the SQL error, but the archives sidebar still > > > > > > > renders as 1(). > > > > > > > > > > > > > > Here is the result of that query: > > > > > > > > > > > > > > mysql> select count(*) as count, extract(year from > > published_at)||' > > > > > > > > > > > > > > '> '||lpad(extract(month from published_at),2,'0') as > > date from > > > > > > > contents > > > > > > > -> where type='Article' group by date order by date desc > > limit > > > > > > > 5; > > > > > > > +-------+------+ > > > > > > > | count | date | > > > > > > > +-------+------+ > > > > > > > | 71 | 1 | > > > > > > > +-------+------+ > > > > > > > 1 row in set (0.01 sec) > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 7/8/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > > > > > > > > > > > If that doesn't work, then can you run this query and send > > me the > > > > > > > > results? > > > > > > > > > > > > > > > > select count(*) as count, extract(year from published_at)||' > > > > > > > > '||lpad(extract(month from published_at),2,'0') as date > > from > > > > > > > > contents > > > > > > > > where type='Article' group by date order by date desc limit > > 5; > > > > > > > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > On 7/8/06, Scott Laird <scott at sigkill.org > wrote: > > > > > > > > > Can you give 1089 a try? > > > > > > > > > > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > > > > > > > > > > > > > > > > On 7/8/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > Well the fix for the MySQL error is simple enough just add > > > > > > > > > > "to_i" to the > > > > > > > > > count variable that is passed on line 19 of the archives > > > > > > > > controller. It > > > > > > > > > still doesn't render correctly though: > > > > > > > > > > > > > > > > > > > > > > > > > > > Archives > > > > > > > > > Master Archive > > > > > > > > > 1 () > > > > > > > > > > > > > > > > > > > > > > > > > > > On 7/8/06, H. Wade Minter < minter at lunenburg.org > wrote: > > > > > > > > > > I > > > > > > > > > > On Jul 8, 2006, at 11:10 PM, Steve Longdo wrote: > > > > > > > > > > > > > > > > > > > > > I did a fresh checkout of r1088 and ran 'rake migrate' > > to > > > > > > > > update. > > > > > > > > > > > I believe that is a migration from 42 to 46. This ran > > > > > > > > without > > > > > > > > > > > error. When I attempt to view the site I get a > > message > > > > > > > > stating: > > > > > > > > > > > Controller stack got out of kilter! > > > > > > > > > > > > > > > > > > > > > > I saw this in the log: > > > > > > > > > > > Processing ArchivesController#index (for 127.0.0.1 at > > > > > > > > 2006-07-08 > > > > > > > > > > > 22:01:11) > > > > > > > > > > > Blog Load ( 0.002360) SELECT * FROM blogs ORDER BY > > id > > > > > > > > LIMIT 1 > > > > > > > > > > > Trigger Load ( 0.000713 ) SELECT * FROM triggers > > WHERE > > > > > > > > (due_at > > > > > > > > > > > <= '2006-07-08 22:01:11') > > > > > > > > > > > Content Load (0.000000 ) Mysql::Error: You have an > > error > > > > > > > > in your > > > > > > > > > > > SQL syntax; check the manual that corresponds to your > > MySQL > > > > > > > > server > > > > > > > > > > > version for the right syntax to use near ''12'' at > > line 1: > > > > > > > > select > > > > > > > > > > > count(*) as count, extract(year from published_at)||' > > > > > > > > '||lpad > > > > > > > > > > > (extract(month from published_at),2,'0') as date from > > > > > > > > contents > > > > > > > > > > > where type='Article' and published = 1 and > > published_at < > > > > > > > > > > > '2006-07-08 22:01:11' group by date order by date desc > > limit > > > > > > > > '12' > > > > > > > > > > > > > > > > > > > > > > Anybody seen this before? Is the Archives Sidebar > > broken? > > > > > > > > > > > > > > > > > > > > I noticed that as well when I upgraded, but haven't had > > the > > > > > > > > time to > > > > > > > > > > track it down. But yeah, I saw the exact same thing. > > > > > > > > > > > > > > > > > > > > --Wade > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > 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 > > > > > _______________________________________________ > > 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/20060709/9ee1d574/attachment-0001.html From vemon388 at gmail.com Sun Jul 9 23:22:33 2006 From: vemon388 at gmail.com (levi mccallum) Date: Sun, 9 Jul 2006 20:22:33 -0700 Subject: [typo] Admin interface gone. Message-ID: <fb023dc70607092022u6a68ae1awb63a5b5a113dab44@mail.gmail.com> hey guys, I have been updating my typo to the latest svn's, as I should. But every time I update, the images for the admin interface just disappear. It's totally strange. -- 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/20060709/b742ff5e/attachment.html From scott at sigkill.org Mon Jul 10 01:42:02 2006 From: scott at sigkill.org (Scott Laird) Date: Sun, 9 Jul 2006 22:42:02 -0700 Subject: [typo] Admin interface gone. In-Reply-To: <fb023dc70607092022u6a68ae1awb63a5b5a113dab44@mail.gmail.com> References: <fb023dc70607092022u6a68ae1awb63a5b5a113dab44@mail.gmail.com> Message-ID: <14b7e5ef0607092242g5be782bcm2dc350f809213d4d@mail.gmail.com> Are you restarting your server process(es) when you upgrade? Scott On 7/9/06, levi mccallum <vemon388 at gmail.com> wrote: > > hey guys, > > I have been updating my typo to the latest svn's, as I should. > > But every time I update, the images for the admin interface just > disappear. It's totally strange. > > -- > Levi McCallum > Web Developer & Student > http://evilmac.org/ or http://humblepixel.com/ > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060709/001ec2a8/attachment.html From scott at sigkill.org Mon Jul 10 01:56:10 2006 From: scott at sigkill.org (Scott Laird) Date: Sun, 9 Jul 2006 22:56:10 -0700 Subject: [typo] Typo 3.99.3 available. Please test. Message-ID: <14b7e5ef0607092256i1c0a5520h2a188f5eb720d4ae@mail.gmail.com> Typo 3.99.3 is now on Rubyforge, but it may take an hour or two before 'gem install typo' works reliably. If you want to test it before then, please grab http://scottstuff.net/misc/typo-3.99.3.gem directly. There are a lot of changes between 3.99.2 and 3.99.3. There's a short change list on rubyforge, or you can just look at the Trac timeline. I'd really like to release Typo 4.0 this week. There are still 11 open tickets for 4.0. I'd appreciate any testing that people can do, but patches are *especially* nice :-). Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060709/1671a357/attachment.html From tim at digital-achievement.com Mon Jul 10 01:57:54 2006 From: tim at digital-achievement.com (Timothy Freund) Date: Mon, 10 Jul 2006 00:57:54 -0500 Subject: [typo] Proofread Theme Catalog Message-ID: <44B1EC62.7050300@digital-achievement.com> A while back I thought it would be cool to set up a theme repository that allowed themes to be tested and maintained against multiple versions of Typo. It took longer than expected due to a sudden flurry of house buying and selling activity, but a rough first attempt is up. The biggest flaw right now is that only my own themes are are in the system. A more inclusive list of flaws and action items can be found in the Trac. The theme repository: http://proofread.digital-achievement.com/catalog/ I have Trac set up to collect bugs/requests/patches: http://proofread.digital-achievement.com/project/wiki There's still a long list of things to do, and if you'd like to help please send me a message. Thanks, Tim -- Timothy Freund http://digital-achievement.com http://edodyssey.com From rasputnik at gmail.com Mon Jul 10 05:20:56 2006 From: rasputnik at gmail.com (Dick Davies) Date: Mon, 10 Jul 2006 10:20:56 +0100 Subject: [typo] Typo 3.99.3 available. Please test. In-Reply-To: <14b7e5ef0607092256i1c0a5520h2a188f5eb720d4ae@mail.gmail.com> References: <14b7e5ef0607092256i1c0a5520h2a188f5eb720d4ae@mail.gmail.com> Message-ID: <3f1760607100220y426de4c3rb12989236284e6d3@mail.gmail.com> Thanks Scott. Do you want bug reports in trac? On 10/07/06, Scott Laird <scott at sigkill.org> wrote: > Typo 3.99.3 is now on Rubyforge, but it may take an hour or two before 'gem > install typo' works reliably. If you want to test it before then, please > grab http://scottstuff.net/misc/typo-3.99.3.gem directly. > > There are a lot of changes between 3.99.2 and 3.99.3. There's a short > change list on rubyforge, or you can just look at the Trac timeline. > > I'd really like to release Typo 4.0 this week. There are still 11 open > tickets for 4.0. I'd appreciate any testing that people can do, but patches > are *especially* nice :-). > > > > Scott > _______________________________________________ > 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 urban at bettong.net Mon Jul 10 07:12:00 2006 From: urban at bettong.net (Urban Hafner) Date: Mon, 10 Jul 2006 13:12:00 +0200 Subject: [typo] Why is the body of the static sidebar escaped? In-Reply-To: <14b7e5ef0607090904k4f5aec2bg9db618efcb6193fb@mail.gmail.com> References: <A9F89480-86E9-4EC7-BA66-20B55589EFCB@bettong.net> <14b7e5ef0607090857i228d33adue992ec3d51592dce@mail.gmail.com> <14b7e5ef0607090904k4f5aec2bg9db618efcb6193fb@mail.gmail.com> Message-ID: <28462C05-2A79-4337-9A50-DFE92B923652@bettong.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 9 Jul 2006, at 18:04, Scott Laird wrote: > Can you give r1096 a try? This works. Thanks for the quick fix! Urban - -- http://bettong.net - Urban's Blog -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (Darwin) iD8DBQFEsjYHggNuVCIrEyURArmIAKCNLNDxlheCWAHbJ/R78PYX/wV+BACfd8GU Ce3Q7QYELWYyc7+8jT2UFsM= =KSL0 -----END PGP SIGNATURE----- From scott at sigkill.org Mon Jul 10 10:12:05 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 10 Jul 2006 07:12:05 -0700 Subject: [typo] Typo 3.99.3 available. Please test. In-Reply-To: <3f1760607100220y426de4c3rb12989236284e6d3@mail.gmail.com> References: <14b7e5ef0607092256i1c0a5520h2a188f5eb720d4ae@mail.gmail.com> <3f1760607100220y426de4c3rb12989236284e6d3@mail.gmail.com> Message-ID: <14b7e5ef0607100712v6265dd06gea1d0ea528c1d993@mail.gmail.com> Yeah, unless it's really trivial. I tend to forget things that aren't in trac. Scott On 7/10/06, Dick Davies <rasputnik at gmail.com> wrote: > > Thanks Scott. > > Do you want bug reports in trac? > > > On 10/07/06, Scott Laird <scott at sigkill.org> wrote: > > Typo 3.99.3 is now on Rubyforge, but it may take an hour or two before > 'gem > > install typo' works reliably. If you want to test it before then, > please > > grab http://scottstuff.net/misc/typo-3.99.3.gem directly. > > > > There are a lot of changes between 3.99.2 and 3.99.3. There's a short > > change list on rubyforge, or you can just look at the Trac timeline. > > > > I'd really like to release Typo 4.0 this week. There are still 11 open > > tickets for 4.0. I'd appreciate any testing that people can do, but > patches > > are *especially* nice :-). > > > > > > > > Scott > > _______________________________________________ > > 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/ > _______________________________________________ > 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/20060710/141dcbd1/attachment.html From jake at whoisjake.com Mon Jul 10 10:17:06 2006 From: jake at whoisjake.com (Jake Good) Date: Mon, 10 Jul 2006 09:17:06 -0500 Subject: [typo] flickr controller Message-ID: <44B26162.70200@whoisjake.com> I posted about the flickr controller not working a few days ago... the stack trace lead me to believe that the latest patch that was merged might be cause for the problem... private method `gsub' called for {}:Hash (NoMethodError) /usr/lib/ruby/1.8/cgi.rb:370:in `unescapeHTML' ../config/../components/plugins/textfilters/flickr_controller.rb:58:in `macrofilter' http://www.typosphere.org/trac/attachment/ticket/955/text_filter_flickr_controller.patch It changes this line: caption ||= flickrimage.description to caption ||= sanitize(CGI.unescapeHTML(flickrimage.description)) I was looking at CGI.unescapeHTML(string) and I don't think it plays with nulls very well... in fact, it calls string.gsub in the first line of the method (which is what the exception in the trace came from). http://www.ruby-doc.org/core-1.9/classes/CGI.src/M000419.html Now, I'm not verse in Ruby.. so I'm not sure how to go about fixing this or if this is even the problem... I backed up that file to the previous revision and things are working fine... Thanks, Jake From vemon388 at gmail.com Mon Jul 10 10:16:59 2006 From: vemon388 at gmail.com (levi mccallum) Date: Mon, 10 Jul 2006 07:16:59 -0700 Subject: [typo] Admin interface gone. In-Reply-To: <14b7e5ef0607092242g5be782bcm2dc350f809213d4d@mail.gmail.com> References: <fb023dc70607092022u6a68ae1awb63a5b5a113dab44@mail.gmail.com> <14b7e5ef0607092242g5be782bcm2dc350f809213d4d@mail.gmail.com> Message-ID: <fb023dc70607100716h7893a066m8bdffbbd31df07c8@mail.gmail.com> Can I? I am using dreamhost. And I am not sure if they alow me to do that.... On 7/9/06, Scott Laird <scott at sigkill.org> wrote: > > Are you restarting your server process(es) when you upgrade? > > > Scott > > On 7/9/06, levi mccallum <vemon388 at gmail.com > wrote: > > > hey guys, > > I have been updating my typo to the latest svn's, as I should. > > But every time I update, the images for the admin interface just > disappear. It's totally strange. > > -- > Levi McCallum > Web Developer & Student > http://evilmac.org/ or http://humblepixel.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 > > -- 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/20060710/3e488ed7/attachment-0001.html From scott at sigkill.org Mon Jul 10 10:45:01 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 10 Jul 2006 07:45:01 -0700 Subject: [typo] flickr controller In-Reply-To: <44B26162.70200@whoisjake.com> References: <44B26162.70200@whoisjake.com> Message-ID: <14b7e5ef0607100745q6f2f7c6ej70b197034381ff59@mail.gmail.com> Ah, that's probably the problem. Can you test revision 1111 and see if it works? Scott On 7/10/06, Jake Good <jake at whoisjake.com> wrote: > > I posted about the flickr controller not working a few days ago... the > stack trace lead me to believe that the latest patch that was merged > might be cause for the problem... > > private method `gsub' called for {}:Hash (NoMethodError) > /usr/lib/ruby/1.8/cgi.rb:370:in `unescapeHTML' > ../config/../components/plugins/textfilters/flickr_controller.rb:58:in > `macrofilter' > > > http://www.typosphere.org/trac/attachment/ticket/955/text_filter_flickr_controller.patch > > It changes this line: > caption ||= flickrimage.description > to > caption ||= sanitize(CGI.unescapeHTML(flickrimage.description)) > > I was looking at CGI.unescapeHTML(string) and I don't think it plays > with nulls very well... in fact, it calls string.gsub in the first line > of the method (which is what the exception in the trace came from). > http://www.ruby-doc.org/core-1.9/classes/CGI.src/M000419.html > > Now, I'm not verse in Ruby.. so I'm not sure how to go about fixing this > or if this is even the problem... > > I backed up that file to the previous revision and things are working > fine... > > Thanks, > Jake > > > _______________________________________________ > 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/20060710/f9998c3b/attachment.html From scott at sigkill.org Mon Jul 10 10:47:24 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 10 Jul 2006 07:47:24 -0700 Subject: [typo] Admin interface gone. In-Reply-To: <fb023dc70607100716h7893a066m8bdffbbd31df07c8@mail.gmail.com> References: <fb023dc70607092022u6a68ae1awb63a5b5a113dab44@mail.gmail.com> <14b7e5ef0607092242g5be782bcm2dc350f809213d4d@mail.gmail.com> <fb023dc70607100716h7893a066m8bdffbbd31df07c8@mail.gmail.com> Message-ID: <14b7e5ef0607100747w5c13d623s9eb08e96395bfc00@mail.gmail.com> Do you have shell access, or do you just upload files via FTP? I've never used dreamhost, but I'd be amazed if they didn't run your fcgi processes under your own user ID. If you have shell access, then you should be able to kill them off easily enough. Scott On 7/10/06, levi mccallum <vemon388 at gmail.com> wrote: > > Can I? I am using dreamhost. And I am not sure if they alow me to do > that.... > > > On 7/9/06, Scott Laird <scott at sigkill.org > wrote: > > > > Are you restarting your server process(es) when you upgrade? > > > > > > Scott > > > > On 7/9/06, levi mccallum < vemon388 at gmail.com > wrote: > > > > > hey guys, > > > > I have been updating my typo to the latest svn's, as I should. > > > > But every time I update, the images for the admin interface just > > disappear. It's totally strange. > > > > -- > > Levi McCallum > > Web Developer & Student > > http://evilmac.org/ or http://humblepixel.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 > > > > > > > -- > Levi McCallum > Web Developer & Student > http://evilmac.org/ or http://humblepixel.com/ > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060710/24959332/attachment.html From vemon388 at gmail.com Mon Jul 10 10:50:15 2006 From: vemon388 at gmail.com (levi mccallum) Date: Mon, 10 Jul 2006 07:50:15 -0700 Subject: [typo] Admin interface gone. In-Reply-To: <14b7e5ef0607100747w5c13d623s9eb08e96395bfc00@mail.gmail.com> References: <fb023dc70607092022u6a68ae1awb63a5b5a113dab44@mail.gmail.com> <14b7e5ef0607092242g5be782bcm2dc350f809213d4d@mail.gmail.com> <fb023dc70607100716h7893a066m8bdffbbd31df07c8@mail.gmail.com> <14b7e5ef0607100747w5c13d623s9eb08e96395bfc00@mail.gmail.com> Message-ID: <fb023dc70607100750p4e4eaf48v9064e746b3a02eed@mail.gmail.com> I have shell access.. That is how I svn. What is the command for a restart? On 7/10/06, Scott Laird <scott at sigkill.org> wrote: > > Do you have shell access, or do you just upload files via FTP? I've never > used dreamhost, but I'd be amazed if they didn't run your fcgi processes > under your own user ID. If you have shell access, then you should be able > to kill them off easily enough. > > > Scott > > > On 7/10/06, levi mccallum <vemon388 at gmail.com> wrote: > > > > Can I? I am using dreamhost. And I am not sure if they alow me to do > > that.... > > > > > > On 7/9/06, Scott Laird <scott at sigkill.org > wrote: > > > > > > Are you restarting your server process(es) when you upgrade? > > > > > > > > > Scott > > > > > > On 7/9/06, levi mccallum < vemon388 at gmail.com > wrote: > > > > > > > hey guys, > > > > > > I have been updating my typo to the latest svn's, as I should. > > > > > > But every time I update, the images for the admin interface just > > > disappear. It's totally strange. > > > > > > -- > > > Levi McCallum > > > Web Developer & Student > > > http://evilmac.org/ or http://humblepixel.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 > > > > > > > > > > > > -- > > Levi McCallum > > Web Developer & Student > > http://evilmac.org/ or http://humblepixel.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 > > -- 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/20060710/47ec68b2/attachment.html From jake at whoisjake.com Mon Jul 10 10:59:24 2006 From: jake at whoisjake.com (Jake Good) Date: Mon, 10 Jul 2006 09:59:24 -0500 Subject: [typo] flickr controller In-Reply-To: <14b7e5ef0607100745q6f2f7c6ej70b197034381ff59@mail.gmail.com> References: <44B26162.70200@whoisjake.com> <14b7e5ef0607100745q6f2f7c6ej70b197034381ff59@mail.gmail.com> Message-ID: <44B26B4C.2030701@whoisjake.com> Still the same error as before... hrmpf, I would assume that should have changed it... It's definitely THAT exact line that's messing things up. Scott Laird wrote: > Ah, that's probably the problem. Can you test revision 1111 and see > if it works? > > > Scott > > On 7/10/06, *Jake Good* < jake at whoisjake.com > <mailto:jake at whoisjake.com>> wrote: > > I posted about the flickr controller not working a few days ago... > the > stack trace lead me to believe that the latest patch that was merged > might be cause for the problem... > > private method `gsub' called for {}:Hash (NoMethodError) > /usr/lib/ruby/1.8/cgi.rb:370:in `unescapeHTML' > ../config/../components/plugins/textfilters/flickr_controller.rb:58:in > `macrofilter' > > http://www.typosphere.org/trac/attachment/ticket/955/text_filter_flickr_controller.patch > <http://www.typosphere.org/trac/attachment/ticket/955/text_filter_flickr_controller.patch> > > It changes this line: > caption ||= flickrimage.description > to > caption ||= sanitize(CGI.unescapeHTML(flickrimage.description)) > > I was looking at CGI.unescapeHTML(string) and I don't think it plays > with nulls very well... in fact, it calls string.gsub in the first > line > of the method (which is what the exception in the trace came from). > http://www.ruby-doc.org/core-1.9/classes/CGI.src/M000419.html > > Now, I'm not verse in Ruby.. so I'm not sure how to go about > fixing this > or if this is even the problem... > > I backed up that file to the previous revision and things are working > fine... > > Thanks, > Jake > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org <mailto:Typo-list at rubyforge.org> > http://rubyforge.org/mailman/listinfo/typo-list > > > ------------------------------------------------------------------------ > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From scott at sigkill.org Mon Jul 10 10:59:15 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 10 Jul 2006 07:59:15 -0700 Subject: [typo] Admin interface gone. In-Reply-To: <fb023dc70607100750p4e4eaf48v9064e746b3a02eed@mail.gmail.com> References: <fb023dc70607092022u6a68ae1awb63a5b5a113dab44@mail.gmail.com> <14b7e5ef0607092242g5be782bcm2dc350f809213d4d@mail.gmail.com> <fb023dc70607100716h7893a066m8bdffbbd31df07c8@mail.gmail.com> <14b7e5ef0607100747w5c13d623s9eb08e96395bfc00@mail.gmail.com> <fb023dc70607100750p4e4eaf48v9064e746b3a02eed@mail.gmail.com> Message-ID: <14b7e5ef0607100759v6b991c1fi23b612d7d57f147a@mail.gmail.com> Just kill off all of the ruby dispatch.fcgi processes. Either killall ruby or killall dispatch.fcgi, depending on how things are configured. Scott On 7/10/06, levi mccallum <vemon388 at gmail.com> wrote: > > I have shell access.. That is how I svn. > > What is the command for a restart? > > > On 7/10/06, Scott Laird <scott at sigkill.org > wrote: > > > > Do you have shell access, or do you just upload files via FTP? I've > > never used dreamhost, but I'd be amazed if they didn't run your fcgi > > processes under your own user ID. If you have shell access, then you should > > be able to kill them off easily enough. > > > > > > Scott > > > > > > On 7/10/06, levi mccallum < vemon388 at gmail.com> wrote: > > > > > > Can I? I am using dreamhost. And I am not sure if they alow me to do > > > that.... > > > > > > > > > On 7/9/06, Scott Laird <scott at sigkill.org > wrote: > > > > > > > > Are you restarting your server process(es) when you upgrade? > > > > > > > > > > > > Scott > > > > > > > > On 7/9/06, levi mccallum < vemon388 at gmail.com > wrote: > > > > > > > > > hey guys, > > > > > > > > I have been updating my typo to the latest svn's, as I should. > > > > > > > > But every time I update, the images for the admin interface just > > > > disappear. It's totally strange. > > > > > > > > -- > > > > Levi McCallum > > > > Web Developer & Student > > > > http://evilmac.org/ or http://humblepixel.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 > > > > > > > > > > > > > > > > > -- > > > Levi McCallum > > > Web Developer & Student > > > http://evilmac.org/ or http://humblepixel.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 > > > > > > > -- > Levi McCallum > Web Developer & Student > http://evilmac.org/ or http://humblepixel.com/ > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060710/a1ed33f6/attachment-0001.html From jake at whoisjake.com Mon Jul 10 11:41:14 2006 From: jake at whoisjake.com (Jake Good) Date: Mon, 10 Jul 2006 10:41:14 -0500 Subject: [typo] flickr controller In-Reply-To: <14b7e5ef0607100745q6f2f7c6ej70b197034381ff59@mail.gmail.com> References: <44B26162.70200@whoisjake.com> <14b7e5ef0607100745q6f2f7c6ej70b197034381ff59@mail.gmail.com> Message-ID: <44B2751A.9000307@whoisjake.com> 1112 fixed it! Thanks Scott Scott Laird wrote: > Ah, that's probably the problem. Can you test revision 1111 and see > if it works? > > > Scott > > On 7/10/06, *Jake Good* < jake at whoisjake.com > <mailto:jake at whoisjake.com>> wrote: > > I posted about the flickr controller not working a few days ago... > the > stack trace lead me to believe that the latest patch that was merged > might be cause for the problem... > > private method `gsub' called for {}:Hash (NoMethodError) > /usr/lib/ruby/1.8/cgi.rb:370:in `unescapeHTML' > ../config/../components/plugins/textfilters/flickr_controller.rb:58:in > `macrofilter' > > http://www.typosphere.org/trac/attachment/ticket/955/text_filter_flickr_controller.patch > <http://www.typosphere.org/trac/attachment/ticket/955/text_filter_flickr_controller.patch> > > It changes this line: > caption ||= flickrimage.description > to > caption ||= sanitize(CGI.unescapeHTML(flickrimage.description)) > > I was looking at CGI.unescapeHTML(string) and I don't think it plays > with nulls very well... in fact, it calls string.gsub in the first > line > of the method (which is what the exception in the trace came from). > http://www.ruby-doc.org/core-1.9/classes/CGI.src/M000419.html > > Now, I'm not verse in Ruby.. so I'm not sure how to go about > fixing this > or if this is even the problem... > > I backed up that file to the previous revision and things are working > fine... > > Thanks, > Jake > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org <mailto: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 stompy at stompy.org Mon Jul 10 12:55:42 2006 From: stompy at stompy.org (Stompy) Date: Mon, 10 Jul 2006 17:55:42 +0100 Subject: [typo] Admin interface gone. In-Reply-To: <14b7e5ef0607100759v6b991c1fi23b612d7d57f147a@mail.gmail.com> References: <fb023dc70607092022u6a68ae1awb63a5b5a113dab44@mail.gmail.com> <14b7e5ef0607092242g5be782bcm2dc350f809213d4d@mail.gmail.com> <fb023dc70607100716h7893a066m8bdffbbd31df07c8@mail.gmail.com> <14b7e5ef0607100747w5c13d623s9eb08e96395bfc00@mail.gmail.com> <fb023dc70607100750p4e4eaf48v9064e746b3a02eed@mail.gmail.com> <14b7e5ef0607100759v6b991c1fi23b612d7d57f147a@mail.gmail.com> Message-ID: <0AD9D8C1-A4ED-4C70-B63C-18F34D35B4DB@stompy.org> I'm on Dreamhost, and you can kill dispatch.fcgi this way. Use the 'top' command to see what is running. On 10 Jul 2006, at 15:59, Scott Laird wrote: > Just kill off all of the ruby dispatch.fcgi processes. Either > killall ruby or killall dispatch.fcgi, depending on how things are > configured. > > > Scott > > On 7/10/06, levi mccallum <vemon388 at gmail.com> wrote: > I have shell access.. That is how I svn. > > What is the command for a restart? > > > On 7/10/06, Scott Laird <scott at sigkill.org > wrote: > Do you have shell access, or do you just upload files via FTP? > I've never used dreamhost, but I'd be amazed if they didn't run > your fcgi processes under your own user ID. If you have shell > access, then you should be able to kill them off easily enough. > > > Scott > > > On 7/10/06, levi mccallum < vemon388 at gmail.com> wrote: > Can I? I am using dreamhost. And I am not sure if they alow me to > do that.... > > > On 7/9/06, Scott Laird <scott at sigkill.org > wrote: > Are you restarting your server process(es) when you upgrade? > > > Scott > > On 7/9/06, levi mccallum < vemon388 at gmail.com > wrote: > hey guys, > > I have been updating my typo to the latest svn's, as I should. > > But every time I update, the images for the admin interface just > disappear. It's totally strange. > > -- > Levi McCallum > Web Developer & Student > http://evilmac.org/ or http://humblepixel.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 > > > > > -- > Levi McCallum > Web Developer & Student > http://evilmac.org/ or http://humblepixel.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 > > > > > -- > Levi McCallum > Web Developer & Student > http://evilmac.org/ or http://humblepixel.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/20060710/69888dd8/attachment.html From rsanheim at gmail.com Mon Jul 10 12:45:23 2006 From: rsanheim at gmail.com (Rob Sanheim) Date: Mon, 10 Jul 2006 11:45:23 -0500 Subject: [typo] Admin interface gone. In-Reply-To: <fb023dc70607100750p4e4eaf48v9064e746b3a02eed@mail.gmail.com> References: <fb023dc70607092022u6a68ae1awb63a5b5a113dab44@mail.gmail.com> <14b7e5ef0607092242g5be782bcm2dc350f809213d4d@mail.gmail.com> <fb023dc70607100716h7893a066m8bdffbbd31df07c8@mail.gmail.com> <14b7e5ef0607100747w5c13d623s9eb08e96395bfc00@mail.gmail.com> <fb023dc70607100750p4e4eaf48v9064e746b3a02eed@mail.gmail.com> Message-ID: <fc113d400607100945t588505ecsfa8976dcf00faf21@mail.gmail.com> On 7/10/06, levi mccallum <vemon388 at gmail.com> wrote: > I have shell access.. That is how I svn. > > What is the command for a restart? > > killall -9 dispatch.fcgi >From here: http://convergentarts.com/articles/2005/07/26/restarting-all-fastcgi-processes Google is your friend :). - rob From minter at lunenburg.org Mon Jul 10 13:12:14 2006 From: minter at lunenburg.org (H. Wade Minter) Date: Mon, 10 Jul 2006 13:12:14 -0400 Subject: [typo] Typo, Mongrel, and non-root-urls In-Reply-To: <F5785F4B-6AC4-47F4-A31B-DCA9BCCDFDAF@lunenburg.org> References: <069D6F21-51B4-4187-A510-08E4F0B2D74F@lunenburg.org> <14b7e5ef0607081840r59c36a93v280a712c1f735d0e@mail.gmail.com> <F5785F4B-6AC4-47F4-A31B-DCA9BCCDFDAF@lunenburg.org> Message-ID: <3410D1AF-1639-46F9-954C-43861F520FC4@lunenburg.org> Anything in the new checkins that might affect Mongrel/proxies? On Jul 8, 2006, at 10:17 PM, H. Wade Minter wrote: > Alright - I've switched back to FastCGI for now. If you've got > anything you want me to test, let me know. > > --Wade > > On Jul 8, 2006, at 9:40 PM, scott at sigkill.org wrote: > >> I think non-root hosting with mongrel is still a bit tricky. I'll >> look at it once I've closed a few more bugs. >> >> On 7/8/06, H. Wade Minter <minter at lunenburg.org> wrote: >>> I'm trying to migrate my Typo installation at http:// >>> www.lunenburg.org/wade/ from Apache/FastCGI to Mongrel via Apache >>> proxies. The problem seems to be that Typo/Rails isn't liking the >>> fact that Mongrel is running the blog at http://localhost:4001/ but >>> the Apache proxy isn't at a root URL (/wade instead). >>> >>> I've tried the reverse_proxy_fix plugin, but it doesn't seem to be >>> working. I can go to the root of the website just fine, but if I >>> try >>> to go to any other sub-URL (for example, http://www.lunenburg.org/ >>> wade/articles/category/general), I get a "Page not found" error. >>> >>> Is there any particular bit I need to twiddle, in environment.rb or >>> something, to get this to play nicely? Or do I need to fall back to >>> Apache/FastCGI? >>> >>> I'm running Typo SVN rev 1088. >>> >>> Thanks, >>> Wade >>> _______________________________________________ >>> 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 Mon Jul 10 13:26:24 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 10 Jul 2006 10:26:24 -0700 Subject: [typo] Typo, Mongrel, and non-root-urls In-Reply-To: <3410D1AF-1639-46F9-954C-43861F520FC4@lunenburg.org> References: <069D6F21-51B4-4187-A510-08E4F0B2D74F@lunenburg.org> <14b7e5ef0607081840r59c36a93v280a712c1f735d0e@mail.gmail.com> <F5785F4B-6AC4-47F4-A31B-DCA9BCCDFDAF@lunenburg.org> <3410D1AF-1639-46F9-954C-43861F520FC4@lunenburg.org> Message-ID: <14b7e5ef0607101026m5b394588h26ef775a6ad15b5f@mail.gmail.com> I haven't dealt with mongrel-in-a-subdirectory yet, if that's the question. It used to be 1-line patch to Mongrel. I'll see what I can do today or tomorrow. Scott On 7/10/06, H. Wade Minter <minter at lunenburg.org> wrote: > > Anything in the new checkins that might affect Mongrel/proxies? > > On Jul 8, 2006, at 10:17 PM, H. Wade Minter wrote: > > > Alright - I've switched back to FastCGI for now. If you've got > > anything you want me to test, let me know. > > > > --Wade > > > > On Jul 8, 2006, at 9:40 PM, scott at sigkill.org wrote: > > > >> I think non-root hosting with mongrel is still a bit tricky. I'll > >> look at it once I've closed a few more bugs. > >> > >> On 7/8/06, H. Wade Minter <minter at lunenburg.org> wrote: > >>> I'm trying to migrate my Typo installation at http:// > >>> www.lunenburg.org/wade/ from Apache/FastCGI to Mongrel via Apache > >>> proxies. The problem seems to be that Typo/Rails isn't liking the > >>> fact that Mongrel is running the blog at http://localhost:4001/ but > >>> the Apache proxy isn't at a root URL (/wade instead). > >>> > >>> I've tried the reverse_proxy_fix plugin, but it doesn't seem to be > >>> working. I can go to the root of the website just fine, but if I > >>> try > >>> to go to any other sub-URL (for example, http://www.lunenburg.org/ > >>> wade/articles/category/general), I get a "Page not found" error. > >>> > >>> Is there any particular bit I need to twiddle, in environment.rb or > >>> something, to get this to play nicely? Or do I need to fall back to > >>> Apache/FastCGI? > >>> > >>> I'm running Typo SVN rev 1088. > >>> > >>> Thanks, > >>> Wade > >>> _______________________________________________ > >>> 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/20060710/65b4d7b9/attachment-0001.html From minter at lunenburg.org Mon Jul 10 13:32:58 2006 From: minter at lunenburg.org (H. Wade Minter) Date: Mon, 10 Jul 2006 13:32:58 -0400 Subject: [typo] Typo, Mongrel, and non-root-urls In-Reply-To: <14b7e5ef0607101026m5b394588h26ef775a6ad15b5f@mail.gmail.com> References: <069D6F21-51B4-4187-A510-08E4F0B2D74F@lunenburg.org> <14b7e5ef0607081840r59c36a93v280a712c1f735d0e@mail.gmail.com> <F5785F4B-6AC4-47F4-A31B-DCA9BCCDFDAF@lunenburg.org> <3410D1AF-1639-46F9-954C-43861F520FC4@lunenburg.org> <14b7e5ef0607101026m5b394588h26ef775a6ad15b5f@mail.gmail.com> Message-ID: <C9495ACF-FDEC-492D-8BE2-DEA24771A487@lunenburg.org> Yeah, the situation is that Mongrel is serving up the app in the root directory (localhost:4000), but Apache is proxying it from a subdirectory (http://www.lunenburg.org/wade/), so that's where the issue comes up. If there's anything you need me to test, let me know. On Jul 10, 2006, at 1:26 PM, Scott Laird wrote: > I haven't dealt with mongrel-in-a-subdirectory yet, if that's the > question. It used to be 1-line patch to Mongrel. I'll see what I > can do today or tomorrow. > > > Scott > > On 7/10/06, H. Wade Minter <minter at lunenburg.org> wrote: Anything > in the new checkins that might affect Mongrel/proxies? > > On Jul 8, 2006, at 10:17 PM, H. Wade Minter wrote: > > > Alright - I've switched back to FastCGI for now. If you've got > > anything you want me to test, let me know. > > > > --Wade > > > > On Jul 8, 2006, at 9:40 PM, scott at sigkill.org wrote: > > > >> I think non-root hosting with mongrel is still a bit tricky. I'll > >> look at it once I've closed a few more bugs. > >> > >> On 7/8/06, H. Wade Minter <minter at lunenburg.org> wrote: > >>> I'm trying to migrate my Typo installation at http:// > >>> www.lunenburg.org/wade/ from Apache/FastCGI to Mongrel via Apache > >>> proxies. The problem seems to be that Typo/Rails isn't liking the > >>> fact that Mongrel is running the blog at http://localhost:4001/ > but > >>> the Apache proxy isn't at a root URL (/wade instead). > >>> > >>> I've tried the reverse_proxy_fix plugin, but it doesn't seem to be > >>> working. I can go to the root of the website just fine, but if I > >>> try > >>> to go to any other sub-URL (for example, http://www.lunenburg.org/ > >>> wade/articles/category/general), I get a "Page not found" error. > >>> > >>> Is there any particular bit I need to twiddle, in > environment.rb or > >>> something, to get this to play nicely? Or do I need to fall > back to > >>> Apache/FastCGI? > >>> > >>> I'm running Typo SVN rev 1088. > >>> > >>> Thanks, > >>> Wade > >>> _______________________________________________ > >>> 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 Mon Jul 10 22:56:54 2006 From: scott at sigkill.org (Scott Laird) Date: Mon, 10 Jul 2006 19:56:54 -0700 Subject: [typo] Typo, Mongrel, and non-root-urls In-Reply-To: <C9495ACF-FDEC-492D-8BE2-DEA24771A487@lunenburg.org> References: <069D6F21-51B4-4187-A510-08E4F0B2D74F@lunenburg.org> <14b7e5ef0607081840r59c36a93v280a712c1f735d0e@mail.gmail.com> <F5785F4B-6AC4-47F4-A31B-DCA9BCCDFDAF@lunenburg.org> <3410D1AF-1639-46F9-954C-43861F520FC4@lunenburg.org> <14b7e5ef0607101026m5b394588h26ef775a6ad15b5f@mail.gmail.com> <C9495ACF-FDEC-492D-8BE2-DEA24771A487@lunenburg.org> Message-ID: <14b7e5ef0607101956q59764bedoa6d89949dec5d0a3@mail.gmail.com> I have a fix for this. Basically, I added a '--prefix' flag to mongrel_rails, along with a bit of plumbing. I sent it off to Zed a few minutes ago; hopefully he'll be okay with it. Scott On 7/10/06, H. Wade Minter <minter at lunenburg.org> wrote: > Yeah, the situation is that Mongrel is serving up the app in the root > directory (localhost:4000), but Apache is proxying it from a > subdirectory (http://www.lunenburg.org/wade/), so that's where the > issue comes up. > > If there's anything you need me to test, let me know. > > On Jul 10, 2006, at 1:26 PM, Scott Laird wrote: > > > I haven't dealt with mongrel-in-a-subdirectory yet, if that's the > > question. It used to be 1-line patch to Mongrel. I'll see what I > > can do today or tomorrow. > > > > > > Scott > > > > On 7/10/06, H. Wade Minter <minter at lunenburg.org> wrote: Anything > > in the new checkins that might affect Mongrel/proxies? > > > > On Jul 8, 2006, at 10:17 PM, H. Wade Minter wrote: > > > > > Alright - I've switched back to FastCGI for now. If you've got > > > anything you want me to test, let me know. > > > > > > --Wade > > > > > > On Jul 8, 2006, at 9:40 PM, scott at sigkill.org wrote: > > > > > >> I think non-root hosting with mongrel is still a bit tricky. I'll > > >> look at it once I've closed a few more bugs. > > >> > > >> On 7/8/06, H. Wade Minter <minter at lunenburg.org> wrote: > > >>> I'm trying to migrate my Typo installation at http:// > > >>> www.lunenburg.org/wade/ from Apache/FastCGI to Mongrel via Apache > > >>> proxies. The problem seems to be that Typo/Rails isn't liking the > > >>> fact that Mongrel is running the blog at http://localhost:4001/ > > but > > >>> the Apache proxy isn't at a root URL (/wade instead). > > >>> > > >>> I've tried the reverse_proxy_fix plugin, but it doesn't seem to be > > >>> working. I can go to the root of the website just fine, but if I > > >>> try > > >>> to go to any other sub-URL (for example, http://www.lunenburg.org/ > > >>> wade/articles/category/general), I get a "Page not found" error. > > >>> > > >>> Is there any particular bit I need to twiddle, in > > environment.rb or > > >>> something, to get this to play nicely? Or do I need to fall > > back to > > >>> Apache/FastCGI? > > >>> > > >>> I'm running Typo SVN rev 1088. > > >>> > > >>> Thanks, > > >>> Wade > > >>> _______________________________________________ > > >>> 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 > > _______________________________________________ > 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: mongrel.diff Type: application/octet-stream Size: 2342 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060710/3d2c35d0/attachment.obj From bronson at rinspin.com Tue Jul 11 16:26:28 2006 From: bronson at rinspin.com (Scott Bronson) Date: Tue, 11 Jul 2006 13:26:28 -0700 Subject: [typo] Proofread Theme Catalog In-Reply-To: <44B1EC62.7050300@digital-achievement.com> References: <44B1EC62.7050300@digital-achievement.com> Message-ID: <1152649589.18728.36.camel@lyra.rinspin.com> On Mon, 2006-07-10 at 00:57 -0500, Timothy Freund wrote: > The theme repository: > http://proofread.digital-achievement.com/catalog/ Er... It's just a photo gallery? Or am I missing something? Personally, I'm not real fond of the slow JavaScript effects. Why not just display the picture when I click on it? - Scott From johncwang at gmail.com Tue Jul 11 16:42:07 2006 From: johncwang at gmail.com (John Wang) Date: Tue, 11 Jul 2006 13:42:07 -0700 Subject: [typo] Proofread Theme Catalog In-Reply-To: <1152649589.18728.36.camel@lyra.rinspin.com> References: <44B1EC62.7050300@digital-achievement.com> <1152649589.18728.36.camel@lyra.rinspin.com> Message-ID: <22a4faec0607111342se63da42q59829e6da6b0c6b5@mail.gmail.com> On 7/11/06, Scott Bronson <bronson at rinspin.com> wrote: > > On Mon, 2006-07-10 at 00:57 -0500, Timothy Freund wrote: > > The theme repository: > > http://proofread.digital-achievement.com/catalog/ > > Er... It's just a photo gallery? Or am I missing something? > Click on the name of the theme under the image which takes you to a page for that particular theme with SVN and tarball links. It's a front-end for a SVN-backed theme repository. -- John Wang http://www.dev411.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060711/a506c038/attachment.html From bronson at rinspin.com Tue Jul 11 22:12:58 2006 From: bronson at rinspin.com (Scott Bronson) Date: Tue, 11 Jul 2006 19:12:58 -0700 Subject: [typo] Typo 3.99.3 available. Please test. In-Reply-To: <14b7e5ef0607092256i1c0a5520h2a188f5eb720d4ae@mail.gmail.com> References: <14b7e5ef0607092256i1c0a5520h2a188f5eb720d4ae@mail.gmail.com> Message-ID: <1152670379.18728.44.camel@lyra.rinspin.com> On Sun, 2006-07-09 at 22:56 -0700, Scott Laird wrote: > I'd appreciate any testing that people can do, but patches are > *especially* nice :-). Just updated to trunk and everything is looking really sharp. I haven't had a chance to really bang on it but yet but, so far, Typo is looking like it's dressed for a release. - Scott From lists at holsman.net Tue Jul 11 23:07:07 2006 From: lists at holsman.net (Ian Holsman) Date: Wed, 12 Jul 2006 13:07:07 +1000 Subject: [typo] mysql error when posting a new article In-Reply-To: <cc4e85f30607091917n65fee0bdqed6970202fa0667@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <cc4e85f30607090834r35088d41x5f0a86f7de6988c2@mail.gmail.com> <14b7e5ef0607090904h743b5e11j67a7151d22bf3114@mail.gmail.com> <5F58BC43-E063-4BCB-A2EB-D19F695448B7@heartsong.biz> <14b7e5ef0607090927u2cbf8c34xd196fcbf10032af4@mail.gmail.com> <14b7e5ef0607090931ob952768nde2c1419d8f256b8@mail.gmail.com> <cc4e85f30607091120h17550182w24bf6bff73a397ac@mail.gmail.com> <14b7e5ef0607091128j75ed04ffy7a7f9d78bd417a78@mail.gmail.com> <cc4e85f30607091228m15642d38ga19de0f95fe31e77@mail.gmail.com> <14b7e5ef0607091719w68551fd2l3e70c5287f9ea20c@mail.gmail.com> <cc4e85f30607091917n65fee0bdqed6970202fa0667@mail.gmail.com> Message-ID: <4CB3A4B8-0F36-4896-9F7A-E1543857736D@holsman.net> Hi guys. I'm on the latest SVN trunk (1123) and using mysql 5.0.19. I'm not sure what is going on.. as I just moved hosting providers and not if it is that or typo. regards Ian ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to MySQL server during query: UPDATE sessions SET `sessid` = '6b08673361b2d7cd5780f3593d3e592a', `data` = 'BAh7CDoOcmV0dXJuX3RvMDoJdXNlcm86CVVzZXIGOhBAYXR0cmlidXRlc3sQ \nIhZub3RpZnlfdmlhX2phYmJlciIGMCIJbmFtZSIQSWFuIEhvbHNtYW4iHW5v \ndGlmeV93YXRjaF9teV9hcnRpY2xlczAiFW5vdGlmeV92aWFfZW1haWwiBjAi \nB2lkIgYyIgtqYWJiZXIiFmtyeXRvbkBqYWJiZXIub3JnIhdub3RpZnlfb25f \nY29tbWVudHMiBjAiDXBhc3N3b3JkIi1hYTU5ZjMzMTUwZTRmMzhkMjM5ZDE0 \nY2MwNjA4NzRmNWE2ZWI3NDQ3Igpsb2dpbiIJaWFuaCIbbm90aWZ5X29uX25l \nd19hcnRpY2xlcyIGMCIKZW1haWwiACIKZmxhc2hJQzonQWN0aW9uQ29udHJv \nbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==\n', `updated_at` = '2006-07-11 21:35:40' WHERE id = 64708): /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:199:in `update' /vendor/rails/activerecord/lib/active_record/base.rb:1723:in `update_without_lock' /vendor/rails/activerecord/lib/active_record/locking.rb:33:in `update_without_callbacks' /vendor/rails/activerecord/lib/active_record/callbacks.rb:274:in `update_without_timestamps' /vendor/rails/activerecord/lib/active_record/timestamp.rb:39:in `update' /vendor/rails/activerecord/lib/active_record/base.rb:1718:in `create_or_update_without_callbacks' /vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in `create_or_update' /vendor/rails/activerecord/lib/active_record/base.rb:1392:in `save_without_validation' /vendor/rails/activerecord/lib/active_record/validations.rb: 724:in `save_without_transactions' /vendor/rails/activerecord/lib/active_record/transactions.rb: 126:in `save' /vendor/rails/activerecord/lib/active_record/connection_adapters/ abstract/database_statements.rb:51:in `transaction' /vendor/rails/activerecord/lib/active_record/transactions.rb: 91:in `transaction' /vendor/rails/activerecord/lib/active_record/transactions.rb: 118:in `transaction' /vendor/rails/activerecord/lib/active_record/transactions.rb: 126:in `save' /vendor/rails/actionpack/lib/action_controller/session/ active_record_store.rb:307:in `update' /vendor/rails/activerecord/lib/active_record/base.rb:794:in `silence' /vendor/rails/actionpack/lib/action_controller/session/ active_record_store.rb:307:in `update' /vendor/rails/actionpack/lib/action_controller/session/ active_record_store.rb:314:in `close' /usr/local/lib/ruby/1.8/cgi/session.rb:330:in `close' /vendor/rails/actionpack/lib/action_controller/base.rb:984:in `close_session' /vendor/rails/actionpack/lib/action_controller/base.rb:1026:in `process_cleanup_without_flash' /vendor/rails/actionpack/lib/action_controller/flash.rb:147:in `process_cleanup_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:439:in `process_cleanup_without_session_management_support' /vendor/rails/actionpack/lib/action_controller/ session_management.rb:126:in `process_cleanup_without_components' /vendor/rails/actionpack/lib/action_controller/components.rb: 182:in `process_cleanup' /vendor/rails/actionpack/lib/action_controller/base.rb:385:in `process_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:377:in `process_without_session_management_support' /vendor/rails/actionpack/lib/action_controller/ session_management.rb:117:in `process' /vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/ rails.rb:73:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ mongrel.rb:551:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ mongrel.rb:550:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ mongrel.rb:636:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ mongrel.rb:636:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ mongrel.rb:625:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ mongrel.rb:956:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ mongrel.rb:955:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/ mongrel_rails:127:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/ command.rb:199:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/ mongrel_rails:235 /usr/local/bin/mongrel_rails:18 From steve.longdo at gmail.com Tue Jul 11 23:21:17 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Tue, 11 Jul 2006 22:21:17 -0500 Subject: [typo] mysql error when posting a new article In-Reply-To: <4CB3A4B8-0F36-4896-9F7A-E1543857736D@holsman.net> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <5F58BC43-E063-4BCB-A2EB-D19F695448B7@heartsong.biz> <14b7e5ef0607090927u2cbf8c34xd196fcbf10032af4@mail.gmail.com> <14b7e5ef0607090931ob952768nde2c1419d8f256b8@mail.gmail.com> <cc4e85f30607091120h17550182w24bf6bff73a397ac@mail.gmail.com> <14b7e5ef0607091128j75ed04ffy7a7f9d78bd417a78@mail.gmail.com> <cc4e85f30607091228m15642d38ga19de0f95fe31e77@mail.gmail.com> <14b7e5ef0607091719w68551fd2l3e70c5287f9ea20c@mail.gmail.com> <cc4e85f30607091917n65fee0bdqed6970202fa0667@mail.gmail.com> <4CB3A4B8-0F36-4896-9F7A-E1543857736D@holsman.net> Message-ID: <cc4e85f30607112021g6205e4c0r351f82976d16eebe@mail.gmail.com> Do you have ActiveRecord MySQL timeout setup for mongrel? http://mongrel.rubyforge.org/faq.html >From the FAQ: Q: Mongrel stops working if it's left alone for a long time. If you find that Mongrel stops working after a long idle time and you're using MySQL then you're hitting a bug in the MySQL driver that doesn't properly timeout connections. What happens is the MySQL *server* side of the connection times out and closes, but the MySQL *client* doesn't detect this and just sits there. What you have to do is set: ActiveRecord::Base.verification_timeout = 14400 Or to any value that is lower than the MySQL server's *interactive_timeout*setting. This will make sure that ActiveRecord checks the connection often enough to reset the connection. On 7/11/06, Ian Holsman <lists at holsman.net> wrote: > > Hi guys. > I'm on the latest SVN trunk (1123) and using mysql 5.0.19. > > I'm not sure what is going on.. as I just moved hosting providers and > not if it is that or typo. > > regards > Ian > > ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to > MySQL server during query: UPDATE sessions SET `sessid` = > '6b08673361b2d7cd5780f3593d3e592a', `data` = > 'BAh7CDoOcmV0dXJuX3RvMDoJdXNlcm86CVVzZXIGOhBAYXR0cmlidXRlc3sQ > \nIhZub3RpZnlfdmlhX2phYmJlciIGMCIJbmFtZSIQSWFuIEhvbHNtYW4iHW5v > \ndGlmeV93YXRjaF9teV9hcnRpY2xlczAiFW5vdGlmeV92aWFfZW1haWwiBjAi > \nB2lkIgYyIgtqYWJiZXIiFmtyeXRvbkBqYWJiZXIub3JnIhdub3RpZnlfb25f > \nY29tbWVudHMiBjAiDXBhc3N3b3JkIi1hYTU5ZjMzMTUwZTRmMzhkMjM5ZDE0 > \nY2MwNjA4NzRmNWE2ZWI3NDQ3Igpsb2dpbiIJaWFuaCIbbm90aWZ5X29uX25l > \nd19hcnRpY2xlcyIGMCIKZW1haWwiACIKZmxhc2hJQzonQWN0aW9uQ29udHJv > \nbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==\n', `updated_at` = > '2006-07-11 21:35:40' WHERE id = 64708): > /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:199:in `update' > /vendor/rails/activerecord/lib/active_record/base.rb:1723:in > `update_without_lock' > /vendor/rails/activerecord/lib/active_record/locking.rb:33:in > `update_without_callbacks' > /vendor/rails/activerecord/lib/active_record/callbacks.rb:274:in > `update_without_timestamps' > /vendor/rails/activerecord/lib/active_record/timestamp.rb:39:in > `update' > /vendor/rails/activerecord/lib/active_record/base.rb:1718:in > `create_or_update_without_callbacks' > /vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in > `create_or_update' > /vendor/rails/activerecord/lib/active_record/base.rb:1392:in > `save_without_validation' > /vendor/rails/activerecord/lib/active_record/validations.rb: > 724:in `save_without_transactions' > /vendor/rails/activerecord/lib/active_record/transactions.rb: > 126:in `save' > /vendor/rails/activerecord/lib/active_record/connection_adapters/ > abstract/database_statements.rb:51:in `transaction' > /vendor/rails/activerecord/lib/active_record/transactions.rb: > 91:in `transaction' > /vendor/rails/activerecord/lib/active_record/transactions.rb: > 118:in `transaction' > /vendor/rails/activerecord/lib/active_record/transactions.rb: > 126:in `save' > /vendor/rails/actionpack/lib/action_controller/session/ > active_record_store.rb:307:in `update' > /vendor/rails/activerecord/lib/active_record/base.rb:794:in > `silence' > /vendor/rails/actionpack/lib/action_controller/session/ > active_record_store.rb:307:in `update' > /vendor/rails/actionpack/lib/action_controller/session/ > active_record_store.rb:314:in `close' > /usr/local/lib/ruby/1.8/cgi/session.rb:330:in `close' > /vendor/rails/actionpack/lib/action_controller/base.rb:984:in > `close_session' > /vendor/rails/actionpack/lib/action_controller/base.rb:1026:in > `process_cleanup_without_flash' > /vendor/rails/actionpack/lib/action_controller/flash.rb:147:in > `process_cleanup_without_filters' > /vendor/rails/actionpack/lib/action_controller/filters.rb:439:in > `process_cleanup_without_session_management_support' > /vendor/rails/actionpack/lib/action_controller/ > session_management.rb:126:in `process_cleanup_without_components' > /vendor/rails/actionpack/lib/action_controller/components.rb: > 182:in `process_cleanup' > /vendor/rails/actionpack/lib/action_controller/base.rb:385:in > `process_without_filters' > /vendor/rails/actionpack/lib/action_controller/filters.rb:377:in > `process_without_session_management_support' > /vendor/rails/actionpack/lib/action_controller/ > session_management.rb:117:in `process' > /vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/ > rails.rb:73:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > mongrel.rb:551:in `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > mongrel.rb:550:in `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > mongrel.rb:636:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > mongrel.rb:636:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > mongrel.rb:625:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > mongrel.rb:956:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > mongrel.rb:955:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/ > mongrel_rails:127:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/ > command.rb:199:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/ > mongrel_rails:235 > /usr/local/bin/mongrel_rails:18 > > _______________________________________________ > 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/20060711/c7fe2aa2/attachment-0001.html From lists at holsman.net Tue Jul 11 23:32:40 2006 From: lists at holsman.net (Ian Holsman) Date: Wed, 12 Jul 2006 13:32:40 +1000 Subject: [typo] mysql error when posting a new article In-Reply-To: <cc4e85f30607112021g6205e4c0r351f82976d16eebe@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <5F58BC43-E063-4BCB-A2EB-D19F695448B7@heartsong.biz> <14b7e5ef0607090927u2cbf8c34xd196fcbf10032af4@mail.gmail.com> <14b7e5ef0607090931ob952768nde2c1419d8f256b8@mail.gmail.com> <cc4e85f30607091120h17550182w24bf6bff73a397ac@mail.gmail.com> <14b7e5ef0607091128j75ed04ffy7a7f9d78bd417a78@mail.gmail.com> <cc4e85f30607091228m15642d38ga19de0f95fe31e77@mail.gmail.com> <14b7e5ef0607091719w68551fd2l3e70c5287f9ea20c@mail.gmail.com> <cc4e85f30607091917n65fee0bdqed6970202fa0667@mail.gmail.com> <4CB3A4B8-0F36-4896-9F7A-E1543857736D@holsman.net> <cc4e85f30607112021g6205e4c0r351f82976d16eebe@mail.gmail.com> Message-ID: <29C8DBD8-4CD1-4F5E-A031-993D17300052@holsman.net> nope. where do I put that ? On 12/07/2006, at 1:21 PM, Steve Longdo wrote: > Do you have ActiveRecord MySQL timeout setup for mongrel? > > http://mongrel.rubyforge.org/faq.html > > From the FAQ: > Q: Mongrel stops working if it's left alone for a long time. > > If you find that Mongrel stops working after a long idle time and > you're using MySQL then you're hitting a bug in the MySQL driver > that doesn't properly timeout connections. What happens is the > MySQL server side of the connection times out and closes, but the > MySQL client doesn't detect this and just sits there. > > What you have to do is set: > > ActiveRecord::Base.verification_timeout = 14400 > Or to any value that is lower than the MySQL server's > interactive_timeout setting. This will make sure that ActiveRecord > checks the connection often enough to reset the connection. > > > > On 7/11/06, Ian Holsman <lists at holsman.net> wrote: > Hi guys. > I'm on the latest SVN trunk (1123) and using mysql 5.0.19. > > I'm not sure what is going on.. as I just moved hosting providers and > not if it is that or typo. > > regards > Ian > > ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to > MySQL server during query: UPDATE sessions SET `sessid` = > '6b08673361b2d7cd5780f3593d3e592a', `data` = > 'BAh7CDoOcmV0dXJuX3RvMDoJdXNlcm86CVVzZXIGOhBAYXR0cmlidXRlc3sQ > \nIhZub3RpZnlfdmlhX2phYmJlciIGMCIJbmFtZSIQSWFuIEhvbHNtYW4iHW5v > \ndGlmeV93YXRjaF9teV9hcnRpY2xlczAiFW5vdGlmeV92aWFfZW1haWwiBjAi > \nB2lkIgYyIgtqYWJiZXIiFmtyeXRvbkBqYWJiZXIub3JnIhdub3RpZnlfb25f > \nY29tbWVudHMiBjAiDXBhc3N3b3JkIi1hYTU5ZjMzMTUwZTRmMzhkMjM5ZDE0 > \nY2MwNjA4NzRmNWE2ZWI3NDQ3Igpsb2dpbiIJaWFuaCIbbm90aWZ5X29uX25l > \nd19hcnRpY2xlcyIGMCIKZW1haWwiACIKZmxhc2hJQzonQWN0aW9uQ29udHJv > \nbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==\n', `updated_at` = > '2006-07-11 21:35:40' WHERE id = 64708): > /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:199:in `update' > /vendor/rails/activerecord/lib/active_record/base.rb:1723:in > `update_without_lock' > /vendor/rails/activerecord/lib/active_record/locking.rb:33:in > `update_without_callbacks' > /vendor/rails/activerecord/lib/active_record/callbacks.rb:274:in > `update_without_timestamps' > /vendor/rails/activerecord/lib/active_record/timestamp.rb:39:in > `update' > /vendor/rails/activerecord/lib/active_record/base.rb:1718:in > `create_or_update_without_callbacks' > /vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in > `create_or_update' > /vendor/rails/activerecord/lib/active_record/base.rb:1392:in > `save_without_validation' > /vendor/rails/activerecord/lib/active_record/validations.rb: > 724:in `save_without_transactions' > /vendor/rails/activerecord/lib/active_record/transactions.rb: > 126:in `save' > /vendor/rails/activerecord/lib/active_record/connection_adapters/ > abstract/database_statements.rb:51:in `transaction' > /vendor/rails/activerecord/lib/active_record/transactions.rb: > 91:in `transaction' > /vendor/rails/activerecord/lib/active_record/transactions.rb: > 118:in `transaction' > /vendor/rails/activerecord/lib/active_record/transactions.rb: > 126:in `save' > /vendor/rails/actionpack/lib/action_controller/session/ > active_record_store.rb:307:in `update' > /vendor/rails/activerecord/lib/active_record/base.rb:794:in > `silence' > /vendor/rails/actionpack/lib/action_controller/session/ > active_record_store.rb:307:in `update' > /vendor/rails/actionpack/lib/action_controller/session/ > active_record_store.rb:314:in `close' > /usr/local/lib/ruby/1.8/cgi/session.rb:330:in `close' > /vendor/rails/actionpack/lib/action_controller/base.rb:984:in > `close_session' > /vendor/rails/actionpack/lib/action_controller/base.rb:1026:in > `process_cleanup_without_flash' > /vendor/rails/actionpack/lib/action_controller/flash.rb:147:in > `process_cleanup_without_filters' > /vendor/rails/actionpack/lib/action_controller/filters.rb:439:in > `process_cleanup_without_session_management_support' > /vendor/rails/actionpack/lib/action_controller/ > session_management.rb:126:in `process_cleanup_without_components' > /vendor/rails/actionpack/lib/action_controller/components.rb: > 182:in `process_cleanup' > /vendor/rails/actionpack/lib/action_controller/base.rb:385:in > `process_without_filters' > /vendor/rails/actionpack/lib/action_controller/filters.rb:377:in > `process_without_session_management_support' > /vendor/rails/actionpack/lib/action_controller/ > session_management.rb:117:in `process' > /vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/lib/mongrel/ > rails.rb:73:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > mongrel.rb:551:in `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/lib/ > mongrel.rb:550:in `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > mongrel.rb:636:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/lib/ > mongrel.rb:636:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > mongrel.rb:625:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/lib/ > mongrel.rb:956:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > mongrel.rb:955:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/bin/ > mongrel_rails:127:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/ > command.rb:199:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/ > mongrel_rails:235 > /usr/local/bin/mongrel_rails:18 > > _______________________________________________ > 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/20060712/91d6ad56/attachment.html From steve.longdo at gmail.com Wed Jul 12 00:09:47 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Tue, 11 Jul 2006 23:09:47 -0500 Subject: [typo] mysql error when posting a new article In-Reply-To: <29C8DBD8-4CD1-4F5E-A031-993D17300052@holsman.net> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <14b7e5ef0607090931ob952768nde2c1419d8f256b8@mail.gmail.com> <cc4e85f30607091120h17550182w24bf6bff73a397ac@mail.gmail.com> <14b7e5ef0607091128j75ed04ffy7a7f9d78bd417a78@mail.gmail.com> <cc4e85f30607091228m15642d38ga19de0f95fe31e77@mail.gmail.com> <14b7e5ef0607091719w68551fd2l3e70c5287f9ea20c@mail.gmail.com> <cc4e85f30607091917n65fee0bdqed6970202fa0667@mail.gmail.com> <4CB3A4B8-0F36-4896-9F7A-E1543857736D@holsman.net> <cc4e85f30607112021g6205e4c0r351f82976d16eebe@mail.gmail.com> <29C8DBD8-4CD1-4F5E-A031-993D17300052@holsman.net> Message-ID: <cc4e85f30607112109h1fbb3c82nd3534338188d8946@mail.gmail.com> I would guess in the environment.rb, add the line above: ActionMailer:: Base.default_charset = 'utf-8' Actually anywhere you put it in there it should get picked up. You might cross check with the mongrel mailing list to see what they recommend. -Steve http://www.stevelongdo.com On 7/11/06, Ian Holsman <lists at holsman.net> wrote: > > nope.where do I put that ? > > On 12/07/2006, at 1:21 PM, Steve Longdo wrote: > > Do you have ActiveRecord MySQL timeout setup for mongrel? > > http://mongrel.rubyforge.org/faq.html > > From the FAQ: > Q: Mongrel stops working if it's left alone for a long time. > > If you find that Mongrel stops working after a long idle time and you're > using MySQL then you're hitting a bug in the MySQL driver that doesn't > properly timeout connections. What happens is the MySQL *server* side of > the connection times out and closes, but the MySQL *client* doesn't detect > this and just sits there. > > What you have to do is set: > > ActiveRecord::Base.verification_timeout = 14400 > > Or to any value that is lower than the MySQL server's *interactive_timeout > * setting. This will make sure that ActiveRecord checks the connection > often enough to reset the connection. > > > On 7/11/06, Ian Holsman <lists at holsman.net> wrote: > > > > Hi guys. > > I'm on the latest SVN trunk (1123) and using mysql 5.0.19. > > > > I'm not sure what is going on.. as I just moved hosting providers and > > not if it is that or typo. > > > > regards > > Ian > > > > ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to > > MySQL server during query: UPDATE sessions SET `sessid` = > > '6b08673361b2d7cd5780f3593d3e592a', `data` = > > 'BAh7CDoOcmV0dXJuX3RvMDoJdXNlcm86CVVzZXIGOhBAYXR0cmlidXRlc3sQ > > \nIhZub3RpZnlfdmlhX2phYmJlciIGMCIJbmFtZSIQSWFuIEhvbHNtYW4iHW5v > > \ndGlmeV93YXRjaF9teV9hcnRpY2xlczAiFW5vdGlmeV92aWFfZW1haWwiBjAi > > \nB2lkIgYyIgtqYWJiZXIiFmtyeXRvbkBqYWJiZXIub3JnIhdub3RpZnlfb25f > > \nY29tbWVudHMiBjAiDXBhc3N3b3JkIi1hYTU5ZjMzMTUwZTRmMzhkMjM5ZDE0 > > \nY2MwNjA4NzRmNWE2ZWI3NDQ3Igpsb2dpbiIJaWFuaCIbbm90aWZ5X29uX25l > > \nd19hcnRpY2xlcyIGMCIKZW1haWwiACIKZmxhc2hJQzonQWN0aW9uQ29udHJv > > \nbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==\n', `updated_at` = > > '2006-07-11 21:35:40' WHERE id = 64708): > > /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:199:in `update' > > /vendor/rails/activerecord/lib/active_record/base.rb:1723:in > > `update_without_lock' > > /vendor/rails/activerecord/lib/active_record/locking.rb:33:in > > `update_without_callbacks' > > /vendor/rails/activerecord/lib/active_record/callbacks.rb:274:in > > `update_without_timestamps' > > /vendor/rails/activerecord/lib/active_record/timestamp.rb:39:in > > `update' > > /vendor/rails/activerecord/lib/active_record/base.rb:1718:in > > `create_or_update_without_callbacks' > > /vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in > > `create_or_update' > > /vendor/rails/activerecord/lib/active_record/base.rb:1392:in > > `save_without_validation' > > /vendor/rails/activerecord/lib/active_record/validations.rb: > > 724:in `save_without_transactions' > > /vendor/rails/activerecord/lib/active_record/transactions.rb: > > 126:in `save' > > /vendor/rails/activerecord/lib/active_record/connection_adapters/ > > abstract/database_statements.rb:51:in `transaction' > > /vendor/rails/activerecord/lib/active_record/transactions.rb: > > 91:in `transaction' > > /vendor/rails/activerecord/lib/active_record/transactions.rb: > > 118:in `transaction' > > /vendor/rails/activerecord/lib/active_record/transactions.rb: > > 126:in `save' > > /vendor/rails/actionpack/lib/action_controller/session/ > > active_record_store.rb:307:in `update' > > /vendor/rails/activerecord/lib/active_record/base.rb:794:in > > `silence' > > /vendor/rails/actionpack/lib/action_controller/session/ > > active_record_store.rb:307:in `update' > > /vendor/rails/actionpack/lib/action_controller/session/ > > active_record_store.rb:314:in `close' > > /usr/local/lib/ruby/1.8/cgi/session.rb:330:in `close' > > /vendor/rails/actionpack/lib/action_controller/base.rb:984:in > > `close_session' > > /vendor/rails/actionpack/lib/action_controller/base.rb:1026:in > > `process_cleanup_without_flash' > > /vendor/rails/actionpack/lib/action_controller/flash.rb:147:in > > `process_cleanup_without_filters' > > /vendor/rails/actionpack/lib/action_controller/filters.rb:439:in > > `process_cleanup_without_session_management_support' > > /vendor/rails/actionpack/lib/action_controller/ > > session_management.rb:126:in `process_cleanup_without_components' > > /vendor/rails/actionpack/lib/action_controller/components.rb: > > 182:in `process_cleanup' > > /vendor/rails/actionpack/lib/action_controller/base.rb:385:in > > `process_without_filters' > > /vendor/rails/actionpack/lib/action_controller/filters.rb:377:in > > `process_without_session_management_support' > > /vendor/rails/actionpack/lib/action_controller/ > > session_management.rb:117:in `process' > > /vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/lib/mongrel/ > > rails.rb:73:in `process' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > > mongrel.rb:551:in `process_client' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/lib/ > > mongrel.rb:550:in `process_client' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > > mongrel.rb:636:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/lib/ > > mongrel.rb:636:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > > mongrel.rb:625:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/lib/ > > mongrel.rb:956:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > > mongrel.rb:955:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/bin/ > > mongrel_rails:127:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/ > > command.rb:199:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/ > > mongrel_rails:235 > > /usr/local/bin/mongrel_rails:18 > > > > _______________________________________________ > > 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/20060711/f3699d84/attachment-0001.html From scott at sigkill.org Wed Jul 12 00:18:59 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 11 Jul 2006 21:18:59 -0700 Subject: [typo] mysql error when posting a new article In-Reply-To: <cc4e85f30607112109h1fbb3c82nd3534338188d8946@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <cc4e85f30607091120h17550182w24bf6bff73a397ac@mail.gmail.com> <14b7e5ef0607091128j75ed04ffy7a7f9d78bd417a78@mail.gmail.com> <cc4e85f30607091228m15642d38ga19de0f95fe31e77@mail.gmail.com> <14b7e5ef0607091719w68551fd2l3e70c5287f9ea20c@mail.gmail.com> <cc4e85f30607091917n65fee0bdqed6970202fa0667@mail.gmail.com> <4CB3A4B8-0F36-4896-9F7A-E1543857736D@holsman.net> <cc4e85f30607112021g6205e4c0r351f82976d16eebe@mail.gmail.com> <29C8DBD8-4CD1-4F5E-A031-993D17300052@holsman.net> <cc4e85f30607112109h1fbb3c82nd3534338188d8946@mail.gmail.com> Message-ID: <14b7e5ef0607112118k6a988382p267aafc2aed828ac@mail.gmail.com> Hmm. Is this something that we should put into Typo by default? Scott On 7/11/06, Steve Longdo <steve.longdo at gmail.com> wrote: > I would guess in the environment.rb, add the line above: > ActionMailer::Base.default_charset = 'utf-8' > > Actually anywhere you put it in there it should get picked up. You might > cross check with the mongrel mailing list to see what they recommend. > > -Steve > http://www.stevelongdo.com > > > On 7/11/06, Ian Holsman <lists at holsman.net > wrote: > > > > > > nope. > > where do I put that ? > > > > > > > > > > On 12/07/2006, at 1:21 PM, Steve Longdo wrote: > > > > Do you have ActiveRecord MySQL timeout setup for mongrel? > > > > http://mongrel.rubyforge.org/faq.html > > > > From the FAQ: > > > > Q: Mongrel stops working if it's left alone for a long time. > > > > If you find that Mongrel stops working after a long idle time and you're > using MySQL then you're hitting a bug in the MySQL driver that doesn't > properly timeout connections. What happens is the MySQL server side of the > connection times out and closes, but the MySQL client doesn't detect this > and just sits there. > > > > What you have to do is set: ActiveRecord::Base.verification_timeout > > = 14400 > > > > > > Or to any value that is lower than the MySQL server's interactive_timeout > setting. This will make sure that ActiveRecord checks the connection often > enough to reset the connection. > > > > > > On 7/11/06, Ian Holsman <lists at holsman.net > wrote: > > > Hi guys. > > > I'm on the latest SVN trunk (1123) and using mysql 5.0.19 . > > > > > > I'm not sure what is going on.. as I just moved hosting providers and > > > not if it is that or typo. > > > > > > regards > > > Ian > > > > > > ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to > > > MySQL server during query: UPDATE sessions SET `sessid` = > > > '6b08673361b2d7cd5780f3593d3e592a', `data` = > > > > 'BAh7CDoOcmV0dXJuX3RvMDoJdXNlcm86CVVzZXIGOhBAYXR0cmlidXRlc3sQ > > > > \nIhZub3RpZnlfdmlhX2phYmJlciIGMCIJbmFtZSIQSWFuIEhvbHNtYW4iHW5v > > > > \ndGlmeV93YXRjaF9teV9hcnRpY2xlczAiFW5vdGlmeV92aWFfZW1haWwiBjAi > > > > \nB2lkIgYyIgtqYWJiZXIiFmtyeXRvbkBqYWJiZXIub3JnIhdub3RpZnlfb25f > > > > \nY29tbWVudHMiBjAiDXBhc3N3b3JkIi1hYTU5ZjMzMTUwZTRmMzhkMjM5ZDE0 > > > > \nY2MwNjA4NzRmNWE2ZWI3NDQ3Igpsb2dpbiIJaWFuaCIbbm90aWZ5X29uX25l > > > > \nd19hcnRpY2xlcyIGMCIKZW1haWwiACIKZmxhc2hJQzonQWN0aW9uQ29udHJv > > > \nbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==\n', > `updated_at` = > > > '2006-07-11 21:35:40' WHERE id = 64708): > > > > /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:199:in `update' > > > > /vendor/rails/activerecord/lib/active_record/base.rb:1723:in > > > `update_without_lock' > > > > /vendor/rails/activerecord/lib/active_record/locking.rb:33:in > > > `update_without_callbacks' > > > > /vendor/rails/activerecord/lib/active_record/callbacks.rb:274:in > > > `update_without_timestamps' > > > > /vendor/rails/activerecord/lib/active_record/timestamp.rb:39:in > > > `update' > > > > /vendor/rails/activerecord/lib/active_record/base.rb:1718:in > > > `create_or_update_without_callbacks' > > > > /vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in > > > `create_or_update' > > > > /vendor/rails/activerecord/lib/active_record/base.rb:1392:in > > > `save_without_validation' > > > > /vendor/rails/activerecord/lib/active_record/validations.rb: > > > 724:in `save_without_transactions' > > > > /vendor/rails/activerecord/lib/active_record/transactions.rb: > > > 126:in `save' > > > > /vendor/rails/activerecord/lib/active_record/connection_adapters/ > > > abstract/database_statements.rb:51:in `transaction' > > > > /vendor/rails/activerecord/lib/active_record/transactions.rb: > > > 91:in `transaction' > > > > /vendor/rails/activerecord/lib/active_record/transactions.rb: > > > 118:in `transaction' > > > > /vendor/rails/activerecord/lib/active_record/transactions.rb: > > > 126:in `save' > > > > /vendor/rails/actionpack/lib/action_controller/session/ > > > active_record_store.rb:307:in `update' > > > > /vendor/rails/activerecord/lib/active_record/base.rb:794:in > > > `silence' > > > > /vendor/rails/actionpack/lib/action_controller/session/ > > > active_record_store.rb:307:in `update' > > > > /vendor/rails/actionpack/lib/action_controller/session/ > > > active_record_store.rb:314:in `close' > > > /usr/local/lib/ruby/1.8/cgi/session.rb:330:in > `close' > > > > /vendor/rails/actionpack/lib/action_controller/base.rb:984:in > > > `close_session' > > > > /vendor/rails/actionpack/lib/action_controller/base.rb:1026:in > > > `process_cleanup_without_flash' > > > > /vendor/rails/actionpack/lib/action_controller/flash.rb:147:in > > > `process_cleanup_without_filters' > > > > /vendor/rails/actionpack/lib/action_controller/filters.rb:439:in > > > `process_cleanup_without_session_management_support' > > > /vendor/rails/actionpack/lib/action_controller/ > > > session_management.rb:126:in > `process_cleanup_without_components' > > > > /vendor/rails/actionpack/lib/action_controller/components.rb: > > > 182:in `process_cleanup' > > > > /vendor/rails/actionpack/lib/action_controller/base.rb:385:in > > > `process_without_filters' > > > > /vendor/rails/actionpack/lib/action_controller/filters.rb:377:in > > > `process_without_session_management_support' > > > /vendor/rails/actionpack/lib/action_controller/ > > > session_management.rb:117:in `process' > > > /vendor/rails/railties/lib/dispatcher.rb:38:in > `dispatch' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/lib/mongrel/ > > > rails.rb:73:in `process' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/lib/ > > > mongrel.rb:551:in `process_client' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/lib/ > > > mongrel.rb:550:in `process_client' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > > > mongrel.rb :636:in `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/lib/ > > > mongrel.rb:636:in `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/lib/ > > > mongrel.rb:625:in `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/lib/ > > > mongrel.rb:956:in `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > > > mongrel.rb :955:in `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/bin/ > > > mongrel_rails:127:in `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/lib/mongrel/ > > > command.rb:199:in `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/bin/ > > > mongrel_rails:235 > > > /usr/local/bin/mongrel_rails:18 > > > > > > _______________________________________________ > > > 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 lists at holsman.net Wed Jul 12 00:26:19 2006 From: lists at holsman.net (Ian Holsman) Date: Wed, 12 Jul 2006 14:26:19 +1000 Subject: [typo] mysql error when posting a new article In-Reply-To: <cc4e85f30607112109h1fbb3c82nd3534338188d8946@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <14b7e5ef0607090931ob952768nde2c1419d8f256b8@mail.gmail.com> <cc4e85f30607091120h17550182w24bf6bff73a397ac@mail.gmail.com> <14b7e5ef0607091128j75ed04ffy7a7f9d78bd417a78@mail.gmail.com> <cc4e85f30607091228m15642d38ga19de0f95fe31e77@mail.gmail.com> <14b7e5ef0607091719w68551fd2l3e70c5287f9ea20c@mail.gmail.com> <cc4e85f30607091917n65fee0bdqed6970202fa0667@mail.gmail.com> <4CB3A4B8-0F36-4896-9F7A-E1543857736D@holsman.net> <cc4e85f30607112021g6205e4c0r351f82976d16eebe@mail.gmail.com> <29C8DBD8-4CD1-4F5E-A031-993D17300052@holsman.net> <cc4e85f30607112109h1fbb3c82nd3534338188d8946@mail.gmail.com> Message-ID: <8C84EA34-BE6C-4997-A0BD-9340EDB41E4D@holsman.net> ok.. I added it, but I still have the same problem. I don't think it is a timeout issue, as it happens straight after I launch mongrel (or WEBBrick). i'm thinking its a SQL issue. On 12/07/2006, at 2:09 PM, Steve Longdo wrote: > I would guess in the environment.rb, add the line above: > ActionMailer::Base.default_charset = 'utf-8' > > Actually anywhere you put it in there it should get picked up. You > might cross check with the mongrel mailing list to see what they > recommend. > > -Steve > http://www.stevelongdo.com > > On 7/11/06, Ian Holsman <lists at holsman.net > wrote: > nope. > where do I put that ? > > On 12/07/2006, at 1:21 PM, Steve Longdo wrote: > >> Do you have ActiveRecord MySQL timeout setup for mongrel? >> >> http://mongrel.rubyforge.org/faq.html >> >> From the FAQ: >> Q: Mongrel stops working if it's left alone for a long time. >> >> If you find that Mongrel stops working after a long idle time and >> you're using MySQL then you're hitting a bug in the MySQL driver >> that doesn't properly timeout connections. What happens is the >> MySQL server side of the connection times out and closes, but the >> MySQL client doesn't detect this and just sits there. >> >> What you have to do is set: >> >> ActiveRecord::Base.verification_timeout >> = 14400 >> Or to any value that is lower than the MySQL server's >> interactive_timeout setting. This will make sure that ActiveRecord >> checks the connection often enough to reset the connection. >> >> >> >> On 7/11/06, Ian Holsman <lists at holsman.net > wrote: >> Hi guys. >> I'm on the latest SVN trunk (1123) and using mysql 5.0.19 . >> >> I'm not sure what is going on.. as I just moved hosting providers and >> not if it is that or typo. >> >> regards >> Ian >> >> ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to >> MySQL server during query: UPDATE sessions SET `sessid` = >> '6b08673361b2d7cd5780f3593d3e592a', `data` = >> 'BAh7CDoOcmV0dXJuX3RvMDoJdXNlcm86CVVzZXIGOhBAYXR0cmlidXRlc3sQ >> \nIhZub3RpZnlfdmlhX2phYmJlciIGMCIJbmFtZSIQSWFuIEhvbHNtYW4iHW5v >> \ndGlmeV93YXRjaF9teV9hcnRpY2xlczAiFW5vdGlmeV92aWFfZW1haWwiBjAi >> \nB2lkIgYyIgtqYWJiZXIiFmtyeXRvbkBqYWJiZXIub3JnIhdub3RpZnlfb25f >> \nY29tbWVudHMiBjAiDXBhc3N3b3JkIi1hYTU5ZjMzMTUwZTRmMzhkMjM5ZDE0 >> \nY2MwNjA4NzRmNWE2ZWI3NDQ3Igpsb2dpbiIJaWFuaCIbbm90aWZ5X29uX25l >> \nd19hcnRpY2xlcyIGMCIKZW1haWwiACIKZmxhc2hJQzonQWN0aW9uQ29udHJv >> \nbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==\n', `updated_at` = >> '2006-07-11 21:35:40' WHERE id = 64708): >> /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:199:in `update' >> /vendor/rails/activerecord/lib/active_record/base.rb:1723:in >> `update_without_lock' >> /vendor/rails/activerecord/lib/active_record/locking.rb:33:in >> `update_without_callbacks' >> /vendor/rails/activerecord/lib/active_record/callbacks.rb:274:in >> `update_without_timestamps' >> /vendor/rails/activerecord/lib/active_record/timestamp.rb:39:in >> `update' >> /vendor/rails/activerecord/lib/active_record/base.rb:1718:in >> `create_or_update_without_callbacks' >> /vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in >> `create_or_update' >> /vendor/rails/activerecord/lib/active_record/base.rb:1392:in >> `save_without_validation' >> /vendor/rails/activerecord/lib/active_record/validations.rb: >> 724:in `save_without_transactions' >> /vendor/rails/activerecord/lib/active_record/transactions.rb: >> 126:in `save' >> /vendor/rails/activerecord/lib/active_record/ >> connection_adapters/ >> abstract/database_statements.rb:51:in `transaction' >> /vendor/rails/activerecord/lib/active_record/transactions.rb: >> 91:in `transaction' >> /vendor/rails/activerecord/lib/active_record/transactions.rb: >> 118:in `transaction' >> /vendor/rails/activerecord/lib/active_record/transactions.rb: >> 126:in `save' >> /vendor/rails/actionpack/lib/action_controller/session/ >> active_record_store.rb:307:in `update' >> /vendor/rails/activerecord/lib/active_record/base.rb:794:in >> `silence' >> /vendor/rails/actionpack/lib/action_controller/session/ >> active_record_store.rb:307:in `update' >> /vendor/rails/actionpack/lib/action_controller/session/ >> active_record_store.rb:314:in `close' >> /usr/local/lib/ruby/1.8/cgi/session.rb:330:in `close' >> /vendor/rails/actionpack/lib/action_controller/base.rb:984:in >> `close_session' >> /vendor/rails/actionpack/lib/action_controller/base.rb:1026:in >> `process_cleanup_without_flash' >> /vendor/rails/actionpack/lib/action_controller/flash.rb:147:in >> `process_cleanup_without_filters' >> /vendor/rails/actionpack/lib/action_controller/filters.rb:439:in >> `process_cleanup_without_session_management_support' >> /vendor/rails/actionpack/lib/action_controller/ >> session_management.rb:126:in `process_cleanup_without_components' >> /vendor/rails/actionpack/lib/action_controller/components.rb: >> 182:in `process_cleanup' >> /vendor/rails/actionpack/lib/action_controller/base.rb:385:in >> `process_without_filters' >> /vendor/rails/actionpack/lib/action_controller/filters.rb:377:in >> `process_without_session_management_support' >> /vendor/rails/actionpack/lib/action_controller/ >> session_management.rb:117:in `process' >> /vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/lib/mongrel/ >> rails.rb:73:in `process' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/lib/ >> mongrel.rb:551:in `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/lib/ >> mongrel.rb:550:in `process_client' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ >> mongrel.rb :636:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/lib/ >> mongrel.rb:636:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/lib/ >> mongrel.rb:625:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/lib/ >> mongrel.rb:956:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ >> mongrel.rb :955:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/bin/ >> mongrel_rails:127:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/lib/mongrel/ >> command.rb:199:in `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.13.3/bin/ >> mongrel_rails:235 >> /usr/local/bin/mongrel_rails:18 >> >> _______________________________________________ >> 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/20060712/95439936/attachment-0001.html From scott at sigkill.org Wed Jul 12 00:41:32 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 11 Jul 2006 21:41:32 -0700 Subject: [typo] mysql error when posting a new article In-Reply-To: <8C84EA34-BE6C-4997-A0BD-9340EDB41E4D@holsman.net> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <14b7e5ef0607091128j75ed04ffy7a7f9d78bd417a78@mail.gmail.com> <cc4e85f30607091228m15642d38ga19de0f95fe31e77@mail.gmail.com> <14b7e5ef0607091719w68551fd2l3e70c5287f9ea20c@mail.gmail.com> <cc4e85f30607091917n65fee0bdqed6970202fa0667@mail.gmail.com> <4CB3A4B8-0F36-4896-9F7A-E1543857736D@holsman.net> <cc4e85f30607112021g6205e4c0r351f82976d16eebe@mail.gmail.com> <29C8DBD8-4CD1-4F5E-A031-993D17300052@holsman.net> <cc4e85f30607112109h1fbb3c82nd3534338188d8946@mail.gmail.com> <8C84EA34-BE6C-4997-A0BD-9340EDB41E4D@holsman.net> Message-ID: <14b7e5ef0607112141k12c523a8o849c2f6ca5f9b859@mail.gmail.com> Which MySQL driver are you using? The one built into Rails or the .gem one? Try swapping for the other one. Scott On 7/11/06, Ian Holsman <lists at holsman.net> wrote: > > ok.. I added it, > but I still have the same problem. > I don't think it is a timeout issue, as it happens straight after I launch > mongrel (or WEBBrick). > i'm thinking its a SQL issue. > > > On 12/07/2006, at 2:09 PM, Steve Longdo wrote: > I would guess in the environment.rb, add the line above: > ActionMailer::Base.default_charset = 'utf-8' > > Actually anywhere you put it in there it should get picked up. You might > cross check with the mongrel mailing list to see what they recommend. > > -Steve > http://www.stevelongdo.com > > On 7/11/06, Ian Holsman <lists at holsman.net > wrote: > > > > > > nope. > > where do I put that ? > > > > > > > > > > On 12/07/2006, at 1:21 PM, Steve Longdo wrote: > > > > Do you have ActiveRecord MySQL timeout setup for mongrel? > > > > http://mongrel.rubyforge.org/faq.html > > > > From the FAQ: > > > > Q: Mongrel stops working if it's left alone for a long time. > > > > If you find that Mongrel stops working after a long idle time and you're > using MySQL then you're hitting a bug in the MySQL driver that doesn't > properly timeout connections. What happens is the MySQL server side of the > connection times out and closes, but the MySQL client doesn't detect this > and just sits there. > > > > What you have to do is set: ActiveRecord::Base.verification_timeout > > = 14400 > > > > > > Or to any value that is lower than the MySQL server's interactive_timeout > setting. This will make sure that ActiveRecord checks the connection often > enough to reset the connection. > > > > > > On 7/11/06, Ian Holsman <lists at holsman.net > wrote: > > > Hi guys. > > > I'm on the latest SVN trunk (1123) and using mysql 5.0.19 . > > > > > > I'm not sure what is going on.. as I just moved hosting providers and > > > not if it is that or typo. > > > > > > regards > > > Ian > > > > > > ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to > > > MySQL server during query: UPDATE sessions SET `sessid` = > > > '6b08673361b2d7cd5780f3593d3e592a', `data` = > > > > 'BAh7CDoOcmV0dXJuX3RvMDoJdXNlcm86CVVzZXIGOhBAYXR0cmlidXRlc3sQ > > > > \nIhZub3RpZnlfdmlhX2phYmJlciIGMCIJbmFtZSIQSWFuIEhvbHNtYW4iHW5v > > > > \ndGlmeV93YXRjaF9teV9hcnRpY2xlczAiFW5vdGlmeV92aWFfZW1haWwiBjAi > > > > \nB2lkIgYyIgtqYWJiZXIiFmtyeXRvbkBqYWJiZXIub3JnIhdub3RpZnlfb25f > > > > \nY29tbWVudHMiBjAiDXBhc3N3b3JkIi1hYTU5ZjMzMTUwZTRmMzhkMjM5ZDE0 > > > > \nY2MwNjA4NzRmNWE2ZWI3NDQ3Igpsb2dpbiIJaWFuaCIbbm90aWZ5X29uX25l > > > > \nd19hcnRpY2xlcyIGMCIKZW1haWwiACIKZmxhc2hJQzonQWN0aW9uQ29udHJv > > > \nbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==\n', > `updated_at` = > > > '2006-07-11 21:35:40' WHERE id = 64708): > > > > /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:199:in `update' > > > > /vendor/rails/activerecord/lib/active_record/base.rb:1723:in > > > `update_without_lock' > > > > /vendor/rails/activerecord/lib/active_record/locking.rb:33:in > > > `update_without_callbacks' > > > > /vendor/rails/activerecord/lib/active_record/callbacks.rb:274:in > > > `update_without_timestamps' > > > > /vendor/rails/activerecord/lib/active_record/timestamp.rb:39:in > > > `update' > > > > /vendor/rails/activerecord/lib/active_record/base.rb:1718:in > > > `create_or_update_without_callbacks' > > > > /vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in > > > `create_or_update' > > > > /vendor/rails/activerecord/lib/active_record/base.rb:1392:in > > > `save_without_validation' > > > > /vendor/rails/activerecord/lib/active_record/validations.rb: > > > 724:in `save_without_transactions' > > > > /vendor/rails/activerecord/lib/active_record/transactions.rb: > > > 126:in `save' > > > > /vendor/rails/activerecord/lib/active_record/connection_adapters/ > > > abstract/database_statements.rb:51:in `transaction' > > > > /vendor/rails/activerecord/lib/active_record/transactions.rb: > > > 91:in `transaction' > > > > /vendor/rails/activerecord/lib/active_record/transactions.rb: > > > 118:in `transaction' > > > > /vendor/rails/activerecord/lib/active_record/transactions.rb: > > > 126:in `save' > > > > /vendor/rails/actionpack/lib/action_controller/session/ > > > active_record_store.rb:307:in `update' > > > > /vendor/rails/activerecord/lib/active_record/base.rb:794:in > > > `silence' > > > > /vendor/rails/actionpack/lib/action_controller/session/ > > > active_record_store.rb:307:in `update' > > > > /vendor/rails/actionpack/lib/action_controller/session/ > > > active_record_store.rb:314:in `close' > > > /usr/local/lib/ruby/1.8/cgi/session.rb:330:in > `close' > > > > /vendor/rails/actionpack/lib/action_controller/base.rb:984:in > > > `close_session' > > > > /vendor/rails/actionpack/lib/action_controller/base.rb:1026:in > > > `process_cleanup_without_flash' > > > > /vendor/rails/actionpack/lib/action_controller/flash.rb:147:in > > > `process_cleanup_without_filters' > > > > /vendor/rails/actionpack/lib/action_controller/filters.rb:439:in > > > `process_cleanup_without_session_management_support' > > > /vendor/rails/actionpack/lib/action_controller/ > > > session_management.rb:126:in > `process_cleanup_without_components' > > > > /vendor/rails/actionpack/lib/action_controller/components.rb: > > > 182:in `process_cleanup' > > > > /vendor/rails/actionpack/lib/action_controller/base.rb:385:in > > > `process_without_filters' > > > > /vendor/rails/actionpack/lib/action_controller/filters.rb:377:in > > > `process_without_session_management_support' > > > /vendor/rails/actionpack/lib/action_controller/ > > > session_management.rb:117:in `process' > > > /vendor/rails/railties/lib/dispatcher.rb:38:in > `dispatch' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/lib/mongrel/ > > > rails.rb:73:in `process' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/lib/ > > > mongrel.rb:551:in `process_client' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/lib/ > > > mongrel.rb:550:in `process_client' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > > > mongrel.rb :636:in `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/lib/ > > > mongrel.rb:636:in `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/lib/ > > > mongrel.rb:625:in `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/lib/ > > > mongrel.rb:956:in `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ > > > mongrel.rb :955:in `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/bin/ > > > mongrel_rails:127:in `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/lib/mongrel/ > > > command.rb:199:in `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.13.3/bin/ > > > mongrel_rails:235 > > > /usr/local/bin/mongrel_rails:18 > > > > > > _______________________________________________ > > > 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 lists at holsman.net Wed Jul 12 00:58:12 2006 From: lists at holsman.net (Ian Holsman) Date: Wed, 12 Jul 2006 14:58:12 +1000 Subject: [typo] mysql error when posting a new article In-Reply-To: <14b7e5ef0607112141k12c523a8o849c2f6ca5f9b859@mail.gmail.com> References: <cc4e85f30607082010s391dff29h6a893705fd7b8fc5@mail.gmail.com> <14b7e5ef0607091128j75ed04ffy7a7f9d78bd417a78@mail.gmail.com> <cc4e85f30607091228m15642d38ga19de0f95fe31e77@mail.gmail.com> <14b7e5ef0607091719w68551fd2l3e70c5287f9ea20c@mail.gmail.com> <cc4e85f30607091917n65fee0bdqed6970202fa0667@mail.gmail.com> <4CB3A4B8-0F36-4896-9F7A-E1543857736D@holsman.net> <cc4e85f30607112021g6205e4c0r351f82976d16eebe@mail.gmail.com> <29C8DBD8-4CD1-4F5E-A031-993D17300052@holsman.net> <cc4e85f30607112109h1fbb3c82nd3534338188d8946@mail.gmail.com> <8C84EA34-BE6C-4997-A0BD-9340EDB41E4D@holsman.net> <14b7e5ef0607112141k12c523a8o849c2f6ca5f9b859@mail.gmail.com> Message-ID: <437A35BC-B252-4A3C-BA0E-1A912FF4FF3C@holsman.net> I was using the one built into rails. I installed the one via gem install and my blog is working again Thanks Scott & Steve. On 12/07/2006, at 2:41 PM, Scott Laird wrote: > Which MySQL driver are you using? The one built into Rails or the > .gem one? Try swapping for the other one. > > > Scott > > On 7/11/06, Ian Holsman <lists at holsman.net> wrote: >> >> ok.. I added it, >> but I still have the same problem. >> I don't think it is a timeout issue, as it happens straight after >> I launch >> mongrel (or WEBBrick). >> i'm thinking its a SQL issue. >> >> >> On 12/07/2006, at 2:09 PM, Steve Longdo wrote: >> I would guess in the environment.rb, add the line above: >> ActionMailer::Base.default_charset = 'utf-8' >> >> Actually anywhere you put it in there it should get picked up. >> You might >> cross check with the mongrel mailing list to see what they recommend. >> >> -Steve >> http://www.stevelongdo.com >> >> On 7/11/06, Ian Holsman <lists at holsman.net > wrote: >>> >>> >>> nope. >>> where do I put that ? >>> >>> >>> >>> >>> On 12/07/2006, at 1:21 PM, Steve Longdo wrote: >>> >>> Do you have ActiveRecord MySQL timeout setup for mongrel? >>> >>> http://mongrel.rubyforge.org/faq.html >>> >>> From the FAQ: >>> >>> Q: Mongrel stops working if it's left alone for a long time. >>> >>> If you find that Mongrel stops working after a long idle time and >>> you're >> using MySQL then you're hitting a bug in the MySQL driver that >> doesn't >> properly timeout connections. What happens is the MySQL server >> side of the >> connection times out and closes, but the MySQL client doesn't >> detect this >> and just sits there. >>> >>> What you have to do is set: ActiveRecord::Base.verification_timeout >>> = 14400 >>> >>> >>> Or to any value that is lower than the MySQL server's >>> interactive_timeout >> setting. This will make sure that ActiveRecord checks the >> connection often >> enough to reset the connection. >>> >>> >>> On 7/11/06, Ian Holsman <lists at holsman.net > wrote: >>>> Hi guys. >>>> I'm on the latest SVN trunk (1123) and using mysql 5.0.19 . >>>> >>>> I'm not sure what is going on.. as I just moved hosting >>>> providers and >>>> not if it is that or typo. >>>> >>>> regards >>>> Ian >>>> >>>> ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to >>>> MySQL server during query: UPDATE sessions SET `sessid` = >>>> '6b08673361b2d7cd5780f3593d3e592a', `data` = >>>> >> 'BAh7CDoOcmV0dXJuX3RvMDoJdXNlcm86CVVzZXIGOhBAYXR0cmlidXRlc3sQ >>>> >> \nIhZub3RpZnlfdmlhX2phYmJlciIGMCIJbmFtZSIQSWFuIEhvbHNtYW4iHW5v >>>> >> \ndGlmeV93YXRjaF9teV9hcnRpY2xlczAiFW5vdGlmeV92aWFfZW1haWwiBjAi >>>> >> \nB2lkIgYyIgtqYWJiZXIiFmtyeXRvbkBqYWJiZXIub3JnIhdub3RpZnlfb25f >>>> >> \nY29tbWVudHMiBjAiDXBhc3N3b3JkIi1hYTU5ZjMzMTUwZTRmMzhkMjM5ZDE0 >>>> >> \nY2MwNjA4NzRmNWE2ZWI3NDQ3Igpsb2dpbiIJaWFuaCIbbm90aWZ5X29uX25l >>>> >> \nd19hcnRpY2xlcyIGMCIKZW1haWwiACIKZmxhc2hJQzonQWN0aW9uQ29udHJv >>>> \nbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==\n', >> `updated_at` = >>>> '2006-07-11 21:35:40' WHERE id = 64708): >>>> >> /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:199:in `update' >>>> >> /vendor/rails/activerecord/lib/active_record/base.rb:1723:in >>>> `update_without_lock' >>>> >> /vendor/rails/activerecord/lib/active_record/locking.rb:33:in >>>> `update_without_callbacks' >>>> >> /vendor/rails/activerecord/lib/active_record/callbacks.rb:274:in >>>> `update_without_timestamps' >>>> >> /vendor/rails/activerecord/lib/active_record/timestamp.rb:39:in >>>> `update' >>>> >> /vendor/rails/activerecord/lib/active_record/base.rb:1718:in >>>> `create_or_update_without_callbacks' >>>> >> /vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in >>>> `create_or_update' >>>> >> /vendor/rails/activerecord/lib/active_record/base.rb:1392:in >>>> `save_without_validation' >>>> >> /vendor/rails/activerecord/lib/active_record/validations.rb: >>>> 724:in `save_without_transactions' >>>> >> /vendor/rails/activerecord/lib/active_record/transactions.rb: >>>> 126:in `save' >>>> >> /vendor/rails/activerecord/lib/active_record/connection_adapters/ >>>> abstract/database_statements.rb:51:in `transaction' >>>> >> /vendor/rails/activerecord/lib/active_record/transactions.rb: >>>> 91:in `transaction' >>>> >> /vendor/rails/activerecord/lib/active_record/transactions.rb: >>>> 118:in `transaction' >>>> >> /vendor/rails/activerecord/lib/active_record/transactions.rb: >>>> 126:in `save' >>>> >> /vendor/rails/actionpack/lib/action_controller/session/ >>>> active_record_store.rb:307:in `update' >>>> >> /vendor/rails/activerecord/lib/active_record/base.rb:794:in >>>> `silence' >>>> >> /vendor/rails/actionpack/lib/action_controller/session/ >>>> active_record_store.rb:307:in `update' >>>> >> /vendor/rails/actionpack/lib/action_controller/session/ >>>> active_record_store.rb:314:in `close' >>>> /usr/local/lib/ruby/1.8/cgi/session.rb:330:in >> `close' >>>> >> /vendor/rails/actionpack/lib/action_controller/base.rb:984:in >>>> `close_session' >>>> >> /vendor/rails/actionpack/lib/action_controller/base.rb:1026:in >>>> `process_cleanup_without_flash' >>>> >> /vendor/rails/actionpack/lib/action_controller/flash.rb:147:in >>>> `process_cleanup_without_filters' >>>> >> /vendor/rails/actionpack/lib/action_controller/filters.rb:439:in >>>> `process_cleanup_without_session_management_support' >>>> /vendor/rails/actionpack/lib/action_controller/ >>>> session_management.rb:126:in >> `process_cleanup_without_components' >>>> >> /vendor/rails/actionpack/lib/action_controller/components.rb: >>>> 182:in `process_cleanup' >>>> >> /vendor/rails/actionpack/lib/action_controller/base.rb:385:in >>>> `process_without_filters' >>>> >> /vendor/rails/actionpack/lib/action_controller/filters.rb:377:in >>>> `process_without_session_management_support' >>>> /vendor/rails/actionpack/lib/action_controller/ >>>> session_management.rb:117:in `process' >>>> /vendor/rails/railties/lib/dispatcher.rb:38:in >> `dispatch' >>>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- >> 0.3.13.3/lib/mongrel/ >>>> rails.rb:73:in `process' >>>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- >> 0.3.13.3/lib/ >>>> mongrel.rb:551:in `process_client' >>>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- >> 0.3.13.3/lib/ >>>> mongrel.rb:550:in `process_client' >>>> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ >>>> mongrel.rb :636:in `run' >>>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- >> 0.3.13.3/lib/ >>>> mongrel.rb:636:in `run' >>>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- >> 0.3.13.3/lib/ >>>> mongrel.rb:625:in `run' >>>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- >> 0.3.13.3/lib/ >>>> mongrel.rb:956:in `run' >>>> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/ >>>> mongrel.rb :955:in `run' >>>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- >> 0.3.13.3/bin/ >>>> mongrel_rails:127:in `run' >>>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- >> 0.3.13.3/lib/mongrel/ >>>> command.rb:199:in `run' >>>> /usr/local/lib/ruby/gems/1.8/gems/mongrel- >> 0.3.13.3/bin/ >>>> mongrel_rails:235 >>>> /usr/local/bin/mongrel_rails:18 >>>> >>>> _______________________________________________ >>>> 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 >> >> > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From tim at digital-achievement.com Wed Jul 12 02:12:18 2006 From: tim at digital-achievement.com (Timothy Freund) Date: Wed, 12 Jul 2006 01:12:18 -0500 Subject: [typo] Proofread Theme Catalog In-Reply-To: <1152649589.18728.36.camel@lyra.rinspin.com> References: <44B1EC62.7050300@digital-achievement.com> <1152649589.18728.36.camel@lyra.rinspin.com> Message-ID: <44B492C2.5040301@digital-achievement.com> Scott Bronson wrote: > On Mon, 2006-07-10 at 00:57 -0500, Timothy Freund wrote: > >>The theme repository: >>http://proofread.digital-achievement.com/catalog/ > > > Er... It's just a photo gallery? Or am I missing something? > It seems I have a bit of work left to do in the "intuitive interface" department. :-) I made some changes to the theme summary boxes, hopefully that helps to clear up the intention. I'm interested to see if anyone else agrees. > Personally, I'm not real fond of the slow JavaScript effects. Why not > just display the picture when I click on it? > Two reasons: I liked the way it looked in John Wang's Themes Viewer[1], and I wanted to see what Lightbox JS v2.0 was all about first hand. I'll admit, not the most sound technical reasons to add a "feature", and it will slow down browsing full size images in rapid succession. Perhaps we can turn that into a user preference in the future. [1] http://www.dev411.com/typo/themes/ Thanks for the input -- I appreciate it. I should have many more of the themes included in the next few days, and a few days after that I may just have the automated testing working. Best regards, Tim -- Timothy Freund http://digital-achievement.com http://tim.freunds.net/thoughts From pdcawley at bofh.org.uk Wed Jul 12 06:53:16 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Wed, 12 Jul 2006 11:53:16 +0100 Subject: [typo] Memory leak fixed (and speed improved, too) In-Reply-To: <14b7e5ef0607081225v247429d1lde38b9b8262f5e27@mail.gmail.com> (Scott Laird's message of "Sat, 8 Jul 2006 12:25:44 -0700") References: <14b7e5ef0607081225v247429d1lde38b9b8262f5e27@mail.gmail.com> Message-ID: <m1y7uzm6w3.fsf@Obelisk.local> "Scott Laird" <scott at sigkill.org> writes: > I think the Great Typo Memory Leak of 2006 has been fixed: > > > http://scottstuff.net/blog/articles/2006/07/08/ding-dong-the-memory-leak-in-typo-is-dead > > It was an interaction between the action cache and all of the other filters > that we're using--when the action cache's before_filter found a cache hit, > it cancels the rest of the filter chain and returns the cached results to > the user. Unfortunately, if any of the other filters are saving data in > their before_filter and planning on dropping it in their after_filter, then > they're going to cause a memory leak, because the after_filter will never be > called. Hmm... it's a shame you can't have 'ensure' filters in rails isn't it? > The fix is to straighen out the filter order. I moved the cache's filters > to the very outside, and that gave us a big speed boost, as well as fixing > the memory leak. Longer-term, we need to audit our filters, because they're > getting too complex. But for now, I think we're okay. D'oh. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From jburks725 at gmail.com Wed Jul 12 07:40:10 2006 From: jburks725 at gmail.com (Jason Burks) Date: Wed, 12 Jul 2006 07:40:10 -0400 Subject: [typo] mysql error when posting a new article Message-ID: <9bbab4e0607120440yb5610dct8d94f2ec75a9ead3@mail.gmail.com> [I decided to trim out the increasingly long reply thread. This is regarding the message originally posted by Ian Holsman on July 11] Regarding the MySQL timeout issues, I was having the same trouble yesterday after updating to the newest svn (1120 at the time, am now running 1123). I seem to have resolved the issue without setting the ActiveRecord MySQL timeout. The problem ended up being that I needed to install/upgrade to the newest MySQL driver gem (version 2.7). I'm running on Debian, so my path to the mysql_config is non-standard (or at least not what the gem installer expects by default). This worked for me: sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config After installing this and restarting my Mongrel cluster, I am able to post again successfully. Hope this helps! Regards, Jason http://www.jasonburks.com From mail at paulbarry.com Wed Jul 12 11:54:03 2006 From: mail at paulbarry.com (Paul Barry) Date: Wed, 12 Jul 2006 11:54:03 -0400 Subject: [typo] Getting typo RSS feed to appear in Google Web Clips Message-ID: <d0d1f5ac0607120854m1dfd9217q8a85a9df5044c37f@mail.gmail.com> 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? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060712/e3818bc5/attachment-0001.html From scott at sigkill.org Wed Jul 12 12:18:09 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 12 Jul 2006 09:18:09 -0700 Subject: [typo] Getting typo RSS feed to appear in Google Web Clips In-Reply-To: <d0d1f5ac0607120854m1dfd9217q8a85a9df5044c37f@mail.gmail.com> References: <d0d1f5ac0607120854m1dfd9217q8a85a9df5044c37f@mail.gmail.com> Message-ID: <14b7e5ef0607120918k42c7071en75cda9d2601e4de1@mail.gmail.com> Can you file this as a bug against milestone 4.0? Scott 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 > > From johncwang at gmail.com Wed Jul 12 13:06:29 2006 From: johncwang at gmail.com (John Wang) Date: Wed, 12 Jul 2006 10:06:29 -0700 Subject: [typo] Proofread Theme Catalog In-Reply-To: <44B492C2.5040301@digital-achievement.com> References: <44B1EC62.7050300@digital-achievement.com> <1152649589.18728.36.camel@lyra.rinspin.com> <44B492C2.5040301@digital-achievement.com> Message-ID: <22a4faec0607121006s479f05dh68340ccb7b2a4627@mail.gmail.com> On 7/11/06, Timothy Freund <tim at digital-achievement.com> wrote: > > Scott Bronson wrote: > > Personally, I'm not real fond of the slow JavaScript effects. Why not > > just display the picture when I click on it? > > Two reasons: I liked the way it looked in John Wang's Themes Viewer[1], > and I wanted to see what Lightbox JS v2.0 was all about first hand. > I'll admit, not the most sound technical reasons to add a "feature", and > it will slow down browsing full size images in rapid succession. Lightbox 2.0 has a (super easy to implement) group feature that lets you cycle through images without leaving the lightbox. I've played with it but haven't deployed it on the themes viewer yet b/c I may want to tweak how it works. -- John Wang http://www.dev411.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060712/f285e935/attachment.html From chrismc at ozarkmountain.net Wed Jul 12 13:29:01 2006 From: chrismc at ozarkmountain.net (Chris McCracken) Date: Wed, 12 Jul 2006 12:29:01 -0500 Subject: [typo] More themes included/microformats Message-ID: <44B5315D.5010806@ozarkmountain.net> What is the interest level in including more (fixed) themes in the basic typo install than just Azure? Scribbish [1] is technically very good, with the microformats [2] built-in, but I have personally fallen in love with Lucid [3]. I am working on altering Lucid to use microformats as I believe they are a "good thing" and would make a great selling point to have Typo themes use them by default. hAtom seems to be the most obvious one for blog content, but I think others could be implemented in Typo as well. Anyone read the Developerworks article on microformat useage that was posted on slashdot yesterday? [4] [1] http://www.quotedprintable.com/pages/scribbish [2] http://microformats.org/wiki/Main_Page [3] http://typogarden.com/articles/2005/11/30/the-lucid-theme <http://microformats.org/wiki/Main_Page> [4] http://www-128.ibm.com/developerworks/library/x-microformats/?ca=dgr-lnxw01Microformats -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060712/71fdaf94/attachment.html From scott at sigkill.org Wed Jul 12 14:06:56 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 12 Jul 2006 11:06:56 -0700 Subject: [typo] More themes included/microformats In-Reply-To: <44B5315D.5010806@ozarkmountain.net> References: <44B5315D.5010806@ozarkmountain.net> Message-ID: <14b7e5ef0607121106p744926f7jf7113b273d9230ea@mail.gmail.com> There are a few microformat-ish things that I'd like to do after 4.0 ships. I'd like to make it easy to create hReviews as well as one of the event microformats. Beyond that, I haven't seen anything particularly exciting in the microformat world. hAtom sounds nice enough as a formatting standard, and Scribbish is already in the trunk and will be included in 4.0. Past that, are any of the remaining microformats actually useful for anything? Scott On 7/12/06, Chris McCracken <chrismc at ozarkmountain.net> wrote: > > What is the interest level in including more (fixed) themes in the basic > typo install than just Azure? Scribbish [1] is technically very good, with > the microformats [2] built-in, but I have personally fallen in love with > Lucid [3]. I am working on altering Lucid to use microformats as I believe > they are a "good thing" and would make a great selling point to have Typo > themes use them by default. hAtom seems to be the most obvious one for blog > content, but I think others could be implemented in Typo as well. > > Anyone read the Developerworks article on microformat useage that was > posted on slashdot yesterday? [4] > > [1] http://www.quotedprintable.com/pages/scribbish > [2] http://microformats.org/wiki/Main_Page > [3] > http://typogarden.com/articles/2005/11/30/the-lucid-theme > [4] > http://www-128.ibm.com/developerworks/library/x-microformats/?ca=dgr-lnxw01Microformats > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From steve.longdo at gmail.com Wed Jul 12 14:14:12 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Wed, 12 Jul 2006 13:14:12 -0500 Subject: [typo] Getting typo RSS feed to appear in Google Web Clips In-Reply-To: <d0d1f5ac0607120854m1dfd9217q8a85a9df5044c37f@mail.gmail.com> References: <d0d1f5ac0607120854m1dfd9217q8a85a9df5044c37f@mail.gmail.com> Message-ID: <cc4e85f30607121114g3db74caex21e8d12a3e15c2f8@mail.gmail.com> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060712/e1ec705e/attachment.html From scott at sigkill.org Wed Jul 12 14:18:08 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 12 Jul 2006 11:18:08 -0700 Subject: [typo] Getting typo RSS feed to appear in Google Web Clips In-Reply-To: <cc4e85f30607121114g3db74caex21e8d12a3e15c2f8@mail.gmail.com> References: <d0d1f5ac0607120854m1dfd9217q8a85a9df5044c37f@mail.gmail.com> <cc4e85f30607121114g3db74caex21e8d12a3e15c2f8@mail.gmail.com> Message-ID: <14b7e5ef0607121118w5e892c7ewd31068cdce9e4a33@mail.gmail.com> 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 <steve.longdo at gmail.com> 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 > > From chrismc at ozarkmountain.net Wed Jul 12 14:29:17 2006 From: chrismc at ozarkmountain.net (Chris McCracken) Date: Wed, 12 Jul 2006 13:29:17 -0500 Subject: [typo] More themes included/microformats Message-ID: <44B53F7D.2010106@ozarkmountain.net> Yeah, I actually just upgraded to .3 (mirrors weren't my friend yesterday) and saw that Scribbish was now included. I could see event microformats being useful for content aggregation as well. Perhaps simple "add content" functions on the post editing page that could be used to easily add various microformatted content types? [1] I've been writing PHP for about 8 years, and Rails is not coming easily to me, otherwise I'd be happy to contribute (and may in the future). I can handle tweaking themes, though. I would think that any microformat that references an abstract content type that someone might blog about could be useful. Also, with Typo's "Pages" function, it should be seen as a "publishing platform", not just a blogging engine. If you are embedding microformats in "static pages", then I could see almost any of them being useful (hResume?). Just my 2c... Its much easier to throw out ideas than write the code behind them. ;) Speaking of the editing page, how difficult would it be to embed a rich-text-editor such as FCKeditor or TinyMCE? Both options can be set up to create XHTML-valid content and would integrate well with CSS-based theming. -Chris Re: More themes included/microformats From: Scott Laird <scott <at> sigkill.org> Subject: Re: More themes included/microformats <http://news.gmane.org/find-root.php?message_id=%3c14b7e5ef0607121106p744926f7jf7113b273d9230ea%40mail.gmail.com%3e> Newsgroups: gmane.comp.web.typo.user <http://news.gmane.org/gmane.comp.web.typo.user> Date: 2006-07-12 18:06:56 GMT There are a few microformat-ish things that I'd like to do after 4.0 ships. I'd like to make it easy to create hReviews as well as one of the event microformats. Beyond that, I haven't seen anything particularly exciting in the microformat world. hAtom sounds nice enough as a formatting standard, and Scribbish is already in the trunk and will be included in 4.0. Past that, are any of the remaining microformats actually useful for anything? Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060712/638e7bf4/attachment.html From mail at paulbarry.com Wed Jul 12 14:47:19 2006 From: mail at paulbarry.com (Paul Barry) Date: Wed, 12 Jul 2006 14:47:19 -0400 Subject: [typo] Getting typo RSS feed to appear in Google Web Clips In-Reply-To: <14b7e5ef0607121118w5e892c7ewd31068cdce9e4a33@mail.gmail.com> References: <d0d1f5ac0607120854m1dfd9217q8a85a9df5044c37f@mail.gmail.com> <cc4e85f30607121114g3db74caex21e8d12a3e15c2f8@mail.gmail.com> <14b7e5ef0607121118w5e892c7ewd31068cdce9e4a33@mail.gmail.com> Message-ID: <d0d1f5ac0607121147j63fdb64bu60b8cd4dfeac05cb@mail.gmail.com> 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 <steve.longdo at gmail.com> 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/20060712/28132ef9/attachment-0001.html From johncwang at gmail.com Wed Jul 12 15:31:38 2006 From: johncwang at gmail.com (John Wang) Date: Wed, 12 Jul 2006 12:31:38 -0700 Subject: [typo] More themes included/microformats In-Reply-To: <44B5315D.5010806@ozarkmountain.net> References: <44B5315D.5010806@ozarkmountain.net> Message-ID: <22a4faec0607121231q6e5ea4a6tbb5d4d4ae4f6fb95@mail.gmail.com> On 7/12/06, Chris McCracken <chrismc at ozarkmountain.net> wrote: > > What is the interest level in including more (fixed) themes in the basic > typo install than just Azure? Scribbish [1] is technically very good, with > the microformats [2] built-in, but I have personally fallen in love with > Lucid [3]. I am working on altering Lucid to use microformats as I believe > they are a "good thing" and would make a great selling point to have Typo > themes use them by default. > I like Lucid as well but don't think it should be bundled until the IE bugs are fixed. I see a lot of IE problems with my own tests and at http://www.thelucid.com. The default view and all the DHTML controls in the upper right give me problems in IE. Perhaps offering to include it if the bugs are fixed can generate some interest? OTOH, the DHTML effects for Origami, Phokus and Modernist all work for me in IE. -- John Wang http://www.dev411.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060712/447811be/attachment.html From mail at paulbarry.com Wed Jul 12 15:33:00 2006 From: mail at paulbarry.com (Paul Barry) Date: Wed, 12 Jul 2006 15:33:00 -0400 Subject: [typo] Change timestamp format Message-ID: <d0d1f5ac0607121233t1eae7c77q9a31b2911933ebea@mail.gmail.com> Is there an easy way to change the timestamp that shows up on posts. Right now my typo site displays the time of a post as 6 days ago. It seems that older posts do show up as Tuesday, April 18, 2006, whch is the format I'd like it to always have, but I'd like to add the time. Same with comments, it say things like 15 days later, I'd rather it just say Friday, May 21, 2006 at 2:34 pm. Is this a function of typo or the theme? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060712/c7287a29/attachment.html From scott at sigkill.org Wed Jul 12 15:37:57 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 12 Jul 2006 12:37:57 -0700 Subject: [typo] Change timestamp format In-Reply-To: <d0d1f5ac0607121233t1eae7c77q9a31b2911933ebea@mail.gmail.com> References: <d0d1f5ac0607121233t1eae7c77q9a31b2911933ebea@mail.gmail.com> Message-ID: <14b7e5ef0607121237p16bc9fdble568ceaab3a33ffc@mail.gmail.com> It's part of the theme. Scott On 7/12/06, Paul Barry <mail at paulbarry.com> wrote: > Is there an easy way to change the timestamp that shows up on posts. Right > now my typo site displays the time of a post as 6 days ago. It seems that > older posts do show up as Tuesday, April 18, 2006, whch is the format I'd > like it to always have, but I'd like to add the time. Same with comments, > it say things like 15 days later, I'd rather it just say Friday, May 21, > 2006 at 2:34 pm. Is this a function of typo or the theme? > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From rdominick at gmail.com Wed Jul 12 16:03:28 2006 From: rdominick at gmail.com (R. N. Dominick) Date: Wed, 12 Jul 2006 16:03:28 -0400 Subject: [typo] Change timestamp format In-Reply-To: <d0d1f5ac0607121233t1eae7c77q9a31b2911933ebea@mail.gmail.com> References: <d0d1f5ac0607121233t1eae7c77q9a31b2911933ebea@mail.gmail.com> Message-ID: <e27d0ad0607121303w2ab0a5b3h3c51d50bb6394913@mail.gmail.com> On 7/12/06, Paul Barry <mail at paulbarry.com> wrote: > Is there an easy way to change the timestamp that shows up on posts. I'm customizing Scribbish for a theme for my Typo blog. Here's what I did when I wanted the same thing you do: In typo/themes/peekle/views/articles/_article.rhtml I changed this block <p class="author"> Posted by <cite><%= author_link(article) %></cite> <abbr class="published" title="<%= article.created_at.xmlschema %>"><%= js_distance_of_time_in_words_to_now article.created_at %></abbr> </p> to read <p class="author"> Posted by <cite><%= author_link(article) %></cite> on <abbr class="published" title="<%= article.created_at.xmlschema %>"><%= article.published_at %></abbr> </p> This results in the kind-of graceless but pretty geeky byline Posted by R. N. Dominick on Tue Jul 11 11:07:00 EDT 2006 but I like it. From scott at sigkill.org Wed Jul 12 16:08:11 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 12 Jul 2006 13:08:11 -0700 Subject: [typo] Change timestamp format In-Reply-To: <e27d0ad0607121303w2ab0a5b3h3c51d50bb6394913@mail.gmail.com> References: <d0d1f5ac0607121233t1eae7c77q9a31b2911933ebea@mail.gmail.com> <e27d0ad0607121303w2ab0a5b3h3c51d50bb6394913@mail.gmail.com> Message-ID: <14b7e5ef0607121308l6b5e961frcebb97615d2d24c8@mail.gmail.com> On 7/12/06, R. N. Dominick <rdominick at gmail.com> wrote: > > <p class="author"> > Posted by <cite><%= author_link(article) %></cite> on > <abbr class="published" title="<%= article.created_at.xmlschema > %>"><%= article.published_at %></abbr> > </p> > > This results in the kind-of graceless but pretty geeky byline > > Posted by R. N. Dominick on Tue Jul 11 11:07:00 EDT 2006 > > but I like it. You can also use article.published_at.strftime to get better control over the format. Run 'ri strftime' or 'man strftime' to see all of the options. Scott From mail at paulbarry.com Wed Jul 12 16:12:10 2006 From: mail at paulbarry.com (Paul Barry) Date: Wed, 12 Jul 2006 16:12:10 -0400 Subject: [typo] script tag in sidebar static Message-ID: <d0d1f5ac0607121312i3e20270dr4330ef7c016a14f6@mail.gmail.com> I upgraded from typo 3.99.1 to 3.99.3, and now it seems that I can't put a script tag like this into a static sidebar: <script type="text/javascript" src=" http://embed.technorati.com/embed/5yar6g8c3q.js"></script> Is that a feature or a bug? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060712/cafc6fcf/attachment.html From scott at sigkill.org Wed Jul 12 16:13:47 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 12 Jul 2006 13:13:47 -0700 Subject: [typo] script tag in sidebar static In-Reply-To: <d0d1f5ac0607121312i3e20270dr4330ef7c016a14f6@mail.gmail.com> References: <d0d1f5ac0607121312i3e20270dr4330ef7c016a14f6@mail.gmail.com> Message-ID: <14b7e5ef0607121313y44e2d0e0tc5ed44a7e965f132@mail.gmail.com> There was a bug somewhere in that timeframe that broke HTML in static sidebars. I don't remember if it was in .3 or not. I'll try to roll a .4 tonight. Scott On 7/12/06, Paul Barry <mail at paulbarry.com> wrote: > I upgraded from typo 3.99.1 to 3.99.3, and now it seems that I can't put a > script tag like this into a static sidebar: > > <script type="text/javascript" src=" > http://embed.technorati.com/embed/5yar6g8c3q.js"></script> > > Is that a feature or a bug? > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From pdcawley at bofh.org.uk Thu Jul 13 06:19:31 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Thu, 13 Jul 2006 11:19:31 +0100 Subject: [typo] Identity issues Message-ID: <m164i1n6x8.fsf@Obelisk.local> I got slightly sidetracked on the way to the TRAC, but I've been thinking about identity and blogging. I really, really, really don't want to have to add yet another login/password pair to a commenter's keychain if I can possibly help it. But, it would be cool for people to have some way of identifying themselves in some trusted fashion (so that, for example comments made by signed in users get added straight away, but all other comments get put into a queue pending approval). My thinking on this is that we need to come up with some sort of an identity control API. We define the ways in which Typo interacts with an authentication service, things like: authenticator.session_is_authenticated?(session) authenticator.session_user(session) - returns a user object authenticator.authenticate(controller, session) - May do redirects, hence the controller Then our user object will carry information like: user.memento - Unique string identifying this user (for use in any authorization system) user.email user.display_name user.icon user.url user.authenticated? Possibly more, possibly fewer. Methods like #icon can obviously return an empty string... Once we've worked out the protocols (and tweaked our current identification mechanism to use them) it should be relatively easy to write adaptors for Flickr; Yahoo; Google; OpenID; some kind of dumbass captcha system, if you really insist but don't expect it to get accepted into the trunk; or whatever other authentication services exist or arise. Of course, methods like 'authenticator.session_is_authenticated?' will generally be accessed via helper methods like: session.authenticated? Right, brain dump over, I shall proceed to the Trac directly. Note: Authentication is *not* the same as Authorization. About the only thing I'm sure of regarding authorization is that we shall have something. Note2: This isn't even remotely imminent. I'm just sketching here. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From scott at sigkill.org Thu Jul 13 09:31:53 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 13 Jul 2006 06:31:53 -0700 Subject: [typo] Identity issues In-Reply-To: <m164i1n6x8.fsf@Obelisk.local> References: <m164i1n6x8.fsf@Obelisk.local> Message-ID: <14b7e5ef0607130631k17b293ces4fbe111b748c0682@mail.gmail.com> Yes :-). There are a couple things that I'd like to see. First, OpenID is probably the most useful one today, because it gets us LiveJournal, and I *think* that TypeKey is supposed to be OpenID-able soon, if it isn't already. The flip side of this is that Typo should be an OpenID server, too, so we can publish our own identities. This way Typo users will be able to authenticate ourselves to each other. I can work on the server side if you want to handle the client side. At some point we'll need to add a check so that we won't try to use OpenID to authenticate against ourself--on single-threaded servers (Webrick, single-port Mongrel, single-dispatcher fcgi) that'll deadlock. Scott On 7/13/06, Piers Cawley <pdcawley at bofh.org.uk> wrote: > I got slightly sidetracked on the way to the TRAC, but I've been > thinking about identity and blogging. I really, really, really don't > want to have to add yet another login/password pair to a commenter's > keychain if I can possibly help it. > > But, it would be cool for people to have some way of identifying > themselves in some trusted fashion (so that, for example comments made > by signed in users get added straight away, but all other comments get > put into a queue pending approval). > > My thinking on this is that we need to come up with some sort of > an identity control API. We define the ways in which Typo interacts > with an authentication service, things like: > > authenticator.session_is_authenticated?(session) > authenticator.session_user(session) - returns a user object > authenticator.authenticate(controller, session) - May do redirects, > hence the controller > > Then our user object will carry information like: > > user.memento - Unique string identifying this user (for use in any > authorization system) > user.email > user.display_name > user.icon > user.url > user.authenticated? > > Possibly more, possibly fewer. Methods like #icon can obviously return > an empty string... > > Once we've worked out the protocols (and tweaked our current > identification mechanism to use them) it should be relatively easy to > write adaptors for Flickr; Yahoo; Google; OpenID; some kind of dumbass > captcha system, if you really insist but don't expect it to get > accepted into the trunk; or whatever other authentication services > exist or arise. > > Of course, methods like 'authenticator.session_is_authenticated?' will > generally be accessed via helper methods like: > > session.authenticated? > > Right, brain dump over, I shall proceed to the Trac directly. > > Note: Authentication is *not* the same as Authorization. About the > only thing I'm sure of regarding authorization is that we shall have > something. > > Note2: This isn't even remotely imminent. I'm just sketching here. > > -- > Piers Cawley <pdcawley at bofh.org.uk> > http://www.bofh.org.uk/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From josh at hasmanythrough.com Thu Jul 13 11:41:18 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Thu, 13 Jul 2006 08:41:18 -0700 Subject: [typo] Identity issues In-Reply-To: <14b7e5ef0607130631k17b293ces4fbe111b748c0682@mail.gmail.com> References: <m164i1n6x8.fsf@Obelisk.local> <14b7e5ef0607130631k17b293ces4fbe111b748c0682@mail.gmail.com> Message-ID: <0CE8FDBC-C4C3-4A10-92BB-5DEDC2742510@hasmanythrough.com> If you're delving into OpenID support, there is code out there to use. Matt Pelletier gave a presentation on OpenID support at RailsConf. There is a consumer plugin available: http://identity.eastmedia.com/identity/show/Consumer+Plugin and development ongoing for Rails support for identity servers too. You can see example consumer code in Rick Olson's Rails-Weenie app: http://svn.techno-weenie.net/projects/rails_help/ General info: http://identity.eastmedia.com/ http://wiki.rubyonrails.org/rails/pages/OpenID -- Josh Susser http://blog.hasmanythrough.com On Jul 13, 2006, at 6:31 AM, Scott Laird wrote: > Yes :-). > > There are a couple things that I'd like to see. First, OpenID is > probably the most useful one today, because it gets us LiveJournal, > and I *think* that TypeKey is supposed to be OpenID-able soon, if it > isn't already. > > The flip side of this is that Typo should be an OpenID server, too, so > we can publish our own identities. This way Typo users will be able > to authenticate ourselves to each other. > > I can work on the server side if you want to handle the client side. > At some point we'll need to add a check so that we won't try to use > OpenID to authenticate against ourself--on single-threaded servers > (Webrick, single-port Mongrel, single-dispatcher fcgi) that'll > deadlock. > > > Scott > > On 7/13/06, Piers Cawley <pdcawley at bofh.org.uk> wrote: >> I got slightly sidetracked on the way to the TRAC, but I've been >> thinking about identity and blogging. I really, really, really don't >> want to have to add yet another login/password pair to a commenter's >> keychain if I can possibly help it. >> >> But, it would be cool for people to have some way of identifying >> themselves in some trusted fashion (so that, for example comments >> made >> by signed in users get added straight away, but all other comments >> get >> put into a queue pending approval). >> >> My thinking on this is that we need to come up with some sort of >> an identity control API. We define the ways in which Typo interacts >> with an authentication service, things like: >> >> authenticator.session_is_authenticated?(session) >> authenticator.session_user(session) - returns a user object >> authenticator.authenticate(controller, session) - May do >> redirects, >> hence the >> controller >> >> Then our user object will carry information like: >> >> user.memento - Unique string identifying this user (for use in any >> authorization system) >> user.email >> user.display_name >> user.icon >> user.url >> user.authenticated? >> >> Possibly more, possibly fewer. Methods like #icon can obviously >> return >> an empty string... >> >> Once we've worked out the protocols (and tweaked our current >> identification mechanism to use them) it should be relatively easy to >> write adaptors for Flickr; Yahoo; Google; OpenID; some kind of >> dumbass >> captcha system, if you really insist but don't expect it to get >> accepted into the trunk; or whatever other authentication services >> exist or arise. >> >> Of course, methods like 'authenticator.session_is_authenticated?' >> will >> generally be accessed via helper methods like: >> >> session.authenticated? >> >> Right, brain dump over, I shall proceed to the Trac directly. >> >> Note: Authentication is *not* the same as Authorization. About the >> only thing I'm sure of regarding authorization is that we shall have >> something. >> >> Note2: This isn't even remotely imminent. I'm just sketching here. >> >> -- >> Piers Cawley <pdcawley at bofh.org.uk> >> http://www.bofh.org.uk/ From brian at janrain.com Thu Jul 13 17:23:41 2006 From: brian at janrain.com (Brian Ellin) Date: Thu, 13 Jul 2006 14:23:41 -0700 Subject: [typo] Identity issues In-Reply-To: <14b7e5ef0607130631k17b293ces4fbe111b748c0682@mail.gmail.com> References: <m164i1n6x8.fsf@Obelisk.local> <14b7e5ef0607130631k17b293ces4fbe111b748c0682@mail.gmail.com> Message-ID: <9674d5350607131423n5082e397s2175db062b2e14c3@mail.gmail.com> An alternative to adding full OpenID server support to Typo would be to delegate to another server like pip.verisignlabs.com or myopenid.com. For example, on my domain brianellin.com, I delegate to myopenid.com. I can verify my identity w/o having to run my own server, and I can choose the server that best fits my needs. Implementing delegation in Typo would require adding an interface in the admin section for delegation information (server url, delegate url, xrds url), and then adding that info to the HEAD section of the front page. Thats it! Brian Ellin JanRain, Inc. On 7/13/06, Scott Laird <scott at sigkill.org> wrote: > Yes :-). > > There are a couple things that I'd like to see. First, OpenID is > probably the most useful one today, because it gets us LiveJournal, > and I *think* that TypeKey is supposed to be OpenID-able soon, if it > isn't already. > > The flip side of this is that Typo should be an OpenID server, too, so > we can publish our own identities. This way Typo users will be able > to authenticate ourselves to each other. > > I can work on the server side if you want to handle the client side. > At some point we'll need to add a check so that we won't try to use > OpenID to authenticate against ourself--on single-threaded servers > (Webrick, single-port Mongrel, single-dispatcher fcgi) that'll > deadlock. > > > Scott > > On 7/13/06, Piers Cawley <pdcawley at bofh.org.uk> wrote: > > I got slightly sidetracked on the way to the TRAC, but I've been > > thinking about identity and blogging. I really, really, really don't > > want to have to add yet another login/password pair to a commenter's > > keychain if I can possibly help it. > > > > But, it would be cool for people to have some way of identifying > > themselves in some trusted fashion (so that, for example comments made > > by signed in users get added straight away, but all other comments get > > put into a queue pending approval). > > > > My thinking on this is that we need to come up with some sort of > > an identity control API. We define the ways in which Typo interacts > > with an authentication service, things like: > > > > authenticator.session_is_authenticated?(session) > > authenticator.session_user(session) - returns a user object > > authenticator.authenticate(controller, session) - May do redirects, > > hence the controller > > > > Then our user object will carry information like: > > > > user.memento - Unique string identifying this user (for use in any > > authorization system) > > user.email > > user.display_name > > user.icon > > user.url > > user.authenticated? > > > > Possibly more, possibly fewer. Methods like #icon can obviously return > > an empty string... > > > > Once we've worked out the protocols (and tweaked our current > > identification mechanism to use them) it should be relatively easy to > > write adaptors for Flickr; Yahoo; Google; OpenID; some kind of dumbass > > captcha system, if you really insist but don't expect it to get > > accepted into the trunk; or whatever other authentication services > > exist or arise. > > > > Of course, methods like 'authenticator.session_is_authenticated?' will > > generally be accessed via helper methods like: > > > > session.authenticated? > > > > Right, brain dump over, I shall proceed to the Trac directly. > > > > Note: Authentication is *not* the same as Authorization. About the > > only thing I'm sure of regarding authorization is that we shall have > > something. > > > > Note2: This isn't even remotely imminent. I'm just sketching here. > > > > -- > > Piers Cawley <pdcawley at bofh.org.uk> > > http://www.bofh.org.uk/ > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From kevwil at gmail.com Fri Jul 14 01:34:00 2006 From: kevwil at gmail.com (Kevin Williams) Date: Thu, 13 Jul 2006 23:34:00 -0600 Subject: [typo] themes won't load Message-ID: <683a886f0607132234h1e529986ge566ba566e2e9334@mail.gmail.com> I'm on Typo trunk with Scribbish, and I noticed tonite that the theme's stylesheet won't load - Apache returns a 404 error. I seem to get the same error if I switch back to Azure. I ran a fresh "svn up" and restarted the app - didn't help. I cleared the cache, both with the admin page and with "rake sweep_cache". This is the URL which doesn't load: http://www.almostserio.us/stylesheets/theme/application.css The app is in a Mongrel cluster behind Apache 2.2 proxy balancer. Any ideas? -- Cheers, Kevin From tim at digital-achievement.com Fri Jul 14 03:03:08 2006 From: tim at digital-achievement.com (Timothy Freund) Date: Fri, 14 Jul 2006 02:03:08 -0500 Subject: [typo] Proofread Theme Catalog In-Reply-To: <22a4faec0607121006s479f05dh68340ccb7b2a4627@mail.gmail.com> References: <44B1EC62.7050300@digital-achievement.com> <1152649589.18728.36.camel@lyra.rinspin.com> <44B492C2.5040301@digital-achievement.com> <22a4faec0607121006s479f05dh68340ccb7b2a4627@mail.gmail.com> Message-ID: <44B741AC.4070608@digital-achievement.com> That really was easy. I added a number of themes into the theme repository this evening, bringing the total up to 52. Phil Cryer bundled them all up for me, and then I turned my attention to scripting the screenshot capture process. Between ruby, twill, and webkit2png.py, all of the screenshots in the catalog were snapped automatically. I did notice that Lightbox doesn't behave very well when an image is missing. For instance, the Scribbish screenshots didn't get captured for some reason, so if you click on that image link you will get the Lightbox spinner, and you won't have the opportunity to close the box. Most of my programming time in the last few days has been back end stuff, but it's still nice to see a larger number of themes in the system. If you'd like to see Lightbox's group feature on 52 themes, have at it: http://proofread.digital-achievement.com/catalog/ Tim John Wang wrote: > On 7/11/06, *Timothy Freund* <tim at digital-achievement.com > <mailto:tim at digital-achievement.com>> wrote: > > Scott Bronson wrote: > > Personally, I'm not real fond of the slow JavaScript > effects. Why not > > just display the picture when I click on it? > > Two reasons: I liked the way it looked in John Wang's Themes > Viewer[1], > and I wanted to see what Lightbox JS v2.0 was all about first hand. > I'll admit, not the most sound technical reasons to add a "feature", and > it will slow down browsing full size images in rapid succession. > > > Lightbox 2.0 has a (super easy to implement) group feature that lets you > cycle through images without leaving the lightbox. I've played with it > but haven't deployed it on the themes viewer yet b/c I may want to tweak > how it works. > > -- > John Wang > http://www.dev411.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 kevwil at gmail.com Sat Jul 15 17:10:15 2006 From: kevwil at gmail.com (Kevin Williams) Date: Sat, 15 Jul 2006 15:10:15 -0600 Subject: [typo] themes won't load In-Reply-To: <683a886f0607132234h1e529986ge566ba566e2e9334@mail.gmail.com> References: <683a886f0607132234h1e529986ge566ba566e2e9334@mail.gmail.com> Message-ID: <683a886f0607151410m4e1d853wb876d41a80900c2e@mail.gmail.com> Nevermind. I had bad juju in my Apache config: ProxyPass /stylesheets ! # don't proxy stylesheets, serve them directly That won't work for routes expecting to re-route requests stylesheets! On 7/13/06, Kevin Williams <kevwil at gmail.com> wrote: > I'm on Typo trunk with Scribbish, and I noticed tonite that the > theme's stylesheet won't load - Apache returns a 404 error. I seem to > get the same error if I switch back to Azure. I ran a fresh "svn up" > and restarted the app - didn't help. I cleared the cache, both with > the admin page and with "rake sweep_cache". > > This is the URL which doesn't load: > http://www.almostserio.us/stylesheets/theme/application.css > > The app is in a Mongrel cluster behind Apache 2.2 proxy balancer. > > Any ideas? > > -- > Cheers, > > Kevin > -- Cheers, Kevin From meta at pobox.com Sun Jul 16 18:08:56 2006 From: meta at pobox.com (mathew) Date: Sun, 16 Jul 2006 17:08:56 -0500 Subject: [typo] Identity issues In-Reply-To: <m164i1n6x8.fsf@Obelisk.local> References: <m164i1n6x8.fsf@Obelisk.local> Message-ID: <44BAB8F8.40904@pobox.com> Piers Cawley wrote: > I got slightly sidetracked on the way to the TRAC, but I've been > thinking about identity and blogging. I really, really, really don't > want to have to add yet another login/password pair to a commenter's > keychain if I can possibly help it. > > But, it would be cool for people to have some way of identifying > themselves in some trusted fashion (so that, for example comments made > by signed in users get added straight away, but all other comments get > put into a queue pending approval). > I vote for OpenID. There are more exciting wheels to reinvent. mathew From ernieoporto at gmail.com Mon Jul 17 15:51:55 2006 From: ernieoporto at gmail.com (Ernie Oporto) Date: Mon, 17 Jul 2006 15:51:55 -0400 Subject: [typo] ruby vulns? Message-ID: <f91ac86d0607171251i7225ea22gc06dad582d5fdbfc@mail.gmail.com> Just saw this... Anyone know if a patch is coming soon? 06.28.29 CVE: Not Available Platform: Cross Platform Title: Ruby Multiple SAFE Level Restriction Bypass Vulnerabilities Description: Ruby is an object-oriented scripting language with support for SAFE level checking. It is vulnerable to multiple SAFE Level Restriction Bypass vulnerabilities in the "alias" functionality. Ruby versions 1.8.4 and earlier are vulnerable. Ref: http://www.securityfocus.com/bid/18944 -- Ernie http://www.shokk.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060717/11669f8f/attachment.html From tanjinho at yahoo.com Mon Jul 17 21:27:38 2006 From: tanjinho at yahoo.com (Jin Ho Tan) Date: Mon, 17 Jul 2006 18:27:38 -0700 (PDT) Subject: [typo] 500 Internal Server Error again Message-ID: <20060718012738.16652.qmail@web34308.mail.mud.yahoo.com> Hi all, I installed and ran Typo (from SVN) + Webrick successfully. In fact, I ran the stable version (2.6.0) + Webrick successfully too. However I could not get Typo to work on apache 2.0.54 (FC4) with CGI (Not fast-cgi !). I changed the first line (#! to /usr/local/bin/ruby, which is where my ruby is currently installed). I also changed .htaccess to use dispatch.cgi (instead of dispatch.fcgi). The database.yml file works fine since the Webrick version is ok. There is nothing logged to production.log or development.log (I tried both environments by changing the environment variable in environment.rb). When I tried dispatch.cgi on command line, there was an error due to a Nil object (probably because HTTP Request environment variable is empty). So this seems normal. The same apache + cgi-bin setup ran my own Ruby-on-Rail program successfully. I was able to update, list, create new objects. Has anyone encountered this before ? Is there anyway to turn on a more detailed trace or debug log ? Many thanks Regards, Jin-Ho -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060717/0e7817be/attachment.html From nertzy at gmail.com Mon Jul 17 22:10:35 2006 From: nertzy at gmail.com (Grant Hutchins) Date: Mon, 17 Jul 2006 21:10:35 -0500 Subject: [typo] ruby vulns? In-Reply-To: <f91ac86d0607171251i7225ea22gc06dad582d5fdbfc@mail.gmail.com> References: <f91ac86d0607171251i7225ea22gc06dad582d5fdbfc@mail.gmail.com> Message-ID: <cc58f7290607171910o63b40ecboee22f3b475251b8f@mail.gmail.com> It appears that Matz has a snapshot ready that fixes it, and also one could just wait for Ruby 1.8.5 as there are no known exploits. The latest stable CVS snapshot is available here: ftp://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz I found this on http://www.ruby-lang.org/en/20020102.html I'm not sure if Rails or Typo in specific would be vulnerable to this since I don't know what SAFE Level Restriction is. I wouldn't sweat too much over it at this time. Grant On 7/17/06, Ernie Oporto <ernieoporto at gmail.com> wrote: > > Just saw this... > Anyone know if a patch is coming soon? > > > 06.28.29 CVE: Not Available > Platform: Cross Platform > Title: Ruby Multiple SAFE Level Restriction Bypass Vulnerabilities > Description: Ruby is an object-oriented scripting language with > > support for SAFE level checking. It is vulnerable to multiple SAFE > Level Restriction Bypass vulnerabilities in the "alias" functionality. > Ruby versions 1.8.4 and earlier are vulnerable. > Ref: > http://www.securityfocus.com/bid/18944 > > > -- > Ernie > http://www.shokk.com/blog/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > -- Grant Hutchins nertzy at gmail.com From tanjinho at yahoo.com Tue Jul 18 16:19:38 2006 From: tanjinho at yahoo.com (Jin Ho Tan) Date: Tue, 18 Jul 2006 13:19:38 -0700 (PDT) Subject: [typo] More Internal 500 errors in SVN version and WEBrick Message-ID: <20060718201938.98397.qmail@web34314.mail.mud.yahoo.com> Hi all, I played around with the SVN version (on WEBrick). I have been able to create new articles but encountered a 500 error when trying to save it. The log output is show after my message. Editing and deleting articles work fine though. Regards, Jin-Ho ===== Processing ContentController#new (for [ip address] at 2006-07-18 13:43:03) [POST] Session ID: 471587cf16936fc5639dc575a4b91415 Parameters: {"article"=>{"allow_pings"=>"0", "permalink"=>"", "title"=>"test", "body"=>"test", "published"=>"1", "published_at(1i)"=>"", "extended"=>"", "published_at(2i)"=>"", "published_at(3i)"=>"", "published_at(4i)"=>"", "published_at(5i)"=>"", "text_filter"=>"none", "allow_comments"=>"1", "keywords"=>""}, "action"=>"new", "categories"=>["3"], "controller"=>"admin/content", "attachments"=>{"filename_1"=>#<StringIO:0xb78bf12c>}} ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to MySQL server during query: SELECT * FROM page_caches ): .//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:381:in `find' .//vendor/rails/activerecord/lib/active_record/base.rb:461:in `destroy_all' .//app/models/page_cache.rb:10:in `sweep_all' .//app/models/blog_sweeper.rb:15:in `expire_for' .//app/models/blog_sweeper.rb:5:in `after_save' .//vendor/rails/activerecord/lib/active_record/observer.rb:123:in `update' /usr/local/lib/ruby/1.8/observer.rb:185:in `notify_observers' /usr/local/lib/ruby/1.8/observer.rb:184:in `notify_observers' .//vendor/rails/activerecord/lib/active_record/callbacks.rb:364:in `notify' .//vendor/rails/activerecord/lib/active_record/callbacks.rb:328:in `callback' .//vendor/rails/activerecord/lib/active_record/callbacks.rb:250:in `create_or_update' .//vendor/rails/activerecord/lib/active_record/base.rb:1392:in `save_without_validation' .//vendor/rails/activerecord/lib/active_record/validations.rb:724:in `save_without_transactions' .//vendor/rails/activerecord/lib/active_record/transactions.rb:126:in `save' .//vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in `transaction' .//vendor/rails/activerecord/lib/active_record/transactions.rb:91:in `transaction' .//vendor/rails/activerecord/lib/active_record/transactions.rb:118:in `transaction' .//vendor/rails/activerecord/lib/active_record/transactions.rb:126:in `save' .//app/controllers/admin/content_controller.rb:90:in `new_or_edit' .//app/controllers/admin/content_controller.rb:22:in `new' .//vendor/rails/actionpack/lib/action_controller/base.rb:910:in `perform_action_without_filters' .//vendor/rails/actionpack/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' .//vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' .//vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' .//vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in `perform_action' .//vendor/rails/actionpack/lib/action_controller/base.rb:381:in `process_without_filters' .//vendor/rails/actionpack/lib/action_controller/filters.rb:377:in `process_without_session_management_support' .//vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in `process' .//vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' .//vendor/rails/railties/lib/webrick_server.rb:115:in `handle_dispatch' .//vendor/rails/railties/lib/webrick_server.rb:81:in `service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start' .//vendor/rails/railties/lib/webrick_server.rb:67:in `dispatch' .//vendor/rails/railties/lib/commands/servers/webrick.rb:59 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' .//vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in `require' .//vendor/rails/railties/lib/commands/server.rb:30 script/server:3 Processing Base#new (for [ip address] at 2006-07-18 13:43:03) [POST] Session ID: 471587cf16936fc5639dc575a4b91415 Parameters: {"article"=>{"allow_pings"=>"0", "permalink"=>"", "title"=>"test", "body"=>"test", "published"=>"1", "published_at(1i)"=>"", "extended"=>"", "published_at(2i)"=>"", "published_at(3i)"=>"", "published_at(4i)"=>"", "allow_comments"=>"1", "published_at(5i)"=>"", "text_filter"=>"none", "keywords"=>""}, "action"=>"new", "categories"=>["3"], "controller"=>"admin/content", "attachments"=>{"filename_1"=>#<StringIO:0xb78bf12c>}} ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to MySQL server during query: UPDATE sessions SET `created_at` = '2006-07-18 11:28:32', `sessid` = '471587cf16936fc5639dc575a4b91415', `data` = 'BAh7CDoOcmV0dXJuX3RvMDoJdXNlcm86CVVzZXIGOhBAYXR0cmlidXRlc3sQ\nIgluYW1lIhJBZG1pbmlzdHJhdG9yIhZub3RpZnlfdmlhX2phYmJlcjAiFW5v\ndGlmeV92aWFfZW1haWwwIh1ub3RpZnlfd2F0Y2hfbXlfYXJ0aWNsZXMwIgdp\nZCIGMSIXbm90aWZ5X29uX2NvbW1lbnRzMCILamFiYmVyMCIKbG9naW4iCmFk\nbWluIg1wYXNzd29yZCItMzAzNTYzNjRmODEwNTU1ZTlhZjllMjYxY2M3MDUy\nOGZiZjQ2ZjY2YyIKZW1haWwiF3RhbmppbmhvQGdtYWlsLmNvbSIbbm90aWZ5\nX29uX25ld19hcnRpY2xlczAiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6\nOkZsYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewA=\n', `updated_at` = '2006-07-18 13:43:03' WHERE id = 4): .//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:199:in `update' .//vendor/rails/activerecord/lib/active_record/base.rb:1723:in `update_without_lock' .//vendor/rails/activerecord/lib/active_record/locking.rb:33:in `update_without_callbacks' .//vendor/rails/activerecord/lib/active_record/callbacks.rb:274:in `update_without_timestamps' .//vendor/rails/activerecord/lib/active_record/timestamp.rb:39:in `update' .//vendor/rails/activerecord/lib/active_record/base.rb:1718:in `create_or_update_without_callbacks' .//vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in `create_or_update' .//vendor/rails/activerecord/lib/active_record/base.rb:1392:in `save_without_validation' .//vendor/rails/activerecord/lib/active_record/validations.rb:724:in `save_without_transactions' .//vendor/rails/activerecord/lib/active_record/transactions.rb:126:in `save' .//vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in `transaction' .//vendor/rails/activerecord/lib/active_record/transactions.rb:91:in `transaction' .//vendor/rails/activerecord/lib/active_record/transactions.rb:118:in `transaction' .//vendor/rails/activerecord/lib/active_record/transactions.rb:126:in `save' .//vendor/rails/actionpack/lib/action_controller/session/active_record_store.rb:307:in `update' .//vendor/rails/activerecord/lib/active_record/base.rb:794:in `silence' .//vendor/rails/actionpack/lib/action_controller/session/active_record_store.rb:307:in `update' .//vendor/rails/actionpack/lib/action_controller/session/active_record_store.rb:314:in `close' /usr/local/lib/ruby/1.8/cgi/session.rb:330:in `close' .//vendor/rails/actionpack/lib/action_controller/base.rb:984:in `close_session' .//vendor/rails/actionpack/lib/action_controller/base.rb:1026:in `process_cleanup_without_flash' .//vendor/rails/actionpack/lib/action_controller/flash.rb:147:in `process_cleanup_without_filters' .//vendor/rails/actionpack/lib/action_controller/filters.rb:439:in `process_cleanup_without_session_management_support' .//vendor/rails/actionpack/lib/action_controller/session_management.rb:126:in `process_cleanup_without_components' .//vendor/rails/actionpack/lib/action_controller/components.rb:182:in `process_cleanup' .//vendor/rails/actionpack/lib/action_controller/base.rb:385:in `process_without_filters' .//vendor/rails/actionpack/lib/action_controller/filters.rb:377:in `process_without_session_management_support' .//vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in `process' .//vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' .//vendor/rails/railties/lib/webrick_server.rb:115:in `handle_dispatch' .//vendor/rails/railties/lib/webrick_server.rb:81:in `service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start' .//vendor/rails/railties/lib/webrick_server.rb:67:in `dispatch' .//vendor/rails/railties/lib/commands/servers/webrick.rb:59 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' .//vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in `require' .//vendor/rails/railties/lib/commands/server.rb:30 script/server:3 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060718/df66ccc9/attachment-0001.html From scott at sigkill.org Tue Jul 18 16:23:40 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 18 Jul 2006 13:23:40 -0700 Subject: [typo] More Internal 500 errors in SVN version and WEBrick In-Reply-To: <20060718201938.98397.qmail@web34314.mail.mud.yahoo.com> References: <20060718201938.98397.qmail@web34314.mail.mud.yahoo.com> Message-ID: <14b7e5ef0607181323n3b487652pe317e8f98367da68@mail.gmail.com> Try 'gem install mysql' and see if that helps. Scott On 7/18/06, Jin Ho Tan <tanjinho at yahoo.com> wrote: > > Hi all, > > I played around with the SVN version (on WEBrick). I have been able to > create new articles but encountered a 500 error when trying to save it. The > log output is show after my message. Editing and deleting articles work fine > though. > > Regards, > Jin-Ho > ===== > Processing ContentController#new (for [ip address] at 2006-07-18 13:43:03) > [POST] > Session ID: 471587cf16936fc5639dc575a4b91415 > Parameters: {"article"=>{"allow_pings"=>"0", > "permalink"=>"", "title"=>"test", "body"=>"test", "published"=>"1", > "published_at(1i)"=>"", "extended"=>"", "published_at(2i)"=>"", > "published_at(3i)"=>"", "published_at(4i)"=>"", "published_at(5i)"=>"", > "text_filter"=>"none", "allow_comments"=>"1", "keywords"=>""}, > "action"=>"new", "categories"=>["3"], "controller"=>"admin/content", > "attachments"=>{"filename_1"=>#<StringIO:0xb78bf12c>}} > > ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to MySQL > server during query: SELECT * FROM page_caches ): > > .//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:381:in > `find' > > .//vendor/rails/activerecord/lib/active_record/base.rb:461:in > `destroy_all' > .//app/models/page_cache.rb:10:in `sweep_all' > .//app/models/blog_sweeper.rb:15:in `expire_for' > .//app/models/blog_sweeper.rb:5:in `after_save' > > .//vendor/rails/activerecord/lib/active_record/observer.rb:123:in > `update' > /usr/local/lib/ruby/1.8/observer.rb:185:in > `notify_observers' > /usr/local/lib/ruby/1.8/observer.rb:184:in > `notify_observers' > > .//vendor/rails/activerecord/lib/active_record/callbacks.rb:364:in > `notify' > > .//vendor/rails/activerecord/lib/active_record/callbacks.rb:328:in > `callback' > > .//vendor/rails/activerecord/lib/active_record/callbacks.rb:250:in > `create_or_update' > > .//vendor/rails/activerecord/lib/active_record/base.rb:1392:in > `save_without_validation' > > .//vendor/rails/activerecord/lib/active_record/validations.rb:724:in > `save_without_transactions' > > .//vendor/rails/activerecord/lib/active_record/transactions.rb:126:in > `save' > > .//vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in > `transaction' > > .//vendor/rails/activerecord/lib/active_record/transactions.rb:91:in > `transaction' > > .//vendor/rails/activerecord/lib/active_record/transactions.rb:118:in > `transaction' > > .//vendor/rails/activerecord/lib/active_record/transactions.rb:126:in > `save' > .//app/controllers/admin/content_controller.rb:90:in > `new_or_edit' > .//app/controllers/admin/content_controller.rb:22:in > `new' > > .//vendor/rails/actionpack/lib/action_controller/base.rb:910:in > `perform_action_without_filters' > > .//vendor/rails/actionpack/lib/action_controller/filters.rb:368:in > `perform_action_without_benchmark' > > .//vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > .//vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in > `perform_action_without_rescue' > > .//vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in > `perform_action' > > .//vendor/rails/actionpack/lib/action_controller/base.rb:381:in > `process_without_filters' > > .//vendor/rails/actionpack/lib/action_controller/filters.rb:377:in > `process_without_session_management_support' > > .//vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in > `process' > .//vendor/rails/railties/lib/dispatcher.rb:38:in > `dispatch' > .//vendor/rails/railties/lib/webrick_server.rb:115:in > `handle_dispatch' > .//vendor/rails/railties/lib/webrick_server.rb:81:in > `service' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in > `service' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in > `run' > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in > `start_thread' > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in > `start_thread' > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start' > .//vendor/rails/railties/lib/webrick_server.rb:67:in > `dispatch' > > .//vendor/rails/railties/lib/commands/servers/webrick.rb:59 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require' > > .//vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in > `require' > .//vendor/rails/railties/lib/commands/server.rb:30 > script/server:3 > > Processing Base#new (for [ip address] at 2006-07-18 13:43:03) [POST] > Session ID: 471587cf16936fc5639dc575a4b91415 > Parameters: {"article"=>{"allow_pings"=>"0", > "permalink"=>"", "title"=>"test", "body"=>"test", "published"=>"1", > "published_at(1i)"=>"", "extended"=>"", "published_at(2i)"=>"", > "published_at(3i)"=>"", "published_at(4i)"=>"", "allow_comments"=>"1", > "published_at(5i)"=>"", "text_filter"=>"none", "keywords"=>""}, > "action"=>"new", "categories"=>["3"], "controller"=>"admin/content", > "attachments"=>{"filename_1"=>#<StringIO:0xb78bf12c>}} > > ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to MySQL > server during query: UPDATE sessions SET `created_at` = '2006-07-18 > 11:28:32', `sessid` = '471587cf16936fc5639dc575a4b91415', > `data` = > 'BAh7CDoOcmV0dXJuX3RvMDoJdXNlcm86CVVzZXIGOhBAYXR0cmlidXRlc3sQ\nIgluYW1lIhJBZG1pbmlzdHJhdG9yIhZub3RpZnlfdmlhX2phYmJlcjAiFW5v\ndGlmeV92aWFfZW1haWwwIh1ub3RpZnlfd2F0Y2hfbXlfYXJ0aWNsZXMwIgdp\nZCIGMSIXbm90aWZ5X29uX2NvbW1lbnRzMCILamFiYmVyMCIKbG9naW4iCmFk\nbWluIg1wYXNzd29yZCItMzAzNTYzNjRmODEwNTU1ZTlhZjllMjYxY2M3MDUy\nOGZiZjQ2ZjY2YyIKZW1haWwiF3RhbmppbmhvQGdtYWlsLmNvbSIbbm90aWZ5\nX29uX25ld19hcnRpY2xlczAiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6\nOkZsYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewA=\n', > `updated_at` = '2006-07-18 13:43:03' WHERE id = 4): > > .//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:199:in > `update' > > .//vendor/rails/activerecord/lib/active_record/base.rb:1723:in > `update_without_lock' > > .//vendor/rails/activerecord/lib/active_record/locking.rb:33:in > `update_without_callbacks' > > .//vendor/rails/activerecord/lib/active_record/callbacks.rb:274:in > `update_without_timestamps' > > .//vendor/rails/activerecord/lib/active_record/timestamp.rb:39:in > `update' > > .//vendor/rails/activerecord/lib/active_record/base.rb:1718:in > `create_or_update_without_callbacks' > > .//vendor/rails/activerecord/lib/active_record/callbacks.rb:249:in > `create_or_update' > > .//vendor/rails/activerecord/lib/active_record/base.rb:1392:in > `save_without_validation' > > .//vendor/rails/activerecord/lib/active_record/validations.rb:724:in > `save_without_transactions' > > .//vendor/rails/activerecord/lib/active_record/transactions.rb:126:in > `save' > .//vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in > `transaction' > > .//vendor/rails/activerecord/lib/active_record/transactions.rb:91:in > `transaction' > > .//vendor/rails/activerecord/lib/active_record/transactions.rb:118:in > `transaction' > > .//vendor/rails/activerecord/lib/active_record/transactions.rb:126:in > `save' > > .//vendor/rails/actionpack/lib/action_controller/session/active_record_store.rb:307:in > `update' > > .//vendor/rails/activerecord/lib/active_record/base.rb:794:in > `silence' > > .//vendor/rails/actionpack/lib/action_controller/session/active_record_store.rb:307:in > `update' > > .//vendor/rails/actionpack/lib/action_controller/session/active_record_store.rb:314:in > `close' > /usr/local/lib/ruby/1.8/cgi/session.rb:330:in `close' > > .//vendor/rails/actionpack/lib/action_controller/base.rb:984:in > `close_session' > > .//vendor/rails/actionpack/lib/action_controller/base.rb:1026:in > `process_cleanup_without_flash' > > .//vendor/rails/actionpack/lib/action_controller/flash.rb:147:in > `process_cleanup_without_filters' > > .//vendor/rails/actionpack/lib/action_controller/filters.rb:439:in > `process_cleanup_without_session_management_support' > > .//vendor/rails/actionpack/lib/action_controller/session_management.rb:126:in > `process_cleanup_without_components' > > .//vendor/rails/actionpack/lib/action_controller/components.rb:182:in > `process_cleanup' > > .//vendor/rails/actionpack/lib/action_controller/base.rb:385:in > `process_without_filters' > > .//vendor/rails/actionpack/lib/action_controller/filters.rb:377:in > `process_without_session_management_support' > > .//vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in > `process' > .//vendor/rails/railties/lib/dispatcher.rb:38:in > `dispatch' > .//vendor/rails/railties/lib/webrick_server.rb:115:in > `handle_dispatch' > .//vendor/rails/railties/lib/webrick_server.rb:81:in > `service' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in > `service' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in > `run' > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in > `start_thread' > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in > `start_thread' > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start' > .//vendor/rails/railties/lib/webrick_server.rb:67:in > `dispatch' > > .//vendor/rails/railties/lib/commands/servers/webrick.rb:59 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require' > > .//vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in > `require' > .//vendor/rails/railties/lib/commands/server.rb:30 > script/server:3 > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From steve.longdo at gmail.com Tue Jul 18 20:28:24 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Tue, 18 Jul 2006 19:28:24 -0500 Subject: [typo] Admin posting broken r1139 Message-ID: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> Running MySQL/Lightty on r1139. The following happens after posting through the admin interface. No textfilter was used/selected. Not sure if this the same as Trac ticket #948 or not. Didn't want to enter a ticket if it is the same issue. NOTE: The published date was not populated with anything and I entered a past date. When I return to the admin/articles page, it is there, but the same error happens after clicking on it. Also it breaks when trying to load the homepage? NoMethodError in Admin/content#show Showing *app/views/admin/content/show.rhtml* where line *#11* raised: undefined method `filter_text_for_controller' for #<String:0x225e59c> Extracted source (around line *#11*): 8: <h3><%=h @article.title %></h3> 9: 10: <div class="form"> 11: <div><%= @article.full_html %></div> 12: <p class="meta"><label>Posted:</label> <%=h @article.published_at.to_formatted_s(:long_weekday) %> by <%=h @article.author %></p> 13: <p class="meta"><label>Last updated:</label> <%=h @article.updated_at.to_formatted_s(:long_weekday) %></p> 14: <p class="meta"><label>Published:</label> <%=h (@article.published? ? "Yes" : "No") %></p> #{RAILS_ROOT}/app/models/content.rb:132:in `populate_html_fields' #{RAILS_ROOT}/app/models/content.rb:130:in `populate_html_fields' #{RAILS_ROOT}/app/models/content.rb:140:in `html' #{RAILS_ROOT}/app/models/content.rb:126:in `full_html' #{RAILS_ROOT}/app/views/admin/content/show.rhtml:11:in `_run_rhtml_admin_content_show' Looking at the data stored in the table shows that body_html is NULL? The textfilter that is stored looks like this: --- !ruby/object:TextFilter attributes: name: none filters: --- [] params: --- {} description: None markup: none new_record: true Do I need to add a new ticket to Trac? -- Thanks, -Steve http://www.stevelongdo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060718/2f9cd8ee/attachment.html From scott at sigkill.org Tue Jul 18 20:32:14 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 18 Jul 2006 17:32:14 -0700 Subject: [typo] Admin posting broken r1139 In-Reply-To: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> References: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> Message-ID: <14b7e5ef0607181732q3b9f84ccq9c6ad7454ef8df8c@mail.gmail.com> Go ahead and add it. If nothing else, it has a good stack trace, so it should be easy enough to fix. Scott On 7/18/06, Steve Longdo <steve.longdo at gmail.com> wrote: > Running MySQL/Lightty on r1139. The following happens after posting through > the admin interface. No textfilter was used/selected. Not sure if this the > same as Trac ticket #948 or not. Didn't want to enter a ticket if it is the > same issue. > > NOTE: The published date was not populated with anything and I entered a > past date. When I return to the admin/articles page, it is there, but the > same error happens after clicking on it. Also it breaks when trying to load > the homepage? > NoMethodError in Admin/content#show > > Showing app/views/admin/content/show.rhtml where line #11 > raised: undefined method `filter_text_for_controller' for > #<String:0x225e59c> > > > Extracted source (around line #11): 8: <h3><%=h @article.title %></h3> > 9: > 10: <div class="form"> > 11: <div><%= @article.full_html %></div> > 12: <p class="meta"><label>Posted:</label> <%=h @ > article.published_at.to_formatted_s(:long_weekday) %> by > <%=h @article.author %></p> > 13: <p class="meta"><label>Last updated:</label> <%=h > @article.updated_at.to_formatted_s > (:long_weekday) %></p> > 14: <p class="meta"><label>Published:</label> <%=h > (@article.published? ? "Yes" : "No") %></p> > > #{RAILS_ROOT}/app/models/content.rb:132:in > `populate_html_fields' > > #{RAILS_ROOT}/app/models/content.rb:130:in > `populate_html_fields' > #{RAILS_ROOT}/app/models/content.rb:140:in `html' > #{RAILS_ROOT}/app/models/content.rb:126:in `full_html' > #{RAILS_ROOT}/app/views/admin/content/show.rhtml:11:in > `_run_rhtml_admin_content_show' > > > > Looking at the data stored in the table shows that body_html is NULL? The > textfilter that is stored looks like this: > --- !ruby/object:TextFilter > attributes: > name: none > filters: --- [] > params: --- {} > description: None > markup: none > new_record: true > > Do I need to add a new ticket to Trac? > > -- > Thanks, > -Steve > http://www.stevelongdo.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From steve.longdo at gmail.com Tue Jul 18 22:52:23 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Tue, 18 Jul 2006 21:52:23 -0500 Subject: [typo] Admin posting broken r1139 In-Reply-To: <14b7e5ef0607181732q3b9f84ccq9c6ad7454ef8df8c@mail.gmail.com> References: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> <14b7e5ef0607181732q3b9f84ccq9c6ad7454ef8df8c@mail.gmail.com> Message-ID: <cc4e85f30607181952g30a85700y2f81179453171493@mail.gmail.com> Trac #1005. For some reason It won't come up though. I have an update for some reason the @article.text_filter is returning a YAML String instead of a TextFilter object. This is probably the culprit for Trac #1006 as well. I confirmed this in the console loading the saved new post(a) and an older one that still renders correctly(b): >> b.text_filter => #<TextFilter:0x26569bc @attributes={"name"=>"none", "filters"=>"--- []", "id"=>"1", "params"=>"--- {}", "description"=>"None", "markup"=>"none"}> >> a.text_filter => "--- !ruby/object:TextFilter \nattributes: \n name: none\n filters: --- []\n params: --- {}\n description: None\n markup: none\nnew_record: true\n" Don't see anything that has changed with this in the last few changesets, so I am not sure what is up. In the console I had to do the follwoing actions to get the page to load correctly: >> a.text_filter_id=1 => 1 >> a.text_filter=TextFilter.find 1 => #<TextFilter:0x250deac @attributes={"name"=>"none", "filters"=>"--- []", "id"=>"1", "params"=>"--- {}", "description"=>"None", "markup"=>"none"}> >> a.body_html="<p>Steve is LORD!</p>" => "<p>Steve is LORD!</p>" On 7/18/06, Scott Laird <scott at sigkill.org> wrote: > > Go ahead and add it. If nothing else, it has a good stack trace, so > it should be easy enough to fix. > > > Scott > > On 7/18/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > Running MySQL/Lightty on r1139. The following happens after posting > through > > the admin interface. No textfilter was used/selected. Not sure if this > the > > same as Trac ticket #948 or not. Didn't want to enter a ticket if it is > the > > same issue. > > > > NOTE: The published date was not populated with anything and I entered a > > past date. When I return to the admin/articles page, it is there, but > the > > same error happens after clicking on it. Also it breaks when trying to > load > > the homepage? > > NoMethodError in Admin/content#show > > > > Showing app/views/admin/content/show.rhtml where line #11 > > raised: undefined method `filter_text_for_controller' for > > #<String:0x225e59c> > > > > > > Extracted source (around line #11): 8: <h3><%=h @article.title %></h3> > > 9: > > 10: <div class="form"> > > 11: <div><%= @article.full_html %></div> > > 12: <p class="meta"><label>Posted:</label> <%=h @ > > article.published_at.to_formatted_s(:long_weekday) %> by > > <%=h @article.author %></p> > > 13: <p class="meta"><label>Last updated:</label> <%=h > > @article.updated_at.to_formatted_s > > (:long_weekday) %></p> > > 14: <p class="meta"><label>Published:</label> <%=h > > (@article.published? ? "Yes" : "No") %></p> > > > > #{RAILS_ROOT}/app/models/content.rb:132:in > > `populate_html_fields' > > > > #{RAILS_ROOT}/app/models/content.rb:130:in > > `populate_html_fields' > > #{RAILS_ROOT}/app/models/content.rb:140:in `html' > > #{RAILS_ROOT}/app/models/content.rb:126:in `full_html' > > #{RAILS_ROOT}/app/views/admin/content/show.rhtml:11:in > > `_run_rhtml_admin_content_show' > > > > > > > > Looking at the data stored in the table shows that body_html is > NULL? The > > textfilter that is stored looks like this: > > --- !ruby/object:TextFilter > > attributes: > > name: none > > filters: --- [] > > params: --- {} > > description: None > > markup: none > > new_record: true > > > > Do I need to add a new ticket to Trac? > > > > -- > > 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 > -- Thanks, -Steve http://www.stevelongdo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060718/9c6d7a8c/attachment-0001.html From scott at sigkill.org Tue Jul 18 23:13:43 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 18 Jul 2006 20:13:43 -0700 Subject: [typo] Admin posting broken r1139 In-Reply-To: <cc4e85f30607181952g30a85700y2f81179453171493@mail.gmail.com> References: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> <14b7e5ef0607181732q3b9f84ccq9c6ad7454ef8df8c@mail.gmail.com> <cc4e85f30607181952g30a85700y2f81179453171493@mail.gmail.com> Message-ID: <14b7e5ef0607182013w10cad5f4x34a59213c6ea4a56@mail.gmail.com> Which version of Ruby? Scott On 7/18/06, Steve Longdo <steve.longdo at gmail.com> wrote: > Trac #1005. For some reason It won't come up though. I have an update for > some reason the @article.text_filter is returning a YAML String instead of a > TextFilter object. This is probably the culprit for Trac #1006 as well. I > confirmed this in the console loading the saved new post(a) and an older one > that still renders correctly(b): > > >> b.text_filter > => #<TextFilter:0x26569bc @attributes={"name"=>"none", "filters"=>"--- []", > "id"=>"1", "params"=>"--- {}", "description"=>"None", "markup"=>"none"}> > >> a.text_filter > => "--- !ruby/object:TextFilter \nattributes: \n name: none\n filters: --- > []\n params: --- {}\n description: None\n markup: none\nnew_record: > true\n" > > Don't see anything that has changed with this in the last few changesets, so > I am not sure what is up. > > In the console I had to do the follwoing actions to get the page to load > correctly: > >> a.text_filter_id=1 > => 1 > >> a.text_filter=TextFilter.find 1 > => #<TextFilter:0x250deac @attributes={"name"=>"none", "filters"=>"--- []", > "id"=>"1", "params"=>"--- {}", "description"=>"None", "markup"=>"none"}> > >> a.body_html="<p>Steve is LORD!</p>" > => "<p>Steve is LORD!</p>" > > > > > On 7/18/06, Scott Laird <scott at sigkill.org> wrote: > > Go ahead and add it. If nothing else, it has a good stack trace, so > > it should be easy enough to fix. > > > > > > Scott > > > > On 7/18/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > Running MySQL/Lightty on r1139. The following happens after posting > through > > > the admin interface. No textfilter was used/selected. Not sure if this > the > > > same as Trac ticket #948 or not. Didn't want to enter a ticket if it is > the > > > same issue. > > > > > > NOTE: The published date was not populated with anything and I entered a > > > past date. When I return to the admin/articles page, it is there, but > the > > > same error happens after clicking on it. Also it breaks when trying to > load > > > the homepage? > > > NoMethodError in Admin/content#show > > > > > > Showing app/views/admin/content/show.rhtml where line > #11 > > > raised: undefined method `filter_text_for_controller' for > > > #<String:0x225e59c> > > > > > > > > > Extracted source (around line #11): 8: <h3><%=h @ article.title %></h3> > > > 9: > > > 10: <div class="form"> > > > 11: <div><%= @article.full_html %></div> > > > 12: <p class="meta"><label>Posted:</label> <%=h @ > > > article.published_at.to_formatted_s(:long_weekday) %> > by > > > <%=h @article.author %></p> > > > 13: <p class="meta"><label>Last updated:</label> <%=h > > > @article.updated_at.to_formatted_s > > > (:long_weekday) %></p> > > > 14: <p class="meta"><label>Published:</label> <%=h > > > (@article.published? ? "Yes" : "No") %></p> > > > > > > #{RAILS_ROOT}/app/models/content.rb:132:in > > > `populate_html_fields' > > > > > > #{RAILS_ROOT}/app/models/content.rb:130:in > > > `populate_html_fields' > > > #{RAILS_ROOT}/app/models/content.rb:140:in `html' > > > #{RAILS_ROOT}/app/models/content.rb:126:in `full_html' > > > #{RAILS_ROOT}/app/views/admin/content/show.rhtml:11:in > > > `_run_rhtml_admin_content_show' > > > > > > > > > > > > Looking at the data stored in the table shows that body_html is NULL? > The > > > textfilter that is stored looks like this: > > > --- !ruby/object:TextFilter > > > attributes: > > > name: none > > > filters: --- [] > > > params: --- {} > > > description: None > > > markup: none > > > new_record: true > > > > > > Do I need to add a new ticket to Trac? > > > > > > -- > > > 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 > > > > > > -- > > Thanks, > -Steve > http://www.stevelongdo.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From scott at sigkill.org Tue Jul 18 23:14:15 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 18 Jul 2006 20:14:15 -0700 Subject: [typo] Admin posting broken r1139 In-Reply-To: <14b7e5ef0607182013w10cad5f4x34a59213c6ea4a56@mail.gmail.com> References: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> <14b7e5ef0607181732q3b9f84ccq9c6ad7454ef8df8c@mail.gmail.com> <cc4e85f30607181952g30a85700y2f81179453171493@mail.gmail.com> <14b7e5ef0607182013w10cad5f4x34a59213c6ea4a56@mail.gmail.com> Message-ID: <14b7e5ef0607182014q3ca62956m1107b3e63b2835e1@mail.gmail.com> Or, more explicitly, are you sure that you aren't running Ruby 1.8.3? Scott On 7/18/06, Scott Laird <scott at sigkill.org> wrote: > Which version of Ruby? > > > Scott > > On 7/18/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > Trac #1005. For some reason It won't come up though. I have an update for > > some reason the @article.text_filter is returning a YAML String instead of a > > TextFilter object. This is probably the culprit for Trac #1006 as well. I > > confirmed this in the console loading the saved new post(a) and an older one > > that still renders correctly(b): > > > > >> b.text_filter > > => #<TextFilter:0x26569bc @attributes={"name"=>"none", "filters"=>"--- []", > > "id"=>"1", "params"=>"--- {}", "description"=>"None", "markup"=>"none"}> > > >> a.text_filter > > => "--- !ruby/object:TextFilter \nattributes: \n name: none\n filters: --- > > []\n params: --- {}\n description: None\n markup: none\nnew_record: > > true\n" > > > > Don't see anything that has changed with this in the last few changesets, so > > I am not sure what is up. > > > > In the console I had to do the follwoing actions to get the page to load > > correctly: > > >> a.text_filter_id=1 > > => 1 > > >> a.text_filter=TextFilter.find 1 > > => #<TextFilter:0x250deac @attributes={"name"=>"none", "filters"=>"--- []", > > "id"=>"1", "params"=>"--- {}", "description"=>"None", "markup"=>"none"}> > > >> a.body_html="<p>Steve is LORD!</p>" > > => "<p>Steve is LORD!</p>" > > > > > > > > > > On 7/18/06, Scott Laird <scott at sigkill.org> wrote: > > > Go ahead and add it. If nothing else, it has a good stack trace, so > > > it should be easy enough to fix. > > > > > > > > > Scott > > > > > > On 7/18/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > > Running MySQL/Lightty on r1139. The following happens after posting > > through > > > > the admin interface. No textfilter was used/selected. Not sure if this > > the > > > > same as Trac ticket #948 or not. Didn't want to enter a ticket if it is > > the > > > > same issue. > > > > > > > > NOTE: The published date was not populated with anything and I entered a > > > > past date. When I return to the admin/articles page, it is there, but > > the > > > > same error happens after clicking on it. Also it breaks when trying to > > load > > > > the homepage? > > > > NoMethodError in Admin/content#show > > > > > > > > Showing app/views/admin/content/show.rhtml where line > > #11 > > > > raised: undefined method `filter_text_for_controller' for > > > > #<String:0x225e59c> > > > > > > > > > > > > Extracted source (around line #11): 8: <h3><%=h @ article.title %></h3> > > > > 9: > > > > 10: <div class="form"> > > > > 11: <div><%= @article.full_html %></div> > > > > 12: <p class="meta"><label>Posted:</label> <%=h @ > > > > article.published_at.to_formatted_s(:long_weekday) %> > > by > > > > <%=h @article.author %></p> > > > > 13: <p class="meta"><label>Last updated:</label> <%=h > > > > @article.updated_at.to_formatted_s > > > > (:long_weekday) %></p> > > > > 14: <p class="meta"><label>Published:</label> <%=h > > > > (@article.published? ? "Yes" : "No") %></p> > > > > > > > > #{RAILS_ROOT}/app/models/content.rb:132:in > > > > `populate_html_fields' > > > > > > > > #{RAILS_ROOT}/app/models/content.rb:130:in > > > > `populate_html_fields' > > > > #{RAILS_ROOT}/app/models/content.rb:140:in `html' > > > > #{RAILS_ROOT}/app/models/content.rb:126:in `full_html' > > > > #{RAILS_ROOT}/app/views/admin/content/show.rhtml:11:in > > > > `_run_rhtml_admin_content_show' > > > > > > > > > > > > > > > > Looking at the data stored in the table shows that body_html is NULL? > > The > > > > textfilter that is stored looks like this: > > > > --- !ruby/object:TextFilter > > > > attributes: > > > > name: none > > > > filters: --- [] > > > > params: --- {} > > > > description: None > > > > markup: none > > > > new_record: true > > > > > > > > Do I need to add a new ticket to Trac? > > > > > > > > -- > > > > 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 > > > > > > > > > > > -- > > > > Thanks, > > -Steve > > http://www.stevelongdo.com > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > From steve.longdo at gmail.com Tue Jul 18 23:17:48 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Tue, 18 Jul 2006 22:17:48 -0500 Subject: [typo] Admin posting broken r1139 In-Reply-To: <14b7e5ef0607182014q3ca62956m1107b3e63b2835e1@mail.gmail.com> References: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> <14b7e5ef0607181732q3b9f84ccq9c6ad7454ef8df8c@mail.gmail.com> <cc4e85f30607181952g30a85700y2f81179453171493@mail.gmail.com> <14b7e5ef0607182013w10cad5f4x34a59213c6ea4a56@mail.gmail.com> <14b7e5ef0607182014q3ca62956m1107b3e63b2835e1@mail.gmail.com> Message-ID: <cc4e85f30607182017j700f224ck187b1210d11a83ff@mail.gmail.com> 12-207-207-84:~ rhesus$ ruby -v ruby 1.8.4 (2005-12-24) [powerpc-darwin8.4.0] Did anything change in the admin code besides the css? On 7/18/06, Scott Laird <scott at sigkill.org> wrote: > > Or, more explicitly, are you sure that you aren't running Ruby 1.8.3? > > > Scott > > On 7/18/06, Scott Laird <scott at sigkill.org> wrote: > > Which version of Ruby? > > > > > > Scott > > > > On 7/18/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > Trac #1005. For some reason It won't come up though. I have an > update for > > > some reason the @article.text_filter is returning a YAML String > instead of a > > > TextFilter object. This is probably the culprit for Trac #1006 as > well. I > > > confirmed this in the console loading the saved new post(a) and an > older one > > > that still renders correctly(b): > > > > > > >> b.text_filter > > > => #<TextFilter:0x26569bc @attributes={"name"=>"none", "filters"=>"--- > []", > > > "id"=>"1", "params"=>"--- {}", "description"=>"None", > "markup"=>"none"}> > > > >> a.text_filter > > > => "--- !ruby/object:TextFilter \nattributes: \n name: > none\n filters: --- > > > []\n params: --- {}\n description: None\n markup: none\nnew_record: > > > true\n" > > > > > > Don't see anything that has changed with this in the last few > changesets, so > > > I am not sure what is up. > > > > > > In the console I had to do the follwoing actions to get the page to > load > > > correctly: > > > >> a.text_filter_id=1 > > > => 1 > > > >> a.text_filter=TextFilter.find 1 > > > => #<TextFilter:0x250deac @attributes={"name"=>"none", "filters"=>"--- > []", > > > "id"=>"1", "params"=>"--- {}", "description"=>"None", > "markup"=>"none"}> > > > >> a.body_html="<p>Steve is LORD!</p>" > > > => "<p>Steve is LORD!</p>" > > > > > > > > > > > > > > > On 7/18/06, Scott Laird <scott at sigkill.org> wrote: > > > > Go ahead and add it. If nothing else, it has a good stack trace, so > > > > it should be easy enough to fix. > > > > > > > > > > > > Scott > > > > > > > > On 7/18/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > > > Running MySQL/Lightty on r1139. The following happens after > posting > > > through > > > > > the admin interface. No textfilter was used/selected. Not sure > if this > > > the > > > > > same as Trac ticket #948 or not. Didn't want to enter a ticket if > it is > > > the > > > > > same issue. > > > > > > > > > > NOTE: The published date was not populated with anything and I > entered a > > > > > past date. When I return to the admin/articles page, it is there, > but > > > the > > > > > same error happens after clicking on it. Also it breaks when > trying to > > > load > > > > > the homepage? > > > > > NoMethodError in Admin/content#show > > > > > > > > > > Showing app/views/admin/content/show.rhtml where line > > > #11 > > > > > raised: undefined method `filter_text_for_controller' for > > > > > #<String:0x225e59c> > > > > > > > > > > > > > > > Extracted source (around line #11): 8: <h3><%=h @ article.title%></h3> > > > > > 9: > > > > > 10: <div class="form"> > > > > > 11: <div><%= @article.full_html %></div> > > > > > 12: <p class="meta"><label>Posted:</label> <%=h @ > > > > > article.published_at.to_formatted_s(:long_weekday) %> > > > by > > > > > <%=h @article.author %></p> > > > > > 13: <p class="meta"><label>Last updated:</label> <%=h > > > > > @article.updated_at.to_formatted_s > > > > > (:long_weekday) %></p> > > > > > 14: <p class="meta"><label>Published:</label> <%=h > > > > > (@article.published? ? "Yes" : "No") %></p> > > > > > > > > > > #{RAILS_ROOT}/app/models/content.rb:132:in > > > > > `populate_html_fields' > > > > > > > > > > #{RAILS_ROOT}/app/models/content.rb:130:in > > > > > `populate_html_fields' > > > > > #{RAILS_ROOT}/app/models/content.rb:140:in `html' > > > > > #{RAILS_ROOT}/app/models/content.rb:126:in `full_html' > > > > > #{RAILS_ROOT}/app/views/admin/content/show.rhtml:11:in > > > > > `_run_rhtml_admin_content_show' > > > > > > > > > > > > > > > > > > > > Looking at the data stored in the table shows that body_html is > NULL? > > > The > > > > > textfilter that is stored looks like this: > > > > > --- !ruby/object:TextFilter > > > > > attributes: > > > > > name: none > > > > > filters: --- [] > > > > > params: --- {} > > > > > description: None > > > > > markup: none > > > > > new_record: true > > > > > > > > > > Do I need to add a new ticket to Trac? > > > > > > > > > > -- > > > > > 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 > > > > > > > > > > > > > > > > -- > > > > > > 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 > -- Thanks, -Steve http://www.stevelongdo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060718/f030c057/attachment.html From bronson at rinspin.com Wed Jul 19 00:06:59 2006 From: bronson at rinspin.com (Scott Bronson) Date: Tue, 18 Jul 2006 21:06:59 -0700 Subject: [typo] Admin posting broken r1139 In-Reply-To: <cc4e85f30607181952g30a85700y2f81179453171493@mail.gmail.com> References: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> <14b7e5ef0607181732q3b9f84ccq9c6ad7454ef8df8c@mail.gmail.com> <cc4e85f30607181952g30a85700y2f81179453171493@mail.gmail.com> Message-ID: <1153282019.20753.64.camel@lyra.rinspin.com> On Tue, 2006-07-18 at 21:52 -0500, Steve Longdo wrote: > I have an update for some reason the @article.text_filter is returning > a YAML String instead of a TextFilter object. This is probably the > culprit for Trac #1006 as well. I confirmed this in the console > loading the saved new post(a) and an older one that still renders > correctly(b): When I encountered symptoms like this, it's because my database schema was hosed. Probably happened when I tried to fix the migrations 6 months ago. My database had an extra table that wasn't being used but had the same name as a variable in the code. AR wasn't very happy about that and instantiated YAML strings instead of objects. In my case, I dropped the table and things started working. So, you might want to give your schema a close look-see. Especially check for extra tables. I've been meaning to write a Typo database lint tool... It would ensure that no extra tables exist, all table references work, no duplicates, etc. Ah, if only I had a bit more time... - Scott From steve.longdo at gmail.com Wed Jul 19 00:26:48 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Tue, 18 Jul 2006 23:26:48 -0500 Subject: [typo] Admin posting broken r1139 In-Reply-To: <1153282019.20753.64.camel@lyra.rinspin.com> References: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> <14b7e5ef0607181732q3b9f84ccq9c6ad7454ef8df8c@mail.gmail.com> <cc4e85f30607181952g30a85700y2f81179453171493@mail.gmail.com> <1153282019.20753.64.camel@lyra.rinspin.com> Message-ID: <cc4e85f30607182126h5f7ed555lea854c37e8b2a60d@mail.gmail.com> I've never personally edited my typo table structure. I do know one of the migrations ran and turned my UTF-8 data into ASCII. Only because I had some language characters outside the overlap in the charactersets. I'm suspicious of the change in the ContentObserver class from 2 weeks ago. It seems to be responsible for populating the html_fields before a save. I suspect if I remove the commentted line my body_html field will get populated again. At any rate I show 18 tables. Is that right? mysql> show tables; +-----------------------+ | Tables_in_rhesus_typo | +-----------------------+ | articles_categories | | articles_tags | | blacklist_patterns | | blogs | | categories | | contents | | notifications | | page_caches | | pings | | redirects | | resources | | schema_info | | sessions | | sidebars | | tags | | text_filters | | triggers | | users | +-----------------------+ 18 rows in set (0.00 sec) mysql> desc contents;+------------------+--------------+------+-----+---------+----------------+| Field | Type | Null | Key | Default | Extra |+------------------+--------------+------+-----+---------+----------------+| id | int(11) | | PRI | NULL | auto_increment || title | varchar(255) | YES | | NULL | || author | varchar(255) | YES | | NULL | || body | text | YES | | NULL | || body_html | text | YES | | NULL | || extended | text | YES | | NULL | || excerpt | text | YES | | NULL | || keywords | varchar(255) | YES | | NULL | || text_filter | varchar(255) | YES | | NULL | || created_at | datetime | YES | | NULL | || updated_at | datetime | YES | | NULL | || extended_html | text | YES | | NULL | || user_id | int(11) | YES | | NULL | || permalink | varchar(255) | YES | | NULL | || guid | varchar(255) | YES | | NULL | || text_filter_id | int(11) | YES | | NULL | | | whiteboard | text | YES | | NULL | | | type | varchar(255) | YES | | NULL | | | article_id | int(11) | YES | MUL | NULL | | | email | varchar(255) | YES | | NULL | | | url | varchar(255) | YES | | NULL | | | ip | varchar(40) | YES | | NULL | | | blog_name | varchar(255) | YES | | NULL | | | name | varchar(255) | YES | | NULL | | | comments_count | int(11) | YES | | NULL | | | trackbacks_count | int(11) | YES | | NULL | | | published | tinyint(1) | YES | | 0 | | | allow_pings | tinyint(1) | YES | | NULL | | | allow_comments | tinyint(1) | YES | | NULL | | | blog_id | int(11) | | MUL | 0 | | | published_at | datetime | YES | | NULL | | +------------------+--------------+------+-----+---------+----------------+ 31 rows in set (0.00 sec) On 7/18/06, Scott Bronson <bronson at rinspin.com> wrote: > On Tue, 2006-07-18 at 21:52 -0500, Steve Longdo wrote: > > I have an update for some reason the @article.text_filter is returning > > a YAML String instead of a TextFilter object. This is probably the > > culprit for Trac #1006 as well. I confirmed this in the console > > loading the saved new post(a) and an older one that still renders > > correctly(b): > > When I encountered symptoms like this, it's because my database schema > was hosed. Probably happened when I tried to fix the migrations 6 > months ago. My database had an extra table that wasn't being used but > had the same name as a variable in the code. AR wasn't very happy about > that and instantiated YAML strings instead of objects. > > In my case, I dropped the table and things started working. > > So, you might want to give your schema a close look-see. Especially > check for extra tables. > > I've been meaning to write a Typo database lint tool... It would ensure > that no extra tables exist, all table references work, no duplicates, > etc. Ah, if only I had a bit more time... > > - Scott > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Thanks, -Steve http://www.stevelongdo.com From bronson at rinspin.com Wed Jul 19 00:38:01 2006 From: bronson at rinspin.com (Scott Bronson) Date: Tue, 18 Jul 2006 21:38:01 -0700 Subject: [typo] Admin posting broken r1139 In-Reply-To: <cc4e85f30607182126h5f7ed555lea854c37e8b2a60d@mail.gmail.com> References: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> <14b7e5ef0607181732q3b9f84ccq9c6ad7454ef8df8c@mail.gmail.com> <cc4e85f30607181952g30a85700y2f81179453171493@mail.gmail.com> <1153282019.20753.64.camel@lyra.rinspin.com> <cc4e85f30607182126h5f7ed555lea854c37e8b2a60d@mail.gmail.com> Message-ID: <1153283882.20753.67.camel@lyra.rinspin.com> On Tue, 2006-07-18 at 23:26 -0500, Steve Longdo wrote: > At any rate I show 18 tables. Is that right? bronson at lyra:~/typo/local/db$ grep "CREATE TABLE" schema.mysql.sql CREATE TABLE articles_categories ( CREATE TABLE articles_tags ( CREATE TABLE blacklist_patterns ( CREATE TABLE blogs ( CREATE TABLE categories ( CREATE TABLE contents ( CREATE TABLE notifications ( CREATE TABLE page_caches ( CREATE TABLE pings ( CREATE TABLE redirects ( CREATE TABLE resources ( CREATE TABLE sessions ( CREATE TABLE sidebars ( CREATE TABLE tags ( CREATE TABLE text_filters ( CREATE TABLE triggers ( CREATE TABLE users ( CREATE TABLE schema_info ( Looks right. > mysql> show tables; > +-----------------------+ > | Tables_in_rhesus_typo | > +-----------------------+ > | articles_categories | > | articles_tags | > | blacklist_patterns | > | blogs | > | categories | > | contents | > | notifications | > | page_caches | > | pings | > | redirects | > | resources | > | schema_info | > | sessions | > | sidebars | > | tags | > | text_filters | > | triggers | > | users | > +-----------------------+ > 18 rows in set (0.00 sec) > > mysql> desc contents;+------------------+--------------+------+-----+---------+----------------+| > Field | Type | Null | Key | Default | Extra > |+------------------+--------------+------+-----+---------+----------------+| > id | int(11) | | PRI | NULL | > auto_increment || title | varchar(255) | YES | | NULL > | || author | varchar(255) | YES | | > NULL | || body | text | YES | > | NULL | || body_html | text | YES > | | NULL | || extended | text | > YES | | NULL | || excerpt | text > | YES | | NULL | || keywords | > varchar(255) | YES | | NULL | || text_filter > | varchar(255) | YES | | NULL | || created_at > | datetime | YES | | NULL | || > updated_at | datetime | YES | | NULL | > || extended_html | text | YES | | NULL | > || user_id | int(11) | YES | | NULL | > || permalink | varchar(255) | YES | | NULL | > || guid | varchar(255) | YES | | NULL > | || text_filter_id | int(11) | YES | | > NULL | | > | whiteboard | text | YES | | NULL | | > | type | varchar(255) | YES | | NULL | | > | article_id | int(11) | YES | MUL | NULL | | > | email | varchar(255) | YES | | NULL | | > | url | varchar(255) | YES | | NULL | | > | ip | varchar(40) | YES | | NULL | | > | blog_name | varchar(255) | YES | | NULL | | > | name | varchar(255) | YES | | NULL | | > | comments_count | int(11) | YES | | NULL | | > | trackbacks_count | int(11) | YES | | NULL | | > | published | tinyint(1) | YES | | 0 | | > | allow_pings | tinyint(1) | YES | | NULL | | > | allow_comments | tinyint(1) | YES | | NULL | | > | blog_id | int(11) | | MUL | 0 | | > | published_at | datetime | YES | | NULL | | > +------------------+--------------+------+-----+---------+----------------+ > 31 rows in set (0.00 sec) > > On 7/18/06, Scott Bronson <bronson at rinspin.com> wrote: > > On Tue, 2006-07-18 at 21:52 -0500, Steve Longdo wrote: > > > I have an update for some reason the @article.text_filter is returning > > > a YAML String instead of a TextFilter object. This is probably the > > > culprit for Trac #1006 as well. I confirmed this in the console > > > loading the saved new post(a) and an older one that still renders > > > correctly(b): > > > > When I encountered symptoms like this, it's because my database schema > > was hosed. Probably happened when I tried to fix the migrations 6 > > months ago. My database had an extra table that wasn't being used but > > had the same name as a variable in the code. AR wasn't very happy about > > that and instantiated YAML strings instead of objects. > > > > In my case, I dropped the table and things started working. > > > > So, you might want to give your schema a close look-see. Especially > > check for extra tables. > > > > I've been meaning to write a Typo database lint tool... It would ensure > > that no extra tables exist, all table references work, no duplicates, > > etc. Ah, if only I had a bit more time... > > > > - Scott > > > > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > From steve.longdo at gmail.com Wed Jul 19 00:44:13 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Tue, 18 Jul 2006 23:44:13 -0500 Subject: [typo] Admin posting broken r1139 In-Reply-To: <cc4e85f30607182126h5f7ed555lea854c37e8b2a60d@mail.gmail.com> References: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> <14b7e5ef0607181732q3b9f84ccq9c6ad7454ef8df8c@mail.gmail.com> <cc4e85f30607181952g30a85700y2f81179453171493@mail.gmail.com> <1153282019.20753.64.camel@lyra.rinspin.com> <cc4e85f30607182126h5f7ed555lea854c37e8b2a60d@mail.gmail.com> Message-ID: <cc4e85f30607182144w264f8ccbw78a3e6d21fa97815@mail.gmail.com> A little research on populate_html_fields shows it sprang into existence between r1004 and r1033 in the content.rb model. As near as I can see it was always expecting a controller of some kind and never the instance of Content that the ContentObserver(also r1033) sends in. 101 def html(controller,what = :all) 99 def populate_html_fields(controller) *sigh* I will into it some more tomorrow, tired now. On 7/18/06, Steve Longdo <steve.longdo at gmail.com> wrote: > I've never personally edited my typo table structure. I do know one > of the migrations ran and turned my UTF-8 data into ASCII. Only > because I had some language characters outside the overlap in the > charactersets. > > I'm suspicious of the change in the ContentObserver class from 2 weeks > ago. It seems to be responsible for populating the html_fields before > a save. I suspect if I remove the commentted line my body_html field > will get populated again. > > At any rate I show 18 tables. Is that right? > > mysql> show tables; > +-----------------------+ > | Tables_in_rhesus_typo | > +-----------------------+ > | articles_categories | > | articles_tags | > | blacklist_patterns | > | blogs | > | categories | > | contents | > | notifications | > | page_caches | > | pings | > | redirects | > | resources | > | schema_info | > | sessions | > | sidebars | > | tags | > | text_filters | > | triggers | > | users | > +-----------------------+ > 18 rows in set (0.00 sec) > > mysql> desc contents;+------------------+--------------+------+-----+---------+----------------+| > Field | Type | Null | Key | Default | Extra > |+------------------+--------------+------+-----+---------+----------------+| > id | int(11) | | PRI | NULL | > auto_increment || title | varchar(255) | YES | | NULL > | || author | varchar(255) | YES | | > NULL | || body | text | YES | > | NULL | || body_html | text | YES > | | NULL | || extended | text | > YES | | NULL | || excerpt | text > | YES | | NULL | || keywords | > varchar(255) | YES | | NULL | || text_filter > | varchar(255) | YES | | NULL | || created_at > | datetime | YES | | NULL | || > updated_at | datetime | YES | | NULL | > || extended_html | text | YES | | NULL | > || user_id | int(11) | YES | | NULL | > || permalink | varchar(255) | YES | | NULL | > || guid | varchar(255) | YES | | NULL > | || text_filter_id | int(11) | YES | | > NULL | | > | whiteboard | text | YES | | NULL | | > | type | varchar(255) | YES | | NULL | | > | article_id | int(11) | YES | MUL | NULL | | > | email | varchar(255) | YES | | NULL | | > | url | varchar(255) | YES | | NULL | | > | ip | varchar(40) | YES | | NULL | | > | blog_name | varchar(255) | YES | | NULL | | > | name | varchar(255) | YES | | NULL | | > | comments_count | int(11) | YES | | NULL | | > | trackbacks_count | int(11) | YES | | NULL | | > | published | tinyint(1) | YES | | 0 | | > | allow_pings | tinyint(1) | YES | | NULL | | > | allow_comments | tinyint(1) | YES | | NULL | | > | blog_id | int(11) | | MUL | 0 | | > | published_at | datetime | YES | | NULL | | > +------------------+--------------+------+-----+---------+----------------+ > 31 rows in set (0.00 sec) > > On 7/18/06, Scott Bronson <bronson at rinspin.com> wrote: > > On Tue, 2006-07-18 at 21:52 -0500, Steve Longdo wrote: > > > I have an update for some reason the @article.text_filter is returning > > > a YAML String instead of a TextFilter object. This is probably the > > > culprit for Trac #1006 as well. I confirmed this in the console > > > loading the saved new post(a) and an older one that still renders > > > correctly(b): > > > > When I encountered symptoms like this, it's because my database schema > > was hosed. Probably happened when I tried to fix the migrations 6 > > months ago. My database had an extra table that wasn't being used but > > had the same name as a variable in the code. AR wasn't very happy about > > that and instantiated YAML strings instead of objects. > > > > In my case, I dropped the table and things started working. > > > > So, you might want to give your schema a close look-see. Especially > > check for extra tables. > > > > I've been meaning to write a Typo database lint tool... It would ensure > > that no extra tables exist, all table references work, no duplicates, > > etc. Ah, if only I had a bit more time... > > > > - Scott > > > > > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > -- > Thanks, > -Steve > http://www.stevelongdo.com > -- Thanks, -Steve http://www.stevelongdo.com From scott at sigkill.org Wed Jul 19 09:10:43 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 19 Jul 2006 06:10:43 -0700 Subject: [typo] Admin posting broken r1139 In-Reply-To: <cc4e85f30607182144w264f8ccbw78a3e6d21fa97815@mail.gmail.com> References: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> <14b7e5ef0607181732q3b9f84ccq9c6ad7454ef8df8c@mail.gmail.com> <cc4e85f30607181952g30a85700y2f81179453171493@mail.gmail.com> <1153282019.20753.64.camel@lyra.rinspin.com> <cc4e85f30607182126h5f7ed555lea854c37e8b2a60d@mail.gmail.com> <cc4e85f30607182144w264f8ccbw78a3e6d21fa97815@mail.gmail.com> Message-ID: <14b7e5ef0607190610u6ab2594bgf16bb5b7fd490688@mail.gmail.com> This is a database/active record problem, *not* a text filter problem. The problem, plain and simple, is that article.text_filter is supposed to be a TextFilter object, but instead it's a block of YAML. I'm not quite sure how that could happen--it shouldn't ever have been YAML in the first place, so it's not like it missed a conversion step. Oh, wait--there it is. Your schema is broken. You have a 'text_filter' field in contents; there should only be a 'text_filter_id' field. Back up your db and drop text_filter, and you should be okay. Somehow you missed that migration. Scott On 7/18/06, Steve Longdo <steve.longdo at gmail.com> wrote: > A little research on populate_html_fields shows it sprang into > existence between r1004 and r1033 in the content.rb model. As near as > I can see it was always expecting a controller of some kind and never > the instance of Content that the ContentObserver(also r1033) sends in. > > 101 def html(controller,what = :all) > 99 def populate_html_fields(controller) > > *sigh* I will into it some more tomorrow, tired now. > > On 7/18/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > I've never personally edited my typo table structure. I do know one > > of the migrations ran and turned my UTF-8 data into ASCII. Only > > because I had some language characters outside the overlap in the > > charactersets. > > > > I'm suspicious of the change in the ContentObserver class from 2 weeks > > ago. It seems to be responsible for populating the html_fields before > > a save. I suspect if I remove the commentted line my body_html field > > will get populated again. > > > > At any rate I show 18 tables. Is that right? > > > > mysql> show tables; > > +-----------------------+ > > | Tables_in_rhesus_typo | > > +-----------------------+ > > | articles_categories | > > | articles_tags | > > | blacklist_patterns | > > | blogs | > > | categories | > > | contents | > > | notifications | > > | page_caches | > > | pings | > > | redirects | > > | resources | > > | schema_info | > > | sessions | > > | sidebars | > > | tags | > > | text_filters | > > | triggers | > > | users | > > +-----------------------+ > > 18 rows in set (0.00 sec) > > > > mysql> desc contents;+------------------+--------------+------+-----+---------+----------------+| > > Field | Type | Null | Key | Default | Extra > > |+------------------+--------------+------+-----+---------+----------------+| > > id | int(11) | | PRI | NULL | > > auto_increment || title | varchar(255) | YES | | NULL > > | || author | varchar(255) | YES | | > > NULL | || body | text | YES | > > | NULL | || body_html | text | YES > > | | NULL | || extended | text | > > YES | | NULL | || excerpt | text > > | YES | | NULL | || keywords | > > varchar(255) | YES | | NULL | || text_filter > > | varchar(255) | YES | | NULL | || created_at > > | datetime | YES | | NULL | || > > updated_at | datetime | YES | | NULL | > > || extended_html | text | YES | | NULL | > > || user_id | int(11) | YES | | NULL | > > || permalink | varchar(255) | YES | | NULL | > > || guid | varchar(255) | YES | | NULL > > | || text_filter_id | int(11) | YES | | > > NULL | | > > | whiteboard | text | YES | | NULL | | > > | type | varchar(255) | YES | | NULL | | > > | article_id | int(11) | YES | MUL | NULL | | > > | email | varchar(255) | YES | | NULL | | > > | url | varchar(255) | YES | | NULL | | > > | ip | varchar(40) | YES | | NULL | | > > | blog_name | varchar(255) | YES | | NULL | | > > | name | varchar(255) | YES | | NULL | | > > | comments_count | int(11) | YES | | NULL | | > > | trackbacks_count | int(11) | YES | | NULL | | > > | published | tinyint(1) | YES | | 0 | | > > | allow_pings | tinyint(1) | YES | | NULL | | > > | allow_comments | tinyint(1) | YES | | NULL | | > > | blog_id | int(11) | | MUL | 0 | | > > | published_at | datetime | YES | | NULL | | > > +------------------+--------------+------+-----+---------+----------------+ > > 31 rows in set (0.00 sec) > > > > On 7/18/06, Scott Bronson <bronson at rinspin.com> wrote: > > > On Tue, 2006-07-18 at 21:52 -0500, Steve Longdo wrote: > > > > I have an update for some reason the @article.text_filter is returning > > > > a YAML String instead of a TextFilter object. This is probably the > > > > culprit for Trac #1006 as well. I confirmed this in the console > > > > loading the saved new post(a) and an older one that still renders > > > > correctly(b): > > > > > > When I encountered symptoms like this, it's because my database schema > > > was hosed. Probably happened when I tried to fix the migrations 6 > > > months ago. My database had an extra table that wasn't being used but > > > had the same name as a variable in the code. AR wasn't very happy about > > > that and instantiated YAML strings instead of objects. > > > > > > In my case, I dropped the table and things started working. > > > > > > So, you might want to give your schema a close look-see. Especially > > > check for extra tables. > > > > > > I've been meaning to write a Typo database lint tool... It would ensure > > > that no extra tables exist, all table references work, no duplicates, > > > etc. Ah, if only I had a bit more time... > > > > > > - Scott > > > > > > > > > > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > -- > > Thanks, > > -Steve > > http://www.stevelongdo.com > > > > > -- > Thanks, > -Steve > http://www.stevelongdo.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From steve.longdo at gmail.com Wed Jul 19 18:23:46 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Wed, 19 Jul 2006 17:23:46 -0500 Subject: [typo] Admin posting broken r1139 In-Reply-To: <14b7e5ef0607190610u6ab2594bgf16bb5b7fd490688@mail.gmail.com> References: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> <14b7e5ef0607181732q3b9f84ccq9c6ad7454ef8df8c@mail.gmail.com> <cc4e85f30607181952g30a85700y2f81179453171493@mail.gmail.com> <1153282019.20753.64.camel@lyra.rinspin.com> <cc4e85f30607182126h5f7ed555lea854c37e8b2a60d@mail.gmail.com> <cc4e85f30607182144w264f8ccbw78a3e6d21fa97815@mail.gmail.com> <14b7e5ef0607190610u6ab2594bgf16bb5b7fd490688@mail.gmail.com> Message-ID: <cc4e85f30607191523w1a4de7d0s7e9fd68ad6e6ec6d@mail.gmail.com> I dropped the text_filter column. The admin page saves text_filter not text_filter_id. So I can't use filters now. More confusingly it saves text_filter by name instead of just id. Seems to be some confusion between how contents table and blogs table work. Not sure how you would like this resolved. On 7/19/06, Scott Laird <scott at sigkill.org> wrote: > > This is a database/active record problem, *not* a text filter problem. > > The problem, plain and simple, is that article.text_filter is supposed > to be a TextFilter object, but instead it's a block of YAML. I'm not > quite sure how that could happen--it shouldn't ever have been YAML in > the first place, so it's not like it missed a conversion step. > > Oh, wait--there it is. Your schema is broken. You have a > 'text_filter' field in contents; there should only be a > 'text_filter_id' field. Back up your db and drop text_filter, and you > should be okay. Somehow you missed that migration. > > > Scott > > On 7/18/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > A little research on populate_html_fields shows it sprang into > > existence between r1004 and r1033 in the content.rb model. As near as > > I can see it was always expecting a controller of some kind and never > > the instance of Content that the ContentObserver(also r1033) sends in. > > > > 101 def html(controller,what = :all) > > 99 def populate_html_fields(controller) > > > > *sigh* I will into it some more tomorrow, tired now. > > > > On 7/18/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > I've never personally edited my typo table structure. I do know one > > > of the migrations ran and turned my UTF-8 data into ASCII. Only > > > because I had some language characters outside the overlap in the > > > charactersets. > > > > > > I'm suspicious of the change in the ContentObserver class from 2 weeks > > > ago. It seems to be responsible for populating the html_fields before > > > a save. I suspect if I remove the commentted line my body_html field > > > will get populated again. > > > > > > At any rate I show 18 tables. Is that right? > > > > > > mysql> show tables; > > > +-----------------------+ > > > | Tables_in_rhesus_typo | > > > +-----------------------+ > > > | articles_categories | > > > | articles_tags | > > > | blacklist_patterns | > > > | blogs | > > > | categories | > > > | contents | > > > | notifications | > > > | page_caches | > > > | pings | > > > | redirects | > > > | resources | > > > | schema_info | > > > | sessions | > > > | sidebars | > > > | tags | > > > | text_filters | > > > | triggers | > > > | users | > > > +-----------------------+ > > > 18 rows in set (0.00 sec) > > > > > > mysql> desc > contents;+------------------+--------------+------+-----+---------+----------------+| > > > Field | Type | Null | Key | Default | Extra > > > > |+------------------+--------------+------+-----+---------+----------------+| > > > id | int(11) | | PRI | NULL | > > > auto_increment || title | varchar(255) | YES | | NULL > > > | || author | varchar(255) | YES | | > > > NULL | || body | text | YES | > > > | NULL | || body_html | text | YES > > > | | NULL | || extended | text | > > > YES | | NULL | || excerpt | text > > > | YES | | NULL | || keywords | > > > varchar(255) | YES | | NULL | || text_filter > > > | varchar(255) | YES | | NULL | || created_at > > > | datetime | YES | | NULL | || > > > updated_at | datetime | YES | | NULL | > > > || extended_html | text | YES | | NULL | > > > || user_id | int(11) | YES | | NULL | > > > || permalink | varchar(255) | YES | | NULL | > > > || guid | varchar(255) | YES | | NULL > > > | || text_filter_id | int(11) | YES | | > > > NULL | | > > > | whiteboard | text | YES | | > NULL | | > > > | type | varchar(255) | YES | | > NULL | | > > > | article_id | int(11) | YES | MUL | > NULL | | > > > | email | varchar(255) | YES | | > NULL | | > > > | url | varchar(255) | YES | | > NULL | | > > > | ip | varchar(40) | YES | | > NULL | | > > > | blog_name | varchar(255) | YES | | > NULL | | > > > | name | varchar(255) | YES | | > NULL | | > > > | comments_count | int(11) | YES | | > NULL | | > > > | trackbacks_count | int(11) | YES | | > NULL | | > > > | published | tinyint(1) | YES | | 0 > | | > > > | allow_pings | tinyint(1) | YES | | > NULL | | > > > | allow_comments | tinyint(1) | YES | | > NULL | | > > > | blog_id | int(11) | | MUL | 0 > | | > > > | published_at | datetime | YES | | > NULL | | > > > > +------------------+--------------+------+-----+---------+----------------+ > > > 31 rows in set (0.00 sec) > > > > > > On 7/18/06, Scott Bronson <bronson at rinspin.com> wrote: > > > > On Tue, 2006-07-18 at 21:52 -0500, Steve Longdo wrote: > > > > > I have an update for some reason the @article.text_filter is > returning > > > > > a YAML String instead of a TextFilter object. This is probably > the > > > > > culprit for Trac #1006 as well. I confirmed this in the console > > > > > loading the saved new post(a) and an older one that still renders > > > > > correctly(b): > > > > > > > > When I encountered symptoms like this, it's because my database > schema > > > > was hosed. Probably happened when I tried to fix the migrations 6 > > > > months ago. My database had an extra table that wasn't being used > but > > > > had the same name as a variable in the code. AR wasn't very happy > about > > > > that and instantiated YAML strings instead of objects. > > > > > > > > In my case, I dropped the table and things started working. > > > > > > > > So, you might want to give your schema a close look-see. Especially > > > > check for extra tables. > > > > > > > > I've been meaning to write a Typo database lint tool... It would > ensure > > > > that no extra tables exist, all table references work, no > duplicates, > > > > etc. Ah, if only I had a bit more time... > > > > > > > > - Scott > > > > > > > > > > > > > > > > _______________________________________________ > > > > Typo-list mailing list > > > > Typo-list at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > -- > > > Thanks, > > > -Steve > > > http://www.stevelongdo.com > > > > > > > > > -- > > 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 > -- Thanks, -Steve http://www.stevelongdo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060719/bed664e4/attachment.html From scott at sigkill.org Wed Jul 19 18:26:53 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 19 Jul 2006 15:26:53 -0700 Subject: [typo] Admin posting broken r1139 In-Reply-To: <cc4e85f30607191523w1a4de7d0s7e9fd68ad6e6ec6d@mail.gmail.com> References: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> <14b7e5ef0607181732q3b9f84ccq9c6ad7454ef8df8c@mail.gmail.com> <cc4e85f30607181952g30a85700y2f81179453171493@mail.gmail.com> <1153282019.20753.64.camel@lyra.rinspin.com> <cc4e85f30607182126h5f7ed555lea854c37e8b2a60d@mail.gmail.com> <cc4e85f30607182144w264f8ccbw78a3e6d21fa97815@mail.gmail.com> <14b7e5ef0607190610u6ab2594bgf16bb5b7fd490688@mail.gmail.com> <cc4e85f30607191523w1a4de7d0s7e9fd68ad6e6ec6d@mail.gmail.com> Message-ID: <14b7e5ef0607191526x56750492gf6f59779aee1e64d@mail.gmail.com> Did you restart Typo after dropping the column? Scott On 7/19/06, Steve Longdo <steve.longdo at gmail.com> wrote: > I dropped the text_filter column. > > The admin page saves text_filter not text_filter_id. So I can't use filters > now. > > More confusingly it saves text_filter by name instead of just id. Seems to > be some confusion between how contents table and blogs table work. Not > sure how you would like this resolved. > > > > On 7/19/06, Scott Laird <scott at sigkill.org> wrote: > > This is a database/active record problem, *not* a text filter problem. > > > > The problem, plain and simple, is that article.text_filter is supposed > > to be a TextFilter object, but instead it's a block of YAML. I'm not > > quite sure how that could happen--it shouldn't ever have been YAML in > > the first place, so it's not like it missed a conversion step. > > > > Oh, wait--there it is. Your schema is broken. You have a > > 'text_filter' field in contents; there should only be a > > 'text_filter_id' field. Back up your db and drop text_filter, and you > > should be okay. Somehow you missed that migration. > > > > > > Scott > > > > On 7/18/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > A little research on populate_html_fields shows it sprang into > > > existence between r1004 and r1033 in the content.rb model. As near as > > > I can see it was always expecting a controller of some kind and never > > > the instance of Content that the ContentObserver(also r1033) sends in. > > > > > > 101 def html(controller,what = :all) > > > 99 def populate_html_fields(controller) > > > > > > *sigh* I will into it some more tomorrow, tired now. > > > > > > On 7/18/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > > I've never personally edited my typo table structure. I do know one > > > > of the migrations ran and turned my UTF-8 data into ASCII. Only > > > > because I had some language characters outside the overlap in the > > > > charactersets. > > > > > > > > I'm suspicious of the change in the ContentObserver class from 2 weeks > > > > ago. It seems to be responsible for populating the html_fields before > > > > a save. I suspect if I remove the commentted line my body_html field > > > > will get populated again. > > > > > > > > At any rate I show 18 tables. Is that right? > > > > > > > > mysql> show tables; > > > > +-----------------------+ > > > > | Tables_in_rhesus_typo | > > > > +-----------------------+ > > > > | articles_categories | > > > > | articles_tags | > > > > | blacklist_patterns | > > > > | blogs | > > > > | categories | > > > > | contents | > > > > | notifications | > > > > | page_caches | > > > > | pings | > > > > | redirects | > > > > | resources | > > > > | schema_info | > > > > | sessions | > > > > | sidebars | > > > > | tags | > > > > | text_filters | > > > > | triggers | > > > > | users | > > > > +-----------------------+ > > > > 18 rows in set (0.00 sec) > > > > > > > > mysql> desc > contents;+------------------+--------------+------+-----+---------+----------------+| > > > > Field | Type | Null | Key | Default | Extra > > > > > |+------------------+--------------+------+-----+---------+----------------+| > > > > id | int(11) | | PRI | NULL | > > > > auto_increment || title | varchar(255) | YES | | NULL > > > > | || author | varchar(255) | YES | | > > > > NULL | || body | text | YES | > > > > | NULL | || body_html | text | YES > > > > | | NULL | || extended | text | > > > > YES | | NULL | || excerpt | text > > > > | YES | | NULL | || keywords | > > > > varchar(255) | YES | | NULL | || text_filter > > > > | varchar(255) | YES | | NULL | || created_at > > > > | datetime | YES | | NULL | || > > > > updated_at | datetime | YES | | NULL | > > > > || extended_html | text | YES | | NULL | > > > > || user_id | int(11) | YES | | NULL | > > > > || permalink | varchar(255) | YES | | NULL | > > > > || guid | varchar(255) | YES | | NULL > > > > | || text_filter_id | int(11) | YES | | > > > > NULL | | > > > > | whiteboard | text | YES | | NULL | > | > > > > | type | varchar(255) | YES | | NULL | > | > > > > | article_id | int(11) | YES | MUL | NULL | > | > > > > | email | varchar(255) | YES | | NULL | > | > > > > | url | varchar(255) | YES | | NULL | > | > > > > | ip | varchar(40) | YES | | NULL | > | > > > > | blog_name | varchar(255) | YES | | NULL | > | > > > > | name | varchar(255) | YES | | NULL | > | > > > > | comments_count | int(11) | YES | | NULL | > | > > > > | trackbacks_count | int(11) | YES | | NULL | > | > > > > | published | tinyint(1) | YES | | 0 | > | > > > > | allow_pings | tinyint(1) | YES | | NULL | > | > > > > | allow_comments | tinyint(1) | YES | | NULL | > | > > > > | blog_id | int(11) | | MUL | 0 | > | > > > > | published_at | datetime | YES | | NULL | > | > > > > > +------------------+--------------+------+-----+---------+----------------+ > > > > 31 rows in set (0.00 sec) > > > > > > > > On 7/18/06, Scott Bronson <bronson at rinspin.com> wrote: > > > > > On Tue, 2006-07-18 at 21:52 -0500, Steve Longdo wrote: > > > > > > I have an update for some reason the @ article.text_filter is > returning > > > > > > a YAML String instead of a TextFilter object. This is probably > the > > > > > > culprit for Trac #1006 as well. I confirmed this in the console > > > > > > loading the saved new post(a) and an older one that still renders > > > > > > correctly(b): > > > > > > > > > > When I encountered symptoms like this, it's because my database > schema > > > > > was hosed. Probably happened when I tried to fix the migrations 6 > > > > > months ago. My database had an extra table that wasn't being used > but > > > > > had the same name as a variable in the code. AR wasn't very happy > about > > > > > that and instantiated YAML strings instead of objects. > > > > > > > > > > In my case, I dropped the table and things started working. > > > > > > > > > > So, you might want to give your schema a close look-see. Especially > > > > > check for extra tables. > > > > > > > > > > I've been meaning to write a Typo database lint tool... It would > ensure > > > > > that no extra tables exist, all table references work, no > duplicates, > > > > > etc. Ah, if only I had a bit more time... > > > > > > > > > > - Scott > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > Typo-list mailing list > > > > > Typo-list at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > > > > -- > > > > Thanks, > > > > -Steve > > > > http://www.stevelongdo.com > > > > > > > > > > > > > -- > > > 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 > > > > > > -- > Thanks, > -Steve > http://www.stevelongdo.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From steve.longdo at gmail.com Wed Jul 19 18:37:26 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Wed, 19 Jul 2006 17:37:26 -0500 Subject: [typo] Admin posting broken r1139 In-Reply-To: <14b7e5ef0607191526x56750492gf6f59779aee1e64d@mail.gmail.com> References: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> <14b7e5ef0607181732q3b9f84ccq9c6ad7454ef8df8c@mail.gmail.com> <cc4e85f30607181952g30a85700y2f81179453171493@mail.gmail.com> <1153282019.20753.64.camel@lyra.rinspin.com> <cc4e85f30607182126h5f7ed555lea854c37e8b2a60d@mail.gmail.com> <cc4e85f30607182144w264f8ccbw78a3e6d21fa97815@mail.gmail.com> <14b7e5ef0607190610u6ab2594bgf16bb5b7fd490688@mail.gmail.com> <cc4e85f30607191523w1a4de7d0s7e9fd68ad6e6ec6d@mail.gmail.com> <14b7e5ef0607191526x56750492gf6f59779aee1e64d@mail.gmail.com> Message-ID: <cc4e85f30607191537v20b93aefp94dd9c5c830b64ac@mail.gmail.com> Just tried and problem is still on the article form: <label for="article_text_filter">Textfilter: </label><select id="article_text_filter" name="article[text_filter]"><option value="none" selected="selected">None</option> <option value="markdown">Markdown</option> <option value="smartypants">SmartyPants</option> <option value="markdown smartypants">Markdown with SmartyPants</option> <option value="textile">Textile</option></select><br /> Which is generated in app/views/admin/content/_form.rhtml: <label for="article_text_filter">Textfilter: </label><%= select 'article', 'text_filter', text_filter_options %><br /> On 7/19/06, Scott Laird <scott at sigkill.org> wrote: > > Did you restart Typo after dropping the column? > > > Scott > > On 7/19/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > I dropped the text_filter column. > > > > The admin page saves text_filter not text_filter_id. So I can't use > filters > > now. > > > > More confusingly it saves text_filter by name instead of just id. Seems > to > > be some confusion between how contents table and blogs table work. Not > > sure how you would like this resolved. > > > > > > > > On 7/19/06, Scott Laird <scott at sigkill.org> wrote: > > > This is a database/active record problem, *not* a text filter problem. > > > > > > The problem, plain and simple, is that article.text_filter is supposed > > > to be a TextFilter object, but instead it's a block of YAML. I'm not > > > quite sure how that could happen--it shouldn't ever have been YAML in > > > the first place, so it's not like it missed a conversion step. > > > > > > Oh, wait--there it is. Your schema is broken. You have a > > > 'text_filter' field in contents; there should only be a > > > 'text_filter_id' field. Back up your db and drop text_filter, and you > > > should be okay. Somehow you missed that migration. > > > > > > > > > Scott > > > > > > On 7/18/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > A little research on populate_html_fields shows it sprang into > > > > existence between r1004 and r1033 in the content.rb model. As near > as > > > > I can see it was always expecting a controller of some kind and > never > > > > the instance of Content that the ContentObserver(also r1033) sends > in. > > > > > > > > 101 def html(controller,what = :all) > > > > 99 def populate_html_fields(controller) > > > > > > > > *sigh* I will into it some more tomorrow, tired now. > > > > > > > > On 7/18/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > > > I've never personally edited my typo table structure. I do know > one > > > > > of the migrations ran and turned my UTF-8 data into ASCII. Only > > > > > because I had some language characters outside the overlap in the > > > > > charactersets. > > > > > > > > > > I'm suspicious of the change in the ContentObserver class from 2 > weeks > > > > > ago. It seems to be responsible for populating the html_fields > before > > > > > a save. I suspect if I remove the commentted line my body_html > field > > > > > will get populated again. > > > > > > > > > > At any rate I show 18 tables. Is that right? > > > > > > > > > > mysql> show tables; > > > > > +-----------------------+ > > > > > | Tables_in_rhesus_typo | > > > > > +-----------------------+ > > > > > | articles_categories | > > > > > | articles_tags | > > > > > | blacklist_patterns | > > > > > | blogs | > > > > > | categories | > > > > > | contents | > > > > > | notifications | > > > > > | page_caches | > > > > > | pings | > > > > > | redirects | > > > > > | resources | > > > > > | schema_info | > > > > > | sessions | > > > > > | sidebars | > > > > > | tags | > > > > > | text_filters | > > > > > | triggers | > > > > > | users | > > > > > +-----------------------+ > > > > > 18 rows in set (0.00 sec) > > > > > > > > > > mysql> desc > > > contents;+------------------+--------------+------+-----+---------+----------------+| > > > > > Field | Type | Null | Key | Default | Extra > > > > > > > > |+------------------+--------------+------+-----+---------+----------------+| > > > > > id | int(11) | | PRI | NULL | > > > > > auto_increment || title | varchar(255) | YES | | > NULL > > > > > | || author | varchar(255) | YES | > | > > > > > NULL | || body | text | > YES | > > > > > | NULL | || body_html | text | > YES > > > > > | | NULL | || extended | > text | > > > > > YES | | NULL | || excerpt | text > > > > > | YES | | NULL | || keywords | > > > > > varchar(255) | YES | | NULL | || > text_filter > > > > > | varchar(255) | YES | | NULL | || > created_at > > > > > | datetime | YES | | NULL | || > > > > > updated_at | datetime | YES | | NULL | > > > > > || extended_html | text | YES | | NULL | > > > > > || user_id | int(11) | YES | | NULL | > > > > > || permalink | varchar(255) | YES | | > NULL | > > > > > || guid | varchar(255) | YES | | > NULL > > > > > | || text_filter_id | int(11) | YES | | > > > > > NULL | | > > > > > | whiteboard | text | YES | | NULL | > > | > > > > > | type | varchar(255) | YES | | NULL | > > | > > > > > | article_id | int(11) | YES | MUL | NULL | > > | > > > > > | email | varchar(255) | YES | | NULL | > > | > > > > > | url | varchar(255) | YES | | NULL | > > | > > > > > | ip | varchar(40) | YES | | NULL | > > | > > > > > | blog_name | varchar(255) | YES | | NULL | > > | > > > > > | name | varchar(255) | YES | | NULL | > > | > > > > > | comments_count | int(11) | YES | | NULL | > > | > > > > > | trackbacks_count | int(11) | YES | | NULL | > > | > > > > > | published | tinyint(1) | YES | | 0 | > > | > > > > > | allow_pings | tinyint(1) | YES | | NULL | > > | > > > > > | allow_comments | tinyint(1) | YES | | NULL | > > | > > > > > | blog_id | int(11) | | MUL | 0 | > > | > > > > > | published_at | datetime | YES | | NULL | > > | > > > > > > > > +------------------+--------------+------+-----+---------+----------------+ > > > > > 31 rows in set (0.00 sec) > > > > > > > > > > On 7/18/06, Scott Bronson <bronson at rinspin.com> wrote: > > > > > > On Tue, 2006-07-18 at 21:52 -0500, Steve Longdo wrote: > > > > > > > I have an update for some reason the @ article.text_filter is > > returning > > > > > > > a YAML String instead of a TextFilter object. This is > probably > > the > > > > > > > culprit for Trac #1006 as well. I confirmed this in the > console > > > > > > > loading the saved new post(a) and an older one that still > renders > > > > > > > correctly(b): > > > > > > > > > > > > When I encountered symptoms like this, it's because my database > > schema > > > > > > was hosed. Probably happened when I tried to fix the migrations > 6 > > > > > > months ago. My database had an extra table that wasn't being > used > > but > > > > > > had the same name as a variable in the code. AR wasn't very > happy > > about > > > > > > that and instantiated YAML strings instead of objects. > > > > > > > > > > > > In my case, I dropped the table and things started working. > > > > > > > > > > > > So, you might want to give your schema a close > look-see. Especially > > > > > > check for extra tables. > > > > > > > > > > > > I've been meaning to write a Typo database lint tool... It > would > > ensure > > > > > > that no extra tables exist, all table references work, no > > duplicates, > > > > > > etc. Ah, if only I had a bit more time... > > > > > > > > > > > > - Scott > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > Typo-list mailing list > > > > > > Typo-list at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > > > > > > > > -- > > > > > Thanks, > > > > > -Steve > > > > > http://www.stevelongdo.com > > > > > > > > > > > > > > > > > -- > > > > 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 > > > > > > > > > > > -- > > 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 > -- Thanks, -Steve http://www.stevelongdo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060719/21422cfd/attachment-0001.html From scott at sigkill.org Wed Jul 19 18:51:51 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 19 Jul 2006 15:51:51 -0700 Subject: [typo] Admin posting broken r1139 In-Reply-To: <cc4e85f30607191537v20b93aefp94dd9c5c830b64ac@mail.gmail.com> References: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> <14b7e5ef0607181732q3b9f84ccq9c6ad7454ef8df8c@mail.gmail.com> <cc4e85f30607181952g30a85700y2f81179453171493@mail.gmail.com> <1153282019.20753.64.camel@lyra.rinspin.com> <cc4e85f30607182126h5f7ed555lea854c37e8b2a60d@mail.gmail.com> <cc4e85f30607182144w264f8ccbw78a3e6d21fa97815@mail.gmail.com> <14b7e5ef0607190610u6ab2594bgf16bb5b7fd490688@mail.gmail.com> <cc4e85f30607191523w1a4de7d0s7e9fd68ad6e6ec6d@mail.gmail.com> <14b7e5ef0607191526x56750492gf6f59779aee1e64d@mail.gmail.com> <cc4e85f30607191537v20b93aefp94dd9c5c830b64ac@mail.gmail.com> Message-ID: <14b7e5ef0607191551h62d30b91tc71c24ea4908488f@mail.gmail.com> Maybe I'm being slow, but what's the problem with this? This matches mine, and mine seems to work fine. Out of curiosity, do your tests pass if you run 'rake test'? Make sure you have a test DB defined and it's not the same as your production DB, or Bad Things happen. Scott On 7/19/06, Steve Longdo <steve.longdo at gmail.com> wrote: > Just tried and problem is still on the article form: > <label for="article_text_filter" > >Textfilter: </label><select id="article_text_filter" > name="article[text_filter]"><option value="none" > selected="selected">None</option> > > <option > value="markdown">Markdown</option> > <option > value="smartypants">SmartyPants</option> > <option value= > "markdown smartypants">Markdown with SmartyPants</option> > <option value > ="textile">Textile</option></select><br > /> > Which is generated in app/views/admin/content/_form.rhtml: > <label for="article_text_filter">Textfilter: </label><%= > select 'article', 'text_filter', text_filter_options %><br /> > > > > On 7/19/06, Scott Laird <scott at sigkill.org> wrote: > > Did you restart Typo after dropping the column? > > > > > > Scott > > > > On 7/19/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > I dropped the text_filter column. > > > > > > The admin page saves text_filter not text_filter_id. So I can't use > filters > > > now. > > > > > > More confusingly it saves text_filter by name instead of just id. Seems > to > > > be some confusion between how contents table and blogs table work. Not > > > sure how you would like this resolved. > > > > > > > > > > > > On 7/19/06, Scott Laird <scott at sigkill.org> wrote: > > > > This is a database/active record problem, *not* a text filter problem. > > > > > > > > The problem, plain and simple, is that article.text_filter is supposed > > > > to be a TextFilter object, but instead it's a block of YAML. I'm not > > > > quite sure how that could happen--it shouldn't ever have been YAML in > > > > the first place, so it's not like it missed a conversion step. > > > > > > > > Oh, wait--there it is. Your schema is broken. You have a > > > > 'text_filter' field in contents; there should only be a > > > > 'text_filter_id' field. Back up your db and drop text_filter, and you > > > > should be okay. Somehow you missed that migration. > > > > > > > > > > > > Scott > > > > > > > > On 7/18/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > A little research on populate_html_fields shows it sprang into > > > > > existence between r1004 and r1033 in the content.rb model. As near > as > > > > > I can see it was always expecting a controller of some kind and > never > > > > > the instance of Content that the ContentObserver(also r1033) sends > in. > > > > > > > > > > 101 def html(controller,what = :all) > > > > > 99 def > populate_html_fields(controller) > > > > > > > > > > *sigh* I will into it some more tomorrow, tired now. > > > > > > > > > > On 7/18/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > I've never personally edited my typo table structure. I do know > one > > > > > > of the migrations ran and turned my UTF-8 data into ASCII. Only > > > > > > because I had some language characters outside the overlap in the > > > > > > charactersets. > > > > > > > > > > > > I'm suspicious of the change in the ContentObserver class from 2 > weeks > > > > > > ago. It seems to be responsible for populating the html_fields > before > > > > > > a save. I suspect if I remove the commentted line my body_html > field > > > > > > will get populated again. > > > > > > > > > > > > At any rate I show 18 tables. Is that right? > > > > > > > > > > > > mysql> show tables; > > > > > > +-----------------------+ > > > > > > | Tables_in_rhesus_typo | > > > > > > +-----------------------+ > > > > > > | articles_categories | > > > > > > | articles_tags | > > > > > > | blacklist_patterns | > > > > > > | blogs | > > > > > > | categories | > > > > > > | contents | > > > > > > | notifications | > > > > > > | page_caches | > > > > > > | pings | > > > > > > | redirects | > > > > > > | resources | > > > > > > | schema_info | > > > > > > | sessions | > > > > > > | sidebars | > > > > > > | tags | > > > > > > | text_filters | > > > > > > | triggers | > > > > > > | users | > > > > > > +-----------------------+ > > > > > > 18 rows in set (0.00 sec) > > > > > > > > > > > > mysql> desc > > > > contents;+------------------+--------------+------+-----+---------+----------------+| > > > > > > Field | Type | Null | Key | Default | Extra > > > > > > > > > > |+------------------+--------------+------+-----+---------+----------------+| > > > > > > id | int(11) | | PRI | NULL | > > > > > > auto_increment || title | varchar(255) | YES | | > NULL > > > > > > | || author | varchar(255) | YES | > | > > > > > > NULL | || body | text | YES > | > > > > > > | NULL | || body_html | text | > YES > > > > > > | | NULL | || extended | text > | > > > > > > YES | | NULL | || excerpt | text > > > > > > | YES | | NULL | || keywords | > > > > > > varchar(255) | YES | | NULL | || > text_filter > > > > > > | varchar(255) | YES | | NULL | || > created_at > > > > > > | datetime | YES | | NULL | || > > > > > > updated_at | datetime | YES | | NULL | > > > > > > || extended_html | text | YES | | NULL | > > > > > > || user_id | int(11) | YES | | NULL | > > > > > > || permalink | varchar(255) | YES | | NULL > | > > > > > > || guid | varchar(255) | YES | | > NULL > > > > > > | || text_filter_id | int(11) | YES | | > > > > > > NULL | | > > > > > > | whiteboard | text | YES | | NULL | > > > | > > > > > > | type | varchar(255) | YES | | NULL | > > > | > > > > > > | article_id | int(11) | YES | MUL | NULL | > > > | > > > > > > | email | varchar(255) | YES | | NULL | > > > | > > > > > > | url | varchar(255) | YES | | NULL | > > > | > > > > > > | ip | varchar(40) | YES | | NULL | > > > | > > > > > > | blog_name | varchar(255) | YES | | NULL | > > > | > > > > > > | name | varchar(255) | YES | | NULL | > > > | > > > > > > | comments_count | int(11) | YES | | NULL | > > > | > > > > > > | trackbacks_count | int(11) | YES | | NULL | > > > | > > > > > > | published | tinyint(1) | YES | | 0 | > > > | > > > > > > | allow_pings | tinyint(1) | YES | | NULL | > > > | > > > > > > | allow_comments | tinyint(1) | YES | | NULL | > > > | > > > > > > | blog_id | int(11) | | MUL | 0 | > > > | > > > > > > | published_at | datetime | YES | | NULL | > > > | > > > > > > > > > > +------------------+--------------+------+-----+---------+----------------+ > > > > > > 31 rows in set ( 0.00 sec) > > > > > > > > > > > > On 7/18/06, Scott Bronson <bronson at rinspin.com> wrote: > > > > > > > On Tue, 2006-07-18 at 21:52 -0500, Steve Longdo wrote: > > > > > > > > I have an update for some reason the @ article.text_filter is > > > returning > > > > > > > > a YAML String instead of a TextFilter object. This is > probably > > > the > > > > > > > > culprit for Trac #1006 as well. I confirmed this in the > console > > > > > > > > loading the saved new post(a) and an older one that still > renders > > > > > > > > correctly(b): > > > > > > > > > > > > > > When I encountered symptoms like this, it's because my database > > > schema > > > > > > > was hosed. Probably happened when I tried to fix the migrations > 6 > > > > > > > months ago. My database had an extra table that wasn't being > used > > > but > > > > > > > had the same name as a variable in the code. AR wasn't very > happy > > > about > > > > > > > that and instantiated YAML strings instead of objects. > > > > > > > > > > > > > > In my case, I dropped the table and things started working. > > > > > > > > > > > > > > So, you might want to give your schema a close look-see. > Especially > > > > > > > check for extra tables. > > > > > > > > > > > > > > I've been meaning to write a Typo database lint tool... It > would > > > ensure > > > > > > > that no extra tables exist, all table references work, no > > > duplicates, > > > > > > > etc. Ah, if only I had a bit more time... > > > > > > > > > > > > > > - Scott > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > Typo-list mailing list > > > > > > > Typo-list at rubyforge.org > > > > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Thanks, > > > > > > -Steve > > > > > > http://www.stevelongdo.com > > > > > > > > > > > > > > > > > > > > > -- > > > > > 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 > > > > > > > > > > > > > > > > -- > > > 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 > > > > > > -- > Thanks, > -Steve > http://www.stevelongdo.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From steve.longdo at gmail.com Wed Jul 19 19:10:34 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Wed, 19 Jul 2006 18:10:34 -0500 Subject: [typo] Admin posting broken r1139 In-Reply-To: <14b7e5ef0607191551h62d30b91tc71c24ea4908488f@mail.gmail.com> References: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> <cc4e85f30607181952g30a85700y2f81179453171493@mail.gmail.com> <1153282019.20753.64.camel@lyra.rinspin.com> <cc4e85f30607182126h5f7ed555lea854c37e8b2a60d@mail.gmail.com> <cc4e85f30607182144w264f8ccbw78a3e6d21fa97815@mail.gmail.com> <14b7e5ef0607190610u6ab2594bgf16bb5b7fd490688@mail.gmail.com> <cc4e85f30607191523w1a4de7d0s7e9fd68ad6e6ec6d@mail.gmail.com> <14b7e5ef0607191526x56750492gf6f59779aee1e64d@mail.gmail.com> <cc4e85f30607191537v20b93aefp94dd9c5c830b64ac@mail.gmail.com> <14b7e5ef0607191551h62d30b91tc71c24ea4908488f@mail.gmail.com> Message-ID: <cc4e85f30607191610s3cc0831eoc52834946e41b555@mail.gmail.com> You told me to drop text_filter from contents. Migration #14 seems to support this as things were moved to the INTEGER column text_filter_id from STRING column text_filter. So how can the text_filter_id ever be a string name? Things work in admin if you don't want a TextFilter because it defaults to 'none'. (this is r1142) rake test First batch: Finished in 25.067883 seconds. 1) Failure: test_send_trackback(PingTest) [./test/unit/ping_test.rb:80]: <"title=Article%201!&excerpt=body&url= http://myblog.net/referring-post&blog_name=test%20blog"> expected but was <"title=Article+1%21&excerpt=body&url= http://myblog.net/referring-post&blog_name=test+blog">. 142 tests, 472 assertions, 1 failures, 0 errors Second batch: Finished in 81.125948 seconds. 1) Failure: test_sparkline(TextfilterControllerTest) [./test/functional/textfilter_controller_test.rb:138]: <nil> is not true. 206 tests, 806 assertions, 1 failures, 0 errors On 7/19/06, Scott Laird <scott at sigkill.org> wrote: > > Maybe I'm being slow, but what's the problem with this? This matches > mine, and mine seems to work fine. > > Out of curiosity, do your tests pass if you run 'rake test'? Make > sure you have a test DB defined and it's not the same as your > production DB, or Bad Things happen. > > > Scott > > On 7/19/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > Just tried and problem is still on the article form: > > <label for="article_text_filter" > > >Textfilter: </label><select id="article_text_filter" > > name="article[text_filter]"><option value="none" > > selected="selected">None</option> > > > > <option > > value="markdown">Markdown</option> > > <option > > value="smartypants">SmartyPants</option> > > <option value= > > "markdown smartypants">Markdown with SmartyPants</option> > > <option value > > ="textile">Textile</option></select><br > > /> > > Which is generated in app/views/admin/content/_form.rhtml: > > <label for="article_text_filter">Textfilter: </label><%= > > select 'article', 'text_filter', text_filter_options %><br /> > > > > > > > > On 7/19/06, Scott Laird <scott at sigkill.org> wrote: > > > Did you restart Typo after dropping the column? > > > > > > > > > Scott > > > > > > On 7/19/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > > I dropped the text_filter column. > > > > > > > > The admin page saves text_filter not text_filter_id. So I can't use > > filters > > > > now. > > > > > > > > More confusingly it saves text_filter by name instead of just > id. Seems > > to > > > > be some confusion between how contents table and blogs table > work. Not > > > > sure how you would like this resolved. > > > > > > > > > > > > > > > > On 7/19/06, Scott Laird <scott at sigkill.org> wrote: > > > > > This is a database/active record problem, *not* a text filter > problem. > > > > > > > > > > The problem, plain and simple, is that article.text_filter is > supposed > > > > > to be a TextFilter object, but instead it's a block of YAML. I'm > not > > > > > quite sure how that could happen--it shouldn't ever have been YAML > in > > > > > the first place, so it's not like it missed a conversion step. > > > > > > > > > > Oh, wait--there it is. Your schema is broken. You have a > > > > > 'text_filter' field in contents; there should only be a > > > > > 'text_filter_id' field. Back up your db and drop text_filter, and > you > > > > > should be okay. Somehow you missed that migration. > > > > > > > > > > > > > > > Scott > > > > > > > > > > On 7/18/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > A little research on populate_html_fields shows it sprang into > > > > > > existence between r1004 and r1033 in the content.rb model. As > near > > as > > > > > > I can see it was always expecting a controller of some kind and > > never > > > > > > the instance of Content that the ContentObserver(also r1033) > sends > > in. > > > > > > > > > > > > 101 def html(controller,what = :all) > > > > > > 99 def > > populate_html_fields(controller) > > > > > > > > > > > > *sigh* I will into it some more tomorrow, tired now. > > > > > > > > > > > > On 7/18/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > I've never personally edited my typo table structure. I do > know > > one > > > > > > > of the migrations ran and turned my UTF-8 data into > ASCII. Only > > > > > > > because I had some language characters outside the overlap in > the > > > > > > > charactersets. > > > > > > > > > > > > > > I'm suspicious of the change in the ContentObserver class from > 2 > > weeks > > > > > > > ago. It seems to be responsible for populating the > html_fields > > before > > > > > > > a save. I suspect if I remove the commentted line my > body_html > > field > > > > > > > will get populated again. > > > > > > > > > > > > > > At any rate I show 18 tables. Is that right? > > > > > > > > > > > > > > mysql> show tables; > > > > > > > +-----------------------+ > > > > > > > | Tables_in_rhesus_typo | > > > > > > > +-----------------------+ > > > > > > > | articles_categories | > > > > > > > | articles_tags | > > > > > > > | blacklist_patterns | > > > > > > > | blogs | > > > > > > > | categories | > > > > > > > | contents | > > > > > > > | notifications | > > > > > > > | page_caches | > > > > > > > | pings | > > > > > > > | redirects | > > > > > > > | resources | > > > > > > > | schema_info | > > > > > > > | sessions | > > > > > > > | sidebars | > > > > > > > | tags | > > > > > > > | text_filters | > > > > > > > | triggers | > > > > > > > | users | > > > > > > > +-----------------------+ > > > > > > > 18 rows in set (0.00 sec) > > > > > > > > > > > > > > mysql> desc > > > > > > > contents;+------------------+--------------+------+-----+---------+----------------+| > > > > > > > Field | Type | Null | Key | Default | Extra > > > > > > > > > > > > > > |+------------------+--------------+------+-----+---------+----------------+| > > > > > > > id | int(11) | | PRI | NULL | > > > > > > > auto_increment || title | varchar(255) | YES | > | > > NULL > > > > > > > | || author | varchar(255) | YES | > > | > > > > > > > NULL | || body | text | > YES > > | > > > > > > > | NULL | || body_html | > text | > > YES > > > > > > > | | NULL | || extended | text > > | > > > > > > > YES | | NULL | || excerpt | > text > > > > > > > | YES | | NULL | || keywords > | > > > > > > > varchar(255) | YES | | NULL | || > > text_filter > > > > > > > | varchar(255) | YES | | NULL | || > > created_at > > > > > > > | datetime | YES | | > NULL | || > > > > > > > updated_at | datetime | YES | | NULL | > > > > > > > || extended_html | text | YES | | NULL | > > > > > > > || user_id | int(11) | YES | | > NULL | > > > > > > > || permalink | varchar(255) | YES | | > NULL > > | > > > > > > > || guid | varchar(255) | YES | | > > NULL > > > > > > > | || text_filter_id | int(11) | > YES | | > > > > > > > NULL | | > > > > > > > | whiteboard | text | YES | | NULL | > > > > | > > > > > > > | type | varchar(255) | YES | | NULL | > > > > | > > > > > > > | article_id | int(11) | YES | MUL | NULL | > > > > | > > > > > > > | email | varchar(255) | YES | | NULL | > > > > | > > > > > > > | url | varchar(255) | YES | | NULL | > > > > | > > > > > > > | ip | varchar(40) | YES | | NULL | > > > > | > > > > > > > | blog_name | varchar(255) | YES | | NULL | > > > > | > > > > > > > | name | varchar(255) | YES | | NULL | > > > > | > > > > > > > | comments_count | int(11) | YES | | NULL | > > > > | > > > > > > > | trackbacks_count | int(11) | YES | | NULL | > > > > | > > > > > > > | published | tinyint(1) | YES | | 0 | > > > > | > > > > > > > | allow_pings | tinyint(1) | YES | | NULL | > > > > | > > > > > > > | allow_comments | tinyint(1) | YES | | NULL | > > > > | > > > > > > > | blog_id | int(11) | | MUL | 0 | > > > > | > > > > > > > | published_at | datetime | YES | | NULL | > > > > | > > > > > > > > > > > > > > +------------------+--------------+------+-----+---------+----------------+ > > > > > > > 31 rows in set ( 0.00 sec) > > > > > > > > > > > > > > On 7/18/06, Scott Bronson <bronson at rinspin.com> wrote: > > > > > > > > On Tue, 2006-07-18 at 21:52 -0500, Steve Longdo wrote: > > > > > > > > > I have an update for some reason the @ article.text_filteris > > > > returning > > > > > > > > > a YAML String instead of a TextFilter object. This is > > probably > > > > the > > > > > > > > > culprit for Trac #1006 as well. I confirmed this in the > > console > > > > > > > > > loading the saved new post(a) and an older one that still > > renders > > > > > > > > > correctly(b): > > > > > > > > > > > > > > > > When I encountered symptoms like this, it's because my > database > > > > schema > > > > > > > > was hosed. Probably happened when I tried to fix the > migrations > > 6 > > > > > > > > months ago. My database had an extra table that wasn't > being > > used > > > > but > > > > > > > > had the same name as a variable in the code. AR wasn't very > > happy > > > > about > > > > > > > > that and instantiated YAML strings instead of objects. > > > > > > > > > > > > > > > > In my case, I dropped the table and things started working. > > > > > > > > > > > > > > > > So, you might want to give your schema a close look-see. > > Especially > > > > > > > > check for extra tables. > > > > > > > > > > > > > > > > I've been meaning to write a Typo database lint tool... It > > would > > > > ensure > > > > > > > > that no extra tables exist, all table references work, no > > > > duplicates, > > > > > > > > etc. Ah, if only I had a bit more time... > > > > > > > > > > > > > > > > - Scott > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > Typo-list mailing list > > > > > > > > Typo-list at rubyforge.org > > > > > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > Thanks, > > > > > > > -Steve > > > > > > > http://www.stevelongdo.com > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > -- > > > > 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 > > > > > > > > > > > -- > > 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 > -- Thanks, -Steve http://www.stevelongdo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060719/4cc9980f/attachment-0001.html From kyleheon at gmail.com Wed Jul 19 19:13:15 2006 From: kyleheon at gmail.com (Kyle Heon) Date: Wed, 19 Jul 2006 19:13:15 -0400 Subject: [typo] Spam protection warnings when starting up Mongrel Message-ID: <cbaba1b40607191613q1e441b11m7653905eb2f288f6@mail.gmail.com> Recently I've noticed that when firing up my Typo site for development there are a series of warnings. The errors are listed below: /home/kyle/ror/typo/config/../lib/spam_protection.rb:3: warning: already initialized constant IP_RBLS /home/kyle/ror/typo/config/../lib/spam_protection.rb:4: warning: already initialized constant HOST_RBLS /home/kyle/ror/typo/config/../lib/spam_protection.rb:5: warning: already initialized constant SECOND_LEVEL /home/kyle/ror/typo/config/../lib/spam_protection.rb:3: warning: already initialized constant IP_RBLS /home/kyle/ror/typo/config/../lib/spam_protection.rb:4: warning: already initialized constant HOST_RBLS /home/kyle/ror/typo/config/../lib/spam_protection.rb:5: warning: already initialized constant SECOND_LEVEL /home/kyle/ror/typo/config/../lib/spam_protection.rb:3: warning: already initialized constant IP_RBLS /home/kyle/ror/typo/config/../lib/spam_protection.rb:4: warning: already initialized constant HOST_RBLS /home/kyle/ror/typo/config/../lib/spam_protection.rb:5: warning: already initialized constant SECOND_LEVEL What can I do to prevent these warnings? Thanks. Kyle Heon kyleheon at gmail.com www.kyleheon.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060719/ce362895/attachment.html From nate at wamily.com Wed Jul 19 20:44:43 2006 From: nate at wamily.com (Nate Clark) Date: Wed, 19 Jul 2006 20:44:43 -0400 Subject: [typo] bunch of assert_tag tests failing in 3.99.3 Message-ID: <ef5de5620607191744v937ec83w735aac3a8b3559eb@mail.gmail.com> Hey Scott and others, First of all, excellent work! I just installed 3.99.3 and it looks great. I'm so happy to have a sweet rails app to run the blog for my new rails based site called Wamily. Everything seems to be working fine, except I'm getting 6 failures out of rake. They're all coming from 'assert_tag' tests. I've included the output from rake at the end of this email. This could be because I installed Typo a little bit non-traditionally. I used the installer on my windows machine and it worked fine, then I packed up the whole directory and stuck it on my Dreamhost server, configured FCGI with Apache, and it's working fine in development mode (haven't tried production mode yet). Could the move from Windows to Linux mess this up? Notice in the output from rake below the mysterious looking "\n" end of line characters in the HTML output there. Sounds to me like some character set incompatibility ... Is that what's making these tests fail? Thanks for any suggestions, Nate And here's the test output that failed ... Started ......FFF........F......F..... ............................................................................................F.................................................................................. Finished in 125.327245 seconds. 1) Failure: test_full_post(Admin::ArticlePreviewTest) [./test/functional/admin/article_preview_test.rb:61]: expected tag, but no tag found matching {:after=>{:after=>{:content=>nil, :tag=>"h4"}, :child=>"A body", :tag=>"p"}, :child=>"An extension", :tag=>"p"} in: "<h4>A title</h4>\n\n<p>A body</p><p>An extension</p>\n". <nil> is not true. 2) Failure: test_only_body(Admin::ArticlePreviewTest) [./test/functional/admin/article_preview_test.rb:37]: expected tag, but no tag found matching {:after=>{:content=>nil, :tag=>"h4"}, :child=>"A body", :tag=>"p"} in: "<h4></h4>\n\n<p>A body</p>\n". <nil> is not true. 3) Failure: test_only_extended(Admin::ArticlePreviewTest) [./test/functional/admin/article_preview_test.rb:47]: expected tag, but no tag found matching {:after=>{:content=>nil, :tag=>"h4"}, :child=>"An extension", :tag=>"p"} in: "<h4></h4>\n\n<p>An extension</p>\n". <nil> is not true. 4) Failure: test_category_container(Admin::CategoriesControllerTest) [./test/functional/admin/categories_controller_test.rb:96]: expected tag, but no tag found matching {:children=>{:count=>7, :only=>{:children=>{:count=>3, :only=>{:tag=>/t[dh]/}}, :tag=>"tr"}}, :tag=>"table"} in: "<table>\n <tr>\n <th>Category title</th>\n <th>Articles</th>\n <th>Delete</th>\n </tr>\n <tr id=\"category_1\">\n <td><img alt=\"Checked\" src=\"/images/checked.gif?1153270877\" /> <a href=\"/admin/categories/show/1\">Software</a></td>\n <td><a href=\"/admin/categories/show/1\">1 article</a></td>\n <td class=\"operation\"><a href=\"/admin/categories/destroy/1\"><img alt=\"Delete\" src=\"/images/delete.png?1153270877\" /></a></td> \n </tr> \n <tr class=\"shade\" id=\"category_2\">\n <td><img alt=\"Checked\" src=\"/images/checked.gif?1153270877\" /> <a href=\"/admin/categories/show/2\">Hardware</a></td>\n <td><a href=\"/admin/categories/show/2\">1 article</a></td>\n <td class=\"operation\"><a href=\"/admin/categories/destroy/2\"><img alt=\"Delete\" src=\"/images/delete.png?1153270877\" /></a></td> \n </tr> \n <tr id=\"category_3\">\n <td><img alt=\"Checked\" src=\"/images/checked.gif?1153270877\" /> <a href=\"/admin/categories/show/3\">Personal</a></td>\n <td><a href=\"/admin/categories/show/3\">4 articles</a></td>\n <td class=\"operation\"><a href=\"/admin/categories/destroy/3\"><img alt=\"Delete\" src=\"/images/delete.png?1153270877\" /></a></td> \n </tr> \n <tr class=\"shade\" id=\"category_4\">\n <td><img alt=\"Checked\" src=\"/images/checked.gif?1153270877\" /> <a href=\"/admin/categories/show/4\">Life On Mars</a></td>\n <td><a href=\"/admin/categories/show/4\">no articles</a></td>\n <td class=\"operation\"><a href=\"/admin/categories/destroy/4\"><img alt=\"Delete\" src=\"/images/delete.png?1153270877\" /></a></td> \n </tr> \n <tr id=\"category_5\">\n <td><img alt=\"Checked\" src=\"/images/checked.gif?1153270877\" /> <a href=\"/admin/categories/show/5\">The Permalink doesn't match</a></td>\n <td><a href=\"/admin/categories/show/5\">1 article</a></td>\n <td class=\"operation\"><a href=\"/admin/categories/destroy/5\"><img alt=\"Delete\" src=\"/images/delete.png?1153270877\" /></a></td> \n </tr> \n <tr class=\"shade\" id=\"category_6\">\n <td><img alt=\"Checked\" src=\"/images/checked.gif?1153270877\" /> <a href=\"/admin/categories/show/6\">this & that</a></td>\n <td><a href=\"/admin/categories/show/6\">1 article</a></td>\n <td class=\"operation\"><a href=\"/admin/categories/destroy/6\"><img alt=\"Delete\" src=\"/images/delete.png?1153270877\" /></a></td> \n </tr> \n </table>". <nil> is not true. 5) Failure: test_reorder(Admin::CategoriesControllerTest) [./test/functional/admin/categories_controller_test.rb:107]: expected tag, but no tag found matching {:children=>{:count=>6, :only=>{:attributes=>{:id=>/category_\d+/}, :tag=>"li"}}, :attributes=>{:id=>"category_list"}, :tag=>"ul"} in: "<ul id=\"category_list\">\n <li id=\"category_1\">Software</li>\n <li id=\"category_2\">Hardware</li>\n <li id=\"category_3\">Personal</li>\n <li id=\"category_4\">Life On Mars</li>\n <li id=\"category_5\">The Permalink doesn't match</li>\n <li id=\"category_6\">this & that</li>\n </ul>\n\n<a href=\"#\" onclick=\"new Ajax.Updater('category_container', '/admin/categories/category_container', {asynchronous:true, evalScripts:true}); return false;\">(Done)</a>\n\n<script type=\"text/javascript\">\n//<![CDATA[\nSortable.create(\"category_list\", {onUpdate:function(){new Ajax.Request('/admin/categories/order', {asynchronous:true, evalScripts:true, onComplete:function(request){new Effect.Highlight(\"category_list\",{});}, parameters:Sortable.serialize (\"category_list\")})}})\n//]]>\n</script>". <nil> is not true. 6) Failure: test_read_article_with_comments_and_trackbacks(ArticlesControllerTest) [./test/functional/articles_controller_test.rb:369]: expected tag, but no tag found matching {:children=>{:count=>2, :only=>{:tag=>"li"}}, :attributes=>{:id=>"trackbackList"}, :tag=>"ol"} in: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \" ... <nil> is not true. 205 tests, 795 assertions, 6 failures, 0 errors rake aborted! Test failures (See full trace by running task with --trace) From nick at recoil.org Thu Jul 20 07:13:54 2006 From: nick at recoil.org (Nick Ludlam) Date: Thu, 20 Jul 2006 12:13:54 +0100 Subject: [typo] Spam protection warnings when starting up Mongrel In-Reply-To: <cbaba1b40607191613q1e441b11m7653905eb2f288f6@mail.gmail.com> References: <cbaba1b40607191613q1e441b11m7653905eb2f288f6@mail.gmail.com> Message-ID: <a3c8a70c5b65744d3789a77b7137d161@fork.recoil.org> On Wed, 19 Jul 2006 19:13:15 -0400, "Kyle Heon" <kyleheon at gmail.com> wrote: > Recently I've noticed that when firing up my Typo site for development > there are a series of warnings. The errors are listed below: > > /home/kyle/ror/typo/config/../lib/spam_protection.rb:3: warning: already > initialized constant IP_RBLS > /home/kyle/ror/typo/config/../lib/spam_protection.rb:4: warning: already > initialized constant HOST_RBLS > /home/kyle/ror/typo/config/../lib/spam_protection.rb:5: warning: already > initialized constant SECOND_LEVEL > > What can I do to prevent these warnings? Well a quick way is to put 'unless defined?(CONST)' after each line in spam_protection.rb. ie/ IP_RBLS = [ 'opm.blitzed.us', 'bsb.empty.us' ] unless defined?(IP_RBLS) It might be an idea to work out why this file is being required multiple times, though. Nick From scott at sigkill.org Thu Jul 20 10:08:15 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 20 Jul 2006 07:08:15 -0700 Subject: [typo] Admin posting broken r1139 In-Reply-To: <cc4e85f30607191610s3cc0831eoc52834946e41b555@mail.gmail.com> References: <cc4e85f30607181728i1bcf3d81lf90e10fa2f7b9894@mail.gmail.com> <1153282019.20753.64.camel@lyra.rinspin.com> <cc4e85f30607182126h5f7ed555lea854c37e8b2a60d@mail.gmail.com> <cc4e85f30607182144w264f8ccbw78a3e6d21fa97815@mail.gmail.com> <14b7e5ef0607190610u6ab2594bgf16bb5b7fd490688@mail.gmail.com> <cc4e85f30607191523w1a4de7d0s7e9fd68ad6e6ec6d@mail.gmail.com> <14b7e5ef0607191526x56750492gf6f59779aee1e64d@mail.gmail.com> <cc4e85f30607191537v20b93aefp94dd9c5c830b64ac@mail.gmail.com> <14b7e5ef0607191551h62d30b91tc71c24ea4908488f@mail.gmail.com> <cc4e85f30607191610s3cc0831eoc52834946e41b555@mail.gmail.com> Message-ID: <14b7e5ef0607200708t50af4d0eg6448bf7e0f4c32c7@mail.gmail.com> Okay, I'm completely unable to reproduce this. I still think the problem is that your DB is broken. So, let's try this: $ gem install schema_generator $ rake db:schema:dump $ mv db/schema.rb db/schema.rb-dump $ ./script/generate schema $ diff -u db/schema.rb{,-dump} That should show you the differences between your currently loaded schema and the one that you'd get if you installed a new DB from scratch. Can you do that and send me the diff? Scott On 7/19/06, Steve Longdo <steve.longdo at gmail.com> wrote: > You told me to drop text_filter from contents. Migration #14 seems to > support this as things were moved to the INTEGER column text_filter_id from > STRING column text_filter. So how can the text_filter_id ever be a string > name? Things work in admin if you don't want a TextFilter because it > defaults to 'none'. > > (this is r1142) > > rake test > First batch: > Finished in 25.067883 seconds. > > 1) Failure: > test_send_trackback(PingTest) [./test/unit/ping_test.rb:80]: > <"title=Article%201!&excerpt=body&url= > http://myblog.net/referring-post&blog_name=test%20blog"> > expected but was > <"title=Article+1%21&excerpt=body&url= > http://myblog.net/referring-post&blog_name=test+blog">. > > 142 tests, 472 assertions, 1 failures, 0 errors > > Second batch: > Finished in 81.125948 seconds. > > 1) Failure: > test_sparkline(TextfilterControllerTest) > [./test/functional/textfilter_controller_test.rb:138]: > <nil> is not true. > > 206 tests, 806 assertions, 1 failures, 0 errors > > > > On 7/19/06, Scott Laird < scott at sigkill.org> wrote: > > Maybe I'm being slow, but what's the problem with this? This matches > > mine, and mine seems to work fine. > > > > Out of curiosity, do your tests pass if you run 'rake test'? Make > > sure you have a test DB defined and it's not the same as your > > production DB, or Bad Things happen. > > > > > > Scott > > > > On 7/19/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > Just tried and problem is still on the article form: > > > <label for="article_text_filter" > > > >Textfilter: </label><select id="article_text_filter" > > > name="article[text_filter]"><option value="none" > > > selected="selected">None</option> > > > > > > <option > > > value="markdown">Markdown</option> > > > <option > > > value="smartypants">SmartyPants</option> > > > <option value= > > > "markdown smartypants">Markdown with SmartyPants</option> > > > <option value > > > ="textile">Textile</option></select><br > > > /> > > > Which is generated in > app/views/admin/content/_form.rhtml: > > > <label for="article_text_filter">Textfilter: > </label><%= > > > select 'article', 'text_filter', text_filter_options %><br /> > > > > > > > > > > > > On 7/19/06, Scott Laird <scott at sigkill.org> wrote: > > > > Did you restart Typo after dropping the column? > > > > > > > > > > > > Scott > > > > > > > > On 7/19/06, Steve Longdo <steve.longdo at gmail.com> wrote: > > > > > I dropped the text_filter column. > > > > > > > > > > The admin page saves text_filter not text_filter_id. So I can't use > > > filters > > > > > now. > > > > > > > > > > More confusingly it saves text_filter by name instead of just id. > Seems > > > to > > > > > be some confusion between how contents table and blogs table work. > Not > > > > > sure how you would like this resolved. > > > > > > > > > > > > > > > > > > > > On 7/19/06, Scott Laird < scott at sigkill.org> wrote: > > > > > > This is a database/active record problem, *not* a text filter > problem. > > > > > > > > > > > > The problem, plain and simple, is that article.text_filter is > supposed > > > > > > to be a TextFilter object, but instead it's a block of YAML. I'm > not > > > > > > quite sure how that could happen--it shouldn't ever have been YAML > in > > > > > > the first place, so it's not like it missed a conversion step. > > > > > > > > > > > > Oh, wait--there it is. Your schema is broken. You have a > > > > > > 'text_filter' field in contents; there should only be a > > > > > > 'text_filter_id' field. Back up your db and drop text_filter, and > you > > > > > > should be okay. Somehow you missed that migration. > > > > > > > > > > > > > > > > > > Scott > > > > > > > > > > > > On 7/18/06, Steve Longdo < steve.longdo at gmail.com> wrote: > > > > > > > A little research on populate_html_fields shows it sprang into > > > > > > > existence between r1004 and r1033 in the content.rb model. As > near > > > as > > > > > > > I can see it was always expecting a controller of some kind and > > > never > > > > > > > the instance of Content that the ContentObserver(also r1033) > sends > > > in. > > > > > > > > > > > > > > 101 def html(controller,what = :all) > > > > > > > 99 def > > > populate_html_fields(controller) > > > > > > > > > > > > > > *sigh* I will into it some more tomorrow, tired now. > > > > > > > > > > > > > > On 7/18/06, Steve Longdo < steve.longdo at gmail.com > wrote: > > > > > > > > I've never personally edited my typo table structure. I do > know > > > one > > > > > > > > of the migrations ran and turned my UTF-8 data into ASCII. > Only > > > > > > > > because I had some language characters outside the overlap in > the > > > > > > > > charactersets. > > > > > > > > > > > > > > > > I'm suspicious of the change in the ContentObserver class from > 2 > > > weeks > > > > > > > > ago. It seems to be responsible for populating the > html_fields > > > before > > > > > > > > a save. I suspect if I remove the commentted line my > body_html > > > field > > > > > > > > will get populated again. > > > > > > > > > > > > > > > > At any rate I show 18 tables. Is that right? > > > > > > > > > > > > > > > > mysql> show tables; > > > > > > > > +-----------------------+ > > > > > > > > | Tables_in_rhesus_typo | > > > > > > > > +-----------------------+ > > > > > > > > | articles_categories | > > > > > > > > | articles_tags | > > > > > > > > | blacklist_patterns | > > > > > > > > | blogs | > > > > > > > > | categories | > > > > > > > > | contents | > > > > > > > > | notifications | > > > > > > > > | page_caches | > > > > > > > > | pings | > > > > > > > > | redirects | > > > > > > > > | resources | > > > > > > > > | schema_info | > > > > > > > > | sessions | > > > > > > > > | sidebars | > > > > > > > > | tags | > > > > > > > > | text_filters | > > > > > > > > | triggers | > > > > > > > > | users | > > > > > > > > +-----------------------+ > > > > > > > > 18 rows in set ( 0.00 sec) > > > > > > > > > > > > > > > > mysql> desc > > > > > > > > > contents;+------------------+--------------+------+-----+---------+----------------+| > > > > > > > > Field | Type | Null | Key | Default | Extra > > > > > > > > > > > > > > > > > |+------------------+--------------+------+-----+---------+----------------+| > > > > > > > > id | int(11) | | PRI | NULL | > > > > > > > > auto_increment || title | varchar(255) | YES | > | > > > NULL > > > > > > > > | || author | varchar(255) | YES | > > > | > > > > > > > > NULL | || body | text | > YES > > > | > > > > > > > > | NULL | || body_html | text > | > > > YES > > > > > > > > | | NULL | || extended | text > > > | > > > > > > > > YES | | NULL | || excerpt | > text > > > > > > > > | YES | | NULL | || keywords > | > > > > > > > > varchar(255) | YES | | NULL | || > > > text_filter > > > > > > > > | varchar(255) | YES | | NULL | || > > > created_at > > > > > > > > | datetime | YES | | NULL | > || > > > > > > > > updated_at | datetime | YES | | NULL | > > > > > > > > || extended_html | text | YES | | NULL | > > > > > > > > || user_id | int(11) | YES | | NULL > | > > > > > > > > || permalink | varchar(255) | YES | | > NULL > > > | > > > > > > > > || guid | varchar(255) | YES | | > > > NULL > > > > > > > > | || text_filter_id | int(11) | YES | > | > > > > > > > > NULL | | > > > > > > > > | whiteboard | text | YES | | NULL | > > > > > | > > > > > > > > | type | varchar(255) | YES | | NULL | > > > > > | > > > > > > > > | article_id | int(11) | YES | MUL | NULL | > > > > > | > > > > > > > > | email | varchar(255) | YES | | NULL | > > > > > | > > > > > > > > | url | varchar(255) | YES | | NULL | > > > > > | > > > > > > > > | ip | varchar(40) | YES | | NULL | > > > > > | > > > > > > > > | blog_name | varchar(255) | YES | | NULL | > > > > > | > > > > > > > > | name | varchar(255) | YES | | NULL | > > > > > | > > > > > > > > | comments_count | int(11) | YES | | NULL | > > > > > | > > > > > > > > | trackbacks_count | int(11) | YES | | NULL | > > > > > | > > > > > > > > | published | tinyint(1) | YES | | 0 | > > > > > | > > > > > > > > | allow_pings | tinyint(1) | YES | | NULL | > > > > > | > > > > > > > > | allow_comments | tinyint(1) | YES | | NULL | > > > > > | > > > > > > > > | blog_id | int(11) | | MUL | 0 | > > > > > | > > > > > > > > | published_at | datetime | YES | | NULL | > > > > > | > > > > > > > > > > > > > > > > > +------------------+--------------+------+-----+---------+----------------+ > > > > > > > > 31 rows in set ( 0.00 sec) > > > > > > > > > > > > > > > > On 7/18/06, Scott Bronson <bronson at rinspin.com> wrote: > > > > > > > > > On Tue, 2006-07-18 at 21:52 -0500, Steve Longdo wrote: > > > > > > > > > > I have an update for some reason the @ article.text_filter > is > > > > > returning > > > > > > > > > > a YAML String instead of a TextFilter object. This is > > > probably > > > > > the > > > > > > > > > > culprit for Trac #1006 as well. I confirmed this in the > > > console > > > > > > > > > > loading the saved new post(a) and an older one that still > > > renders > > > > > > > > > > correctly(b): > > > > > > > > > > > > > > > > > > When I encountered symptoms like this, it's because my > database > > > > > schema > > > > > > > > > was hosed. Probably happened when I tried to fix the > migrations > > > 6 > > > > > > > > > months ago. My database had an extra table that wasn't > being > > > used > > > > > but > > > > > > > > > had the same name as a variable in the code. AR wasn't very > > > happy > > > > > about > > > > > > > > > that and instantiated YAML strings instead of objects. > > > > > > > > > > > > > > > > > > In my case, I dropped the table and things started working. > > > > > > > > > > > > > > > > > > So, you might want to give your schema a close look-see. > > > Especially > > > > > > > > > check for extra tables. > > > > > > > > > > > > > > > > > > I've been meaning to write a Typo database lint tool... It > > > would > > > > > ensure > > > > > > > > > that no extra tables exist, all table references work, no > > > > > duplicates, > > > > > > > > > etc. Ah, if only I had a bit more time... > > > > > > > > > > > > > > > > > > - Scott > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > Typo-list mailing list > > > > > > > > > Typo-list at rubyforge.org > > > > > > > > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > Thanks, > > > > > > > > -Steve > > > > > > > > http://www.stevelongdo.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > 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 > > > > > > > > > > > > > > > > -- > > > 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 > > > > > > -- > Thanks, > -Steve > http://www.stevelongdo.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From neuro at 7el.net Thu Jul 20 11:14:35 2006 From: neuro at 7el.net (Frederic de Villamil) Date: Thu, 20 Jul 2006 17:14:35 +0200 Subject: [typo] Admin interface complete rebuild Message-ID: <44BF9DDB.7010704@7el.net> Hi list, I'm starting today a complete rebuild of the admin interface, which may make Hercule's works look like a piece of cake. The goal is not adding new functionnality, even though I want to try a few things, but improving usability and make typo more intuitive and easy to use for the technology impaired user, or sort of. Before starting the whole process, I'd like to have your ideas, wants, feedbacks... I can't promise I'll take that into account because sometimes, usability from the developper's point of view is not the same thing as from the end user's one, but I'll try anyway. I'll try to do it the most progressive way, not changing everything at the same time, but the current admin is such a mess... can't even say if I will be able to do so. I've already started to re think the whole stuff from scratch, but I'm really looking forward your ideas. And sorry for my English, it sucks. -- 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 jake at whoisjake.com Thu Jul 20 11:29:24 2006 From: jake at whoisjake.com (Jake Good) Date: Thu, 20 Jul 2006 10:29:24 -0500 Subject: [typo] Admin interface complete rebuild In-Reply-To: <44BF9DDB.7010704@7el.net> References: <44BF9DDB.7010704@7el.net> Message-ID: <44BFA154.6060109@whoisjake.com> I want a list of comments, trackbacks, and tags... so I can easily edit, delete, and view them in list form. I don't want to have to go up to the top right to get to settings either. I'm lazy and want it as a tab! Granted these are things that *I* feel should be changed... Frederic de Villamil wrote: > Hi list, > > I'm starting today a complete rebuild of the admin interface, which may > make Hercule's works look like a piece of cake. > > The goal is not adding new functionnality, even though I want to try a > few things, but improving usability and make typo more intuitive and > easy to use for the technology impaired user, or sort of. > > Before starting the whole process, I'd like to have your ideas, wants, > feedbacks... I can't promise I'll take that into account because > sometimes, usability from the developper's point of view is not the same > thing as from the end user's one, but I'll try anyway. > > I'll try to do it the most progressive way, not changing everything at > the same time, but the current admin is such a mess... can't even say if > I will be able to do so. > > I've already started to re think the whole stuff from scratch, but I'm > really looking forward your ideas. > > And sorry for my English, it sucks. > > From scott at sigkill.org Thu Jul 20 11:32:36 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 20 Jul 2006 08:32:36 -0700 Subject: [typo] Admin interface complete rebuild In-Reply-To: <44BFA154.6060109@whoisjake.com> References: <44BF9DDB.7010704@7el.net> <44BFA154.6060109@whoisjake.com> Message-ID: <14b7e5ef0607200832i26e20e2bld1345f5ee0bb04ac@mail.gmail.com> Comments and trackbacks are in the latest trunk--see the 'feedback' tab at the top. Scott On 7/20/06, Jake Good <jake at whoisjake.com> wrote: > I want a list of comments, trackbacks, and tags... so I can easily edit, > delete, and view them in list form. > > I don't want to have to go up to the top right to get to settings > either. I'm lazy and want it as a tab! > > Granted these are things that *I* feel should be changed... > > Frederic de Villamil wrote: > > Hi list, > > > > I'm starting today a complete rebuild of the admin interface, which may > > make Hercule's works look like a piece of cake. > > > > The goal is not adding new functionnality, even though I want to try a > > few things, but improving usability and make typo more intuitive and > > easy to use for the technology impaired user, or sort of. > > > > Before starting the whole process, I'd like to have your ideas, wants, > > feedbacks... I can't promise I'll take that into account because > > sometimes, usability from the developper's point of view is not the same > > thing as from the end user's one, but I'll try anyway. > > > > I'll try to do it the most progressive way, not changing everything at > > the same time, but the current admin is such a mess... can't even say if > > I will be able to do so. > > > > I've already started to re think the whole stuff from scratch, but I'm > > really looking forward your ideas. > > > > And sorry for my English, it sucks. > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From jake at whoisjake.com Thu Jul 20 11:33:46 2006 From: jake at whoisjake.com (Jake Good) Date: Thu, 20 Jul 2006 10:33:46 -0500 Subject: [typo] Admin interface complete rebuild In-Reply-To: <14b7e5ef0607200832i26e20e2bld1345f5ee0bb04ac@mail.gmail.com> References: <44BF9DDB.7010704@7el.net> <44BFA154.6060109@whoisjake.com> <14b7e5ef0607200832i26e20e2bld1345f5ee0bb04ac@mail.gmail.com> Message-ID: <44BFA25A.9010602@whoisjake.com> I haven't svn up'ped in a while... Thanks! Scott Laird wrote: > Comments and trackbacks are in the latest trunk--see the 'feedback' > tab at the top. > > > Scott > > On 7/20/06, Jake Good <jake at whoisjake.com> wrote: > >> I want a list of comments, trackbacks, and tags... so I can easily edit, >> delete, and view them in list form. >> >> I don't want to have to go up to the top right to get to settings >> either. I'm lazy and want it as a tab! >> >> Granted these are things that *I* feel should be changed... >> >> Frederic de Villamil wrote: >> >>> Hi list, >>> >>> I'm starting today a complete rebuild of the admin interface, which may >>> make Hercule's works look like a piece of cake. >>> >>> The goal is not adding new functionnality, even though I want to try a >>> few things, but improving usability and make typo more intuitive and >>> easy to use for the technology impaired user, or sort of. >>> >>> Before starting the whole process, I'd like to have your ideas, wants, >>> feedbacks... I can't promise I'll take that into account because >>> sometimes, usability from the developper's point of view is not the same >>> thing as from the end user's one, but I'll try anyway. >>> >>> I'll try to do it the most progressive way, not changing everything at >>> the same time, but the current admin is such a mess... can't even say if >>> I will be able to do so. >>> >>> I've already started to re think the whole stuff from scratch, but I'm >>> really looking forward your ideas. >>> >>> And sorry for my English, it sucks. >>> >>> >>> >> _______________________________________________ >> 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 johncwang at gmail.com Thu Jul 20 11:41:41 2006 From: johncwang at gmail.com (John Wang) Date: Thu, 20 Jul 2006 08:41:41 -0700 Subject: [typo] Admin interface complete rebuild In-Reply-To: <44BF9DDB.7010704@7el.net> References: <44BF9DDB.7010704@7el.net> Message-ID: <22a4faec0607200841g3cac5544j4e5ada77bbb37d40@mail.gmail.com> On 7/20/06, Frederic de Villamil <neuro at 7el.net> wrote: > > Before starting the whole process, I'd like to have your ideas, wants, > feedbacks... I can't promise I'll take that into account because > sometimes, usability from the developper's point of view is not the same > thing as from the end user's one, but I'll try anyway. It would be nice if the sidebar plugins can be grouped so they they can be called separately in the main template. I'd like this to use a 3 column CSS layout with some sidebars in the left column and others in the right. -- John Wang http://www.dev411.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060720/0fd019aa/attachment.html From neuro at 7el.net Thu Jul 20 11:46:15 2006 From: neuro at 7el.net (Frederic de Villamil) Date: Thu, 20 Jul 2006 17:46:15 +0200 Subject: [typo] Admin interface complete rebuild In-Reply-To: <22a4faec0607200841g3cac5544j4e5ada77bbb37d40@mail.gmail.com> References: <44BF9DDB.7010704@7el.net> <22a4faec0607200841g3cac5544j4e5ada77bbb37d40@mail.gmail.com> Message-ID: <44BFA547.5090606@7el.net> John Wang a ?crit : > On 7/20/06, *Frederic de Villamil* <neuro at 7el.net > <mailto:neuro at 7el.net>> wrote: > > Before starting the whole process, I'd like to have your ideas, wants, > feedbacks... I can't promise I'll take that into account because > sometimes, usability from the developper's point of view is not the same > thing as from the end user's one, but I'll try anyway. > > > It would be nice if the sidebar plugins can be grouped so they they can > be called separately in the main template. I'd like this to use a 3 > column CSS layout with some sidebars in the left column and others in > the right. > John, this is not an admin issue. It deals with the way typo displays the sidebar. And I totally agree with you, being unable to have a 3 columns CSS is a pity, but I think it's going to be a real big big stuff for the next version. If one of the mainteners start to implement this, I'll do it for the admin as well, but I do believe they have some other priorities. -- 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 wade at ezri.org Thu Jul 20 11:52:13 2006 From: wade at ezri.org (Wade Menard) Date: Thu, 20 Jul 2006 11:52:13 -0400 Subject: [typo] Admin interface complete rebuild In-Reply-To: <44BF9DDB.7010704@7el.net> References: <44BF9DDB.7010704@7el.net> Message-ID: <1153410733.12253.1.camel@localhost> On Thu, 2006-07-20 at 17:14 +0200, Frederic de Villamil wrote: > > I've already started to re think the whole stuff from scratch, but I'm > really looking forward your ideas. > Would a WYSIWYG post editor be out of the question? -Wade From neuro at 7el.net Thu Jul 20 12:01:48 2006 From: neuro at 7el.net (Frederic de Villamil) Date: Thu, 20 Jul 2006 18:01:48 +0200 Subject: [typo] Admin interface complete rebuild In-Reply-To: <1153410733.12253.1.camel@localhost> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> Message-ID: <44BFA8EC.3080409@7el.net> Wade Menard a ?crit : > On Thu, 2006-07-20 at 17:14 +0200, Frederic de Villamil wrote: >> I've already started to re think the whole stuff from scratch, but I'm >> really looking forward your ideas. >> > > Would a WYSIWYG post editor be out of the question? > > -Wade I've been thinking about it for a while actually, and there are lots of for and against. I really don't like wysiwyg editors, but my personnal tates is nothing when compaired to the amount of users Typo should gain with a wysiwyg interface. If we decide to enable one, it means we MUST have an alternate editor with people being able to choose whether or not they want to use it. I come from the Wordpress world where adding a rich text interface by default without any alternative really made a fuss for the 2.0 release, and they had to make a step back. There is still an issue : does the rich interface need to be enabled by default or not ? I believe it depends on another question : we want to make Typo more user friendly, but do we want him to still choose his friends or not ? -- 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 jake at whoisjake.com Thu Jul 20 12:18:22 2006 From: jake at whoisjake.com (Jake Good) Date: Thu, 20 Jul 2006 11:18:22 -0500 Subject: [typo] Admin interface complete rebuild In-Reply-To: <44BFA8EC.3080409@7el.net> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> <44BFA8EC.3080409@7el.net> Message-ID: <44BFACCE.6020503@whoisjake.com> I use Markdown and SmartyPants ... so when I'm writing posts, I'm already keeping markup in mind. SO I'd like the ability to turn it off... but I would venture to guess that *most* new bloggers would want it. Frederic de Villamil wrote: > Wade Menard a ?crit : > >> On Thu, 2006-07-20 at 17:14 +0200, Frederic de Villamil wrote: >> >>> I've already started to re think the whole stuff from scratch, but I'm >>> really looking forward your ideas. >>> >>> >> Would a WYSIWYG post editor be out of the question? >> >> -Wade >> > > I've been thinking about it for a while actually, and there are lots of > for and against. > > I really don't like wysiwyg editors, but my personnal tates is nothing > when compaired to the amount of users Typo should gain with a wysiwyg > interface. > > If we decide to enable one, it means we MUST have an alternate editor > with people being able to choose whether or not they want to use it. I > come from the Wordpress world where adding a rich text interface by > default without any alternative really made a fuss for the 2.0 release, > and they had to make a step back. > > There is still an issue : does the rich interface need to be enabled by > default or not ? I believe it depends on another question : we want to > make Typo more user friendly, but do we want him to still choose his > friends or not ? > > > From scott at sigkill.org Thu Jul 20 12:24:09 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 20 Jul 2006 09:24:09 -0700 Subject: [typo] Admin interface complete rebuild In-Reply-To: <44BFACCE.6020503@whoisjake.com> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> <44BFA8EC.3080409@7el.net> <44BFACCE.6020503@whoisjake.com> Message-ID: <14b7e5ef0607200924n998a74fvee9e6e7fcd1665c1@mail.gmail.com> I'm with Jake--it'd just get in my way, but I have nothing against reasonably semantic editors. As long as I can turn it off. OTOH, any editor that inserts <font> tags needs to die :-). Scott On 7/20/06, Jake Good <jake at whoisjake.com> wrote: > I use Markdown and SmartyPants ... so when I'm writing posts, I'm > already keeping markup in mind. > > SO I'd like the ability to turn it off... but I would venture to guess > that *most* new bloggers would want it. > > Frederic de Villamil wrote: > > Wade Menard a ?crit : > > > >> On Thu, 2006-07-20 at 17:14 +0200, Frederic de Villamil wrote: > >> > >>> I've already started to re think the whole stuff from scratch, but I'm > >>> really looking forward your ideas. > >>> > >>> > >> Would a WYSIWYG post editor be out of the question? > >> > >> -Wade > >> > > > > I've been thinking about it for a while actually, and there are lots of > > for and against. > > > > I really don't like wysiwyg editors, but my personnal tates is nothing > > when compaired to the amount of users Typo should gain with a wysiwyg > > interface. > > > > If we decide to enable one, it means we MUST have an alternate editor > > with people being able to choose whether or not they want to use it. I > > come from the Wordpress world where adding a rich text interface by > > default without any alternative really made a fuss for the 2.0 release, > > and they had to make a step back. > > > > There is still an issue : does the rich interface need to be enabled by > > default or not ? I believe it depends on another question : we want to > > make Typo more user friendly, but do we want him to still choose his > > friends or not ? > > > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From steve.longdo at gmail.com Thu Jul 20 13:31:29 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Thu, 20 Jul 2006 12:31:29 -0500 Subject: [typo] Admin interface complete rebuild In-Reply-To: <14b7e5ef0607200924n998a74fvee9e6e7fcd1665c1@mail.gmail.com> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> <44BFA8EC.3080409@7el.net> <44BFACCE.6020503@whoisjake.com> <14b7e5ef0607200924n998a74fvee9e6e7fcd1665c1@mail.gmail.com> Message-ID: <cc4e85f30607201031s49d57910u289b9ae8d2868b8b@mail.gmail.com> I have some code that I started out with for using FCKeditor in the admin area that can be turned off and on via javascript in the posting area. I would be glad to share if anyone is interested. I quit working on it when I found out that FCKeditor doesn't support Safari. TinyMCE works with all browsers and shouldn't be too different to integrate. Either way Ruby code to handle file upload would be needed as I didn't get to that. On 7/20/06, Scott Laird <scott at sigkill.org> wrote: > > I'm with Jake--it'd just get in my way, but I have nothing against > reasonably semantic editors. As long as I can turn it off. > > OTOH, any editor that inserts <font> tags needs to die :-). > > > Scott > > On 7/20/06, Jake Good <jake at whoisjake.com> wrote: > > I use Markdown and SmartyPants ... so when I'm writing posts, I'm > > already keeping markup in mind. > > > > SO I'd like the ability to turn it off... but I would venture to guess > > that *most* new bloggers would want it. > > > > Frederic de Villamil wrote: > > > Wade Menard a ?crit : > > > > > >> On Thu, 2006-07-20 at 17:14 +0200, Frederic de Villamil wrote: > > >> > > >>> I've already started to re think the whole stuff from scratch, but > I'm > > >>> really looking forward your ideas. > > >>> > > >>> > > >> Would a WYSIWYG post editor be out of the question? > > >> > > >> -Wade > > >> > > > > > > I've been thinking about it for a while actually, and there are lots > of > > > for and against. > > > > > > I really don't like wysiwyg editors, but my personnal tates is nothing > > > when compaired to the amount of users Typo should gain with a wysiwyg > > > interface. > > > > > > If we decide to enable one, it means we MUST have an alternate editor > > > with people being able to choose whether or not they want to use it. I > > > come from the Wordpress world where adding a rich text interface by > > > default without any alternative really made a fuss for the 2.0release, > > > and they had to make a step back. > > > > > > There is still an issue : does the rich interface need to be enabled > by > > > default or not ? I believe it depends on another question : we want to > > > make Typo more user friendly, but do we want him to still choose his > > > friends or not ? > > > > > > > > > > > _______________________________________________ > > 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 -- Thanks, -Steve http://www.stevelongdo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060720/176ea665/attachment.html From robby.lists at planetargon.com Thu Jul 20 13:50:48 2006 From: robby.lists at planetargon.com (Robby Russell) Date: Thu, 20 Jul 2006 10:50:48 -0700 Subject: [typo] Admin interface complete rebuild In-Reply-To: <1153410733.12253.1.camel@localhost> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> Message-ID: <744A1E7B-8A36-44FB-9BF7-AA24A258FEFA@planetargon.com> On Jul 20, 2006, at 8:52 AM, Wade Menard wrote: > Would a WYSIWYG post editor be out of the question? > > -Wade ...and thus we continue to grow farther and farther away from the simple blog engine that could. -- Robby Russell Founder & Executive Director PLANET ARGON, LLC Ruby on Rails Development, Consulting & Hosting www.planetargon.com www.robbyonrails.com +1 503 445 2457 +1 877 55 ARGON [toll free] +1 815 642 4068 [fax] From jake at whoisjake.com Thu Jul 20 13:54:50 2006 From: jake at whoisjake.com (Jake Good) Date: Thu, 20 Jul 2006 12:54:50 -0500 Subject: [typo] Admin interface complete rebuild In-Reply-To: <744A1E7B-8A36-44FB-9BF7-AA24A258FEFA@planetargon.com> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> <744A1E7B-8A36-44FB-9BF7-AA24A258FEFA@planetargon.com> Message-ID: <44BFC36A.1070909@whoisjake.com> Aren't you proud? Robby Russell wrote: > On Jul 20, 2006, at 8:52 AM, Wade Menard wrote: > > >> Would a WYSIWYG post editor be out of the question? >> >> -Wade >> > > > ...and thus we continue to grow farther and farther away from the > simple blog engine that could. > > > -- > Robby Russell > Founder & Executive Director > > PLANET ARGON, LLC > Ruby on Rails Development, Consulting & Hosting > > www.planetargon.com > www.robbyonrails.com > > +1 503 445 2457 > +1 877 55 ARGON [toll free] > +1 815 642 4068 [fax] > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From gpsnospam at gmail.com Thu Jul 20 15:14:35 2006 From: gpsnospam at gmail.com (Gary Shewan) Date: Thu, 20 Jul 2006 20:14:35 +0100 Subject: [typo] Admin interface complete rebuild In-Reply-To: <744A1E7B-8A36-44FB-9BF7-AA24A258FEFA@planetargon.com> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> <744A1E7B-8A36-44FB-9BF7-AA24A258FEFA@planetargon.com> Message-ID: <422680CF-DFC2-481B-8296-7040C20EA361@gmail.com> On 20 Jul 2006, at 18:50, Robby Russell wrote: > ...and thus we continue to grow farther and farther away from the > simple blog engine that could. I'd love to see a plugin architecture so those of use who were attracted to the lean and speedy aspects in the beginning don't have to bulk up on 'functionality'. Added features draws users though it has to be said. If I ever get the time after 4.0 and when life calms down, I'm going to look at ripping out the excess from a copy to see how light it can go. I mean I don't even own an xbox ;) I've been busy, but a belated 'Woo hoo' for the speed improvements Scott. Gary From scott at sigkill.org Thu Jul 20 15:35:40 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 20 Jul 2006 12:35:40 -0700 Subject: [typo] Admin interface complete rebuild In-Reply-To: <422680CF-DFC2-481B-8296-7040C20EA361@gmail.com> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> <744A1E7B-8A36-44FB-9BF7-AA24A258FEFA@planetargon.com> <422680CF-DFC2-481B-8296-7040C20EA361@gmail.com> Message-ID: <14b7e5ef0607201235l3f67eecexad8f808178da3e7f@mail.gmail.com> On 7/20/06, Gary Shewan <gpsnospam at gmail.com> wrote: > I'd love to see a plugin architecture so those of use who were > attracted to the lean and speedy aspects in the beginning don't have > to bulk up on 'functionality'. Added features draws users though it > has to be said. I have mixed feelings on this. On one hand, Typo's pretty clearly over-complex, at least in some areas. On the other hand, most of the really painful complexity in Typo has to do with plugin frameworks :-(. Fortunately, a lot of the pain that we've went through lately should pay off once we ship 4.0, because we can start removing old cruft. Pier's blog_id code will let us get rid of a ton of special-case code that lurks in the text filter framework. The whole text filter and sidebar frameworks need to be rewritten to use Rails's native plugin support. It won't be a big change for the plugins themselves, but we'll be able to dump a lot of complex (and slow!) infrastructure code. It'll be *really* nice to get rid of components. A side effect of this is that we'll be able to dump quite a few of the sidebars in the trunk out into their own packages. Presumably we'll be able to make something like 'rapt install typo41-sidebar-xbox' work seamlessly, although I haven't played with any of the Rails plugin tools enough yet. We can also prune the size of our tree back quite a bit--there's a lot of stuff in vendor/ that we can delete and replace with .gem requirements eventually. > If I ever get the time after 4.0 and when life calms down, I'm going > to look at ripping out the excess from a copy to see how light it can > go. I mean I don't even own an xbox ;) > > I've been busy, but a belated 'Woo hoo' for the speed improvements > Scott. Thanks. Scott From bronson at rinspin.com Thu Jul 20 16:19:12 2006 From: bronson at rinspin.com (Scott Bronson) Date: Thu, 20 Jul 2006 13:19:12 -0700 Subject: [typo] Admin interface complete rebuild In-Reply-To: <44BF9DDB.7010704@7el.net> References: <44BF9DDB.7010704@7el.net> Message-ID: <1153426752.8119.31.camel@lyra.rinspin.com> On Thu, 2006-07-20 at 17:14 +0200, Frederic de Villamil wrote: > Hi list, > > I'm starting today a complete rebuild of the admin interface, which may > make Hercule's works look like a piece of cake. Awesome!! I would love to see the preferences system work with plugins (one day... you've got ot start somewhere). The plugins will have to configure themselves somehow, and allowing them to easily add their preferences anywhere in the settings pages would be really nice. I'd also like to see Typo move toward a more traditional preferences setup, maybe with a hierarchy of tabs. The current 5 mile long form is a little daunting. A tab hierarchy could be: Top-level Tabs: Editing Appearance Users Plugins New Article New Page Editing: Articles Pages Comments Files Categories Text Filters Blacklist Appearance: Sidebar Themes Thoughts: I would like New Article and New Page buttons to be on the main page. They don't have to be in the tab bar though... Maybe put them in the upper right-hand corner? Would Text Filters be considered Plugins? Anyhow, it would be really nice if it were all modularized so that re-organizing the settings pages would be a simple job. How nice to be talking beyond 4.0 for a change! :) - Scott From bronson at rinspin.com Thu Jul 20 16:21:11 2006 From: bronson at rinspin.com (Scott Bronson) Date: Thu, 20 Jul 2006 13:21:11 -0700 Subject: [typo] Admin interface complete rebuild In-Reply-To: <44BFA547.5090606@7el.net> References: <44BF9DDB.7010704@7el.net> <22a4faec0607200841g3cac5544j4e5ada77bbb37d40@mail.gmail.com> <44BFA547.5090606@7el.net> Message-ID: <1153426871.8119.34.camel@lyra.rinspin.com> On Thu, 2006-07-20 at 17:46 +0200, Frederic de Villamil wrote: > John Wang a ?crit : > > On 7/20/06, *Frederic de Villamil* <neuro at 7el.net > > <mailto:neuro at 7el.net>> wrote: > > > > Before starting the whole process, I'd like to have your ideas, wants, > > feedbacks... I can't promise I'll take that into account because > > sometimes, usability from the developper's point of view is not the same > > thing as from the end user's one, but I'll try anyway. > > > > > > It would be nice if the sidebar plugins can be grouped so they they can > > be called separately in the main template. I'd like this to use a 3 > > column CSS layout with some sidebars in the left column and others in > > the right. I agree. But I'd like to see even more than 2 sidebars be possible. Think Hemingway (the theme) for instance. I agree with Frederic, though. That will be a big change. - Scott From bronson at rinspin.com Thu Jul 20 16:27:24 2006 From: bronson at rinspin.com (Scott Bronson) Date: Thu, 20 Jul 2006 13:27:24 -0700 Subject: [typo] Admin interface complete rebuild In-Reply-To: <cc4e85f30607201031s49d57910u289b9ae8d2868b8b@mail.gmail.com> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> <44BFA8EC.3080409@7el.net> <44BFACCE.6020503@whoisjake.com> <14b7e5ef0607200924n998a74fvee9e6e7fcd1665c1@mail.gmail.com> <cc4e85f30607201031s49d57910u289b9ae8d2868b8b@mail.gmail.com> Message-ID: <1153427244.8119.41.camel@lyra.rinspin.com> On Thu, 2006-07-20 at 12:31 -0500, Steve Longdo wrote: > TinyMCE works with all browsers and shouldn't be too different to > integrate. Moxiecode claims partial support but it's horribly buggy to the point of uselessness. I've just told my customers to use Mozilla until Apple fixes getSelection() and contentEditable (they claim that the next Safari release should have the fixes). Have you actually used TinyMCE on Safari? Is your experience different than mine? - Scott From johncwang at gmail.com Thu Jul 20 17:08:51 2006 From: johncwang at gmail.com (John Wang) Date: Thu, 20 Jul 2006 14:08:51 -0700 Subject: [typo] Admin interface complete rebuild In-Reply-To: <1153426871.8119.34.camel@lyra.rinspin.com> References: <44BF9DDB.7010704@7el.net> <22a4faec0607200841g3cac5544j4e5ada77bbb37d40@mail.gmail.com> <44BFA547.5090606@7el.net> <1153426871.8119.34.camel@lyra.rinspin.com> Message-ID: <22a4faec0607201408u39d53afcgb19410d40111be69@mail.gmail.com> On 7/20/06, Scott Bronson <bronson at rinspin.com> wrote: > > On Thu, 2006-07-20 at 17:46 +0200, Frederic de Villamil wrote: > > John Wang a ?crit : > > > On 7/20/06, *Frederic de Villamil* wrote: > > > > > > Before starting the whole process, I'd like to have your ideas, > wants, > > > feedbacks... I can't promise I'll take that into account because > > > sometimes, usability from the developper's point of view is not > the same > > > thing as from the end user's one, but I'll try anyway. > > > > > > It would be nice if the sidebar plugins can be grouped so they they > can > > > be called separately in the main template. I'd like this to use a 3 > > > column CSS layout with some sidebars in the left column and others in > > > the right. > > I agree. But I'd like to see even more than 2 sidebars be possible. > Think Hemingway (the theme) for instance. It'd be nice if it was an arbitrary number of groups and they didn't have to be "side" bars: could be above the articles, below the articles, or elsewhere. I agree with Frederic, though. That will be a big change. I mentioned this on IRC and Piers said: My gut feeling is that you could introduce sidebar divs in that interface and populate each div, then you get to position the subdivs where you like with a CSS if your theme supports it, but it'll still show up correctly in themes that don't want multiple sidebar stuff... -- John Wang http://www.dev411.com/blog/tag/typo/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060720/0b38360c/attachment-0001.html From meta at pobox.com Thu Jul 20 18:58:35 2006 From: meta at pobox.com (mathew) Date: Thu, 20 Jul 2006 17:58:35 -0500 Subject: [typo] WYSIWYG editing (was Re: Admin interface complete rebuild) In-Reply-To: <44BFA8EC.3080409@7el.net> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> <44BFA8EC.3080409@7el.net> Message-ID: <44C00A9B.5010702@pobox.com> Frederic de Villamil wrote: > Wade Menard a ?crit : > >> Would a WYSIWYG post editor be out of the question? >> > > I've been thinking about it for a while actually, and there are lots of > for and against. > > I really don't like wysiwyg editors, but my personnal tates is nothing > when compaired to the amount of users Typo should gain with a wysiwyg > interface. Well, as luck would have it I recently did a ton of research on what's out there. If anyone's interested in adding WYSIWYG editing, I'd strongly recommend taking a look at FCKeditor. Key features: - Works in Firefox & IE, Safari is being investigated - LGPL license - No plugins required - XHTML and CSS support - Can be configured to actually produce paragraphs and linebreaks properly The last feature is surprisingly rare; in fact, FCKeditor was the only free WYSIWYG HTML editor I could find that could be configured to make proper paragraphs under both IE and Firefox. <URL:http://www.fckeditor.net/> mathew From meta at pobox.com Thu Jul 20 19:08:47 2006 From: meta at pobox.com (mathew) Date: Thu, 20 Jul 2006 18:08:47 -0500 Subject: [typo] Admin interface complete rebuild In-Reply-To: <14b7e5ef0607201235l3f67eecexad8f808178da3e7f@mail.gmail.com> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> <744A1E7B-8A36-44FB-9BF7-AA24A258FEFA@planetargon.com> <422680CF-DFC2-481B-8296-7040C20EA361@gmail.com> <14b7e5ef0607201235l3f67eecexad8f808178da3e7f@mail.gmail.com> Message-ID: <44C00CFF.2010206@pobox.com> Scott Laird wrote: > I have mixed feelings on this. On one hand, Typo's pretty clearly > over-complex, at least in some areas. On the other hand, most of the > really painful complexity in Typo has to do with plugin frameworks > Well, that's always the way. Just today I was modifying another CMS at work, and realized just how tiny and simple it was compared to the behemoth I had borrowed a lot of the code from. The secret, of course, is that the new tiny system only had to please me, wheres the behemoth was built to be configurable to the ever-changing whims of a wider user population. I do feel, though, that you should either stabilize and document the plugin frameworks, or rip them out. At the moment, nobody uses them because it's an undocumented moving target, but you have all that complexity there anyway. I say either lose the complexity, or document and stabilize it so people will use it and you'll get some actual benefit from having it there. > The whole text filter and > sidebar frameworks need to be rewritten to use Rails's native plugin > support. Oh. *sigh*. mathew From trejkaz at trypticon.org Thu Jul 20 20:10:57 2006 From: trejkaz at trypticon.org (Trejkaz) Date: Fri, 21 Jul 2006 10:10:57 +1000 Subject: [typo] Admin interface complete rebuild In-Reply-To: <1153410733.12253.1.camel@localhost> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> Message-ID: <200607211010.59956.trejkaz@trypticon.org> On Friday 21 July 2006 01:52, Wade Menard wrote: > On Thu, 2006-07-20 at 17:14 +0200, Frederic de Villamil wrote: > > I've already started to re think the whole stuff from scratch, but I'm > > really looking forward your ideas. > > Would a WYSIWYG post editor be out of the question? Can you not use an external application with WYSIWYG support, to post to the blog? That's what the API is for, after all. Might as well throw away the API if nobody uses it. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20060721/c2bab281/attachment.bin From wade at ezri.org Thu Jul 20 20:28:45 2006 From: wade at ezri.org (Wade Menard) Date: Thu, 20 Jul 2006 20:28:45 -0400 Subject: [typo] Admin interface complete rebuild In-Reply-To: <200607211010.59956.trejkaz@trypticon.org> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> <200607211010.59956.trejkaz@trypticon.org> Message-ID: <1153441725.10018.4.camel@localhost> On Fri, 2006-07-21 at 10:10 +1000, Trejkaz wrote: > Can you not use an external application with WYSIWYG support, to post to the > blog? That's what the API is for, after all. Might as well throw away the > API if nobody uses it. A writer is not always at home or at a place where they can use a desktop client when they want to post something, but are always near a web browser. It is really frustrating to use the interface as it is now, having to do <p>'s and <br>'s or whatever manually. It's not beyond my abilities but it's the last thing I want to deal with when composing an article. I might as well be inserting the entry with phpMyAdmin. -Wade From scott at sigkill.org Thu Jul 20 20:33:44 2006 From: scott at sigkill.org (Scott Laird) Date: Thu, 20 Jul 2006 17:33:44 -0700 Subject: [typo] Admin interface complete rebuild In-Reply-To: <1153441725.10018.4.camel@localhost> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> <200607211010.59956.trejkaz@trypticon.org> <1153441725.10018.4.camel@localhost> Message-ID: <14b7e5ef0607201733j64b2a92et84f14de037626993@mail.gmail.com> On 7/20/06, Wade Menard <wade at ezri.org> wrote: > On Fri, 2006-07-21 at 10:10 +1000, Trejkaz wrote: > > Can you not use an external application with WYSIWYG support, to post to the > > blog? That's what the API is for, after all. Might as well throw away the > > API if nobody uses it. > > A writer is not always at home or at a place where they can use a > desktop client when they want to post something, but are always near a > web browser. It is really frustrating to use the interface as it is now, > having to do <p>'s and <br>'s or whatever manually. It's not beyond my > abilities but it's the last thing I want to deal with when composing an > article. I might as well be inserting the entry with phpMyAdmin. Frankly, if you're inserting <p> and <br> by hand, then you're using the wrong text filter. Scott From wade at ezri.org Thu Jul 20 22:46:45 2006 From: wade at ezri.org (Wade Menard) Date: Thu, 20 Jul 2006 22:46:45 -0400 Subject: [typo] Admin interface complete rebuild In-Reply-To: <14b7e5ef0607201733j64b2a92et84f14de037626993@mail.gmail.com> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> <200607211010.59956.trejkaz@trypticon.org> <1153441725.10018.4.camel@localhost> <14b7e5ef0607201733j64b2a92et84f14de037626993@mail.gmail.com> Message-ID: <1153450005.17916.2.camel@localhost> On Thu, 2006-07-20 at 17:33 -0700, Scott Laird wrote: > Frankly, if you're inserting <p> and <br> by hand, then you're using > the wrong text filter. Indeed I was. :blush: Maybe their effects should be made a bit more clear in setup. -Wade From neuro at 7el.net Fri Jul 21 01:43:25 2006 From: neuro at 7el.net (Frederic de Villamil) Date: Fri, 21 Jul 2006 07:43:25 +0200 Subject: [typo] Admin interface complete rebuild In-Reply-To: <14b7e5ef0607201733j64b2a92et84f14de037626993@mail.gmail.com> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> <200607211010.59956.trejkaz@trypticon.org> <1153441725.10018.4.camel@localhost> <14b7e5ef0607201733j64b2a92et84f14de037626993@mail.gmail.com> Message-ID: <44C0697D.4060606@7el.net> Scott Laird a ?crit : > On 7/20/06, Wade Menard <wade at ezri.org> wrote: >> On Fri, 2006-07-21 at 10:10 +1000, Trejkaz wrote: >>> Can you not use an external application with WYSIWYG support, to post to the >>> blog? That's what the API is for, after all. Might as well throw away the >>> API if nobody uses it. >> A writer is not always at home or at a place where they can use a >> desktop client when they want to post something, but are always near a >> web browser. It is really frustrating to use the interface as it is now, >> having to do <p>'s and <br>'s or whatever manually. It's not beyond my >> abilities but it's the last thing I want to deal with when composing an >> article. I might as well be inserting the entry with phpMyAdmin. > > Frankly, if you're inserting <p> and <br> by hand, then you're using > the wrong text filter. > > > Scott Or maybe the text filters were brocken and no one was able to use them don't you think ? ;-) -- 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 uzair at nairang.org Fri Jul 21 05:59:50 2006 From: uzair at nairang.org (Syed Uzair Aqeel) Date: Fri, 21 Jul 2006 11:59:50 +0200 Subject: [typo] Admin interface complete rebuild In-Reply-To: <44C0697D.4060606@7el.net> Message-ID: <20060721095942.2560F185583@randymail-a3.dreamhost.com> A WYSIWYG editor doesn't belong in the admin interface. The current editor is more than adequate for the purpose it should be used for -- to allow the administrator to edit posts as necessary. The reasons for allowing admins to post *new* entries from the admin interface are arguable. It would make much more sense for themes to offer a post editor from the front page if the user's session is active (ie, by checking that the log-in cookie exists and hasn't expired) the way many themes currently offer 'edit'/'nuke' options on comments if the user is an admin. Maybe that's not something that's going to happen right now, but even in the worst case, post editors should be prime candidates for being broken into plugins (once the refactoring work Scott mentioned happens). Anyway, Frederic best of luck to you on this, it's going to be awesome I'm sure. A cleaner admin interface will be great, regardless of whether it includes WYSIWYG support. (BTW, anyone who hasn't checked out the Firefox blogging extension from http://www.performancing.com should -- it's quite nice and unintrusive. I'm not as happy with it as I used to be, because posting with it makes Typo return an error message about not being able to update the categories table...apparently because the some column is marked as unique.) Cheers, Syed > -----Original Message----- > From: typo-list-bounces at rubyforge.org [mailto:typo-list- > bounces at rubyforge.org] On Behalf Of Frederic de Villamil > Sent: Friday, July 21, 2006 7:43 AM > To: typo-list at rubyforge.org > Subject: Re: [typo] Admin interface complete rebuild > > Scott Laird a ?crit : > > On 7/20/06, Wade Menard <wade at ezri.org> wrote: > >> On Fri, 2006-07-21 at 10:10 +1000, Trejkaz wrote: > >>> Can you not use an external application with WYSIWYG support, to post > to the > >>> blog? That's what the API is for, after all. Might as well throw > away the > >>> API if nobody uses it. > >> A writer is not always at home or at a place where they can use a > >> desktop client when they want to post something, but are always near a > >> web browser. It is really frustrating to use the interface as it is > now, > >> having to do <p>'s and <br>'s or whatever manually. It's not beyond my > >> abilities but it's the last thing I want to deal with when composing an > >> article. I might as well be inserting the entry with phpMyAdmin. > > > > Frankly, if you're inserting <p> and <br> by hand, then you're using > > the wrong text filter. > > > > > > Scott > > Or maybe the text filters were brocken and no one was able to use them > don't you think ? ;-) > > > -- > 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 From scott at sigkill.org Fri Jul 21 09:56:49 2006 From: scott at sigkill.org (Scott Laird) Date: Fri, 21 Jul 2006 06:56:49 -0700 Subject: [typo] Admin interface complete rebuild In-Reply-To: <20060721095942.2560F185583@randymail-a3.dreamhost.com> References: <44C0697D.4060606@7el.net> <20060721095942.2560F185583@randymail-a3.dreamhost.com> Message-ID: <14b7e5ef0607210656m1116213bw6e32b8ba225d2747@mail.gmail.com> Here's the thing: adding an interface for plugins for the admin interface would probably take a couple hundred lines of code, by the time we turn the current interface into a plugin, add an extra sample or two, and then test the whole thing. Adding one rich-text editor as a standard option would cost *maybe* 10 lines of code. In total. One admin setting to enable it, and a couple lines that change the HTML generated and load the right .js file. So, maybe it's a good usability move, maybe it isn't, but complaining that it'd make Typo too complex and it should be a plugable option is almost exactly backwards :-). Scott On 7/21/06, Syed Uzair Aqeel <uzair at nairang.org> wrote: > A WYSIWYG editor doesn't belong in the admin interface. The current editor > is more than adequate for the purpose it should be used for -- to allow the > administrator to edit posts as necessary. The reasons for allowing admins to > post *new* entries from the admin interface are arguable. > > It would make much more sense for themes to offer a post editor from the > front page if the user's session is active (ie, by checking that the log-in > cookie exists and hasn't expired) the way many themes currently offer > 'edit'/'nuke' options on comments if the user is an admin. Maybe that's not > something that's going to happen right now, but even in the worst case, post > editors should be prime candidates for being broken into plugins (once the > refactoring work Scott mentioned happens). > > Anyway, Frederic best of luck to you on this, it's going to be awesome I'm > sure. A cleaner admin interface will be great, regardless of whether it > includes WYSIWYG support. > > (BTW, anyone who hasn't checked out the Firefox blogging extension from > http://www.performancing.com should -- it's quite nice and unintrusive. I'm > not as happy with it as I used to be, because posting with it makes Typo > return an error message about not being able to update the categories > table...apparently because the some column is marked as unique.) > > Cheers, > > Syed > > > > -----Original Message----- > > From: typo-list-bounces at rubyforge.org [mailto:typo-list- > > bounces at rubyforge.org] On Behalf Of Frederic de Villamil > > Sent: Friday, July 21, 2006 7:43 AM > > To: typo-list at rubyforge.org > > Subject: Re: [typo] Admin interface complete rebuild > > > > Scott Laird a ?crit : > > > On 7/20/06, Wade Menard <wade at ezri.org> wrote: > > >> On Fri, 2006-07-21 at 10:10 +1000, Trejkaz wrote: > > >>> Can you not use an external application with WYSIWYG support, to post > > to the > > >>> blog? That's what the API is for, after all. Might as well throw > > away the > > >>> API if nobody uses it. > > >> A writer is not always at home or at a place where they can use a > > >> desktop client when they want to post something, but are always near a > > >> web browser. It is really frustrating to use the interface as it is > > now, > > >> having to do <p>'s and <br>'s or whatever manually. It's not beyond my > > >> abilities but it's the last thing I want to deal with when composing an > > >> article. I might as well be inserting the entry with phpMyAdmin. > > > > > > Frankly, if you're inserting <p> and <br> by hand, then you're using > > > the wrong text filter. > > > > > > > > > Scott > > > > Or maybe the text filters were brocken and no one was able to use them > > don't you think ? ;-) > > > > > > -- > > 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 > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From uzair at nairang.org Fri Jul 21 17:53:45 2006 From: uzair at nairang.org (Syed Uzair Aqeel) Date: Fri, 21 Jul 2006 23:53:45 +0200 Subject: [typo] Admin interface complete rebuild In-Reply-To: <14b7e5ef0607210656m1116213bw6e32b8ba225d2747@mail.gmail.com> Message-ID: <20060721215337.6B8D510E722@randymail-a10.dreamhost.com> But surely those couple hundred lines would be useful for more than just the WYSIWYG editor. Custom spam handlers? Maybe an rss2email-type tool...there are a bunch of non-essential features that could be bundled like that. Anyway, my point was more that fancy editors simply don't belong in the admin interface. The two big problems with the current interface are that a) it's monolithic and b) it covers a *lot* of functionality. I'd almost argue that the 'settings' page is the only thing that belongs in the admin interface. Everything else (categories, articles, feedback) is more of a blog-owner interface. When multi-blog Typo happens, this blog-owner interface will need to be per-blog, which will underscore this point. Plug-ins are good, and might actually help keep Typo lean and clean. Uzair > -----Original Message----- > From: typo-list-bounces at rubyforge.org [mailto:typo-list- > bounces at rubyforge.org] On Behalf Of Scott Laird > Sent: Friday, July 21, 2006 3:57 PM > To: typo-list at rubyforge.org > Subject: Re: [typo] Admin interface complete rebuild > > Here's the thing: adding an interface for plugins for the admin > interface would probably take a couple hundred lines of code, by the > time we turn the current interface into a plugin, add an extra sample > or two, and then test the whole thing. Adding one rich-text editor as > a standard option would cost *maybe* 10 lines of code. In total. One > admin setting to enable it, and a couple lines that change the HTML > generated and load the right .js file. > > So, maybe it's a good usability move, maybe it isn't, but complaining > that it'd make Typo too complex and it should be a plugable option is > almost exactly backwards :-). > > > Scott > > On 7/21/06, Syed Uzair Aqeel <uzair at nairang.org> wrote: > > A WYSIWYG editor doesn't belong in the admin interface. The current > editor > > is more than adequate for the purpose it should be used for -- to allow > the > > administrator to edit posts as necessary. The reasons for allowing > admins to > > post *new* entries from the admin interface are arguable. > > > > It would make much more sense for themes to offer a post editor from the > > front page if the user's session is active (ie, by checking that the > log-in > > cookie exists and hasn't expired) the way many themes currently offer > > 'edit'/'nuke' options on comments if the user is an admin. Maybe that's > not > > something that's going to happen right now, but even in the worst case, > post > > editors should be prime candidates for being broken into plugins (once > the > > refactoring work Scott mentioned happens). > > > > Anyway, Frederic best of luck to you on this, it's going to be awesome > I'm > > sure. A cleaner admin interface will be great, regardless of whether it > > includes WYSIWYG support. > > > > (BTW, anyone who hasn't checked out the Firefox blogging extension from > > http://www.performancing.com should -- it's quite nice and unintrusive. > I'm > > not as happy with it as I used to be, because posting with it makes Typo > > return an error message about not being able to update the categories > > table...apparently because the some column is marked as unique.) > > > > Cheers, > > > > Syed > > > > > > > -----Original Message----- > > > From: typo-list-bounces at rubyforge.org [mailto:typo-list- > > > bounces at rubyforge.org] On Behalf Of Frederic de Villamil > > > Sent: Friday, July 21, 2006 7:43 AM > > > To: typo-list at rubyforge.org > > > Subject: Re: [typo] Admin interface complete rebuild > > > > > > Scott Laird a ?crit : > > > > On 7/20/06, Wade Menard <wade at ezri.org> wrote: > > > >> On Fri, 2006-07-21 at 10:10 +1000, Trejkaz wrote: > > > >>> Can you not use an external application with WYSIWYG support, to > post > > > to the > > > >>> blog? That's what the API is for, after all. Might as well throw > > > away the > > > >>> API if nobody uses it. > > > >> A writer is not always at home or at a place where they can use a > > > >> desktop client when they want to post something, but are always > near a > > > >> web browser. It is really frustrating to use the interface as it is > > > now, > > > >> having to do <p>'s and <br>'s or whatever manually. It's not beyond > my > > > >> abilities but it's the last thing I want to deal with when > composing an > > > >> article. I might as well be inserting the entry with phpMyAdmin. > > > > > > > > Frankly, if you're inserting <p> and <br> by hand, then you're using > > > > the wrong text filter. > > > > > > > > > > > > Scott > > > > > > Or maybe the text filters were brocken and no one was able to use them > > > don't you think ? ;-) > > > > > > > > > -- > > > 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 > > > > _______________________________________________ > > 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 rsanheim at gmail.com Sat Jul 22 01:53:26 2006 From: rsanheim at gmail.com (Rob Sanheim) Date: Sat, 22 Jul 2006 00:53:26 -0500 Subject: [typo] Admin interface complete rebuild In-Reply-To: <1153427244.8119.41.camel@lyra.rinspin.com> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> <44BFA8EC.3080409@7el.net> <44BFACCE.6020503@whoisjake.com> <14b7e5ef0607200924n998a74fvee9e6e7fcd1665c1@mail.gmail.com> <cc4e85f30607201031s49d57910u289b9ae8d2868b8b@mail.gmail.com> <1153427244.8119.41.camel@lyra.rinspin.com> Message-ID: <fc113d400607212253s6dce3618w645d0f77cf98c46a@mail.gmail.com> On 7/20/06, Scott Bronson <bronson at rinspin.com> wrote: > On Thu, 2006-07-20 at 12:31 -0500, Steve Longdo wrote: > > TinyMCE works with all browsers and shouldn't be too different to > > integrate. > > Moxiecode claims partial support but it's horribly buggy to the point of > uselessness. I've just told my customers to use Mozilla until Apple > fixes getSelection() and contentEditable (they claim that the next > Safari release should have the fixes). > > Have you actually used TinyMCE on Safari? Is your experience different > than mine? > > - Scott I've implemented TinyMCE for a production system, and Safari and Opera 8 are horribly broken in it. In my case, we just detect safari and fall back to a text area, which isn't nice but its better then an editor that has a lot of buttons that don't work. The worst part is that TinyMCE is about the best open source option for browser support - Dojo, FCKEditor, and others are all the same or worse. Safari is just broke regarding the rich text stuff, but its getting better in the Web Kit nightlies. - Rob -- http://www.robsanheim.com http://www.seekingalpha.com http://www.ajaxian.com From rsanheim at gmail.com Sat Jul 22 01:55:39 2006 From: rsanheim at gmail.com (Rob Sanheim) Date: Sat, 22 Jul 2006 00:55:39 -0500 Subject: [typo] WYSIWYG editing (was Re: Admin interface complete rebuild) In-Reply-To: <44C00A9B.5010702@pobox.com> References: <44BF9DDB.7010704@7el.net> <1153410733.12253.1.camel@localhost> <44BFA8EC.3080409@7el.net> <44C00A9B.5010702@pobox.com> Message-ID: <fc113d400607212255s4d888a26u47fc0a0bf9ee7ec7@mail.gmail.com> On 7/20/06, mathew <meta at pobox.com> wrote: > Frederic de Villamil wrote: > > Wade Menard a ?crit : > > > >> Would a WYSIWYG post editor be out of the question? > >> > > > > I've been thinking about it for a while actually, and there are lots of > > for and against. > > > > I really don't like wysiwyg editors, but my personnal tates is nothing > > when compaired to the amount of users Typo should gain with a wysiwyg > > interface. > > Well, as luck would have it I recently did a ton of research on what's > out there. If anyone's interested in adding WYSIWYG editing, I'd > strongly recommend taking a look at FCKeditor. > > Key features: > > - Works in Firefox & IE, Safari is being investigated > > - LGPL license > > - No plugins required > > - XHTML and CSS support > > - Can be configured to actually produce paragraphs and linebreaks properly > > The last feature is surprisingly rare; in fact, FCKeditor was the only > free WYSIWYG HTML editor I could find that could be configured to make > proper paragraphs under both IE and Firefox. > > <URL:http://www.fckeditor.net/> > > > mathew Just another data point: TinyMCE has XHTML and "tidy" code support, and the source is decent and fairly easy to follow. I've heard reports that the fckeditor source is pretty bad, though I haven't looked myself after seeing how well Tiny worked. The TIny devs also were submitting tickets to Web Kit to try and help out with Safari support, though that seemed to have stalled last time I checked the tickets. - Rob From daesan at gmail.com Sat Jul 22 17:27:17 2006 From: daesan at gmail.com (Dae San Hwang) Date: Sun, 23 Jul 2006 06:27:17 +0900 Subject: [typo] blacklist patterns not working? Message-ID: <9B170FF4-3329-48D6-A616-47549AD112BA@gmail.com> Hi. I get lots of trackback spams nowadays. I've been trying to use Blacklist Patterns in typo admin to filter them but I can't get them to work. For example to filter a trackback ping like this: Blog Name: online-gambling-casino Title: online-gambling-casino Excerpt: He stops walking and looks ... I tried using RegexPattern "[Cc]asino" and StringPattern "casino". But it doesn't get filtered. Am I missing something, or does the Blacklist Patterns not work for trackbacks? Best, Dae San Dae San Hwang daesan at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060723/d392c9ff/attachment.html From scott at sigkill.org Sat Jul 22 17:44:42 2006 From: scott at sigkill.org (scott at sigkill.org) Date: Sat, 22 Jul 2006 14:44:42 -0700 Subject: [typo] blacklist patterns not working? In-Reply-To: <9B170FF4-3329-48D6-A616-47549AD112BA@gmail.com> References: <9B170FF4-3329-48D6-A616-47549AD112BA@gmail.com> Message-ID: <14b7e5ef0607221444r7c1b91b5m7d5e103586da88c5@mail.gmail.com> They should be applied to both comments and trackbacks. Are you running the latest trunk, or are a bit behind? If you're using the trunk (or 3.99.4), then look at turning on Akismet; it should make a huge difference. Scott On 7/22/06, Dae San Hwang <daesan at gmail.com> wrote: > Hi. > > I get lots of trackback spams nowadays. I've been trying to use > Blacklist Patterns in typo admin to filter them but I can't get them > to work. > > For example to filter a trackback ping like this: > > Blog Name: online-gambling-casino > Title: online-gambling-casino > Excerpt: He stops walking and looks ... > > I tried using RegexPattern "[Cc]asino" and StringPattern "casino". > > But it doesn't get filtered. Am I missing something, or does the > Blacklist Patterns not work for trackbacks? > > Best, > > Dae San > > Dae San Hwang > daesan at gmail.com > > > > > From pdcawley at bofh.org.uk Sun Jul 23 14:30:03 2006 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Sun, 23 Jul 2006 19:30:03 +0100 Subject: [typo] Archives Sidebar Plugin Problem In-Reply-To: <32920C3D-E93C-4713-9382-1F1B30DE2A7B@stompy.org> (stompy@stompy.org's message of "Sat, 1 Jul 2006 21:48:19 +0100") References: <32920C3D-E93C-4713-9382-1F1B30DE2A7B@stompy.org> Message-ID: <m1k664i384.fsf@Obelisk.local> Stompy <stompy at stompy.org> writes: > Has anyone else noticed that the Archives sidebar plugin isn't' working? > > I can't seem to find a test for this plugin either. Oh ghod. Testing sidebars... One of these days, I *swear* I'm going to sort out some way of doing this without pain. Patches welcome. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ From mattrose at folkwolf.net Sun Jul 23 22:24:06 2006 From: mattrose at folkwolf.net (Matt Rose) Date: Sun, 23 Jul 2006 22:24:06 -0400 Subject: [typo] typo not letting go of connections? Message-ID: <8AE59962-98D7-44BB-B27D-95B572C94790@folkwolf.net> I've had problems with typo using up all the connections to my database with both a mysql database and a postgres database. Has anyone else seen this problem? Matt From scott at sigkill.org Sun Jul 23 22:51:48 2006 From: scott at sigkill.org (scott at sigkill.org) Date: Sun, 23 Jul 2006 19:51:48 -0700 Subject: [typo] typo not letting go of connections? In-Reply-To: <8AE59962-98D7-44BB-B27D-95B572C94790@folkwolf.net> References: <8AE59962-98D7-44BB-B27D-95B572C94790@folkwolf.net> Message-ID: <14b7e5ef0607231951i7587203dp4874db3a8cb54c02@mail.gmail.com> Unless you're doing something really odd, Typo (and any Rails app, really) should only open one connection per dispatcher. So, how many Typo processes are running? For most users 2 dispatchers should be enough. Scott On 7/23/06, Matt Rose <mattrose at folkwolf.net> wrote: > I've had problems with typo using up all the connections to my > database with both a mysql database and a postgres database. Has > anyone else seen this problem? > > Matt > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From feedpuppy at gmail.com Tue Jul 25 03:39:12 2006 From: feedpuppy at gmail.com (Qun Wei) Date: Tue, 25 Jul 2006 03:39:12 -0400 Subject: [typo] typo4.0 installation problem Message-ID: <ca2669e70607250039t3e26d443o7a43785b7224ff5b@mail.gmail.com> I have troubles with the gem installation. The sqlite3-ruby installation always failed. The error message is can't find sqlite3.h. Since I'm on a shared host, I have to install these gems into another directory. sqlite3 was installed in the server. I tried to set GEM_PATH, but maybe I didn't do it right? Or is there anything else I should check? thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060725/6ec07ba5/attachment.html From jennyw at dangerousideas.com Tue Jul 25 08:13:58 2006 From: jennyw at dangerousideas.com (jennyw) Date: Tue, 25 Jul 2006 05:13:58 -0700 Subject: [typo] Dealing with comment and trackback spam Message-ID: <44C60B06.6080108@dangerousideas.com> Does anyone have suggestions on how to deal with spam? I've been going through my posts and noticed that there are some with hundreds of trackbacks or comments. Deleting each one by hand would not be practical. I could delete a bunch using script/console ... I'd prefer a more automated way of dealing with this, though. For example, is there a way to moderate these or to delete more than one at a time? Any other suggestions? Thanks! Jen From kyleheon at gmail.com Tue Jul 25 08:23:28 2006 From: kyleheon at gmail.com (Kyle Heon) Date: Tue, 25 Jul 2006 08:23:28 -0400 Subject: [typo] Typo-list Digest, Vol 16, Issue 49 In-Reply-To: <mailman.158.1153829650.2388.typo-list@rubyforge.org> References: <mailman.158.1153829650.2388.typo-list@rubyforge.org> Message-ID: <cbaba1b40607250523o240573acp3021bb9578810a30@mail.gmail.com> Yes, I've seen the same issue. I also see a similar issue in the Categories sidebar. I opened a ticket for this ( http://www.typosphere.org/trac/ticket/1031) already. Kyle Heon kyleheon at gmail.com www.kyleheon.com ---------- Forwarded message ---------- From: Piers Cawley <pdcawley at bofh.org.uk> To: typo-list at rubyforge.org Date: Sun, 23 Jul 2006 19:30:03 +0100 Subject: Re: [typo] Archives Sidebar Plugin Problem Stompy <stompy at stompy.org> writes: > Has anyone else noticed that the Archives sidebar plugin isn't' working? > > I can't seem to find a test for this plugin either. Oh ghod. Testing sidebars... One of these days, I *swear* I'm going to sort out some way of doing this without pain. Patches welcome. -- Piers Cawley <pdcawley at bofh.org.uk> http://www.bofh.org.uk/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060725/7cf3cb48/attachment.html From scott at sigkill.org Tue Jul 25 08:34:43 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 25 Jul 2006 05:34:43 -0700 Subject: [typo] Dealing with comment and trackback spam In-Reply-To: <44C60B06.6080108@dangerousideas.com> References: <44C60B06.6080108@dangerousideas.com> Message-ID: <14b7e5ef0607250534o47ee4e30jfb1a93a195bb248f@mail.gmail.com> With 4.0? The feedback tab will let you deal with a whole page at a time. My usual approach is to search for a spam wordd, select all of the messages, and then skim through and uncheck anything that *isn't* spam. Then hit 'delete all'. Scott On 7/25/06, jennyw <jennyw at dangerousideas.com> wrote: > Does anyone have suggestions on how to deal with spam? I've been going > through my posts and noticed that there are some with hundreds of > trackbacks or comments. Deleting each one by hand would not be > practical. I could delete a bunch using script/console ... I'd prefer a > more automated way of dealing with this, though. For example, is there a > way to moderate these or to delete more than one at a time? > > Any other suggestions? > > Thanks! > > Jen > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Tue Jul 25 08:39:02 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 25 Jul 2006 05:39:02 -0700 Subject: [typo] Typo-list Digest, Vol 16, Issue 49 In-Reply-To: <cbaba1b40607250523o240573acp3021bb9578810a30@mail.gmail.com> References: <mailman.158.1153829650.2388.typo-list@rubyforge.org> <cbaba1b40607250523o240573acp3021bb9578810a30@mail.gmail.com> Message-ID: <14b7e5ef0607250539i144269d6l7e16b848d3f55a85@mail.gmail.com> These should both be fixed in the current trunk. I'll push 4.0.1 out in a day or so, once I've had time to fix a couple more bugs. Unfortuantely, my time's a bit limited this week--I'm at OSCON during the day, and I'm spending most of the rest of my time for the next couple days helping out on <secret work project>. I'll try to finish up the 4.0.1 bugs in Trac between OSCON sessions. Scott On 7/25/06, Kyle Heon <kyleheon at gmail.com> wrote: > Yes, I've seen the same issue. I also see a similar issue in the Categories > sidebar. I opened a ticket for this > (http://www.typosphere.org/trac/ticket/1031) already. > > Kyle Heon > kyleheon at gmail.com > www.kyleheon.com > > ---------- Forwarded message ---------- > From: Piers Cawley < pdcawley at bofh.org.uk> > To: typo-list at rubyforge.org > Date: Sun, 23 Jul 2006 19:30:03 +0100 > Subject: Re: [typo] Archives Sidebar Plugin Problem > Stompy < stompy at stompy.org> writes: > > > Has anyone else noticed that the Archives sidebar plugin isn't' working? > > > > I can't seem to find a test for this plugin either. > > Oh ghod. Testing sidebars... One of these days, I *swear* I'm going to > sort out some way of doing this without pain. > > Patches welcome. > > -- > Piers Cawley <pdcawley at bofh.org.uk > > http://www.bofh.org.uk/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From thomas.robinson at gmail.com Tue Jul 25 10:31:37 2006 From: thomas.robinson at gmail.com (Tom Robinson) Date: Tue, 25 Jul 2006 15:31:37 +0100 Subject: [typo] public/.htaccess file AddHandler directives Message-ID: <745af2c30607250731q3b7b23d1t5972620dfb83e1ff@mail.gmail.com> Hi all, Currently going through the process of trying to get Typo working on my environment, which I can't install gems on etc, so a bit of tweaking is necessary. One thing I have noticed so far is that the .htaccess file clobbers the existing debian setup of FastCGI, as it uses mod_fcgid rather than mod_fastcgi, so the line AddHandler fastcgi-script .fcgi actually breaks the existing handler (which is already set-up in apache2's config files). This is the standard way that Debian is set up, so I imagine it would affect quite a lot of users. So, my suggestion is that the .htaccess file be rewritten to look similar to the following: <IfModule mod_fastcgi.c> AddHandler fastcgi-script .fcgi </IfModule> <IfModule mod_fcgid.c> AddHandler fcgid-script .fcgi </IfModule> <IfModule mod_cgi.c> AddHandler cgi-script .cgi </IfModule> Does this seem to make sense to people? Cheers, Tom -- Tom Robinson tom.robinson at dunelm.org.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060725/8a6ef513/attachment.html From meta at pobox.com Tue Jul 25 11:58:05 2006 From: meta at pobox.com (mathew) Date: Tue, 25 Jul 2006 10:58:05 -0500 Subject: [typo] Dealing with comment and trackback spam In-Reply-To: <44C60B06.6080108@dangerousideas.com> References: <44C60B06.6080108@dangerousideas.com> Message-ID: <44C63F8D.5070708@pobox.com> jennyw wrote: > Does anyone have suggestions on how to deal with spam? I use the PostgreSQL command line client and type in a raw SQL command to zap it :-) I did think about writing some command line tools for Typo maintenance, so you could do zap --from '*user at host*' and it would zap comments according to the regex. mathew From scott at sigkill.org Tue Jul 25 12:08:11 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 25 Jul 2006 09:08:11 -0700 Subject: [typo] Dealing with comment and trackback spam In-Reply-To: <44C63F8D.5070708@pobox.com> References: <44C60B06.6080108@dangerousideas.com> <44C63F8D.5070708@pobox.com> Message-ID: <14b7e5ef0607250908h5e7285bal8fbcec33c6dc4f08@mail.gmail.com> I used to do raw SQL, but you can accomplish 95% of the same thing via the feedback tab. Search for 'user at host', click on the select button in the table header, and then click 'delete all'. Scott On 7/25/06, mathew <meta at pobox.com> wrote: > jennyw wrote: > > Does anyone have suggestions on how to deal with spam? > > I use the PostgreSQL command line client and type in a raw SQL command > to zap it :-) > > I did think about writing some command line tools for Typo maintenance, > so you could do > > zap --from '*user at host*' > > and it would zap comments according to the regex. > > > mathew > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From steve.longdo at gmail.com Tue Jul 25 12:14:51 2006 From: steve.longdo at gmail.com (Steve Longdo) Date: Tue, 25 Jul 2006 11:14:51 -0500 Subject: [typo] Dealing with comment and trackback spam In-Reply-To: <14b7e5ef0607250908h5e7285bal8fbcec33c6dc4f08@mail.gmail.com> References: <44C60B06.6080108@dangerousideas.com> <44C63F8D.5070708@pobox.com> <14b7e5ef0607250908h5e7285bal8fbcec33c6dc4f08@mail.gmail.com> Message-ID: <cc4e85f30607250914u5fd5b4deh5cdb018c8415bf4e@mail.gmail.com> It's very GMail Scott! I like it. On 7/25/06, Scott Laird <scott at sigkill.org> wrote: > > I used to do raw SQL, but you can accomplish 95% of the same thing via > the feedback tab. Search for 'user at host', click on the select button > in the table header, and then click 'delete all'. > > > Scott > > On 7/25/06, mathew <meta at pobox.com> wrote: > > jennyw wrote: > > > Does anyone have suggestions on how to deal with spam? > > > > I use the PostgreSQL command line client and type in a raw SQL command > > to zap it :-) > > > > I did think about writing some command line tools for Typo maintenance, > > so you could do > > > > zap --from '*user at host*' > > > > and it would zap comments according to the regex. > > > > > > 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 > -- Thanks, -Steve http://www.stevelongdo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060725/175676a1/attachment.html From b.hutchison at gmail.com Tue Jul 25 12:54:17 2006 From: b.hutchison at gmail.com (Brian Hutchison) Date: Tue, 25 Jul 2006 09:54:17 -0700 Subject: [typo] Congratulations on 4.0.0 Release Message-ID: <f160ee5a0607250954uca0fb07q4d65a85ff0beaf58@mail.gmail.com> re: http://scottstuff.net/blog/articles/2006/07/22/typo-4-0-0 Congratulations to Scott, Piers, Kevin and everyone else involved in the 4.0.0 Typo release. I see its been blogged about but I didn't see an [ANN]ouncement on this list or the Rails list -- I think its worth crowing about, whether or there will be some fast-follower dot release(s). Thank you to all contributors for getting a quality 4.0.0 release out the door. - Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060725/fedbd827/attachment.html From nikanorov at gmail.com Tue Jul 25 13:43:30 2006 From: nikanorov at gmail.com (Andrey Nikanorov) Date: Tue, 25 Jul 2006 21:43:30 +0400 Subject: [typo] Congratulations on 4.0.0 Release In-Reply-To: <f160ee5a0607250954uca0fb07q4d65a85ff0beaf58@mail.gmail.com> References: <f160ee5a0607250954uca0fb07q4d65a85ff0beaf58@mail.gmail.com> Message-ID: <a0c35bf80607251043y593cfa6akecb74a1ed6671013@mail.gmail.com> +1 On 7/25/06, Brian Hutchison <b.hutchison at gmail.com> wrote: > re: > http://scottstuff.net/blog/articles/2006/07/22/typo-4-0-0 > > Congratulations to Scott, Piers, Kevin and everyone else involved in the > 4.0.0 Typo release. I see its been blogged about but I didn't see an > [ANN]ouncement on this list or the Rails list -- I think its worth crowing > about, whether or there will be some fast-follower dot release(s). Thank you > to all contributors for getting a quality 4.0.0 release out the door. > > - Brian > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > -- Nikanorov Andrey <nikanorov at gmail.com> http://blogru.nikanorov.com This email is: [ ] blogable [ x ] ask first [ ] private From meta at pobox.com Tue Jul 25 15:28:05 2006 From: meta at pobox.com (mathew) Date: Tue, 25 Jul 2006 14:28:05 -0500 Subject: [typo] Congratulations on 4.0.0 Release In-Reply-To: <f160ee5a0607250954uca0fb07q4d65a85ff0beaf58@mail.gmail.com> References: <f160ee5a0607250954uca0fb07q4d65a85ff0beaf58@mail.gmail.com> Message-ID: <44C670C5.3060807@pobox.com> I'd like to second the congratulations. I know I've been a bit catty at times, and frankly I wasn't expecting the 4.0 migration to go smoothly--but it did. I took a copy of my database anyway, but I needn't have bothered. Zero problems. (Using LigHTTPd + FastCGI + PostgreSQL + slightly customized schema to get full timestamps.) mathew From nate at wamily.com Tue Jul 25 16:19:49 2006 From: nate at wamily.com (Nate Clark) Date: Tue, 25 Jul 2006 16:19:49 -0400 Subject: [typo] Congratulations on 4.0.0 Release In-Reply-To: <44C670C5.3060807@pobox.com> References: <f160ee5a0607250954uca0fb07q4d65a85ff0beaf58@mail.gmail.com> <44C670C5.3060807@pobox.com> Message-ID: <ef5de5620607251319x1346b0d8n2eb29a01db2b174a@mail.gmail.com> This has been dugg on Digg: http://digg.com/programming/Typo_RoR_Blog_Version_4_0_Released On 7/25/06, mathew <meta at pobox.com> wrote: > > I'd like to second the congratulations. > > I know I've been a bit catty at times, and frankly I wasn't expecting > the 4.0 migration to go smoothly--but it did. I took a copy of my > database anyway, but I needn't have bothered. Zero problems. > > (Using LigHTTPd + FastCGI + PostgreSQL + slightly customized schema to > get full timestamps.) > > > 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/20060725/9fa75308/attachment.html From vemon388 at gmail.com Tue Jul 25 19:46:00 2006 From: vemon388 at gmail.com (levi mccallum) Date: Tue, 25 Jul 2006 13:46:00 -1000 Subject: [typo] Bookmark button meta Message-ID: <fb023dc70607251646o1dfb213fkc894b49efe3f574a@mail.gmail.com> I have an idea, Many blogs today have bookmark button tags in the post meta. An excellent example is 43folders.com, this kind of setup is great for blog publicity and user activity. I believe that Typo should have something like this built in, I know, I could just write it in the post layout. But it would be deadly cool if users could select in the admin panel, which services he would want in the meta. I would post a ticket. But I want community approval first. -- 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/20060725/afc7dcd9/attachment.html From rsanheim at gmail.com Wed Jul 26 01:09:07 2006 From: rsanheim at gmail.com (Rob Sanheim) Date: Wed, 26 Jul 2006 00:09:07 -0500 Subject: [typo] Bookmark button meta In-Reply-To: <fb023dc70607251646o1dfb213fkc894b49efe3f574a@mail.gmail.com> References: <fb023dc70607251646o1dfb213fkc894b49efe3f574a@mail.gmail.com> Message-ID: <fc113d400607252209u81fa543j98480f5bdff05873@mail.gmail.com> On 7/25/06, levi mccallum <vemon388 at gmail.com> wrote: > I have an idea, > > Many blogs today have bookmark button tags in the post meta. An excellent > example is 43folders.com, this kind of setup is great for blog publicity and > user activity. I believe that Typo should have something like this built in, > I know, I could just write it in the post layout. But it would be deadly > cool if users could select in the admin panel, which services he would want > in the meta. > > I would post a ticket. But I want community approval first. > Why not make it a plugin and see how popular it is? I think Typo has enough features as it is right now, and would love to see 4.1+ consist of refactoring, clean up, and less features rather then more add-ons that aren't part of core functionality. - rob -- http://www.robsanheim.com From scott at sigkill.org Wed Jul 26 01:14:04 2006 From: scott at sigkill.org (Scott Laird) Date: Tue, 25 Jul 2006 22:14:04 -0700 Subject: [typo] Bookmark button meta In-Reply-To: <fc113d400607252209u81fa543j98480f5bdff05873@mail.gmail.com> References: <fb023dc70607251646o1dfb213fkc894b49efe3f574a@mail.gmail.com> <fc113d400607252209u81fa543j98480f5bdff05873@mail.gmail.com> Message-ID: <14b7e5ef0607252214t106a46f0x6bd81355e239a1b7@mail.gmail.com> On 7/25/06, Rob Sanheim <rsanheim at gmail.com> wrote: > On 7/25/06, levi mccallum <vemon388 at gmail.com> wrote: > > I have an idea, > > > > Many blogs today have bookmark button tags in the post meta. An excellent > > example is 43folders.com, this kind of setup is great for blog publicity and > > user activity. I believe that Typo should have something like this built in, > > I know, I could just write it in the post layout. But it would be deadly > > cool if users could select in the admin panel, which services he would want > > in the meta. > > > > I would post a ticket. But I want community approval first. > > > > Why not make it a plugin and see how popular it is? You can't make it a plugin--there's no plugin infrastructure for that. You could build it into your theme, but it's not really pluggable in general. Scott From rsanheim at gmail.com Wed Jul 26 01:20:33 2006 From: rsanheim at gmail.com (Rob Sanheim) Date: Wed, 26 Jul 2006 00:20:33 -0500 Subject: [typo] Bookmark button meta In-Reply-To: <14b7e5ef0607252214t106a46f0x6bd81355e239a1b7@mail.gmail.com> References: <fb023dc70607251646o1dfb213fkc894b49efe3f574a@mail.gmail.com> <fc113d400607252209u81fa543j98480f5bdff05873@mail.gmail.com> <14b7e5ef0607252214t106a46f0x6bd81355e239a1b7@mail.gmail.com> Message-ID: <fc113d400607252220n6ded401n501674504929a24a@mail.gmail.com> On 7/26/06, Scott Laird <scott at sigkill.org> wrote: > On 7/25/06, Rob Sanheim <rsanheim at gmail.com> wrote: > > > > Why not make it a plugin and see how popular it is? > > You can't make it a plugin--there's no plugin infrastructure for that. > You could build it into your theme, but it's not really pluggable in > general. > > > Scott I guess that's a problem then :) - though I suppose the general functionality of doing digg/reddit/etc links could be extracted out to a more general rails plugin. Ie give the plugin a link, and get back the links for services you specify, or image links, or whatever. - Rob -- http://www.robsanheim.com From rsanheim at gmail.com Wed Jul 26 01:21:24 2006 From: rsanheim at gmail.com (Rob Sanheim) Date: Wed, 26 Jul 2006 00:21:24 -0500 Subject: [typo] Congratulations on 4.0.0 Release In-Reply-To: <f160ee5a0607250954uca0fb07q4d65a85ff0beaf58@mail.gmail.com> References: <f160ee5a0607250954uca0fb07q4d65a85ff0beaf58@mail.gmail.com> Message-ID: <fc113d400607252221h6bc14e81w77226b56d6a5d379@mail.gmail.com> On 7/25/06, Brian Hutchison <b.hutchison at gmail.com> wrote: > re: > http://scottstuff.net/blog/articles/2006/07/22/typo-4-0-0 > > Congratulations to Scott, Piers, Kevin and everyone else involved in the > 4.0.0 Typo release. I see its been blogged about but I didn't see an > [ANN]ouncement on this list or the Rails list -- I think its worth crowing > about, whether or there will be some fast-follower dot release(s). Thank you > to all contributors for getting a quality 4.0.0 release out the door. Congrats guys - thanks for all the work on getting things stable and "shipped" ! - rob -- http://www.robsanheim.com From tim at digital-achievement.com Wed Jul 26 02:08:05 2006 From: tim at digital-achievement.com (Timothy Freund) Date: Wed, 26 Jul 2006 01:08:05 -0500 Subject: [typo] Updated Themes Message-ID: <44C706C5.8030102@digital-achievement.com> In IRC over the weekend we discussed how the old themes seemed to magically work with trunk, but that they were not guaranteed to continue working. I changed the sidebar rendering for all of the themes in Proofread to render_sidebars rather than the old way of doing things so that the themes should continue working at least until the sidebar rendering mechanism changes again. The changeset is available. [1] All of the themes have been automatically tested, and everything seems to still work. Exedge is broken, but it was broken before the update. It makes a nice poster child for the test report features that were just added to Proofread. [2] [1] http://proofread.digital-achievement.com/typothemes/changeset/51 [2] http://proofread.digital-achievement.com/catalog/themes/view/80 Themes that work in trunk will now start to be tagged for 4.0, but I'm calling it a night for now. Thanks, -- Timothy Freund http://digital-achievement.com http://edodyssey.com From jennyw at dangerousideas.com Wed Jul 26 03:06:23 2006 From: jennyw at dangerousideas.com (jennyw) Date: Wed, 26 Jul 2006 00:06:23 -0700 Subject: [typo] Dealing with comment and trackback spam In-Reply-To: <14b7e5ef0607250534o47ee4e30jfb1a93a195bb248f@mail.gmail.com> References: <44C60B06.6080108@dangerousideas.com> <14b7e5ef0607250534o47ee4e30jfb1a93a195bb248f@mail.gmail.com> Message-ID: <44C7146F.1000600@dangerousideas.com> Thanks for the suggestions for deleting spam! Are there suggestions for preventing it? Jen From scott at sigkill.org Wed Jul 26 03:18:08 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 26 Jul 2006 00:18:08 -0700 Subject: [typo] Dealing with comment and trackback spam In-Reply-To: <44C7146F.1000600@dangerousideas.com> References: <44C60B06.6080108@dangerousideas.com> <14b7e5ef0607250534o47ee4e30jfb1a93a195bb248f@mail.gmail.com> <44C7146F.1000600@dangerousideas.com> Message-ID: <14b7e5ef0607260018w284ed243g5256bf57d1ba50c9@mail.gmail.com> Turn on akismet in the spam settings section. Scott On 7/26/06, jennyw <jennyw at dangerousideas.com> wrote: > Thanks for the suggestions for deleting spam! > > Are there suggestions for preventing it? > > Jen > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From meta at pobox.com Wed Jul 26 10:43:55 2006 From: meta at pobox.com (mathew) Date: Wed, 26 Jul 2006 09:43:55 -0500 Subject: [typo] Dealing with comment and trackback spam In-Reply-To: <44C7146F.1000600@dangerousideas.com> References: <44C60B06.6080108@dangerousideas.com> <14b7e5ef0607250534o47ee4e30jfb1a93a195bb248f@mail.gmail.com> <44C7146F.1000600@dangerousideas.com> Message-ID: <44C77FAB.8000308@pobox.com> jennyw wrote: > Thanks for the suggestions for deleting spam! > > Are there suggestions for preventing it? Be ruthless about deleting it. If there's spam visible on your site, it will attract more spam. It's like graffiti. Block anything with more than a few links/URLs. It's very rare for a commenter to need to post more than (say) 3 links, but spammers all seem to try to post at least half a dozen. Have typo turn off comments after (say) 30 days. Chances are nobody's actively watching any discussion or comment older than that, but old comments are just as good for spamming. I have non-AJAX comments turned on, but I haven't had any spam in a couple of months. mathew From vemon388 at gmail.com Wed Jul 26 14:25:21 2006 From: vemon388 at gmail.com (levi mccallum) Date: Wed, 26 Jul 2006 08:25:21 -1000 Subject: [typo] Bookmark button meta In-Reply-To: <fc113d400607252220n6ded401n501674504929a24a@mail.gmail.com> References: <fb023dc70607251646o1dfb213fkc894b49efe3f574a@mail.gmail.com> <fc113d400607252209u81fa543j98480f5bdff05873@mail.gmail.com> <14b7e5ef0607252214t106a46f0x6bd81355e239a1b7@mail.gmail.com> <fc113d400607252220n6ded401n501674504929a24a@mail.gmail.com> Message-ID: <fb023dc70607261125p790c33a7g533934156d6430bb@mail.gmail.com> Well, what stops from giving tags? It is exactly the same thing Scott. Correct me if I am wrong. On 7/25/06, Rob Sanheim <rsanheim at gmail.com> wrote: > > On 7/26/06, Scott Laird <scott at sigkill.org> wrote: > > On 7/25/06, Rob Sanheim <rsanheim at gmail.com> wrote: > > > > > > Why not make it a plugin and see how popular it is? > > > > You can't make it a plugin--there's no plugin infrastructure for that. > > You could build it into your theme, but it's not really pluggable in > > general. > > > > > > Scott > > I guess that's a problem then :) - though I suppose the general > functionality of doing digg/reddit/etc links could be extracted out to > a more general rails plugin. Ie give the plugin a link, and get back > the links for services you specify, or image links, or whatever. > > - Rob > -- > http://www.robsanheim.com > _______________________________________________ > 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/20060726/b00f3154/attachment-0001.html From scott at sigkill.org Wed Jul 26 14:29:34 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 26 Jul 2006 11:29:34 -0700 Subject: [typo] Bookmark button meta In-Reply-To: <fb023dc70607261125p790c33a7g533934156d6430bb@mail.gmail.com> References: <fb023dc70607251646o1dfb213fkc894b49efe3f574a@mail.gmail.com> <fc113d400607252209u81fa543j98480f5bdff05873@mail.gmail.com> <14b7e5ef0607252214t106a46f0x6bd81355e239a1b7@mail.gmail.com> <fc113d400607252220n6ded401n501674504929a24a@mail.gmail.com> <fb023dc70607261125p790c33a7g533934156d6430bb@mail.gmail.com> Message-ID: <14b7e5ef0607261129y26fcaa9cw88938eb354cf5816@mail.gmail.com> I'm not saying that I have anything against the idea. I actually like it. The problem is that we don't have a generic plugin mechanism. So if we add this, at least for now, it'll be a part of the core of Typo. Scott On 7/26/06, levi mccallum <vemon388 at gmail.com> wrote: > Well, what stops from giving tags? It is exactly the same thing Scott. > > Correct me if I am wrong. > > > On 7/25/06, Rob Sanheim < rsanheim at gmail.com> wrote: > > On 7/26/06, Scott Laird < scott at sigkill.org> wrote: > > > On 7/25/06, Rob Sanheim <rsanheim at gmail.com> wrote: > > > > > > > > Why not make it a plugin and see how popular it is? > > > > > > You can't make it a plugin--there's no plugin infrastructure for that. > > > You could build it into your theme, but it's not really pluggable in > > > general. > > > > > > > > > Scott > > > > I guess that's a problem then :) - though I suppose the general > > functionality of doing digg/reddit/etc links could be extracted out to > > a more general rails plugin. Ie give the plugin a link, and get back > > the links for services you specify, or image links, or whatever. > > > > - Rob > > -- > > http://www.robsanheim.com > > _______________________________________________ > > 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/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From vemon388 at gmail.com Wed Jul 26 15:44:44 2006 From: vemon388 at gmail.com (levi mccallum) Date: Thu, 27 Jul 2006 05:44:44 +1000 Subject: [typo] Bookmark button meta In-Reply-To: <14b7e5ef0607261129y26fcaa9cw88938eb354cf5816@mail.gmail.com> References: <fb023dc70607251646o1dfb213fkc894b49efe3f574a@mail.gmail.com> <fc113d400607252209u81fa543j98480f5bdff05873@mail.gmail.com> <14b7e5ef0607252214t106a46f0x6bd81355e239a1b7@mail.gmail.com> <fc113d400607252220n6ded401n501674504929a24a@mail.gmail.com> <fb023dc70607261125p790c33a7g533934156d6430bb@mail.gmail.com> <14b7e5ef0607261129y26fcaa9cw88938eb354cf5816@mail.gmail.com> Message-ID: <fb023dc70607261244v172dded1qf269f69033e1982d@mail.gmail.com> So, can I do it? I was just asking if it was possible. If so, I will do my best to make it, and submit a patch. On 7/27/06, Scott Laird <scott at sigkill.org> wrote: > > I'm not saying that I have anything against the idea. I actually like it. > > The problem is that we don't have a generic plugin mechanism. So if > we add this, at least for now, it'll be a part of the core of Typo. > > > Scott > > On 7/26/06, levi mccallum <vemon388 at gmail.com> wrote: > > Well, what stops from giving tags? It is exactly the same thing Scott. > > > > Correct me if I am wrong. > > > > > > On 7/25/06, Rob Sanheim < rsanheim at gmail.com> wrote: > > > On 7/26/06, Scott Laird < scott at sigkill.org> wrote: > > > > On 7/25/06, Rob Sanheim <rsanheim at gmail.com> wrote: > > > > > > > > > > Why not make it a plugin and see how popular it is? > > > > > > > > You can't make it a plugin--there's no plugin infrastructure for > that. > > > > You could build it into your theme, but it's not really pluggable > in > > > > general. > > > > > > > > > > > > Scott > > > > > > I guess that's a problem then :) - though I suppose the general > > > functionality of doing digg/reddit/etc links could be extracted out to > > > a more general rails plugin. Ie give the plugin a link, and get back > > > the links for services you specify, or image links, or whatever. > > > > > > - Rob > > > -- > > > http://www.robsanheim.com > > > _______________________________________________ > > > 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/ > > _______________________________________________ > > 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 > -- 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/20060727/c2537d64/attachment.html From bobo at meticulous.com Wed Jul 26 18:34:43 2006 From: bobo at meticulous.com (John Athayde) Date: Wed, 26 Jul 2006 18:34:43 -0400 Subject: [typo] Sparklines rake test failure Message-ID: <C132C8E5-166F-4970-BDF0-CF561E97B6C0@meticulous.com> This was my only issue in my initial install and I've spent a large chunk of the day on it. I have reinstalled ImageMagick and individual libraries and the sparklines gem and upgraded all gems on the server. I have done the gem install typo. This is an update run over a 2.6 install (which might be the issue) rake Test comes back with this error in the second half: ###### start ######## 142 tests, 468 assertions, 0 failures, 0 errors /usr/local/bin/ruby18 -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/ rake-0.7.1/lib/rake/rake_test_loader.rb" "test/functional/ accounts_controller_test.rb" "test/functional/xml_controller_test.rb" "test/functional/redirect_controller_test.rb" "test/functional/ theme_controller_test.rb" "test/functional/ articles_controller_test.rb" "test/functional/ backend_controller_test.rb" "test/functional/ textfilter_controller_test.rb" "test/functional/admin/ categories_controller_test.rb" "test/functional/admin/ general_controller_test.rb" "test/functional/admin/ pages_controller_test.rb" "test/functional/admin/ article_preview_test.rb" "test/functional/admin/ users_controller_test.rb" "test/functional/admin/ blacklist_controller_test.rb" "test/functional/admin/ comments_controller_test.rb" "test/functional/admin/ themes_controller_test.rb" "test/functional/admin/ trackbacks_controller_test.rb" "test/functional/admin/ content_controller_test.rb" "test/functional/admin/ resources_controller_test.rb" "test/functional/admin/ feedback_controller_test.rb" "test/functional/admin/ textfilters_controller_test.rb" feedvalidator: not found Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/ rake_test_loader Started ........................................................................ ........................................................................ ............................FE................................ Finished in 63.300528 seconds. 1) Failure: test_sparkline(TextfilterControllerTest) [./test/functional/ textfilter_controller_test.rb:138]: <nil> is not true. 2) Error: test_sparkline_plot(TextfilterControllerTest): ArgumentError: unknown format: PNG /usr/home/kojiplog/plog.meticulous.com/config/../vendor/ sparklines/lib/sparklines.rb:375:in `format=' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/ sparklines/lib/sparklines.rb:375:in `smooth' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/ sparklines/lib/sparklines.rb:136:in `plot' /usr/home/kojiplog/plog.meticulous.com/config/../components/ plugins/textfilters/sparkline_controller.rb:70:in `plot' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/base.rb:910:in `perform_action_without_filters' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/rescue.rb:82:in `perform_action' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/base.rb:381:in `process_without_filters' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/filters.rb:377:in `process_without_session_management_support' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/session_management.rb:117:in `process_without_test' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/test_process.rb:16:in `process' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/components.rb:71:in `process_with_components' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/components.rb:137:in `component_response' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/components.rb:101:in `render_component' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/components.rb:169:in `component_logging_with_unfiltered_options' /usr/home/kojiplog/plog.meticulous.com/config/../lib/rails_patch/ components.rb:10:in `component_logging' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/components.rb:100:in `render_component' /usr/home/kojiplog/plog.meticulous.com/config/../app/controllers/ textfilter_controller.rb:9:in `public_action' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/base.rb:910:in `perform_action_without_filters' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/rescue.rb:82:in `perform_action' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/base.rb:381:in `process_without_filters' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/filters.rb:377:in `process_without_session_management_support' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/session_management.rb:117:in `process_without_test' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/test_process.rb:16:in `process' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/test_process.rb:363:in `process' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/test_process.rb:336:in `get' ./test/functional/textfilter_controller_test.rb:164:in `test_sparkline_plot' 206 tests, 802 assertions, 1 failures, 1 errors rake aborted! Test failures (See full trace by running task with --trace) ###### end ######## Says it can't find libpng basically from what I understand. But my imagemagick config says it's there: ###### start ######## ImageMagick is configured as follows. Please verify that this configuration matches your expectations. Host system type : i386-unknown-freebsd5.4 Option Value ------------------------------------------------------------------------ - Shared libraries --enable-shared=yes yes Static libraries --enable-static=yes yes Module support --with-modules=yes yes GNU ld --with-gnu-ld=yes yes Quantum depth --with-quantum-depth=16 16 Delegate Configuration: BZLIB --with-bzlib=yes yes DPS --with-dps=yes no (failed tests) FlashPIX --with-fpx=no no FontConfig --with-fontconfig=yes yes FreeType --with-freetype=yes yes GhostPCL None pcl6 (unknown) Ghostscript None gs (unknown) Ghostscript fonts --with-gs-font-dir=default none Ghostscript lib --with-gslib=yes no Graphviz --with-gvc=yes no JBIG --with-jbig=yes no JPEG v1 --with-jpeg=yes yes JPEG-2000 --with-jp2=yes no LCMS --with-lcms=yes no Magick++ --with-magick-plus-plus=yes yes PERL --with-perl=yes /usr/bin/perl PNG --with-png=yes yes RSVG --with-rsvg=yes no TIFF --with-tiff=yes yes Windows fonts --with-windows-font-dir= none WMF --with-wmf=yes yes X11 --with-x= yes XML --with-xml=yes yes ZLIB --with-zlib=yes yes X11 Configuration: X_CFLAGS = -I/usr/X11R6/include X_PRE_LIBS = -lSM -lICE X_LIBS = -L/usr/X11R6/lib X_EXTRA_LIBS = Options used to compile and link: PREFIX = /usr/local EXEC-PREFIX = /usr/local VERSION = 6.2.8 CC = gcc CFLAGS = -g -O2 -Wall -D_THREAD_SAFE -pthread CPPFLAGS = -I/usr/local/include PCFLAGS = DEFS = -DHAVE_CONFIG_H LDFLAGS = -L/usr/local/lib -L/usr/X11R6/lib -L/usr/local/lib - Wl,--rpath -Wl,/usr/local/lib -lfreetype -lz -L/usr/local/lib LIBS = -lMagick -ltiff -lfreetype -ljpeg -L/usr/X11R6/lib - lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lc_r -lm -lc_r CXX = g++ CXXFLAGS = -D_THREAD_SAFE -pthread ###### end ######## Thoughts? -- John Athayde bobo at meticulous.com Meticulous | www.meticulous.com (work) Rotoscope | www.rotoscope.com (sound: rock band) Boboroshi & Kynz | www.boboroshiandkynz.com (sound: electronic) Personal Weblog | www.boboroshi.com (play) "Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety." - Benjamin Franklin (1706-1790) Reply of the Pennsylvania Assembly to the Governor November 11, 1755 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060726/90d0553f/attachment-0001.html From bobo at meticulous.com Wed Jul 26 18:41:29 2006 From: bobo at meticulous.com (John Athayde) Date: Wed, 26 Jul 2006 18:41:29 -0400 Subject: [typo] replication Message-ID: <021762CA-0880-4342-A790-9F5E3E9ADF21@meticulous.com> Replicated on a different typo install on another FreeBSD box 1) Failure: test_sparkline(TextfilterControllerTest) [./test/functional/ textfilter_controller_test.rb:138]: <nil> is not true. 206 tests, 806 assertions, 1 failures, 0 errors only the first error tho. Is this just an issue of upgrading an old install? -- John Athayde bobo at meticulous.com Meticulous | www.meticulous.com (work) Rotoscope | www.rotoscope.com (sound: rock band) Boboroshi & Kynz | www.boboroshiandkynz.com (sound: electronic) Personal Weblog | www.boboroshi.com (play) "Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety." - Benjamin Franklin (1706-1790) Reply of the Pennsylvania Assembly to the Governor November 11, 1755 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060726/e4e8a30e/attachment.html From kyleheon at gmail.com Wed Jul 26 19:39:22 2006 From: kyleheon at gmail.com (Kyle Heon) Date: Wed, 26 Jul 2006 19:39:22 -0400 Subject: [typo] Numerous "Lost connection to MySQL server during query" errors... Message-ID: <cbaba1b40607261639h7a5934c8w58295f23c8a17129@mail.gmail.com> Starting last night (7/25/2006), after doing an svn up to pull down the latest from trunk, I'm constantly getting the following error pretty frequently. Refreshing sometimes works, sometimes it doesn't. Lost connection to MySQL server during query #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:1112:in `write' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:1162:in `finalizer' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:68:in `dup' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:66:in `dup' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in `method_missing' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in `indent' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in `method_missing' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:155:in `recognition_check' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:160:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in `go' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:132:in `continue' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:99:in `move_forward' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in `method_missing' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in `indent' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in `method_missing' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:92:in `if_next_matches' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:79:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in `go' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:132:in `continue' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:161:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:177:in `assign_result' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:99:in `move_forward' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:177:in `assign_result' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:161:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:155:in `recognition_check' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in `method_missing' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in `indent' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in `method_missing' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:155:in `recognition_check' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:160:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in `go' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:132:in `continue' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:99:in `move_forward' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in `method_missing' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in `indent' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in `method_missing' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:92:in `if_next_matches' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:79:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in `go' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:132:in `continue' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:99:in `move_forward' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in `method_missing' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in `indent' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in `method_missing' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:92:in `if_next_matches' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:79:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in `go' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:379:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:531:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:635:in `each' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:529:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in `method_missing' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in `indent' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in `method_missing' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:528:in `write_recognition' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:630:in `draw' #{RAILS_ROOT}/config/routes.rb:1 /usr/local/bin/mongrel_rails:18 This error occured while loading the following files: /home/kyle/ror/typo/config/../config/routes.rb Any thoughts on what might be causing this? Nothing has changed on the server, it's my personal dev box and it only turned on when I want to do Rails development. Thanks in advance for any assistance provided. Kyle Heon www.kyleheon.com From scott at sigkill.org Wed Jul 26 20:26:11 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 26 Jul 2006 17:26:11 -0700 Subject: [typo] Numerous "Lost connection to MySQL server during query" errors... In-Reply-To: <cbaba1b40607261639h7a5934c8w58295f23c8a17129@mail.gmail.com> References: <cbaba1b40607261639h7a5934c8w58295f23c8a17129@mail.gmail.com> Message-ID: <14b7e5ef0607261726r243cbf69w1fb594c7f6ec0e37@mail.gmail.com> Try gem install mysql Scott On 7/26/06, Kyle Heon <kyleheon at gmail.com> wrote: > Starting last night (7/25/2006), after doing an svn up to pull down > the latest from trunk, I'm constantly getting the following error > pretty frequently. Refreshing sometimes works, sometimes it doesn't. > > Lost connection to MySQL server during query > > #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:1112:in > `write' > #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:1162:in > `finalizer' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:68:in > `dup' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:66:in > `dup' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > `method_missing' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in > `indent' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > `method_missing' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:155:in > `recognition_check' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:160:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in > `go' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:132:in > `continue' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:99:in > `move_forward' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > `method_missing' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in > `indent' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > `method_missing' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:92:in > `if_next_matches' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:79:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in > `go' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:132:in > `continue' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:161:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:177:in > `assign_result' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:99:in > `move_forward' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:177:in > `assign_result' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:161:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:155:in > `recognition_check' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > `method_missing' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in > `indent' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > `method_missing' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:155:in > `recognition_check' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:160:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in > `go' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:132:in > `continue' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:99:in > `move_forward' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > `method_missing' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in > `indent' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > `method_missing' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:92:in > `if_next_matches' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:79:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in > `go' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:132:in > `continue' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:99:in > `move_forward' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > `method_missing' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in > `indent' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > `method_missing' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:92:in > `if_next_matches' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:79:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in > `go' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:379:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:531:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:635:in > `each' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:529:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > `method_missing' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in > `indent' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > `method_missing' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:528:in > `write_recognition' > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:630:in > `draw' > #{RAILS_ROOT}/config/routes.rb:1 > /usr/local/bin/mongrel_rails:18 > > This error occured while loading the following files: > /home/kyle/ror/typo/config/../config/routes.rb > > Any thoughts on what might be causing this? Nothing has changed on the > server, it's my personal dev box and it only turned on when I want to > do Rails development. > > Thanks in advance for any assistance provided. > > Kyle Heon > www.kyleheon.com > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From scott at sigkill.org Wed Jul 26 20:27:03 2006 From: scott at sigkill.org (Scott Laird) Date: Wed, 26 Jul 2006 17:27:03 -0700 Subject: [typo] Sparklines rake test failure In-Reply-To: <C132C8E5-166F-4970-BDF0-CF561E97B6C0@meticulous.com> References: <C132C8E5-166F-4970-BDF0-CF561E97B6C0@meticulous.com> Message-ID: <14b7e5ef0607261727n26381d9fnf47988071870c316@mail.gmail.com> You'll need to install libpng and then rebuild imagemagick. Scott On 7/26/06, John Athayde <bobo at meticulous.com> wrote: > > This was my only issue in my initial install and I've spent a large chunk of > the day on it. I have reinstalled ImageMagick and individual libraries and > the sparklines gem and upgraded all gems on the server. I have done the gem > install typo. This is an update run over a 2.6 install (which might be the > issue) > > rake Test comes back with this error in the second half: > > ###### start ######## > > 142 tests, 468 assertions, 0 failures, 0 errors > /usr/local/bin/ruby18 -Ilib:test > "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" > "test/functional/accounts_controller_test.rb" > "test/functional/xml_controller_test.rb" > "test/functional/redirect_controller_test.rb" > "test/functional/theme_controller_test.rb" > "test/functional/articles_controller_test.rb" > "test/functional/backend_controller_test.rb" > "test/functional/textfilter_controller_test.rb" > "test/functional/admin/categories_controller_test.rb" > "test/functional/admin/general_controller_test.rb" > "test/functional/admin/pages_controller_test.rb" > "test/functional/admin/article_preview_test.rb" > "test/functional/admin/users_controller_test.rb" > "test/functional/admin/blacklist_controller_test.rb" > "test/functional/admin/comments_controller_test.rb" > "test/functional/admin/themes_controller_test.rb" > "test/functional/admin/trackbacks_controller_test.rb" > "test/functional/admin/content_controller_test.rb" > "test/functional/admin/resources_controller_test.rb" > "test/functional/admin/feedback_controller_test.rb" > "test/functional/admin/textfilters_controller_test.rb" > feedvalidator: not found > Loaded suite > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader > Started > ............................................................................................................................................................................FE................................ > Finished in 63.300528 seconds. > > 1) Failure: > test_sparkline(TextfilterControllerTest) > [./test/functional/textfilter_controller_test.rb:138]: > <nil> is not true. > > 2) Error: > test_sparkline_plot(TextfilterControllerTest): > ArgumentError: unknown format: PNG > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/sparklines/lib/sparklines.rb:375:in > `format=' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/sparklines/lib/sparklines.rb:375:in > `smooth' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/sparklines/lib/sparklines.rb:136:in > `plot' > > /usr/home/kojiplog/plog.meticulous.com/config/../components/plugins/textfilters/sparkline_controller.rb:70:in > `plot' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/base.rb:910:in > `perform_action_without_filters' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:368:in > `perform_action_without_benchmark' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in > `perform_action_without_rescue' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in > `perform_action' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/base.rb:381:in > `process_without_filters' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:377:in > `process_without_session_management_support' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in > `process_without_test' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/test_process.rb:16:in > `process' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/components.rb:71:in > `process_with_components' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/components.rb:137:in > `component_response' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/components.rb:101:in > `render_component' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/components.rb:169:in > `component_logging_with_unfiltered_options' > > /usr/home/kojiplog/plog.meticulous.com/config/../lib/rails_patch/components.rb:10:in > `component_logging' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/components.rb:100:in > `render_component' > > /usr/home/kojiplog/plog.meticulous.com/config/../app/controllers/textfilter_controller.rb:9:in > `public_action' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/base.rb:910:in > `perform_action_without_filters' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:368:in > `perform_action_without_benchmark' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in > `perform_action_without_rescue' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in > `perform_action' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/base.rb:381:in > `process_without_filters' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:377:in > `process_without_session_management_support' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in > `process_without_test' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/test_process.rb:16:in > `process' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/test_process.rb:363:in > `process' > > /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/actionpack/lib/action_controller/test_process.rb:336:in > `get' > ./test/functional/textfilter_controller_test.rb:164:in > `test_sparkline_plot' > > 206 tests, 802 assertions, 1 failures, 1 errors > rake aborted! > Test failures > > (See full trace by running task with --trace) > > ###### end ######## > > Says it can't find libpng basically from what I understand. But my > imagemagick config says it's there: > > ###### start ######## > > ImageMagick is configured as follows. Please verify that this configuration > matches your expectations. > > Host system type : i386-unknown-freebsd5.4 > > Option Value > ------------------------------------------------------------------------- > Shared libraries --enable-shared=yes yes > Static libraries --enable-static=yes yes > Module support --with-modules=yes yes > GNU ld --with-gnu-ld=yes yes > Quantum depth --with-quantum-depth=16 16 > > Delegate Configuration: > BZLIB --with-bzlib=yes yes > DPS --with-dps=yes no (failed tests) > FlashPIX --with-fpx=no no > FontConfig --with-fontconfig=yes yes > FreeType --with-freetype=yes yes > GhostPCL None pcl6 (unknown) > Ghostscript None gs (unknown) > Ghostscript fonts --with-gs-font-dir=default none > Ghostscript lib --with-gslib=yes no > Graphviz --with-gvc=yes no > JBIG --with-jbig=yes no > JPEG v1 --with-jpeg=yes yes > JPEG-2000 --with-jp2=yes no > LCMS --with-lcms=yes no > Magick++ --with-magick-plus-plus=yes yes > PERL --with-perl=yes /usr/bin/perl > PNG --with-png=yes yes > RSVG --with-rsvg=yes no > TIFF --with-tiff=yes yes > Windows fonts --with-windows-font-dir= none > WMF --with-wmf=yes yes > X11 --with-x= yes > XML --with-xml=yes yes > ZLIB --with-zlib=yes yes > > X11 Configuration: > X_CFLAGS = -I/usr/X11R6/include > X_PRE_LIBS = -lSM -lICE > X_LIBS = -L/usr/X11R6/lib > X_EXTRA_LIBS = > > Options used to compile and link: > PREFIX = /usr/local > EXEC-PREFIX = /usr/local > VERSION = 6.2.8 > CC = gcc > CFLAGS = -g -O2 -Wall -D_THREAD_SAFE -pthread > CPPFLAGS = -I/usr/local/include > PCFLAGS = > DEFS = -DHAVE_CONFIG_H > LDFLAGS = -L/usr/local/lib -L/usr/X11R6/lib -L/usr/local/lib > -Wl,--rpath -Wl,/usr/local/lib -lfreetype -lz -L/usr/local/lib > LIBS = -lMagick -ltiff -lfreetype -ljpeg -L/usr/X11R6/lib > -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lc_r -lm -lc_r > CXX = g++ > CXXFLAGS = -D_THREAD_SAFE -pthread > > > > ###### end ######## > > Thoughts? > > > > -- > > > > > John Athayde > > bobo at meticulous.com > > > > > Meticulous | www.meticulous.com (work) > > Rotoscope | www.rotoscope.com (sound: rock band) > > Boboroshi & Kynz | www.boboroshiandkynz.com (sound: electronic) > > Personal Weblog | www.boboroshi.com (play) > > > > > "Those who would give up essential Liberty, to purchase a little > > temporary Safety, deserve neither Liberty nor Safety." > > - Benjamin Franklin (1706-1790) > > Reply of the Pennsylvania Assembly to the Governor > > November 11, 1755 > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From kevin at sb.org Thu Jul 27 18:37:30 2006 From: kevin at sb.org (Kevin Ballard) Date: Thu, 27 Jul 2006 15:37:30 -0700 (PDT) Subject: [typo] Numerous "Lost connection to MySQL server during query" errors.rs In-Reply-To: <Pine.LNX.4.62.0607271508410.19181@rupee.dreamhost.com> References: <cbaba1b40607261639h7a5934c8w58295f23c8a17129@mail.gmail.com> <14b7e5ef0607261726r243cbf69w1fb594c7f6ec0e37@mail.gmail.com> <Pine.LNX.4.62.0607271508410.19181@rupee.dreamhost.com> Message-ID: <Pine.LNX.4.62.0607271536270.18618@rupee.dreamhost.com> If that doesn't work, try gem install mysql -- --with-mysql-config If you actually know the path to your mysql_config tool you can do gem install mysql -- --with-mysql-config=/path/to/mysql_config -Kevin The first way will search your PATH for it. On Wed, 26 Jul 2006, Scott Laird wrote: > Try > > gem install mysql > > > Scott > > On 7/26/06, Kyle Heon <kyleheon at gmail.com> wrote: >> Starting last night (7/25/2006), after doing an svn up to pull down >> the latest from trunk, I'm constantly getting the following error >> pretty frequently. Refreshing sometimes works, sometimes it doesn't. >> >> Lost connection to MySQL server during query >> >> #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:1112:in >> `write' >> #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:1162:in >> `finalizer' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:68:in >> `dup' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:66:in >> `dup' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in >> `method_missing' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in >> `indent' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in >> `method_missing' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:155:in >> `recognition_check' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:160:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in >> `go' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:132:in >> `continue' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:99:in >> `move_forward' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in >> `method_missing' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in >> `indent' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in >> `method_missing' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:92:in >> `if_next_matches' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:79:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in >> `go' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:132:in >> `continue' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:161:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:177:in >> `assign_result' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:99:in >> `move_forward' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:177:in >> `assign_result' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:161:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:155:in >> `recognition_check' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in >> `method_missing' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in >> `indent' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in >> `method_missing' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:155:in >> `recognition_check' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:160:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in >> `go' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:132:in >> `continue' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:99:in >> `move_forward' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in >> `method_missing' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in >> `indent' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in >> `method_missing' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:92:in >> `if_next_matches' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:79:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in >> `go' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:132:in >> `continue' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:99:in >> `move_forward' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in >> `method_missing' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in >> `indent' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in >> `method_missing' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:92:in >> `if_next_matches' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:79:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in >> `go' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:379:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:531:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:635:in >> `each' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:529:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in >> `method_missing' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in >> `indent' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in >> `method_missing' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:528:in >> `write_recognition' >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:630:in >> `draw' >> #{RAILS_ROOT}/config/routes.rb:1 >> /usr/local/bin/mongrel_rails:18 >> >> This error occured while loading the following files: >> /home/kyle/ror/typo/config/../config/routes.rb >> >> Any thoughts on what might be causing this? Nothing has changed on the >> server, it's my personal dev box and it only turned on when I want to >> do Rails development. >> >> Thanks in advance for any assistance provided. >> >> Kyle Heon >> www.kyleheon.com -- Kevin Ballard http://kevin.sb.org kevin at sb.org From paulrbrown at gmail.com Fri Jul 28 01:22:14 2006 From: paulrbrown at gmail.com (Paul R Brown) Date: Thu, 27 Jul 2006 22:22:14 -0700 Subject: [typo] /tmp/cache and svn-ignore Message-ID: <0A61FF50-A732-4531-B761-E0AF174D307C@gmail.com> Could someone will commit access (pretty please) add ./tmp/cache to the ignores so that I don't have to delete it every time I update? --- Paul R Brown paulrbrown at gmail.com http://mult.ifario.us/ From tim at digital-achievement.com Fri Jul 28 03:03:39 2006 From: tim at digital-achievement.com (Timothy Freund) Date: Fri, 28 Jul 2006 02:03:39 -0500 Subject: [typo] Updated Themes In-Reply-To: <44C706C5.8030102@digital-achievement.com> References: <44C706C5.8030102@digital-achievement.com> Message-ID: <44C9B6CB.7080203@digital-achievement.com> In addition to changing all themes to use render_sidebars, I updated the head elements as well. Thanks to sprewell in the IRC channel for the recommendation. Everything is summarized here: http://tim.freunds.net/thoughts/ Or go straight to the Proofread catalog: http://proofread.digital-achievement.com/catalog/ Best regards, Tim Timothy Freund wrote: > In IRC over the weekend we discussed how the old themes seemed to > magically work with trunk, but that they were not guaranteed to continue > working. > > I changed the sidebar rendering for all of the themes in Proofread to > render_sidebars rather than the old way of doing things so that the > themes should continue working at least until the sidebar rendering > mechanism changes again. The changeset is available. [1] > > All of the themes have been automatically tested, and everything seems > to still work. Exedge is broken, but it was broken before the update. > It makes a nice poster child for the test report features that were just > added to Proofread. [2] > > > [1] http://proofread.digital-achievement.com/typothemes/changeset/51 > [2] http://proofread.digital-achievement.com/catalog/themes/view/80 > > Themes that work in trunk will now start to be tagged for 4.0, but I'm > calling it a night for now. > > Thanks, > > -- Timothy Freund http://tim.freunds.net/thoughts http://digital-achievement.com From daesan at gmail.com Fri Jul 28 03:41:57 2006 From: daesan at gmail.com (Dae San Hwang) Date: Fri, 28 Jul 2006 16:41:57 +0900 Subject: [typo] blacklist patterns not working? In-Reply-To: <14b7e5ef0607221444r7c1b91b5m7d5e103586da88c5@mail.gmail.com> References: <9B170FF4-3329-48D6-A616-47549AD112BA@gmail.com> <14b7e5ef0607221444r7c1b91b5m7d5e103586da88c5@mail.gmail.com> Message-ID: <5DE77FA6-13F2-46C5-86D6-D95D32EF33D2@gmail.com> I updated to the latest trunk but blacklist still isn't working for trackbacks.. (I haven't been getting spam comments yet.) Turning on Akismet seems to help quite a bit. Thanks for the tip, Scott! :) Dae San Dae San Hwang daesan at gmail.com On Jul 23, 2006, at 6:44 AM, scott at sigkill.org wrote: > They should be applied to both comments and trackbacks. Are you > running the latest trunk, or are a bit behind? > > If you're using the trunk (or 3.99.4), then look at turning on > Akismet; it should make a huge difference. > > > Scott > > On 7/22/06, Dae San Hwang <daesan at gmail.com> wrote: >> Hi. >> >> I get lots of trackback spams nowadays. I've been trying to use >> Blacklist Patterns in typo admin to filter them but I can't get them >> to work. >> >> For example to filter a trackback ping like this: >> >> Blog Name: online-gambling-casino >> Title: online-gambling-casino >> Excerpt: He stops walking and looks ... >> >> I tried using RegexPattern "[Cc]asino" and StringPattern "casino". >> >> But it doesn't get filtered. Am I missing something, or does the >> Blacklist Patterns not work for trackbacks? >> >> Best, >> >> Dae San >> >> Dae San Hwang >> daesan at gmail.com >> >> >> >> >> > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060728/ac0f20f3/attachment.html From kyleheon at gmail.com Fri Jul 28 06:19:21 2006 From: kyleheon at gmail.com (Kyle Heon) Date: Fri, 28 Jul 2006 06:19:21 -0400 Subject: [typo] /tmp/cache and svn-ignore In-Reply-To: <0A61FF50-A732-4531-B761-E0AF174D307C@gmail.com> References: <0A61FF50-A732-4531-B761-E0AF174D307C@gmail.com> Message-ID: <cbaba1b40607280319wb9668c0td6d7319fbee7bac9@mail.gmail.com> +1 On 7/28/06, Paul R Brown <paulrbrown at gmail.com> wrote: > > Could someone will commit access (pretty please) add ./tmp/cache to > the ignores so that I don't have to delete it every time I update? > > --- > Paul R Brown > paulrbrown at gmail.com > http://mult.ifario.us/ > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From thpinto at gmail.com Fri Jul 28 06:56:49 2006 From: thpinto at gmail.com (Tiago Pinto) Date: Fri, 28 Jul 2006 11:56:49 +0100 Subject: [typo] typo 4 on dreamhost Message-ID: <655cd3cd0607280356s1ee8bfcjc415d1bbf9a6b16b@mail.gmail.com> I've installed typo 4.0.0 on my dreamhost account and decribed how I've done it: http://blog.fusiveis.net/ I'm sure the gem way can be much more interesting, however this guide installs typo the old way and is working. I'm planning to write about installing gems on your own DH account and then install typo using its new gem. -- Tiago Pinto DEIUC - Departamento de Engenharia Inform?tica da Universidade de Coimbra thpinto at gmail.com | tpinto at student.dei.uc.pt Don't be so humble, you're not that good. From kvanderauwera at gmail.com Fri Jul 28 08:35:14 2006 From: kvanderauwera at gmail.com (Koen Van der Auwera) Date: Fri, 28 Jul 2006 14:35:14 +0200 Subject: [typo] /tmp/cache and svn-ignore In-Reply-To: <cbaba1b40607280319wb9668c0td6d7319fbee7bac9@mail.gmail.com> References: <0A61FF50-A732-4531-B761-E0AF174D307C@gmail.com> <cbaba1b40607280319wb9668c0td6d7319fbee7bac9@mail.gmail.com> Message-ID: <53f0709b0607280535p4fd6dec5sf4734cfa5f95c7ca@mail.gmail.com> +1 On 7/28/06, Kyle Heon <kyleheon at gmail.com> wrote: > > +1 > > On 7/28/06, Paul R Brown <paulrbrown at gmail.com> wrote: > > > > Could someone will commit access (pretty please) add ./tmp/cache to > > the ignores so that I don't have to delete it every time I update? > > > > --- > > Paul R Brown > > paulrbrown at gmail.com > > http://mult.ifario.us/ > > > > > > > > _______________________________________________ > > 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 > -- Koen. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060728/bf0f47c0/attachment-0001.html From scott at sigkill.org Fri Jul 28 11:07:52 2006 From: scott at sigkill.org (Scott Laird) Date: Fri, 28 Jul 2006 08:07:52 -0700 Subject: [typo] /tmp/cache and svn-ignore In-Reply-To: <53f0709b0607280535p4fd6dec5sf4734cfa5f95c7ca@mail.gmail.com> References: <0A61FF50-A732-4531-B761-E0AF174D307C@gmail.com> <cbaba1b40607280319wb9668c0td6d7319fbee7bac9@mail.gmail.com> <53f0709b0607280535p4fd6dec5sf4734cfa5f95c7ca@mail.gmail.com> Message-ID: <14b7e5ef0607280807y76a6eb98kd7a3e3212af6ff81@mail.gmail.com> r1185 Scott On 7/28/06, Koen Van der Auwera <kvanderauwera at gmail.com> wrote: > +1 > > > On 7/28/06, Kyle Heon <kyleheon at gmail.com> wrote: > > +1 > > > > On 7/28/06, Paul R Brown <paulrbrown at gmail.com> wrote: > > > > > > Could someone will commit access (pretty please) add ./tmp/cache to > > > the ignores so that I don't have to delete it every time I update? > > > > > > --- > > > Paul R Brown > > > paulrbrown at gmail.com > > > http://mult.ifario.us/ > > > > > > > > > > > > _______________________________________________ > > > 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 > > > > > > -- > Koen. > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From doug.bromley at gmail.com Fri Jul 28 11:52:55 2006 From: doug.bromley at gmail.com (Doug Bromley) Date: Fri, 28 Jul 2006 16:52:55 +0100 Subject: [typo] Wordpress2 Conversion: "...uninitialized constant TestRequest..." Message-ID: <288425520607280852k70c19111i16191f34e4b11f0@mail.gmail.com> Hi All I'd be grateful for some help on this as this is the only stumbling block I've got before a full switch over to Typo. When I run my "wordpress2.rb" conversion script I get the following output: Code: Creating Blog... Converting 0 users... Converting 104 entries.. ../../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:183:in `request' from ../../config/../app/models/blog.rb:156:in `url_for' from ../../config/../app/models/blog.rb:168:in `article_url' from ../../config/../app/models/article.rb:26:in `location' from ../../config/../app/models/article.rb:40:in `really_send_pings' from ../../config/../app/models/content_state/just_published.rb:44:in `send_pings' from ../../config/../app/models/article.rb:67: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 Google turns up no answers so I'd be very grateful for your input! From inxs.hemant at gmail.com Fri Jul 28 12:38:51 2006 From: inxs.hemant at gmail.com (hemant kumar) Date: Fri, 28 Jul 2006 22:08:51 +0530 Subject: [typo] sidebar bug, while removing items or adding items In-Reply-To: <53f0709b0607280535p4fd6dec5sf4734cfa5f95c7ca@mail.gmail.com> Message-ID: <44ca3dcc.0609e519.25b8.ffffb121@mx.gmail.com> Hi All, I stumbled upon this bug, when i was trying to write my own sidebar plugin. Whenever i try to add or remove items to sidebar by dragging the stuff to the active region, i get error: NoMethodError (You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occured while evaluating nil.inject): /app/controllers/admin/sidebar_controller.rb:26:in `set_active' /vendor/rails/actionpack/lib/action_controller/base.rb:910:in `perform_action_without_filters' And the problem is with the line: activemap = flash[:sidebars].inject({}) do |h, sb_id| sb = Sidebar.find(sb_id.to_i) sb ? h.merge({ sb.html_id => sb_id }) : h end while we assign the active plugins to flash[:sidebars] in index action, but they are replaced or lost in set_active method and hence the bug. It may be something to do with the way mongrel handles sessions alos, but may be. It looks a bug to me, right now. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060728/f0300649/attachment.html From kyleheon at gmail.com Fri Jul 28 13:15:47 2006 From: kyleheon at gmail.com (Kyle Heon) Date: Fri, 28 Jul 2006 13:15:47 -0400 Subject: [typo] Numerous "Lost connection to MySQL server during query" errors.rs In-Reply-To: <Pine.LNX.4.62.0607271536270.18618@rupee.dreamhost.com> References: <cbaba1b40607261639h7a5934c8w58295f23c8a17129@mail.gmail.com> <14b7e5ef0607261726r243cbf69w1fb594c7f6ec0e37@mail.gmail.com> <Pine.LNX.4.62.0607271508410.19181@rupee.dreamhost.com> <Pine.LNX.4.62.0607271536270.18618@rupee.dreamhost.com> Message-ID: <cbaba1b40607281015h1f8aeb03p588779ca17959932@mail.gmail.com> I've tried to do gem install mysql as well as the secondary suggested gem install mysql -- --with-mysql-config. I even looked for the mysql_config file, which I have found in more then one area, tried setting the path to the two I found which make sense but it continues to fail to build/install. I don't have the errors available but I'll post them later. One thing I did notice is that these errors seem to only happen while running in development mode, if I boot up mongrel in production mode I don't have any issues. And before someone asks, yes I've also tried using webrick, no difference. On 7/27/06, Kevin Ballard <kevin at sb.org> wrote: > If that doesn't work, try > > gem install mysql -- --with-mysql-config > > If you actually know the path to your mysql_config tool you can do > > gem install mysql -- --with-mysql-config=/path/to/mysql_config > > -Kevin > > The first way will search your PATH for it. > > On Wed, 26 Jul 2006, Scott Laird wrote: > > > Try > > > > gem install mysql > > > > > > Scott > > > > On 7/26/06, Kyle Heon <kyleheon at gmail.com> wrote: > >> Starting last night (7/25/2006), after doing an svn up to pull down > >> the latest from trunk, I'm constantly getting the following error > >> pretty frequently. Refreshing sometimes works, sometimes it doesn't. > >> > >> Lost connection to MySQL server during query > >> > >> #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:1112:in > >> `write' > >> #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:1162:in > >> `finalizer' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:68:in > >> `dup' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:66:in > >> `dup' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > >> `method_missing' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in > >> `indent' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > >> `method_missing' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:155:in > >> `recognition_check' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:160:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in > >> `go' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:132:in > >> `continue' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:99:in > >> `move_forward' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > >> `method_missing' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in > >> `indent' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > >> `method_missing' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:92:in > >> `if_next_matches' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:79:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in > >> `go' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:132:in > >> `continue' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:161:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:177:in > >> `assign_result' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:99:in > >> `move_forward' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:177:in > >> `assign_result' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:161:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:155:in > >> `recognition_check' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > >> `method_missing' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in > >> `indent' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > >> `method_missing' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:155:in > >> `recognition_check' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:160:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in > >> `go' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:132:in > >> `continue' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:99:in > >> `move_forward' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > >> `method_missing' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in > >> `indent' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > >> `method_missing' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:92:in > >> `if_next_matches' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:79:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in > >> `go' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:132:in > >> `continue' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:99:in > >> `move_forward' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:80:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > >> `method_missing' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in > >> `indent' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > >> `method_missing' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:92:in > >> `if_next_matches' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:79:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:136:in > >> `go' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:379:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:531:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:635:in > >> `each' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:529:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > >> `method_missing' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:19:in > >> `indent' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/code_generation.rb:46:in > >> `method_missing' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:528:in > >> `write_recognition' > >> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:630:in > >> `draw' > >> #{RAILS_ROOT}/config/routes.rb:1 > >> /usr/local/bin/mongrel_rails:18 > >> > >> This error occured while loading the following files: > >> /home/kyle/ror/typo/config/../config/routes.rb > >> > >> Any thoughts on what might be causing this? Nothing has changed on the > >> server, it's my personal dev box and it only turned on when I want to > >> do Rails development. > >> > >> Thanks in advance for any assistance provided. > >> > >> Kyle Heon > >> www.kyleheon.com > > -- > 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 scott at sigkill.org Fri Jul 28 15:55:58 2006 From: scott at sigkill.org (Scott Laird) Date: Fri, 28 Jul 2006 12:55:58 -0700 Subject: [typo] Non-root .gem installs Message-ID: <14b7e5ef0607281255t19537f16lcafd5ac54d5a333a@mail.gmail.com> Can people with problems installing the .gem on hosting providers try this set of directions: $ gem install -i ~/gems typo $ ~/gems/bin/typo install /some/path This *should* work. Scott From arsptr at internode.on.net Fri Jul 28 18:19:32 2006 From: arsptr at internode.on.net (Alastair Rankine) Date: Sat, 29 Jul 2006 08:19:32 +1000 Subject: [typo] Wordpress2 Conversion: "...uninitialized constant TestRequest..." In-Reply-To: <288425520607280852k70c19111i16191f34e4b11f0@mail.gmail.com> References: <288425520607280852k70c19111i16191f34e4b11f0@mail.gmail.com> Message-ID: <80AA3CFB-B982-43EB-94B4-83F6E4ED05C1@internode.on.net> On 29/07/2006, at 1:52 AM, Doug Bromley wrote: > I'd be grateful for some help on this as this is the only stumbling > block I've got before a full switch over to Typo. When I run my > "wordpress2.rb" conversion script I get the following output: > > Code: > > Creating Blog... > Converting 0 users... > Converting 104 entries.. > ../../config/../vendor/rails/activerecord/lib/../../activesupport/ > lib/active_support/dependencies.rb:123:in > `const_missing': uninitialized constant TestRequest (NameError) Hi Doug, I posted a patch for this here: http://typoforums.org/index.php/topic,165.msg614.html#msg614 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060729/062f09c2/attachment.html From phil.toland at gmail.com Fri Jul 28 19:25:33 2006 From: phil.toland at gmail.com (Phillip Toland) Date: Fri, 28 Jul 2006 18:25:33 -0500 Subject: [typo] Wordpress2 Conversion: "...uninitialized constant TestRequest..." In-Reply-To: <80AA3CFB-B982-43EB-94B4-83F6E4ED05C1@internode.on.net> References: <288425520607280852k70c19111i16191f34e4b11f0@mail.gmail.com> <80AA3CFB-B982-43EB-94B4-83F6E4ED05C1@internode.on.net> Message-ID: <69f191ca0607281625j7b68b3b1tb6664d31bb09f2c7@mail.gmail.com> On 7/28/06, Alastair Rankine <arsptr at internode.on.net> wrote: > I posted a patch for this here: > http://typoforums.org/index.php/topic,165.msg614.html#msg614 Doh! I ran into this when updating the script for WordPress 2 and then promptly forgot about it after I got the conversion working. FWIW, my fix is the same as yours except that I had articleurl ||= location(nil, false) instead of articleurl = location(nil, false) unless articleurl Gotta love Ruby! Anyway, I submitted the fix as a patch to the Typo Trac. See http://www.typosphere.org/trac/ticket/1053. Phil From linda at innovatesolutions.com Fri Jul 28 20:23:12 2006 From: linda at innovatesolutions.com (Linda Derezinski) Date: Fri, 28 Jul 2006 20:23:12 -0400 Subject: [typo] Tag class being overridden by YAML's Tag class Message-ID: <C0F022B0.1FCB%linda@innovatesolutions.com> I wrote a plugin which uses rubyful_soup. Everything works fine at first, but after a while the Tag class is no longer the Typo ActiveRecord class but the YAML Tag class. Has anyone else seen this problem? Any solution other than changing the name of one of the classes? This is the error I see: Processing XmlController#feed (for 68.55.36.237 at 2006-07-28 21:27:52) [GET] Parameters: {"format"=>"rss20", "action"=>"feed", "type"=>"feed", "controller"=>"xml"} Rendering xml/rss20_feed ActionView::TemplateError (undefined method `table_name' for Tag:Class) on line #19 of app/views/xml/_rss20_item_article.rxml: 16: for category in item.categories 17: xm.category category.name 18: end 19: for tag in item.tags 20: xm.category tag.display_name 21: end 22: /opt/csw/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/associ ations/has_and_belongs_to_many_association.rb:158:in `construct_sql' /opt/csw/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/associ ations/has_and_belongs_to_many_association.rb:6:in `initialize' /opt/csw/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/associ ations.rb:876:in `tags' #{RAILS_ROOT}/app/views/xml/_rss20_item_article.rxml:19:in `_run_rxml_xml__rss20_item_article' /opt/csw/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/vendo r/builder/xmlbase.rb:138:in `_nested_structures' /opt/csw/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/vendo r/builder/xmlbase.rb:60:in `method_missing' #{RAILS_ROOT}/app/views/xml/_rss20_item_article.rxml:1:in `_run_rxml_xml__rss20_item_article' /opt/csw/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:31 4:in `compile_and_render_template' /opt/csw/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:29 0:in `render_template' /opt/csw/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:24 9:in `render_file' -Linda From kevin at sb.org Fri Jul 28 22:27:08 2006 From: kevin at sb.org (Kevin Ballard) Date: Fri, 28 Jul 2006 19:27:08 -0700 Subject: [typo] Wordpress2 Conversion: "...uninitialized constant TestRequest..." In-Reply-To: <69f191ca0607281625j7b68b3b1tb6664d31bb09f2c7@mail.gmail.com> References: <288425520607280852k70c19111i16191f34e4b11f0@mail.gmail.com> <80AA3CFB-B982-43EB-94B4-83F6E4ED05C1@internode.on.net> <69f191ca0607281625j7b68b3b1tb6664d31bb09f2c7@mail.gmail.com> Message-ID: <44CAC77C.1080806@sb.org> Ok, I committed your patch in [1186]. Thanks. Phillip Toland wrote: > On 7/28/06, Alastair Rankine <arsptr at internode.on.net> wrote: >> I posted a patch for this here: >> http://typoforums.org/index.php/topic,165.msg614.html#msg614 > > Doh! I ran into this when updating the script for WordPress 2 and then > promptly forgot about it after I got the conversion working. FWIW, my > fix is the same as yours except that I had > > articleurl ||= location(nil, false) > > instead of > > articleurl = location(nil, false) unless articleurl > > Gotta love Ruby! Anyway, I submitted the fix as a patch to the Typo > Trac. See http://www.typosphere.org/trac/ticket/1053. > > Phil -- Kevin Ballard http://kevin.sb.org kevin at sb.org http://www.tildesoft.com From ian.w.white at gmail.com Sat Jul 29 03:50:28 2006 From: ian.w.white at gmail.com (Ian White) Date: Sat, 29 Jul 2006 08:50:28 +0100 Subject: [typo] Typo v4 on FC4 Message-ID: <f66db9cb0607290050j196784c7s522138a64d485408@mail.gmail.com> Hi List, Trying out type v4 on a Fedora Core 4 box, and I get a seg faullt when running the tests. So, as per the install instructions I'm reporting thsi problem to the mailing list. Cheers, Ian Output: [ian.w.white at de006226 testblog]$ rake (in /home/ian.w.white/testblog) /usr/bin/ruby -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" "test/unit/category_test.rb" "test/unit/blacklist_pattern_test.rb" "test/unit/configuration_test.rb" "test/unit/sidebar_test.rb" "test/unit/comment_test.rb" "test/unit/trigger_test.rb" "test/unit/trackback_test.rb" "test/unit/user_test.rb" "test/unit/resource_test.rb" "test/unit/flickr_test.rb" "test/unit/delicious_test.rb" "test/unit/tag_test.rb" "test/unit/notification_mailer_test.rb" "test/unit/observer_test.rb" "test/unit/metafragment_test.rb" "test/unit/article_test.rb" "test/unit/audioscrobbler_test.rb" "test/unit/fortythree_test.rb" "test/unit/theme_test.rb" "test/unit/page_cache_test.rb" "test/unit/magnolia_test.rb" "test/unit/redirect_test.rb" "test/unit/ping_test.rb" "test/unit/page_test.rb" "test/unit/blog_test.rb" "test/unit/text_filter_test.rb" "test/unit/content_state/factory_test.rb" Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader Started .......E......................................................................................................./home/ian.w.white/testblog/config/../app/models/text_filter.rb:10: [BUG] Segmentation fault ruby 1.8.4 (2005-12-24) [i386-linux] /usr/bin/ruby -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" "test/functional/backend_controller_test.rb" "test/functional/xml_controller_test.rb" "test/functional/theme_controller_test.rb" "test/functional/articles_controller_test.rb" "test/functional/redirect_controller_test.rb" "test/functional/textfilter_controller_test.rb" "test/functional/accounts_controller_test.rb" "test/functional/admin/feedback_controller_test.rb" "test/functional/admin/textfilters_controller_test.rb" "test/functional/admin/trackbacks_controller_test.rb" "test/functional/admin/content_controller_test.rb" "test/functional/admin/article_preview_test.rb" "test/functional/admin/resources_controller_test.rb" "test/functional/admin/categories_controller_test.rb" "test/functional/admin/themes_controller_test.rb" "test/functional/admin/users_controller_test.rb" "test/functional/admin/blacklist_controller_test.rb" "test/functional/admin/comments_controller_test.rb" "test/functional/admin/pages_controller_test.rb" "test/functional/admin/general_controller_test.rb" Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader Started ..........................................................................................................................................E................................................................... Finished in 47.851228 seconds. 1) Error: test_blogger_new_post_no_title(BackendControllerTest): XMLRPC::FaultException: undefined method `[]=' for 179016688:Fixnum /home/ian.w.white/testblog/config/../vendor/rails/actionwebservice/lib/action_web_service/test_invoke.rb:62:in `decode_rpc_response' /home/ian.w.white/testblog/config/../vendor/rails/actionwebservice/lib/action_web_service/test_invoke.rb:26:in `invoke_layered' ./test/functional/backend_controller_test.rb:60:in `test_blogger_new_post_no_title' 206 tests, 797 assertions, 0 failures, 1 errors *** glibc detected *** /usr/bin/ruby: double free or corruption (fasttop): 0x0a7c6de0 *** ======= Backtrace: ========= /lib/libc.so.6[0x8641e0] /lib/libc.so.6(__libc_free+0x77)[0x86472b] /usr/lib/libruby.so.1.8[0x44a6dc] /usr/lib/libruby.so.1.8(rb_gc_call_finalizer_at_exit+0x9e)[0x464bce] /usr/lib/libruby.so.1.8[0x44791f] /usr/lib/libruby.so.1.8(ruby_cleanup+0xe6)[0x457fd8] /usr/lib/libruby.so.1.8(ruby_stop+0x1d)[0x4580a5] /usr/lib/libruby.so.1.8(ruby_run+0x4f)[0x45ee40] /usr/bin/ruby[0x8048624] /lib/libc.so.6(__libc_start_main+0xdf)[0x815d7f] /usr/bin/ruby[0x804856d] ======= Memory map: ======== 00111000-00115000 r-xp 00000000 09:01 1721692 /usr/lib/ruby/1.8/i386-linux/strscan.so 00115000-00116000 rwxp 00003000 09:01 1721692 /usr/lib/ruby/1.8/i386-linux/strscan.so 00116000-00117000 r-xp 00000000 09:01 1721679 /usr/lib/ruby/1.8/i386-linux/fcntl.so 00117000-00118000 rwxp 00000000 09:01 1721679 /usr/lib/ruby/1.8/i386-linux/fcntl.so 00118000-0011b000 r-xp 00000000 09:01 1721681 /usr/lib/ruby/1.8/i386-linux/iconv.so 0011b000-0011c000 rwxp 00003000 09:01 1721681 /usr/lib/ruby/1.8/i386-linux/iconv.so 0011c000-00120000 r-xp 00000000 09:01 1721688 /usr/lib/ruby/1.8/i386-linux/readline.so 00120000-00121000 rwxp 00003000 09:01 1721688 /usr/lib/ruby/1.8/i386-linux/readline.so 00121000-00174000 r-xp 00000000 09:01 1320076 /usr/lib/libsqlite3.so.0.8.6 00174000-00176000 rwxp 00052000 09:01 1320076 /usr/lib/libsqlite3.so.0.8.6 00225000-00226000 r-xp 00000000 09:01 1721674 /usr/lib/ruby/1.8/i386-linux/digest/sha1.so 00226000-00227000 rwxp 00000000 09:01 1721674 /usr/lib/ruby/1.8/i386-linux/digest/sha1.so 003ce000-003d2000 r-xp 00000000 09:01 1721691 /usr/lib/ruby/1.8/i386-linux/stringio.so 003d2000-003d3000 rwxp 00003000 09:01 1721691 /usr/lib/ruby/1.8/i386-linux/stringio.so 00427000-004ef000 r-xp 00000000 09:01 1321652 /usr/lib/libruby.so.1.8.4 004ef000-004f2000 rwxp 000c7000 09:01 1321652 /usr/lib/libruby.so.1.8.4 004f2000-00501000 rwxp 004f2000 00:00 0 00564000-00573000 r-xp 00000000 09:01 1721683 /usr/lib/ruby/1.8/i386-linux/nkf.so 00573000-00585000 rwxp 0000f000 09:01 1721683 /usr/lib/ruby/1.8/i386-linux/nkf.so 00585000-00586000 rwxp 00585000 00:00 0 005c0000-005f9000 r-xp 00000000 09:01 1721684 /usr/lib/ruby/1.8/i386-linux/openssl.so 005f9000-005fb000 rwxp 00039000 09:01 1721684 /usr/lib/ruby/1.8/i386-linux/openssl.so 00680000-00682000 r-xp 00000000 09:01 1721678 /usr/lib/ruby/1.8/i386-linux/etc.so 00682000-00683000 rwxp 00001000 09:01 1721678 /usr/lib/ruby/1.8/i386-linux/etc.so 00728000-00731000 r-xp 00000000 09:01 1721695 /usr/lib/ruby/1.8/i386-linux/zlib.so 00731000-00732000 rwxp 00008000 09:01 1721695 /usr/lib/ruby/1.8/i386-linux/zlib.so 0076f000-00782000 r-xp 00000000 09:01 1721676 /usr/lib/ruby/1.8/i386-linux/dl.so 00782000-00783000 rwxp 00012000 09:01 1721676 /usr/lib/ruby/1.8/i386-linux/dl.so 007e2000-007e3000 r-xp 007e2000 00:00 0 [vdso] 007e3000-007fd000 r-xp 00000000 09:01 3555403 /lib/ld-2.3.6.so 007fd000-007fe000 r-xp 00019000 09:01 3555403 /lib/ld-2.3.6.so 007fe000-007ff000 rwxp 0001a000 09:01 3555403 /lib/ld-2.3.6.so 00801000-00924000 r-xp 00000000 09:01 3555409 /lib/libc-2.3.6.so 00924000-00926000 r-xp 00122000 09:01 3555409 /lib/libc-2.3.6.so 00926000-00928000 rwxp 00124000 09:01 3555409 /lib/libc-2.3.6.so 00928000-0092a000 rwxp 00928000 00:00 0 0092c000-0092e000 r-xp 00000000 09:01 3555420 /lib/libdl-2.3.6.so 0092e000-0092f000 r-xp 00001000 09:01 3555420 /lib/libdl-2.3.6.so 0092f000-00930000 rwxp 00002000 09:01 3555420 /lib/libdl-2.3.6.so 00932000-00955000 r-xp 00000000 09:01 3555421 /lib/libm-2.3.6.so 00955000-00956000 r-xp 00022000 09:01 3555421 /lib/libm-2.3.6.so 00956000-00957000 rwxp 00023000 09:01 3555421 /lib/libm-2.3.6.so 00959000-0096b000 r-xp 00000000 09:01 1317712 /usr/lib/libz.so.1.2.2.2 0096b000-0096c000 rwxp 00011000 09:01 1317712 /usr/lib/libz.so.1.2.2.2 00982000-00987000 r-xp 00000000 09:01 3555446 /lib/libcrypt-2.3.6.so 00987000-00988000 r-xp 00004000 09:01 3555446 /lib/libcrypt-2.3.6.so 00988000-00989000 rwxp 00005000 09:01 3555446 /lib/libcrypt-2.3.6.so 00989000-009b0000 rwxp 00989000 00:00 0 009b2000-009c1000 r-xp 00000000 09:01 3555438 /lib/libresolv-2.3.6.so 009c1000-009c2000 r-xp 0000e000 09:01 3555438 /lib/libresolv-2.3.6.so 009c2000-009c3000 rwxp 0000f000 09:01 3555438 /lib/libresolv-2.3.6.so 009c3000-009c5000 rwxp 009c3000 00:00 0 009de000-009e0000 r-xp 00000000 09:01 3555455 /lib/libcom_err.so.2.1 009e0000-009e1000 rwxp 00001000 09:01 3555455 /lib/libcom_err.so.2.1 009e3000-00a18000 r-xp 00000000 09:01 3555462 /lib/libssl.so.0.9.7f 00a18000-00a1b000 rwxp 00035000 09:01 3555462 /lib/libssl.so.0.9.7f 00a1d000-00a8c000 r-xp 00000000 09:01 1320071 /usr/lib/libkrb5.so.3.2 00a8c000-00a8f000 rwxp 0006e000 09:01 1320071 /usr/lib/libkrb5.so.3.2 00a91000-00aa8000 r-xp 00000000 09:01 1320072 /usr/lib/libgssapi_krb5.so.2.2 00aa8000-00aa9000 rwxp 00017000 09:01 1320072 /usr/lib/libgssapi_krb5.so.2.2 00aab000-00ba3000 r-xp 00000000 09:01 3555457 /lib/libcrypto.so.0.9.7f 00ba3000-00bb5000 rwxp 000f8000 09:01 3555457 /lib/libcrypto.so.0.9.7f 00bb5000-00bb8000 rwxp 00bb5000 00:00 0 00bba000-00bdd000 r-xp 00000000 09:01 1320070 /usr/lib/libk5crypto.so.3.0 00bdd000-00bde000 rwxp 00023000 09:01 1320070 /usr/lib/libk5crypto.so.3.0 00be0000-00be2000 r-xp 00000000 09:01 1315829 /usr/lib/libkrb5support.so.0.0 00be2000-00be3000 rwxp 00001000 09:01 1315829 /usr/lib/libkrb5support.so.0.0 00c04000-00c2b000 r-xp 00000000 09:01 1319891 /usr/lib/libreadline.so.5.0 00c2b000-00c2f000 rwxp 00027000 09:01 1319891 /usr/lib/libreadline.so.5.0 00c2f000-00c30000 rwxp 00c2f000 00:00 0 00ce5000-00d23000 r-xp 00000000 09:01 1318642 /usr/lib/libncurses.so.5.4 00d23000-00d2b000 rwxp 0003e000 09:01 1318642 /usr/lib/libncurses.so.5.4 00d2b000-00d2c000 rwxp 00d2b000 00:00 0 00db4000-00dbd000 r-xp 00000000 09:01 3555330 /lib/libgcc_s-4.0.2-20051126.so.1 00dbd000-00dbe000 rwxp 00009000 09:01 3555330 /lib/libgcc_s-4.0.2-20051126.so.1 00e06000-00e09000 r-xp 00000000 09:01 1721686 /usr/lib/ruby/1.8/i386-linux/racc/cparse.so 00e09000-00e0a000 rwxp 00002000 09:01 1721686 /usr/lib/ruby/1.8/i386-linux/racc/cparse.so 00e32000-00e3c000 r-xp 00000000 09:01 1721690 /usr/lib/ruby/1.8/i386-linux/socket.so 00e3c000-00e3d000 rwxp 00009000 09:01 1721690 /usr/lib/ruby/1.8/i386-linux/socket.so 00e5a000-00e5b000 r-xp 00000000 09:01 1721672 /usr/lib/ruby/1.8/i386-linux/digest/md5.so 00e5b000-00e5c000 rwxp 00000000 09:01 1721672 /usr/lib/ruby/1.8/i386-linux/digest/md5.so 00e96000-00eb1000 r-xp 00000000 09:01 1721693 /usr/lib/ruby/1.8/i386-linux/syck.so 00eb1000-00eb2000 rwxp 0001b000 09:01 1721693 /usr/lib/ruby/1.8/i386-linux/syck.so 00ef5000-00ef7000 r-xp 00000000 09:01 1721670 /usr/lib/ruby/1.8/i386-linux/digest.so 00ef7000-00ef8000 rwxp 00001000 09:01 1721670 /usr/lib/ruby/1.8/i386-linux/digest.so 08048000-08049000 r-xp 00000000 09:01 1321653 /usr/bin/ruby 08049000-0804a000 rw-p 00000000 09:01 1321653 /usr/bin/ruby 091b6000-10b57000 rw-p 091b6000 00:00 0 [heap] b4f00000-b4f21000 rw-p b4f00000 00:00 0 b4f21000-b5000000 ---p b4f21000 00:00 0 b503a000-b7126000 rw-p b503a000 00:00 0 b712a000-b7f8c000 rw-p b712a000 00:00 0 b7f8e000-b7f93000 rw-p b7f8e000 00:00 0 b7f94000-b7f95000 rw-p b7f94000 00:00 0 bfa67000-bfa97000 rw-p bfa67000 00:00 0 [stack] rake aborted! Test failures From doug.bromley at gmail.com Sat Jul 29 05:11:56 2006 From: doug.bromley at gmail.com (Doug Bromley) Date: Sat, 29 Jul 2006 10:11:56 +0100 Subject: [typo] Wordpress2 Conversion: "...uninitialized constant TestRequest..." In-Reply-To: <44CAC77C.1080806@sb.org> References: <288425520607280852k70c19111i16191f34e4b11f0@mail.gmail.com> <80AA3CFB-B982-43EB-94B4-83F6E4ED05C1@internode.on.net> <69f191ca0607281625j7b68b3b1tb6664d31bb09f2c7@mail.gmail.com> <44CAC77C.1080806@sb.org> Message-ID: <288425520607290211n53872dfen156e3aa1b5134db2@mail.gmail.com> Thanks Alistair and Phil. Much appreciate your help. Its now working like a charm so I shall get on with the process of converting entirely. All the best. Doug From arsptr at internode.on.net Sat Jul 29 06:26:52 2006 From: arsptr at internode.on.net (Alastair Rankine) Date: Sat, 29 Jul 2006 20:26:52 +1000 Subject: [typo] Wordpress2 Conversion: "...uninitialized constant TestRequest..." In-Reply-To: <288425520607290211n53872dfen156e3aa1b5134db2@mail.gmail.com> References: <288425520607280852k70c19111i16191f34e4b11f0@mail.gmail.com> <80AA3CFB-B982-43EB-94B4-83F6E4ED05C1@internode.on.net> <69f191ca0607281625j7b68b3b1tb6664d31bb09f2c7@mail.gmail.com> <44CAC77C.1080806@sb.org> <288425520607290211n53872dfen156e3aa1b5134db2@mail.gmail.com> Message-ID: <B1C5BBC0-E83E-4C06-B7E5-9CE7503AFBDB@internode.on.net> On 29/07/2006, at 7:11 PM, Doug Bromley wrote: > Thanks Alistair and Phil. Much appreciate your help. Its now working > like a charm so I shall get on with the process of converting > entirely. Doug, Good luck. I finally made the switch from Wordpress to Typo a few days ago. Still coming to grips with it, but mostly very successful. One other change that I had to make was to fixup some numeric XML entities (like "ሴ") in article titles. Set $KCODE="u" Then for each article: a.title = CGI::unescapeHTML a.title It seems that Typo escapes the characters in the article titles, but Wordpress doesn't. I am probably the only person in the world to use these numeric entities so I haven't bothered submitting a patch. Quite happy to, if anyone thinks it's worthwhile. Other than that the conversion process worked great. BTW I can also recommend my hosting provider, a2hosting. They support rails and even have a knowledgebase article for Typo (https:// support.a2hosting.com/index.php? _m=knowledgebase&_a=viewarticle&kbarticleid=378&nav=0,23,36) Again, good luck. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060729/1bf4bc4d/attachment.html From tom at degrunt.nl Sat Jul 29 08:03:18 2006 From: tom at degrunt.nl (Tom de Grunt) Date: Sat, 29 Jul 2006 14:03:18 +0200 Subject: [typo] Error with large number of flickr images Message-ID: <68ACC1EE-A474-458E-A309-102DF72307E5@degrunt.nl> Hi All, When I create a page which references more than 4 or 5 flickr images I get the error "Application error Typo failed to start properly". I'm using Apache 2 and mod_fcgid, when I start typo in development mode with lighttpd it does work. This is now in my log file: [Sat Jul 29 14:03:28 2006] [error] [client 86.80.117.89] Premature end of script headers: dispatch.fcgi [Sat Jul 29 14:03:28 2006] [notice] mod_fcgid: process /home/virtual/ degrunt.nl/www/public/dispatch.fcgi(10006) exit(communication error), get stop signal 9 [Sat Jul 29 14:03:28 2006] [notice] mod_fcgid: process /home/virtual/ degrunt.nl/www/public/dispatch.fcgi(9996) exit(communication error), get stop signal 9 [Sat Jul 29 14:03:34 2006] [warn] mod_fcgid: process 10008 graceful kill fail, sending SIGKILL These are my settings: <IfModule mod_fcgid.c> AddHandler fcgid-script .fcgi SocketPath /var/lib/apache2/fcgid/sock DefaultInitEnv RAILS_ENV production IdleTimeout 600 ProcessLifeTime 3600 MaxProcessCount 16 # DefaultMinClassProcessCount 3 DefaultMaxClassProcessCount 16 IPCConnectTimeout 10 IPCCommTimeout 300 </IfModule> I've probably misconfigured something, but I cannot pinpoint it, any suggestions? Thanks, Tom From doug.bromley at gmail.com Sat Jul 29 09:27:59 2006 From: doug.bromley at gmail.com (Doug Bromley) Date: Sat, 29 Jul 2006 14:27:59 +0100 Subject: [typo] Wordpress2 Conversion: "...uninitialized constant TestRequest..." In-Reply-To: <B1C5BBC0-E83E-4C06-B7E5-9CE7503AFBDB@internode.on.net> References: <288425520607280852k70c19111i16191f34e4b11f0@mail.gmail.com> <80AA3CFB-B982-43EB-94B4-83F6E4ED05C1@internode.on.net> <69f191ca0607281625j7b68b3b1tb6664d31bb09f2c7@mail.gmail.com> <44CAC77C.1080806@sb.org> <288425520607290211n53872dfen156e3aa1b5134db2@mail.gmail.com> <B1C5BBC0-E83E-4C06-B7E5-9CE7503AFBDB@internode.on.net> Message-ID: <288425520607290627r103fd360s4d26875b9bab51c@mail.gmail.com> Hi Alistair. I sppoke to soon. :( I ran the conversion after making the patch with everything appearing to work fine. It runs through "converting entries..." and finishes. However, when I check the typo DB there's been no import. No articles showing up in the backend or in the database itself. Bit awkward as there's no error message to give a hint about it Don't suppose you have any ideas do you? All the best. Doug On 7/29/06, Alastair Rankine <arsptr at internode.on.net> wrote: > > > On 29/07/2006, at 7:11 PM, Doug Bromley wrote: > > Thanks Alistair and Phil. Much appreciate your help. Its now working > like a charm so I shall get on with the process of converting > entirely. > > Doug, > > Good luck. I finally made the switch from Wordpress to Typo a few days ago. > Still coming to grips with it, but mostly very successful. > > One other change that I had to make was to fixup some numeric XML entities > (like "ሴ") in article titles. > > Set > $KCODE="u" > > Then for each article: > a.title = CGI::unescapeHTML a.title > > It seems that Typo escapes the characters in the article titles, but > Wordpress doesn't. I am probably the only person in the world to use these > numeric entities so I haven't bothered submitting a patch. Quite happy to, > if anyone thinks it's worthwhile. > > Other than that the conversion process worked great. > > BTW I can also recommend my hosting provider, a2hosting. They support rails > and even have a knowledgebase article for Typo > (https://support.a2hosting.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=378&nav=0,23,36) > > Again, good luck. > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From phil.toland at gmail.com Sat Jul 29 11:14:34 2006 From: phil.toland at gmail.com (Phillip Toland) Date: Sat, 29 Jul 2006 10:14:34 -0500 Subject: [typo] Wordpress2 Conversion: "...uninitialized constant TestRequest..." In-Reply-To: <288425520607290627r103fd360s4d26875b9bab51c@mail.gmail.com> References: <288425520607280852k70c19111i16191f34e4b11f0@mail.gmail.com> <80AA3CFB-B982-43EB-94B4-83F6E4ED05C1@internode.on.net> <69f191ca0607281625j7b68b3b1tb6664d31bb09f2c7@mail.gmail.com> <44CAC77C.1080806@sb.org> <288425520607290211n53872dfen156e3aa1b5134db2@mail.gmail.com> <B1C5BBC0-E83E-4C06-B7E5-9CE7503AFBDB@internode.on.net> <288425520607290627r103fd360s4d26875b9bab51c@mail.gmail.com> Message-ID: <69f191ca0607290814m1b9c55e4sb208f410d36271c7@mail.gmail.com> Doug, This is just a shot in the dark. Are you sure that you are looking in the right database? Maybe you are looking in the production database and the data is in the development database. I have been bitten by this myself a few times. I am pretty sure that the script would squawk if there was a problem writing the data to the database. Good luck, Phil On 7/29/06, Doug Bromley <doug.bromley at gmail.com> wrote: > Hi Alistair. > > I sppoke to soon. :( > > I ran the conversion after making the patch with everything appearing > to work fine. It runs through "converting entries..." and finishes. > However, when I check the typo DB there's been no import. No articles > showing up in the backend or in the database itself. > > Bit awkward as there's no error message to give a hint about it > > Don't suppose you have any ideas do you? > > All the best. > > Doug > > On 7/29/06, Alastair Rankine <arsptr at internode.on.net> wrote: > > > > > > On 29/07/2006, at 7:11 PM, Doug Bromley wrote: > > > > Thanks Alistair and Phil. Much appreciate your help. Its now working > > like a charm so I shall get on with the process of converting > > entirely. > > > > Doug, > > > > Good luck. I finally made the switch from Wordpress to Typo a few days ago. > > Still coming to grips with it, but mostly very successful. > > > > One other change that I had to make was to fixup some numeric XML entities > > (like "ሴ") in article titles. > > > > Set > > $KCODE="u" > > > > Then for each article: > > a.title = CGI::unescapeHTML a.title > > > > It seems that Typo escapes the characters in the article titles, but > > Wordpress doesn't. I am probably the only person in the world to use these > > numeric entities so I haven't bothered submitting a patch. Quite happy to, > > if anyone thinks it's worthwhile. > > > > Other than that the conversion process worked great. > > > > BTW I can also recommend my hosting provider, a2hosting. They support rails > > and even have a knowledgebase article for Typo > > (https://support.a2hosting.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=378&nav=0,23,36) > > > > Again, good luck. > > _______________________________________________ > > 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 Sat Jul 29 12:00:13 2006 From: inxs.hemant at gmail.com (hemant kumar) Date: Sat, 29 Jul 2006 21:30:13 +0530 Subject: [typo] Am I getting a know typo bug? In-Reply-To: <69f191ca0607290814m1b9c55e4sb208f410d36271c7@mail.gmail.com> Message-ID: <44cb8694.7ff9fcfe.776a.ffff9f97@mx.gmail.com> Hi All, I stumbled upon this bug, when i was trying to write my own sidebar plugin. Whenever i try to add or remove items to sidebar by dragging the stuff to the active region, i get error: NoMethodError (You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occured while evaluating nil.reject): /app/controllers/admin/sidebar_controller.rb:48:in `remove' /vendor/rails/actionpack/lib/action_controller/base.rb:910:in `perform_action_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in `perform_action' /vendor/rails/actionpack/lib/action_controller/base.rb:381:in `process_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:377:in `process_without_session_management_support' /vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in `process' /vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/rails.rb:73:in `process' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:551:in `process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:550:in `process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:636:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:636:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:625:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:956:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:955:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/mongrel_rails:127:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/command.rb:199:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/mongrel_rails:235 /usr/bin/mongrel_rails:18 [4;35;1mUser Columns (0.001528) [0m [0mSHOW FIELDS FROM users [0m Rendering /home/hemant/public_html/analyst_blog/config/../vendor/rails/actionpack/lib/ action_controller/templates/rescues/layout.rhtml (500 Internal Error) And the problem is with the line: activemap = flash[:sidebars].inject({}) do |h, sb_id| sb = Sidebar.find(sb_id.to_i) sb ? h.merge({ sb.html_id => sb_id }) : h end while we assign the active plugins to flash[:sidebars] in index action, but they are replaced or lost in set_active method and hence the bug. It may be something to do with the way mongrel handles sessions alos, but may be. It looks a bug to me, right now. From doug.bromley at gmail.com Sat Jul 29 13:59:24 2006 From: doug.bromley at gmail.com (Doug Bromley) Date: Sat, 29 Jul 2006 18:59:24 +0100 Subject: [typo] Wordpress2 Conversion: "...uninitialized constant TestRequest..." In-Reply-To: <69f191ca0607290814m1b9c55e4sb208f410d36271c7@mail.gmail.com> References: <288425520607280852k70c19111i16191f34e4b11f0@mail.gmail.com> <80AA3CFB-B982-43EB-94B4-83F6E4ED05C1@internode.on.net> <69f191ca0607281625j7b68b3b1tb6664d31bb09f2c7@mail.gmail.com> <44CAC77C.1080806@sb.org> <288425520607290211n53872dfen156e3aa1b5134db2@mail.gmail.com> <B1C5BBC0-E83E-4C06-B7E5-9CE7503AFBDB@internode.on.net> <288425520607290627r103fd360s4d26875b9bab51c@mail.gmail.com> <69f191ca0607290814m1b9c55e4sb208f410d36271c7@mail.gmail.com> Message-ID: <288425520607291059s127ffe76pe883103a67cdc4a5@mail.gmail.com> Hi Phil You're absolutely right!! How could I be so blind. Thanks again - you're very patient. Doug On 7/29/06, Phillip Toland <phil.toland at gmail.com> wrote: > Doug, > This is just a shot in the dark. Are you sure that you are looking in > the right database? Maybe you are looking in the production database > and the data is in the development database. I have been bitten by > this myself a few times. I am pretty sure that the script would squawk > if there was a problem writing the data to the database. > > Good luck, > Phil > > On 7/29/06, Doug Bromley <doug.bromley at gmail.com> wrote: > > Hi Alistair. > > > > I sppoke to soon. :( > > > > I ran the conversion after making the patch with everything appearing > > to work fine. It runs through "converting entries..." and finishes. > > However, when I check the typo DB there's been no import. No articles > > showing up in the backend or in the database itself. > > > > Bit awkward as there's no error message to give a hint about it > > > > Don't suppose you have any ideas do you? > > > > All the best. > > > > Doug > > > > On 7/29/06, Alastair Rankine <arsptr at internode.on.net> wrote: > > > > > > > > > On 29/07/2006, at 7:11 PM, Doug Bromley wrote: > > > > > > Thanks Alistair and Phil. Much appreciate your help. Its now working > > > like a charm so I shall get on with the process of converting > > > entirely. > > > > > > Doug, > > > > > > Good luck. I finally made the switch from Wordpress to Typo a few days ago. > > > Still coming to grips with it, but mostly very successful. > > > > > > One other change that I had to make was to fixup some numeric XML entities > > > (like "ሴ") in article titles. > > > > > > Set > > > $KCODE="u" > > > > > > Then for each article: > > > a.title = CGI::unescapeHTML a.title > > > > > > It seems that Typo escapes the characters in the article titles, but > > > Wordpress doesn't. I am probably the only person in the world to use these > > > numeric entities so I haven't bothered submitting a patch. Quite happy to, > > > if anyone thinks it's worthwhile. > > > > > > Other than that the conversion process worked great. > > > > > > BTW I can also recommend my hosting provider, a2hosting. They support rails > > > and even have a knowledgebase article for Typo > > > (https://support.a2hosting.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=378&nav=0,23,36) > > > > > > Again, good luck. > > > _______________________________________________ > > > 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 ernieoporto at gmail.com Sat Jul 29 21:35:21 2006 From: ernieoporto at gmail.com (Ernie Oporto) Date: Sat, 29 Jul 2006 21:35:21 -0400 Subject: [typo] migrating from trunk 1004 to 1186 Message-ID: <f91ac86d0607291835j3cbb3a20q2c2312c354fc3208@mail.gmail.com> I want to go from my version 1004 to something 4.0 flavored. [root at chewbacca logs]#gem list --local *** LOCAL GEMS *** [...] rails (1.1.4, 1.1.2, 1.1.0, 1.0.0, 0.14.4, 0.14.3.2969, 0.14.3, 0.14.2) Web-application framework with template engine, control-flow layer, and ORM. I've copied my database over to a test database, and have the "blog" directory set up on a test URL. Database.yml is set up correctly to access it. At this point, the database version is 42. When I access /blog/admin to do the migration, I got errors about a missing triggers table. ActiveRecord::StatementInvalid (Mysql::Error: Table 'typotest.triggers' doesn't exist: SELECT * FROM triggers WHERE (due_at <= '2006-07-29 21:00:01') ): /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:120:in `log' Adding the table, I then got errors about a missing "due_at" field which I should have figured from the above error. ActiveRecord::StatementInvalid (Mysql::Error: Unknown column 'due_at' in 'where clause': SELECT * FROM triggers WHERE (due_at <= '2006-07-29 21:01:36') ): /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_ad apter.rb:120:in `log' Adding the due_at field as a 'datetime' type, I can then access the admin page. It wants to migrate me from version 42 to 48. Sounds good. When I click "Update database now", the migration dies with Application error Typo failed to start properly" The logs complain that triggers table exists. =) Errors are this... ActiveRecord::StatementInvalid (Mysql::Error: Table 'triggers' already exists: CREATE TABLE triggers (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `pending_item_id` int(11), `pending_item_type` varchar(255), `due_at` datetime, `trigger_method` varchar(255)) ENGINE=InnoDB): /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:120:in `log' and this... [Sat Jul 29 21:03:40 2006] [error] [client 24.149.167.195] FastCGI: comm with server "/aaa/blog/public/dispatch.fcgi" aborted: error parsing headers: malformed header '== CreateTriggers migrating ==================================================' I drop the triggers table and we go round again to square one. ActiveRecord::StatementInvalid (Mysql::Error: Table 'typotest.triggers' doesn't exist: SELECT * FROM triggers WHERE (due_at <= '2006-07-29 21:15:30') ): /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:120:in `log' What's a person to do to make this migrate right? -- Ernie http://www.shokk.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060729/e808df92/attachment.html From kevin at sb.org Sat Jul 29 22:09:59 2006 From: kevin at sb.org (Kevin Ballard) Date: Sat, 29 Jul 2006 19:09:59 -0700 (PDT) Subject: [typo] migrating from trunk 1004 to 1186 In-Reply-To: <f91ac86d0607291835j3cbb3a20q2c2312c354fc3208@mail.gmail.com> References: <f91ac86d0607291835j3cbb3a20q2c2312c354fc3208@mail.gmail.com> Message-ID: <Pine.LNX.4.62.0607291908100.6367@rupee.dreamhost.com> Whenever you get a migration error, please do *not* try and fix the database by hand unless you've been told to do so by someone who is familiar with the migrations in question. In your case, you should simply try to run `rake migrate` from the command-line (use `rake migrate RAILS_ENV=production` if you're working in the production environment). The web admin redirection is really just a pretty wrapper around this command, but unfortunately sometimes changes to the database can break even something as simple as the web admin migration page. So if the page gives you an error, use the command-line. Again, that command is `rake migrate RAILS_ENV=your_environment` -Kevin On Sat, 29 Jul 2006, Ernie Oporto wrote: > I want to go from my version 1004 to something 4.0 flavored. > > [root at chewbacca logs]#gem list --local > *** LOCAL GEMS *** > [...] > rails (1.1.4, 1.1.2, 1.1.0, 1.0.0, 0.14.4, 0.14.3.2969, 0.14.3, 0.14.2) > Web-application framework with template engine, control-flow layer, > and ORM. > > I've copied my database over to a test database, and have the "blog" > directory set up on a test URL. > Database.yml is set up correctly to access it. At this point, the database > version is 42. > When I access /blog/admin to do the migration, I got errors about a missing > triggers table. > > ActiveRecord::StatementInvalid (Mysql::Error: Table 'typotest.triggers' > doesn't exist: SELECT * FROM triggers WHERE (due_at <= '2006-07-29 > 21:00:01') ): > > /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:120:in > `log' > > Adding the table, I then got errors about a missing "due_at" field which I > should have figured from the above error. > > ActiveRecord::StatementInvalid (Mysql::Error: Unknown column 'due_at' in > 'where > clause': SELECT * FROM triggers WHERE (due_at <= '2006-07-29 21:01:36') > ): > /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_ad > apter.rb:120:in `log' > > Adding the due_at field as a 'datetime' type, I can then access the admin > page. It wants to migrate me from version 42 to 48. > Sounds good. When I click "Update database now", the migration dies with > Application error Typo failed to start properly" > > > The logs complain that triggers table exists. =) Errors are this... > > ActiveRecord::StatementInvalid (Mysql::Error: Table 'triggers' already > exists: CREATE TABLE triggers (`id` int(11) DEFAULT NULL auto_increment > PRIMARY KEY, `pending_item_id` int(11), `pending_item_type` varchar(255), > `due_at` datetime, `trigger_method` varchar(255)) ENGINE=InnoDB): > > /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:120:in > `log' > > and this... > > [Sat Jul 29 21:03:40 2006] [error] [client 24.149.167.195] FastCGI: comm > with server "/aaa/blog/public/dispatch.fcgi" aborted: error parsing headers: > malformed header '== CreateTriggers migrating > ==================================================' > > > I drop the triggers table and we go round again to square one. > > ActiveRecord::StatementInvalid (Mysql::Error: Table 'typotest.triggers' > doesn't exist: SELECT * FROM triggers WHERE (due_at <= '2006-07-29 > 21:15:30') ): > > /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:120:in > `log' > > What's a person to do to make this migrate right? > > -- > Ernie > http://www.shokk.com/blog/ > -- Kevin Ballard http://kevin.sb.org kevin at sb.org From tom at degrunt.nl Sun Jul 30 08:00:57 2006 From: tom at degrunt.nl (Tom de Grunt) Date: Sun, 30 Jul 2006 14:00:57 +0200 Subject: [typo] Error with large number of flickr images In-Reply-To: <68ACC1EE-A474-458E-A309-102DF72307E5@degrunt.nl> References: <68ACC1EE-A474-458E-A309-102DF72307E5@degrunt.nl> Message-ID: <68BE3770-34A6-472A-AEE8-30116A44D769@degrunt.nl> Some more info on the subject, here's the production log... Processing ArticlesController#view_page (for 86.80.117.89 at 2006-07-30 13:57:16) [GET] Parameters: {"name"=>["geneva2006"], "action"=>"view_page", "controller"=>"articles"} Rendering within ../../themes/degruntnl/layouts/default Rendering articles/view_page ActionView::TemplateError (exit) on line #2 of app/views/articles/ view_page.rhtml: 1: <div id="viewpage" > 2: <%= @page.full_html %> 3: </div> /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb: 126:in `exit' /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb: 126:in `exit_now_handler' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `to_proc' /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb: 114:in `call' /usr/lib/ruby/1.8/net/protocol.rb:197:in `sysread' /usr/lib/ruby/1.8/net/protocol.rb:197:in `rbuf_fill' /usr/lib/ruby/1.8/net/protocol.rb:196:in `timeout' /usr/lib/ruby/1.8/timeout.rb:62:in `timeout' /usr/lib/ruby/1.8/net/protocol.rb:196:in `rbuf_fill' /usr/lib/ruby/1.8/net/protocol.rb:160:in `readuntil' /usr/lib/ruby/1.8/net/protocol.rb:171:in `readline' /usr/lib/ruby/1.8/net/http.rb:1614:in `read_status_line' /usr/lib/ruby/1.8/net/http.rb:1603:in `read_new' /usr/lib/ruby/1.8/net/http.rb:832:in `request' /usr/lib/ruby/1.8/net/http.rb:296:in `get_by_uri' /usr/lib/ruby/1.8/net/http.rb:295:in `start' /usr/lib/ruby/1.8/net/http.rb:295:in `get_by_uri' /usr/lib/ruby/1.8/net/http.rb:281:in `get_response' #{RAILS_ROOT}/vendor/flickr/flickr.rb:81:in `http_get' #{RAILS_ROOT}/vendor/flickr/flickr.rb:65:in `request' #{RAILS_ROOT}/vendor/flickr/flickr.rb:141:in `method_missing' #{RAILS_ROOT}/vendor/flickr/flickr.rb:349:in `sizes' #{RAILS_ROOT}/components/plugins/textfilters/ lightbox_controller.rb:77:in `macrofilter' #{RAILS_ROOT}/lib/text_filter_plugin.rb:79:in `filtertext' #{RAILS_ROOT}/lib/text_filter_plugin.rb:78:in `gsub' #{RAILS_ROOT}/lib/text_filter_plugin.rb:78:in `filtertext' #{RAILS_ROOT}/components/plugins/textfilters/ macropost_controller.rb:10:in `filtertext' #{RAILS_ROOT}/components/plugins/textfilters/ macropost_controller.rb:9:in `inject' #{RAILS_ROOT}/components/plugins/textfilters/ macropost_controller.rb:9:in `each' #{RAILS_ROOT}/components/plugins/textfilters/ macropost_controller.rb:9:in `inject' #{RAILS_ROOT}/components/plugins/textfilters/ macropost_controller.rb:9:in `filtertext' #{RAILS_ROOT}/app/models/text_filter.rb:52:in `filter_text' #{RAILS_ROOT}/app/models/text_filter.rb:47:in `each' #{RAILS_ROOT}/app/models/text_filter.rb:47:in `filter_text' #{RAILS_ROOT}/app/models/text_filter.rb:67:in `filter_text_for_controller' #{RAILS_ROOT}/app/models/content.rb:130:in `populate_html_fields' #{RAILS_ROOT}/app/models/content.rb:128:in `each' #{RAILS_ROOT}/app/models/content.rb:128:in `populate_html_fields' #{RAILS_ROOT}/app/models/content.rb:138:in `html' #{RAILS_ROOT}/app/models/content.rb:124:in `full_html' #{RAILS_ROOT}/app/views/articles/view_page.rhtml:2:in `_run_rhtml_articles_view_page' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/ base.rb:314:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/ base.rb:314:in `compile_and_render_template' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/ base.rb:290:in `render_template' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/ base.rb:249:in `render_file' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/base.rb:699:in `render_file' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/base.rb:621:in `render_with_no_layout' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/layout.rb:243:in `render_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/benchmarking.rb:53:in `render' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/benchmarking.rb:53:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/benchmarking.rb:53:in `render' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/base.rb:911: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/gems/1.8/gems/actionpack-1.12.3/lib/ action_controller/benchmarking.rb:69: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 `send' /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/rails-1.1.4/lib/fcgi_handler.rb: 53:in `each_cgi' /usr/lib/ruby/1.8/fcgi.rb:597:in `each' /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/rails-1.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/virtual/degrunt.nl/www/public/dispatch.fcgi:24 Rendering layoutfalseactionerror within ../../themes/degruntnl/ layouts/default Rendering articles/error Start rendering component ({:controller=>SidebarController, :action=>"display_plugins"}): Processing SidebarController#display_plugins (for 86.80.117.89 at 2006-07-30 13:57:22) Rendering sidebar/display_plugins Start rendering component ({:layout=>false, :controller=>Plugins::Sidebars::StaticController, :act ion=>"index"}): Processing StaticController#index (for 86.80.117.89 at 2006-07-30 13:57:22) Rendering plugins/sidebars/static/content Completed in 0.00518 (193 reqs/sec) | Rendering: 0.00202 (38%) | DB: 0.00023 (4%) | 200 OK [http://www.degrunt.nl/pages/geneva2006] End of component rendering BENCHMARK: display_plugins: static (0.00719) Start rendering component ({:layout=>false, :controller=>Plugins::Sidebars::CategoryController, :a ction=>"index"}): Processing CategoryController#index (for 86.80.117.89 at 2006-07-30 13:57:22) Rendering plugins/sidebars/category/content Completed in 0.01235 (80 reqs/sec) | Rendering: 0.00473 (38%) | DB: 0.00240 (19%) | 200 OK [http://www.degrunt.nl/pages/geneva2006] End of component rendering BENCHMARK: display_plugins: category (0.01395) Start rendering component ({:layout=>false, :controller=>Plugins::Sidebars::ArchivesController, :a ction=>"index"}): Processing ArchivesController#index (for 86.80.117.89 at 2006-07-30 13:57:22) Rendering plugins/sidebars/archives/content Completed in 0.06759 (14 reqs/sec) | Rendering: 0.00303 (4%) | DB: 0.00108 (1%) | 200 OK [http://www.degrunt.nl/pages/geneva2006] End of component rendering BENCHMARK: display_plugins: archives (0.06908) Start rendering component ({:layout=>false, :controller=>Plugins::Sidebars::FlickrController, :act ion=>"index"}): Processing FlickrController#index (for 86.80.117.89 at 2006-07-30 13:57:22) SimpleCache: will store items for 3600s SimpleCache: miss on FlickrAggregation_bc1f6fa6d697eb750b407dd3bf36632f6289c8f3 SimpleCache: store on FlickrAggregation_bc1f6fa6d697eb750b407dd3bf36632f6289c8f3 Rendering plugins/sidebars/flickr/content Completed in 1.91453 (0 reqs/sec) | Rendering: 0.00364 (0%) | DB: 0.00024 (0%) | 200 OK [http://www.degrunt.nl/pages/geneva2006] End of component rendering BENCHMARK: display_plugins: flickr (1.91635) Start rendering component ({:layout=>false, :controller=>Plugins::Sidebars::StaticController, :act ion=>"index"}): Processing StaticController#index (for 86.80.117.89 at 2006-07-30 13:57:24) Rendering plugins/sidebars/static/content Completed in 0.00356 (280 reqs/sec) | Rendering: 0.00124 (34%) | DB: 0.00039 (10%) | 200 OK [http://www.degrunt.nl/pages/geneva2006] On Jul 29, 2006, at 14:03 , Tom de Grunt wrote: > Hi All, > > When I create a page which references more than 4 or 5 flickr images > I get the error "Application error > Typo failed to start properly". I'm using Apache 2 and mod_fcgid, > when I start typo in development mode with lighttpd it does work. > > This is now in my log file: > [Sat Jul 29 14:03:28 2006] [error] [client 86.80.117.89] Premature > end of script headers: dispatch.fcgi > [Sat Jul 29 14:03:28 2006] [notice] mod_fcgid: process /home/virtual/ > degrunt.nl/www/public/dispatch.fcgi(10006) exit(communication error), > get stop signal 9 > [Sat Jul 29 14:03:28 2006] [notice] mod_fcgid: process /home/virtual/ > degrunt.nl/www/public/dispatch.fcgi(9996) exit(communication error), > get stop signal 9 > [Sat Jul 29 14:03:34 2006] [warn] mod_fcgid: process 10008 graceful > kill fail, sending SIGKILL > > These are my settings: > <IfModule mod_fcgid.c> > AddHandler fcgid-script .fcgi > SocketPath /var/lib/apache2/fcgid/sock > DefaultInitEnv RAILS_ENV production > IdleTimeout 600 > ProcessLifeTime 3600 > MaxProcessCount 16 > # DefaultMinClassProcessCount 3 > DefaultMaxClassProcessCount 16 > IPCConnectTimeout 10 > IPCCommTimeout 300 > </IfModule> > > I've probably misconfigured something, but I cannot pinpoint it, any > suggestions? > > Thanks, > Tom > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From linda at innovatesolutions.com Sun Jul 30 08:25:53 2006 From: linda at innovatesolutions.com (Linda Derezinski) Date: Sun, 30 Jul 2006 08:25:53 -0400 Subject: [typo] Error with large number of flickr images In-Reply-To: <68BE3770-34A6-472A-AEE8-30116A44D769@degrunt.nl> Message-ID: <C0F21D91.2034%linda@innovatesolutions.com> Sounds like it takes more than 60 seconds to process the http get. In the #{RAILS_ROOT}/vendor/flickr/flickr.rb:81:in `http_get' you will need to increase the timeout url = URI.parse(urlStr) http = Net::HTTP.new(url.host, url.port) http.read_timeout=time_out etc, etc -Linda On 7/30/06 8:00 AM, "Tom de Grunt" <tom at degrunt.nl> wrote: > Some more info on the subject, here's the production log... > > Processing ArticlesController#view_page (for 86.80.117.89 at > 2006-07-30 13:57:16) [GET] > Parameters: {"name"=>["geneva2006"], "action"=>"view_page", > "controller"=>"articles"} > Rendering within ../../themes/degruntnl/layouts/default > Rendering articles/view_page > > > ActionView::TemplateError (exit) on line #2 of app/views/articles/ > view_page.rhtml: > 1: <div id="viewpage" > > 2: <%= @page.full_html %> > 3: </div> > > /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb: > 126:in `exit' > /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb: > 126:in `exit_now_handler' > /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in > `to_proc' > /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb: > 114:in `call' > /usr/lib/ruby/1.8/net/protocol.rb:197:in `sysread' > /usr/lib/ruby/1.8/net/protocol.rb:197:in `rbuf_fill' > /usr/lib/ruby/1.8/net/protocol.rb:196:in `timeout' > /usr/lib/ruby/1.8/timeout.rb:62:in `timeout' > /usr/lib/ruby/1.8/net/protocol.rb:196:in `rbuf_fill' > /usr/lib/ruby/1.8/net/protocol.rb:160:in `readuntil' > /usr/lib/ruby/1.8/net/protocol.rb:171:in `readline' > /usr/lib/ruby/1.8/net/http.rb:1614:in `read_status_line' > /usr/lib/ruby/1.8/net/http.rb:1603:in `read_new' > /usr/lib/ruby/1.8/net/http.rb:832:in `request' > /usr/lib/ruby/1.8/net/http.rb:296:in `get_by_uri' > /usr/lib/ruby/1.8/net/http.rb:295:in `start' > /usr/lib/ruby/1.8/net/http.rb:295:in `get_by_uri' > /usr/lib/ruby/1.8/net/http.rb:281:in `get_response' > #{RAILS_ROOT}/vendor/flickr/flickr.rb:81:in `http_get' > #{RAILS_ROOT}/vendor/flickr/flickr.rb:65:in `request' > #{RAILS_ROOT}/vendor/flickr/flickr.rb:141:in `method_missing' > #{RAILS_ROOT}/vendor/flickr/flickr.rb:349:in `sizes' > #{RAILS_ROOT}/components/plugins/textfilters/ > lightbox_controller.rb:77:in `macrofilter' > #{RAILS_ROOT}/lib/text_filter_plugin.rb:79:in `filtertext' > #{RAILS_ROOT}/lib/text_filter_plugin.rb:78:in `gsub' > #{RAILS_ROOT}/lib/text_filter_plugin.rb:78:in `filtertext' > #{RAILS_ROOT}/components/plugins/textfilters/ > macropost_controller.rb:10:in `filtertext' > #{RAILS_ROOT}/components/plugins/textfilters/ > macropost_controller.rb:9:in `inject' > #{RAILS_ROOT}/components/plugins/textfilters/ > macropost_controller.rb:9:in `each' > #{RAILS_ROOT}/components/plugins/textfilters/ > macropost_controller.rb:9:in `inject' > #{RAILS_ROOT}/components/plugins/textfilters/ > macropost_controller.rb:9:in `filtertext' > #{RAILS_ROOT}/app/models/text_filter.rb:52:in `filter_text' > #{RAILS_ROOT}/app/models/text_filter.rb:47:in `each' > #{RAILS_ROOT}/app/models/text_filter.rb:47:in `filter_text' > #{RAILS_ROOT}/app/models/text_filter.rb:67:in > `filter_text_for_controller' > #{RAILS_ROOT}/app/models/content.rb:130:in `populate_html_fields' > #{RAILS_ROOT}/app/models/content.rb:128:in `each' > #{RAILS_ROOT}/app/models/content.rb:128:in `populate_html_fields' > #{RAILS_ROOT}/app/models/content.rb:138:in `html' > #{RAILS_ROOT}/app/models/content.rb:124:in `full_html' > #{RAILS_ROOT}/app/views/articles/view_page.rhtml:2:in > `_run_rhtml_articles_view_page' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/ > base.rb:314:in `send' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/ > base.rb:314:in `compile_and_render_template' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/ > base.rb:290:in `render_template' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/ > base.rb:249:in `render_file' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ > action_controller/base.rb:699:in `render_file' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ > action_controller/base.rb:621:in `render_with_no_layout' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ > action_controller/layout.rb:243:in `render_without_benchmark' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ > action_controller/benchmarking.rb:53:in `render' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ > action_controller/benchmarking.rb:53:in `measure' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ > action_controller/benchmarking.rb:53:in `render' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/ > action_controller/base.rb:911: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/gems/1.8/gems/actionpack-1.12.3/lib/ > action_controller/benchmarking.rb:69: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 `send' > /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/rails-1.1.4/lib/fcgi_handler.rb: > 53:in `each_cgi' > /usr/lib/ruby/1.8/fcgi.rb:597:in `each' > /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi' > /usr/lib/ruby/gems/1.8/gems/rails-1.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/virtual/degrunt.nl/www/public/dispatch.fcgi:24 > > > Rendering layoutfalseactionerror within ../../themes/degruntnl/ > layouts/default > Rendering articles/error > Start rendering component > ({:controller=>SidebarController, :action=>"display_plugins"}): > > > Processing SidebarController#display_plugins (for 86.80.117.89 at > 2006-07-30 13:57:22) > Rendering sidebar/display_plugins > Start rendering component > ({:layout=>false, :controller=>Plugins::Sidebars::StaticController, :act > ion=>"index"}): > > > Processing StaticController#index (for 86.80.117.89 at 2006-07-30 > 13:57:22) > Rendering plugins/sidebars/static/content > Completed in 0.00518 (193 reqs/sec) | Rendering: 0.00202 (38%) | DB: > 0.00023 (4%) | 200 OK [http://www.degrunt.nl/pages/geneva2006] > > > End of component rendering > BENCHMARK: display_plugins: static (0.00719) > Start rendering component > ({:layout=>false, :controller=>Plugins::Sidebars::CategoryController, :a > ction=>"index"}): > > > Processing CategoryController#index (for 86.80.117.89 at 2006-07-30 > 13:57:22) > Rendering plugins/sidebars/category/content > Completed in 0.01235 (80 reqs/sec) | Rendering: 0.00473 (38%) | DB: > 0.00240 (19%) | 200 OK [http://www.degrunt.nl/pages/geneva2006] > > > End of component rendering > BENCHMARK: display_plugins: category (0.01395) > Start rendering component > ({:layout=>false, :controller=>Plugins::Sidebars::ArchivesController, :a > ction=>"index"}): > > > Processing ArchivesController#index (for 86.80.117.89 at 2006-07-30 > 13:57:22) > Rendering plugins/sidebars/archives/content > Completed in 0.06759 (14 reqs/sec) | Rendering: 0.00303 (4%) | DB: > 0.00108 (1%) | 200 OK [http://www.degrunt.nl/pages/geneva2006] > > > End of component rendering > BENCHMARK: display_plugins: archives (0.06908) > Start rendering component > ({:layout=>false, :controller=>Plugins::Sidebars::FlickrController, :act > ion=>"index"}): > > > Processing FlickrController#index (for 86.80.117.89 at 2006-07-30 > 13:57:22) > SimpleCache: will store items for 3600s > SimpleCache: miss on > FlickrAggregation_bc1f6fa6d697eb750b407dd3bf36632f6289c8f3 > SimpleCache: store on > FlickrAggregation_bc1f6fa6d697eb750b407dd3bf36632f6289c8f3 > Rendering plugins/sidebars/flickr/content > Completed in 1.91453 (0 reqs/sec) | Rendering: 0.00364 (0%) | DB: > 0.00024 (0%) | 200 OK [http://www.degrunt.nl/pages/geneva2006] > > > End of component rendering > BENCHMARK: display_plugins: flickr (1.91635) > Start rendering component > ({:layout=>false, :controller=>Plugins::Sidebars::StaticController, :act > ion=>"index"}): > > > Processing StaticController#index (for 86.80.117.89 at 2006-07-30 > 13:57:24) > Rendering plugins/sidebars/static/content > Completed in 0.00356 (280 reqs/sec) | Rendering: 0.00124 (34%) | DB: > 0.00039 (10%) | 200 OK [http://www.degrunt.nl/pages/geneva2006] > > > > On Jul 29, 2006, at 14:03 , Tom de Grunt wrote: > >> Hi All, >> >> When I create a page which references more than 4 or 5 flickr images >> I get the error "Application error >> Typo failed to start properly". I'm using Apache 2 and mod_fcgid, >> when I start typo in development mode with lighttpd it does work. >> >> This is now in my log file: >> [Sat Jul 29 14:03:28 2006] [error] [client 86.80.117.89] Premature >> end of script headers: dispatch.fcgi >> [Sat Jul 29 14:03:28 2006] [notice] mod_fcgid: process /home/virtual/ >> degrunt.nl/www/public/dispatch.fcgi(10006) exit(communication error), >> get stop signal 9 >> [Sat Jul 29 14:03:28 2006] [notice] mod_fcgid: process /home/virtual/ >> degrunt.nl/www/public/dispatch.fcgi(9996) exit(communication error), >> get stop signal 9 >> [Sat Jul 29 14:03:34 2006] [warn] mod_fcgid: process 10008 graceful >> kill fail, sending SIGKILL >> >> These are my settings: >> <IfModule mod_fcgid.c> >> AddHandler fcgid-script .fcgi >> SocketPath /var/lib/apache2/fcgid/sock >> DefaultInitEnv RAILS_ENV production >> IdleTimeout 600 >> ProcessLifeTime 3600 >> MaxProcessCount 16 >> # DefaultMinClassProcessCount 3 >> DefaultMaxClassProcessCount 16 >> IPCConnectTimeout 10 >> IPCCommTimeout 300 >> </IfModule> >> >> I've probably misconfigured something, but I cannot pinpoint it, any >> suggestions? >> >> Thanks, >> 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 anildigital at gmail.com Sun Jul 30 10:42:20 2006 From: anildigital at gmail.com (Anil Wadghule) Date: Sun, 30 Jul 2006 20:12:20 +0530 Subject: [typo] Hey, Add image typo powered in scribbish theme, file to change? Message-ID: <efbb7df90607300742i3d5eba7ete4d62410f475f797@mail.gmail.com> Hey All, I want to add typo powered image(comes in azure default) in my sidebar at the end. Which .rhtml file should I change? Alos need I do write changes in html code, or rhtml cod like link_to or <img src> ? Please reply me detail Regards, Anil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20060730/425f9c0e/attachment.html From josh at hasmanythrough.com Sun Jul 30 12:04:40 2006 From: josh at hasmanythrough.com (Josh Susser) Date: Sun, 30 Jul 2006 09:04:40 -0700 Subject: [typo] Hey, Add image typo powered in scribbish theme, file to change? In-Reply-To: <efbb7df90607300742i3d5eba7ete4d62410f475f797@mail.gmail.com> References: <efbb7df90607300742i3d5eba7ete4d62410f475f797@mail.gmail.com> Message-ID: <2691DBB1-CD05-481F-898A-0D4B7F74C78D@hasmanythrough.com> On Jul 30, 2006, at 7:42 AM, Anil Wadghule wrote: > I want to add typo powered image(comes in azure default) in my > sidebar at the end. Which .rhtml file should I change? Alos need I > do write changes in html code, or rhtml cod like link_to or <img > src> ? Please reply me detail In layouts/default.rhtml, add the following to the end of the "sidebar" div. <!-- typo badge --> <p><%= link_to image_tag('powered.gif'), 'http:// typosphere.org/', { :class => 'powered' } %></p> Note that I'm still running on an old Typo, not the recent 4.0 release, so this might not work on your install. -- Josh Susser http://blog.hasmanythrough.com From anildigital at gmail.com Sun Jul 30 12:23:30 2006 From: anildigital at gmail.com (Anil Wadghule) Date: Sun, 30 Jul 2006 21:53:30 +0530 Subject: [typo] Hey, Add image typo powered in scribbish theme, file to change? In-Reply-To: <2691DBB1-CD05-481F-898A-0D4B7F74C78D@hasmanythrough.com> References: <efbb7df90607300742i3d5eba7ete4d62410f475f797@mail.gmail.com> <2691DBB1-CD05-481F-898A-0D4B7F74C78D@hasmanythrough.com> Message-ID: <efbb7df90607300923of552f3y74600f98228734df@mail.gmail.com> Thanks it worked! But one thing, I dont want that hover effect to "typo powered" image (background turns black). How should I make this change so that default style (hover) is not applied to this image? Please reply!!!! On 7/30/06, Josh Susser <josh at hasmanythrough.com> wrote: > > > On Jul 30, 2006, at 7:42 AM, Anil Wadghule wrote: > > I want to add typo powered image(comes in azure default) in my > > sidebar at the end. Which .rhtml file should I change? Alos need I > > do write changes in html code, or rhtml cod like link_to or <img > > src> ? Please reply me detail > > In layouts/default.rhtml, add the following to the end of the > "sidebar" div. > > <!-- typo badge --> > <p><%= link_to image_tag('powered.gif'), 'http:// > typosphere.org/', { :class => 'powered' } %></p> > > Note that I'm still running on an old Typo, not the recent 4.0 > release, so this might not work on your install. > > -- > Josh Susser > http://blog.hasmanythrough.com > > > _______________________________________________ > 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/20060730/f99aa949/attachment.html From anildigital at gmail.com Sun Jul 30 12:26:08 2006 From: anildigital at gmail.com (Anil Wadghule) Date: Sun, 30 Jul 2006 21:56:08 +0530 Subject: [typo] Hey, Add image typo powered in scribbish theme, file to change? In-Reply-To: <efbb7df90607300923of552f3y74600f98228734df@mail.gmail.com> References: <efbb7df90607300742i3d5eba7ete4d62410f475f797@mail.gmail.com> <2691DBB1-CD05-481F-898A-0D4B7F74C78D@hasmanythrough.com> <efbb7df90607300923of552f3y74600f98228734df@mail.gmail.com> Message-ID: <efbb7df90607300926k79b362fby56a5c93183662a14@mail.gmail.com> Hey I forgot to give you my typo blog link http://anilw.info/blog/ Please reply to following thing On 7/30/06, Anil Wadghule <anildigital at gmail.com> wrote: > > Thanks it worked! > > But one thing, I dont want that hover effect to "typo powered" image > (background turns black). > How should I make this change so that default style (hover) is not applied > to this image? > Please reply!!!! > > > On 7/30/06, Josh Susser <josh at hasmanythrough.com> wrote: > > > > > > On Jul 30, 2006, at 7:42 AM, Anil Wadghule wrote: > > > I want to add typo powered image(comes in azure default) in my > > > sidebar at the end. Which .rhtml file should I change? Alos need I > > > do write changes in html code, or rhtml cod like link_to or <img > > > src> ? Please reply me detail > > > > In layouts/default.rhtml, add the following to the end of the > > "sidebar" div. > > > > <!-- typo badge --> > > <p><%= link_to image_tag(' powered.gif'), 'http:// > > typosphere.org/', { :class => 'powered' } %></p> > > > > Note that I'm still running on an old Typo, not the recent 4.0 > > release, so this might not work on your install. > > > > -- > > Josh Susser > > http://blog.hasmanythrough.com > > > > > > _______________________________________________ > > 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 > -- 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/20060730/eac59f5d/attachment.html