From sl33p3r at free.fr Wed Oct 5 15:42:24 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Wed, 5 Oct 2005 21:42:24 +0200 Subject: [PATCH] Ruby 1.8.3 fix In-Reply-To: <433D9D12.40209@gmail.com> References: <20050921165704.GA32027@code-monkey.de> <20050930195955.GA9266@hal.void.org> <20050930195820.GA26388@power.luon.net> <433D9D12.40209@gmail.com> Message-ID: <20051005194224.GA8671@hal.void.org> Brian C Young wrote : | | I second that! I was reading through the ML archives last night, | marveling at all the new stuff that's been added. Can it be made | available so that 'hobix upgrade' will pick up the latest? why, any news regarding this ?? Best Regards, -- Frederick Ros aka Sleeper -- sleeper at jabber.fr Make input easy to prepare and output self-explanatory. - The Elements of Programming Style (Kernighan & Plaugher) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20051005/bccd002f/attachment.bin From szoth at ubertechnique.com Thu Oct 6 18:58:13 2005 From: szoth at ubertechnique.com (Seth de l'Isle) Date: Thu, 6 Oct 2005 14:58:13 -0800 Subject: format for dates Message-ID: <20051006225813.GA1602@tharsis.ubertechnique.com> Hello, I've just tried on my white pantsuit for the first time. It is meant to impress my ??????? speaking relatives. I don't really speak ???????, but I figure, with a white pantsuite I won't need to worry about such a detail. Anyway, I would like my the dates to show up with some of those Cyrillic characters in there, so as to be more authentic looking. I'm running hobix on a Linux box, and set my LANGUAGE environment variable and my LANG environment variable too; the date command works just fine now: szoth at tharsis:~$ date +%c ??? 06 ??? 2005 14:55:01 szoth at tharsis:~$ date ??? ??? 6 14:55:05 AKDT 2005 but doing a hobix regen doesn't get me there. I still have the same date format. Is this format configurable somewhere? Thanks, Seth -- Listen and be Heard http://PopularVoice.Org Media Reform : Participatory Journalism : Populism From paul at luon.net Tue Oct 11 16:12:04 2005 From: paul at luon.net (Paul van Tilburg) Date: Tue, 11 Oct 2005 22:12:04 +0200 Subject: [PATCH] Ruby 1.8.3 fix In-Reply-To: <433D9D12.40209@gmail.com> References: <20050921165704.GA32027@code-monkey.de> <20050930195955.GA9266@hal.void.org> <20050930195820.GA26388@power.luon.net> <433D9D12.40209@gmail.com> Message-ID: <20051011201204.GA19106@power.luon.net> On Fri, Sep 30, 2005 at 03:16:18PM -0500, Brian C Young wrote: > Paul van Tilburg wrote: > > >On Fri, Sep 30, 2005 at 09:59:55PM +0200, Frederick Ros wrote: > >>By the way, i think it would be great to officially tag and deliver a > >>0.4 version ... > >> > >>What do you think about that ? > > > >Ow, yes, please! My package users are begging for a new version :) > > > >Good work, > > I second that! I was reading through the ML archives last night, > marveling at all the new stuff that's been added. So, uhm, not to push anything but do you guys think it'll happen some time this week? If not, it is no problem, but then I'll just package a CVS snapshot. Greetings, Paul -- Student @ Eindhoven | email: paul at luon.net University of Technology, The Netherlands | JID: paul at luon.net >>> Using the Power of Debian GNU/Linux <<< | GnuPG key ID: 0x50064181 From sl33p3r at free.fr Tue Oct 11 21:13:17 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Wed, 12 Oct 2005 03:13:17 +0200 Subject: [PATCH] Ruby 1.8.3 fix In-Reply-To: <20051011201204.GA19106@power.luon.net> References: <20050921165704.GA32027@code-monkey.de> <20050930195955.GA9266@hal.void.org> <20050930195820.GA26388@power.luon.net> <433D9D12.40209@gmail.com> <20051011201204.GA19106@power.luon.net> Message-ID: <20051012011317.GA9490@hal.void.org> Paul van Tilburg wrote : | So, uhm, not to push anything but do you guys think it'll happen some | time this week? If not, it is no problem, but then I'll just package a | CVS snapshot. I still can put a tag on the CVS, but I can't package anything without _why's approval ... why ?? -- Frederick Ros aka Sleeper -- sleeper at jabber.fr "How should I know if it works? That's what beta testers are for. I only coded it." (Attributed to Linus Torvalds, somewhere in a posting) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20051012/aae7c094/attachment.bin From wmorgan-hobix-is-the-way at masanjin.net Wed Oct 12 12:18:18 2005 From: wmorgan-hobix-is-the-way at masanjin.net (William Morgan) Date: Wed, 12 Oct 2005 11:18:18 -0500 Subject: paging why, mental In-Reply-To: <20051012011317.GA9490@hal.void.org> References: <20050921165704.GA32027@code-monkey.de> <20050930195955.GA9266@hal.void.org> <20050930195820.GA26388@power.luon.net> <433D9D12.40209@gmail.com> <20051011201204.GA19106@power.luon.net> <20051012011317.GA9490@hal.void.org> Message-ID: <20051012161818.GC4222@masanjin.net> Excerpts from Frederick Ros's mail of 11 Oct 2005 (CDT): > Paul van Tilburg wrote : > | So, uhm, not to push anything but do you guys think it'll happen some > | time this week? If not, it is no problem, but then I'll just package a > | CVS snapshot. > > I still can put a tag on the CVS, but I can't package anything without > _why's approval ... > why ?? mental is also apparently an admin, so i think he can create a release in why's absence. -- William From mental at rydia.net Wed Oct 12 13:40:01 2005 From: mental at rydia.net (mental@rydia.net) Date: Wed, 12 Oct 2005 13:40:01 -0400 Subject: paging why, mental In-Reply-To: <20051012161818.GC4222@masanjin.net> References: <20050921165704.GA32027@code-monkey.de> <20050930195955.GA9266@hal.void.org> <20050930195820.GA26388@power.luon.net> <433D9D12.40209@gmail.com> <20051011201204.GA19106@power.luon.net> <20051012011317.GA9490@hal.void.org> <20051012161818.GC4222@masanjin.net> Message-ID: <1129138801.434d4a71dc424@www.rydia.net> Quoting William Morgan : > mental is also apparently an admin, so i think he can create a > release in why's absence. *blinks* Oh... So I am. I'd kinda like to get _why's blessing first, and some guidance on the release process and requirements. As far as I know he's not so much AWOL as he is simply intensely distracted with mouseHole. That said, if I don't hear from him soon, I'll probably end up seeing if I can at least blunder through a prerelease on my own. 'Cause, y'know, with Ruby 1.8.3 out and all it's really gotten quite pressing. However, even if I did a full-on release, I don't (so far as I know...) have access to scribble on the Hobix web site, to dance blithely upon go.hobix.com, nor to clamp 'hobix update' neatly into place. -mental From why at whytheluckystiff.net Wed Oct 12 15:05:07 2005 From: why at whytheluckystiff.net (why the lucky stiff) Date: Wed, 12 Oct 2005 13:05:07 -0600 Subject: paging why, mental In-Reply-To: <1129138801.434d4a71dc424@www.rydia.net> References: <20050921165704.GA32027@code-monkey.de> <20050930195955.GA9266@hal.void.org> <20050930195820.GA26388@power.luon.net> <433D9D12.40209@gmail.com> <20051011201204.GA19106@power.luon.net> <20051012011317.GA9490@hal.void.org> <20051012161818.GC4222@masanjin.net> <1129138801.434d4a71dc424@www.rydia.net> Message-ID: <434D5E63.70001@whytheluckystiff.net> mental at rydia.net wrote: >I'd kinda like to get _why's blessing first, and some guidance on >the release process and requirements. As far as I know he's not so >much AWOL as he is simply intensely distracted with mouseHole. > > I'm very consumed with MouseHole at the moment. (STREAMING SUPPORT IS HACKED! LIGHTTPD IS WORKING!) And I've been sick over the past week and kind of out of it. We simply cannot release Hobix 0.4 as it stands. There are security holes in 'publisher', which is unusable anyway. So I need to remove it from the installer for now. Same goes for the remote API and the search stuff. Let me disable that stuff and we'll put it out. _why From bg-hobix at infofiend.com Fri Oct 14 17:53:20 2005 From: bg-hobix at infofiend.com (Ben Giddings) Date: Fri, 14 Oct 2005 17:53:20 -0400 Subject: skel files Message-ID: Hi guys, I'm trying to understand how to do some things in Hobix involving skel files. Here's the situation: I've got a site (the new Ruby site) that uses Hobix, but for most pages the entries listed shouldn't have a date or author, they should just look like nice paragraphs/divs on a page. I got that working by adding entries in hobix.yaml so it looks like: entries: |
<% entries.each_day do |day, day_entries| %>
<+ day_header +> <% day_entries.each do |entry| %>

<+ entry +>

<% end %>
<% end %>
The original in site_ruby/1.8/hobix/out/quick.rb looked like: def entries_erb %{
    <% entries.each_day do |day, day_entries| %>
  • <+ day_header +>
      <% day_entries.each do |entry| %>
    • <+ entry +>
    • <% end %>
  • <% end %>
} end Yay! The pages in the site now look much better... unfortunately this also changed the "news" page. I want the news page to have the old look, with dates and list elements and stuff. I thought I could do this by creating a news/index.html.quick-summary page, but that doesn't seem to be the way. So, hobix-is-the-way, what is the right way to change the layout of one section? Ben From splaestro at gmail.com Sat Oct 15 01:07:35 2005 From: splaestro at gmail.com (Brian C Young) Date: Sat, 15 Oct 2005 00:07:35 -0500 Subject: skel files In-Reply-To: References: Message-ID: <43508E97.3090404@gmail.com> Ben-- Ben Giddings wrote: >I'm trying to understand how to do some things in Hobix involving >skel files. Here's the situation: > >I've got a site (the new Ruby site) that uses Hobix, but for most >pages the entries listed shouldn't have a date or author, they should >just look like nice paragraphs/divs on a page. I got that working by >adding entries in hobix.yaml... > > Right, so it looks like what you did was remove the <+day_entry+> element; not sure in what context this contains date/author info, but my memory is a bit foggy... >Yay! The pages in the site now look much better... unfortunately >this also changed the "news" page. I want the news page to have the >old look, with dates and list elements and stuff. I thought I could >do this by creating a news/index.html.quick-summary page, but that >doesn't seem to be the way. > > I *think* the relevant concept here is that changes to quick/erb plugins in hobix.yaml will apply globally to any kind of page that uses said plugin; essentially, what you added to hobix.yaml overrides the output of entries_erb anywhere that it is called. So I think you need to make the change at a lower level, probably in index.html.quick for the page that should have less info, and in entry.html.quick for the one that should have more... but again, I'm not clear on exactly where you want what displayed. Frederick's tutorial #2 lays this out pretty well, if you haven't already seen it... HTH. Brian From sl33p3r at free.fr Sat Oct 15 05:53:44 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Sat, 15 Oct 2005 11:53:44 +0200 Subject: skel files In-Reply-To: <43508E97.3090404@gmail.com> References: <43508E97.3090404@gmail.com> Message-ID: <20051015095344.GA9425@hal.void.org> Brian C Young wrote : | | Frederick's tutorial #2 | lays this | out pretty well, if you haven't already seen it... HTH. Wow ..; cool to see that at list someone reads it ;) (I'll update it as soon as Hobix 0.4 is out btw) As said Brian, the concept is that changes in hobix.yaml will impact all pages of your site. Thus they are usefull to give the look-and-feel of your site. Then each page type/page type modification should go in the skel file relative to the page type you want to change: it allows to have fine-grained style modifications ;) Best Regards, -- Frederick Ros aka Sleeper -- sleeper at jabber.fr "We all know Linux is great...it does infinite loops in 5 seconds." (Linus Torvalds about the superiority of Linux on the Amsterdam Linux Symposium) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20051015/9ce0cd4d/attachment-0001.bin From bg-hobix at infofiend.com Sat Oct 15 20:17:59 2005 From: bg-hobix at infofiend.com (Ben Giddings) Date: Sat, 15 Oct 2005 20:17:59 -0400 Subject: skel files In-Reply-To: <20051015095344.GA9425@hal.void.org> References: <43508E97.3090404@gmail.com> <20051015095344.GA9425@hal.void.org> Message-ID: On Oct 15, 2005, at 05:53, Frederick Ros wrote: > Brian C Young wrote : > | > | Frederick's tutorial #2 > | lays > this > | out pretty well, if you haven't already seen it... HTH. > > Wow ..; cool to see that at list someone reads it ;) (I'll update > it as > soon as Hobix 0.4 is out btw) > > As said Brian, the concept is that changes in hobix.yaml will > impact all > pages of your site. Thus they are usefull to give the look-and-feel of > your site. > Then each page type/page type modification should go in the skel file > relative to the page type you want to change: it allows to have > fine-grained style modifications ;) Right, so if I have a site that has pages like: htdocs/index.html htdocs/news/index.html htdocs/documentation/index.html htdocs/community/index.html htdocs/libraries/index.html How do I do things if I want the main site index.html page to be customized (change index.html.quick-summary), want most of the pages to look a certain way (change section.html.quick-archive), but want the news area to look different than the other sections? Is there a file I can change that will only change the news section index, and not any of the other sections? Thanks, Ben P.S. I did read the tutorial before I posted, it just doesn't seem to cover this unusual requirement. :) From sl33p3r at free.fr Sat Oct 15 21:36:56 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Sun, 16 Oct 2005 03:36:56 +0200 Subject: skel files In-Reply-To: References: <43508E97.3090404@gmail.com> <20051015095344.GA9425@hal.void.org> Message-ID: <20051016013656.GA31754@hal.void.org> Ben Giddings wrote : | Right, so if I have a site that has pages like: | | htdocs/index.html | htdocs/news/index.html | htdocs/documentation/index.html | htdocs/community/index.html | htdocs/libraries/index.html | | How do I do things if I want the main site index.html page to be | customized (change index.html.quick-summary), want most of the pages | to look a certain way (change section.html.quick-archive), but want | the news area to look different than the other sections? | | Is there a file I can change that will only change the news section | index, and not any of the other sections? I did not try it, but I would say the skel/news/index.html.quick-summary ... | P.S. I did read the tutorial before I posted, it just doesn't seem to | cover this unusual requirement. :) When I rework it for Hobix 0.4, I'll try to add something about that ;) -- Frederick Ros aka Sleeper -- sleeper at jabber.fr linux: the choice of a GNU generation (ksh at cis.ufl.edu put this on Tshirts in '93) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20051016/acc88ba7/attachment.bin From mental at rydia.net Sat Oct 15 22:00:37 2005 From: mental at rydia.net (MenTaLguY) Date: Sat, 15 Oct 2005 22:00:37 -0400 Subject: skel files In-Reply-To: <20051016013656.GA31754@hal.void.org> References: <43508E97.3090404@gmail.com> <20051015095344.GA9425@hal.void.org> <20051016013656.GA31754@hal.void.org> Message-ID: <1129428037.16225.244.camel@localhost.localdomain> On Sun, 2005-10-16 at 03:36 +0200, Frederick Ros wrote: > I did not try it, but I would say the skel/news/index.html.quick-summary ... Yes. This is what I do for my own site. Note that customized section quick templates "inherit" from the "global" quick template, but not from any corresponding quick templates in parent directories. -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20051015/4f4650ba/attachment.bin From bg-hobix at infofiend.com Sun Oct 16 13:18:41 2005 From: bg-hobix at infofiend.com (Ben Giddings) Date: Sun, 16 Oct 2005 13:18:41 -0400 Subject: skel files In-Reply-To: <1129428037.16225.244.camel@localhost.localdomain> References: <43508E97.3090404@gmail.com> <20051015095344.GA9425@hal.void.org> <20051016013656.GA31754@hal.void.org> <1129428037.16225.244.camel@localhost.localdomain> Message-ID: <9C26509D-5671-4056-B521-BA155BB38B18@infofiend.com> On Oct 15, 2005, at 22:00, MenTaLguY wrote: > On Sun, 2005-10-16 at 03:36 +0200, Frederick Ros wrote: >> I did not try it, but I would say the skel/news/index.html.quick- >> summary ... > > Yes. This is what I do for my own site. > > Note that customized section quick templates "inherit" from the > "global" > quick template, but not from any corresponding quick templates in > parent > directories. Hmm, I can't get it to work. I have these files in skel: ./entry.html.quick ./index.atom.atom ./index.html.quick-summary ./index.xml.rss ./index.yaml.okaynews ./monthly.html.quick-archive ./news ./news/index.html.quick-summary ./section.html.quick-archive ./sidebar.html.quick ./yearly.html.quick-archive But nothing I change in news/index.html.quick-summary seems to have any effect. I don't get it. Ben From sl33p3r at free.fr Sun Oct 16 16:57:39 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Sun, 16 Oct 2005 22:57:39 +0200 Subject: skel files In-Reply-To: <9C26509D-5671-4056-B521-BA155BB38B18@infofiend.com> References: <43508E97.3090404@gmail.com> <20051015095344.GA9425@hal.void.org> <20051016013656.GA31754@hal.void.org> <1129428037.16225.244.camel@localhost.localdomain> <9C26509D-5671-4056-B521-BA155BB38B18@infofiend.com> Message-ID: <20051016205739.GB31754@hal.void.org> Ben Giddings wrote : | Hmm, I can't get it to work. I have these files in skel: | | ./entry.html.quick | ./index.atom.atom | ./index.html.quick-summary | ./index.xml.rss | ./index.yaml.okaynews | ./monthly.html.quick-archive | ./news | ./news/index.html.quick-summary | ./section.html.quick-archive | ./sidebar.html.quick | ./yearly.html.quick-archive | | But nothing I change in news/index.html.quick-summary seems to have | any effect. I don't get it. Humm ... I think that the section.html.quick-archive take the precedence: it is used instead of your news/index.html.quick-archive ... Can't think of a clever solution right now ..; I'm going to sleep on this .. I'll perhaps have a more clever solution tommorrow, but for now the simplest solution I can see is to remove the section.html.quick-archive, and to create a file for each needed section :( Best Regards, -- Frederick Ros aka Sleeper -- sleeper at jabber.fr Identify bad input; recover if possible. - The Elements of Programming Style (Kernighan & Plaugher) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20051016/8dde41b2/attachment.bin From mental at rydia.net Sun Oct 16 16:26:42 2005 From: mental at rydia.net (MenTaLguY) Date: Sun, 16 Oct 2005 16:26:42 -0400 Subject: skel files In-Reply-To: <9C26509D-5671-4056-B521-BA155BB38B18@infofiend.com> References: <43508E97.3090404@gmail.com> <20051015095344.GA9425@hal.void.org> <20051016013656.GA31754@hal.void.org> <1129428037.16225.244.camel@localhost.localdomain> <9C26509D-5671-4056-B521-BA155BB38B18@infofiend.com> Message-ID: <1129494402.16225.265.camel@localhost.localdomain> On Sun, 2005-10-16 at 13:18 -0400, Ben Giddings wrote: > But nothing I change in news/index.html.quick-summary seems to have > any effect. I don't get it. What version of Hobix are you using? I think this might be a feature that requires CVS/0.4. -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20051016/20e7df47/attachment.bin From bg-hobix at infofiend.com Mon Oct 17 00:35:42 2005 From: bg-hobix at infofiend.com (Ben Giddings) Date: Mon, 17 Oct 2005 00:35:42 -0400 Subject: skel files In-Reply-To: <1129494402.16225.265.camel@localhost.localdomain> References: <43508E97.3090404@gmail.com> <20051015095344.GA9425@hal.void.org> <20051016013656.GA31754@hal.void.org> <1129428037.16225.244.camel@localhost.localdomain> <9C26509D-5671-4056-B521-BA155BB38B18@infofiend.com> <1129494402.16225.265.camel@localhost.localdomain> Message-ID: On Oct 16, 2005, at 16:26, MenTaLguY wrote: > On Sun, 2005-10-16 at 13:18 -0400, Ben Giddings wrote: >> But nothing I change in news/index.html.quick-summary seems to have >> any effect. I don't get it. > > What version of Hobix are you using? I think this might be a feature > that requires CVS/0.4. This is Hobix CVS, and I updated it today. I guess it must be what Frederick said, that I have to have individual section areas, if I don't section.html.quick-summary overrides the news/index.html.quick- summary that I created. Ben From sl33p3r at free.fr Mon Oct 17 02:34:44 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Mon, 17 Oct 2005 08:34:44 +0200 Subject: skel files In-Reply-To: References: <43508E97.3090404@gmail.com> <20051015095344.GA9425@hal.void.org> <20051016013656.GA31754@hal.void.org> <1129428037.16225.244.camel@localhost.localdomain> <9C26509D-5671-4056-B521-BA155BB38B18@infofiend.com> <1129494402.16225.265.camel@localhost.localdomain> Message-ID: <20051017063443.GC31754@hal.void.org> Ben Giddings wrote : | This is Hobix CVS, and I updated it today. I guess it must be what | Frederick said, that I have to have individual section areas, if I | don't section.html.quick-summary overrides the news/index.html.quick- | summary that I created. One solution to this problem could be to add some 'exclude_sections' variable for the skel_section methods ... What others think about that ? -- Frederick Ros aka Sleeper -- sleeper at jabber.fr Use data arrays to avoid repetitive control sequences. - The Elements of Programming Style (Kernighan & Plaugher) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20051017/238a3739/attachment.bin From sl33p3r at free.fr Mon Oct 17 09:04:49 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Mon, 17 Oct 2005 15:04:49 +0200 Subject: skel files In-Reply-To: <20051017063443.GC31754@hal.void.org> References: <43508E97.3090404@gmail.com> <20051015095344.GA9425@hal.void.org> <20051016013656.GA31754@hal.void.org> <1129428037.16225.244.camel@localhost.localdomain> <9C26509D-5671-4056-B521-BA155BB38B18@infofiend.com> <1129494402.16225.265.camel@localhost.localdomain> <20051017063443.GC31754@hal.void.org> Message-ID: <20051017130449.GD31754@hal.void.org> Frederick Ros wrote : | Ben Giddings wrote : | | This is Hobix CVS, and I updated it today. I guess it must be what | | Frederick said, that I have to have individual section areas, if I | | don't section.html.quick-summary overrides the news/index.html.quick- | | summary that I created. | | | One solution to this problem could be to add some 'exclude_sections' | variable for the skel_section methods ... | | What others think about that ? Alternatively, Ben, you could do something like this: in your blog directory, create a lib/misc.rb, containing: module Hobix class Weblog alias_method :skel_section_orig, :skel_section def skel_section( path_storage ) skel_section_orig( path_storage ) do |h| section = h[:page].id.split(/\//).shift yield h unless EXCLUDED_SECTIONS.member?(section) end end end end Hobix::EXCLUDED_SECTIONS=['news'] and in your hobix.yaml, in the 'requires' section, add lib/misc It should works (at least it work on my test blog) -- Frederick Ros aka Sleeper -- sleeper at jabber.fr "...Deep Hack Mode--that mysterious and frightening state of consciousness where Mortal Users fear to tread." (By Matt Welsh) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20051017/21a58887/attachment.bin From fusion at storytotell.org Fri Oct 21 16:28:29 2005 From: fusion at storytotell.org (Daniel Lyons) Date: Fri, 21 Oct 2005 14:28:29 -0600 Subject: versions, new features Message-ID: <880D0A82-2602-464E-B202-E70C5FDBA912@storytotell.org> Hi, I tried Hobix a little over a year ago and found it difficult. This week I've been messing with it again I find it's great! Thanks to _why and Frederick and everyone else. I do however, have a few questions: 1. What's the authentication situation in CVS? It seems to be partially coded but I wasn't able to beat it into working order. Weblog#authorize(user, password) never seems to be called. 2. What's the remote API situation? It didn't look like it supported blogger or movabletype or any of the other "standard" APIs--maybe because they're just not appropriate to Hobix? 3. Is there going to be an official release soon? It's been about a year since an official release and it looks like a *lot* has changed since the last one. Also, the Hobix site hasn't had an update in a while. Is everyone just busy with other stuff right now? 4. Is there a particular CVS version with working, albeit unauthenticated comments and trackbacks? Would it be wise to try checking that one out instead of HEAD? Thanks for everything you guys! -- Daniel From sl33p3r at free.fr Fri Oct 21 22:38:56 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Sat, 22 Oct 2005 04:38:56 +0200 Subject: versions, new features In-Reply-To: <880D0A82-2602-464E-B202-E70C5FDBA912@storytotell.org> References: <880D0A82-2602-464E-B202-E70C5FDBA912@storytotell.org> Message-ID: <20051022023856.GD15993@hal.void.org> Daniel Lyons wrote : | Hi, Hi Daniel, | I tried Hobix a little over a year ago and found it difficult. This | week I've been messing with it again I find it's great! Thanks to | _why and Frederick and everyone else. I think we must all thank _Why ;) I can't answer to authentication and API questions as I didn't check this part of the code (I'll try to look at it but being forced to use a "static" blog I didn't yet had the opportunity to look at it) ... | 3. Is there going to be an official release soon? It's been about a | year since an official release and it looks like a *lot* has changed | since the last one. Also, the Hobix site hasn't had an update in a | while. Is everyone just busy with other stuff right now? We'll all waiting to it... I asked for it to _Why, and it seems he has been kind of busy lately, hacking on MouseHole, but I think (and hope ;) there will be a new version soon: http://rubyforge.org/pipermail/hobix-is-the-way/2005-October/000622.html | | 4. Is there a particular CVS version with working, albeit | unauthenticated comments and trackbacks? Would it be wise to try | checking that one out instead of HEAD? I think that comments and trackback are working on the HEAD version: William Morgan posted a patch http://rubyforge.org/pipermail/hobix-is-the-way/2005-May/000410.html(duno why it has not been commited: William ?) | Thanks for everything you guys! Your welcome. And sorry not being able to help you much than that :( -- Frederick Ros aka Sleeper -- sleeper at jabber.fr Localise input and output in subroutines. - The Elements of Programming Style (Kernighan & Plaugher) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20051022/d678c994/attachment-0001.bin From wmorgan-hobix-is-the-way at masanjin.net Sat Oct 22 14:55:48 2005 From: wmorgan-hobix-is-the-way at masanjin.net (William Morgan) Date: Sat, 22 Oct 2005 13:55:48 -0500 Subject: versions, new features In-Reply-To: <20051022023856.GD15993@hal.void.org> References: <880D0A82-2602-464E-B202-E70C5FDBA912@storytotell.org> <20051022023856.GD15993@hal.void.org> Message-ID: <20051022185548.GB22296@masanjin.net> Excerpts from Frederick Ros's mail of 21 Oct 2005 (CDT): > | 4. Is there a particular CVS version with working, albeit > | unauthenticated comments and trackbacks? Would it be wise to try > | checking that one out instead of HEAD? > > I think that comments and trackback are working on the HEAD version: > William Morgan posted a patch > http://rubyforge.org/pipermail/hobix-is-the-way/2005-May/000410.html(duno > why it has not been commited: William ?) It was added to CVS in a slightly altered form a few months after that message. Unauthenticated comments and trackbacks work fine, as long as you're very careful about how you set up the permissions. I was also in contact with a Ruby OpenID library guy for a while, meaning to add that type of authentication to Hobix, but sadly nothing came of it. -- William From t.fernagut at h0m3.be Tue Oct 25 13:34:01 2005 From: t.fernagut at h0m3.be (Thibaut Fernagut) Date: Tue, 25 Oct 2005 19:34:01 +0200 Subject: post pharse error Message-ID: <435E6C89.7060903@h0m3.be> Hi, This is the first time I install/use hoix so maybe I forgot something . background : /home/httpd/html/www.h0m3.be -19:32:46- blokkie at derm # ruby --version ruby 1.8.2 (2004-12-25) [i686-linux] /home/httpd/html/www.h0m3.be -19:35:33- blokkie at derm # hobix blogs weblog-name: path -----------:----------------------------------------- h0m3~ : /home/httpd/html/www.h0m3.be/hobix.yaml This is the error I get when I try to post to my blog : /home/httpd/html/www.h0m3.be -19:35:51- blokkie at derm # hobix post h0m3~ test *** parse error on line 7, col -1: `' *** use syntax: `hobix post weblog-name shortName' /home/httpd/html/www.h0m3.be -19:36:23- blokkie at derm # I read this from the mailinglist but I don't use ">" http://rubyforge.org/pipermail/hobix-is-the-way/2005-February/000221.html Thanks in advance for the feedback . Cheers, Thibaut From sl33p3r at free.fr Tue Oct 25 15:11:40 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Tue, 25 Oct 2005 21:11:40 +0200 Subject: post pharse error In-Reply-To: <435E6C89.7060903@h0m3.be> References: <435E6C89.7060903@h0m3.be> Message-ID: <20051025191140.GH15993@hal.void.org> Thibaut Fernagut wrote : | Hi, Hi Thibaut, | This is the error I get when I try to post to my blog : | | | /home/httpd/html/www.h0m3.be -19:35:51- blokkie at derm # hobix post h0m3~ test | *** parse error on line 7, col -1: `' | *** use syntax: `hobix post weblog-name shortName' | /home/httpd/html/www.h0m3.be -19:36:23- blokkie at derm # From what I can see you're using the 0.3 version of Hobix. As mentionned in the ML, YAML is very picky about spaces. I think that either your hobix.yaml or your post main either contain tab instead of spaces (a *very* common mistake in my case ;), or is malformed. Could you send your hobix.yaml (if there's no sensible information) and/or your post ? By the way you may want to use the CVS version which contains lots of improvements over 0.3 ... and should be labelled 0.4 very soon ;) -- Frederick Ros aka Sleeper -- sleeper at jabber.fr "World domination. Fast" (By Linus Torvalds) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20051025/161d8491/attachment.bin From t.fernagut at h0m3.be Wed Oct 26 03:35:44 2005 From: t.fernagut at h0m3.be (Thibaut Fernagut) Date: Wed, 26 Oct 2005 09:35:44 +0200 Subject: post pharse error In-Reply-To: <20051025191140.GH15993@hal.void.org> References: <435E6C89.7060903@h0m3.be> <20051025191140.GH15993@hal.void.org> Message-ID: <435F31D0.8060308@h0m3.be> Frederick Ros wrote: >Thibaut Fernagut wrote : >| Hi, > >Hi Thibaut, > >| This is the error I get when I try to post to my blog : >| >| >| /home/httpd/html/www.h0m3.be -19:35:51- blokkie at derm # hobix post h0m3~ test >| *** parse error on line 7, col -1: `' >| *** use syntax: `hobix post weblog-name shortName' >| /home/httpd/html/www.h0m3.be -19:36:23- blokkie at derm # > >From what I can see you're using the 0.3 version of Hobix. As mentionned >in the ML, YAML is very picky about spaces. >I think that either your hobix.yaml or your post main either contain tab >instead of spaces (a *very* common mistake in my case ;), or is >malformed. >Could you send your hobix.yaml (if there's no sensible information) >and/or your post ? > >By the way you may want to use the CVS version which contains lots of >improvements over 0.3 ... and should be labelled 0.4 very soon ;) > Indeed you are correct . In the subject I need to put : subject: > and then in the content it has to be : tekst for the post I'll be waiting in full anticipation of the 0.4 version of hobix :-) Cheers, Thibaut From paul at luon.net Wed Oct 26 09:09:23 2005 From: paul at luon.net (Paul van Tilburg) Date: Wed, 26 Oct 2005 15:09:23 +0200 Subject: Strange type problem Message-ID: <20051026130922.GD24236@power.luon.net> Hi all, I have been trying current (20051020) Hobix CVS to see if the currently existing problems surrounding 1.8.3 were resolved so I could put a new Debian package out for the users. However, I encountered a weird type problem: --- % hobix list journal /usr/lib/ruby/1.8/hobix/storage/filesys.rb:186:in `load_index': undefined method `modified' for # (NoMethodError) from /usr/lib/ruby/1.8/find.rb:40:in `find' from /usr/lib/ruby/1.8/find.rb:38:in `find' from /usr/lib/ruby/1.8/hobix/storage/filesys.rb:168:in `load_index' from /usr/lib/ruby/1.8/hobix/storage/filesys.rb:258:in `find' from /usr/lib/ruby/1.8/hobix/commandline.rb:302:in `list_action' from /usr/bin/hobix:79 --- I haven't traced the problem to the source yet, but is it one of the obvious Ruby 1.8.3 YAML oddities? Regards, Paul -- Student @ Eindhoven | email: paul at luon.net University of Technology, The Netherlands | JID: paul at luon.net >>> Using the Power of Debian GNU/Linux <<< | GnuPG key ID: 0x50064181 From wmorgan-hobix-is-the-way at masanjin.net Wed Oct 26 10:26:20 2005 From: wmorgan-hobix-is-the-way at masanjin.net (William Morgan) Date: Wed, 26 Oct 2005 09:26:20 -0500 Subject: Strange type problem In-Reply-To: <20051026130922.GD24236@power.luon.net> References: <20051026130922.GD24236@power.luon.net> Message-ID: <20051026142620.GF29376@masanjin.net> Excerpts from Paul van Tilburg's mail of 26 Oct 2005 (CDT): > % hobix list journal > /usr/lib/ruby/1.8/hobix/storage/filesys.rb:186:in `load_index': > undefined method `modified' for # > (NoMethodError) Wild guess: delete index.hobix and index.search and retry. -- William From paul at luon.net Wed Oct 26 10:38:23 2005 From: paul at luon.net (Paul van Tilburg) Date: Wed, 26 Oct 2005 16:38:23 +0200 Subject: Strange type problem In-Reply-To: <20051026142620.GF29376@masanjin.net> References: <20051026130922.GD24236@power.luon.net> <20051026142620.GF29376@masanjin.net> Message-ID: <20051026143823.GA19795@power.luon.net> On Wed, Oct 26, 2005 at 09:26:20AM -0500, William Morgan wrote: > Excerpts from Paul van Tilburg's mail of 26 Oct 2005 (CDT): > > % hobix list journal > > /usr/lib/ruby/1.8/hobix/storage/filesys.rb:186:in `load_index': > > undefined method `modified' for # > > (NoMethodError) > > Wild guess: delete index.hobix and index.search and retry. Correct guess :) Is this a version transition problem? Or will it be one? Paul -- Student @ Eindhoven | email: paul at luon.net University of Technology, The Netherlands | JID: paul at luon.net >>> Using the Power of Debian GNU/Linux <<< | GnuPG key ID: 0x50064181 From mental at rydia.net Wed Oct 26 11:52:24 2005 From: mental at rydia.net (mental@rydia.net) Date: Wed, 26 Oct 2005 11:52:24 -0400 Subject: Hobix install extremely unsafe In-Reply-To: <200510260849.j9Q8nVmK023286@rubyforge.org> References: <200510260849.j9Q8nVmK023286@rubyforge.org> Message-ID: <1130341944.435fa638e6c2c@www.rydia.net> FYI Quoting Farrel Lifson : > Hi MentalGuy, > > I just had a most unpleasant experience installing Hobix. I had > manually installed the CVS version of hobix but decided to go > 'downgrade' to a safer version. I ran 'hobix upgrade' and the > script proceeded to 'upgrade' to 0.3b. On the question on where I > wanted to put the shared files I typed in '/usr/share' thinking > hobix would create a '/usr/share/hobix/' directory. This was a > mistake. Instead of creating files and directories the install > script wiped my /usr/share, installed it's shared files in there > directly and basically rendered my fresh gentoo installation > useless (a number of gentoo's system programs store data in > /usr/share). > > I think that option needs to be either removed, modified so it is > not so destructive or have BIG WARNINGS around it. > > Thanks, > Farrel > > PS Please release Hobix 0.4! I have Ruby 1.8.3 installed and a a > blog that's just raring to go but can't. > > From why at hobix.com Wed Oct 26 12:08:58 2005 From: why at hobix.com (why the lucky stiff) Date: Wed, 26 Oct 2005 10:08:58 -0600 Subject: Hobix install extremely unsafe In-Reply-To: <1130341944.435fa638e6c2c@www.rydia.net> References: <200510260849.j9Q8nVmK023286@rubyforge.org> <1130341944.435fa638e6c2c@www.rydia.net> Message-ID: <435FAA1A.9060604@hobix.com> mental at rydia.net wrote: >FYI > >Quoting Farrel Lifson : > > > >>Hi MentalGuy, >> >>I just had a most unpleasant experience installing Hobix. I had >>manually installed the CVS version of hobix but decided to go >>'downgrade' to a safer version. I ran 'hobix upgrade' and the >>script proceeded to 'upgrade' to 0.3b. On the question on where I >>wanted to put the shared files I typed in '/usr/share' thinking >>hobix would create a '/usr/share/hobix/' directory. This was a >>mistake. Instead of creating files and directories the install >>script wiped my /usr/share, installed it's shared files in there >>directly and basically rendered my fresh gentoo installation >>useless (a number of gentoo's system programs store data in >>/usr/share). >> >>I think that option needs to be either removed, modified so it is >>not so destructive or have BIG WARNINGS around it. >> >>Thanks, >>Farrel >> >>PS Please release Hobix 0.4! I have Ruby 1.8.3 installed and a a >>blog that's just raring to go but can't. >> WHOA. _why (Fixing.) From t.fernagut at h0m3.be Thu Oct 27 06:22:37 2005 From: t.fernagut at h0m3.be (Thibaut Fernagut) Date: Thu, 27 Oct 2005 12:22:37 +0200 Subject: deleting posts and removing template archive Message-ID: <4360AA6D.20207@h0m3.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, How can I delete the template posts and the archive that comes after I create a new blog ? I can edit the post but I don't know how to get rid of them. Cheers, Thibaut -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDYKptR6N46HXxiJERAn+TAKDHEGH88iRqYG+rTVXVOChmXxFrCQCgh2mN xoZY+QcG8816dClMoFprlKw= =jwqq -----END PGP SIGNATURE----- From splaestro at gmail.com Thu Oct 27 10:24:36 2005 From: splaestro at gmail.com (Brian C Young) Date: Thu, 27 Oct 2005 09:24:36 -0500 Subject: deleting posts and removing template archive In-Reply-To: <4360AA6D.20207@h0m3.be> References: <4360AA6D.20207@h0m3.be> Message-ID: <4360E324.4020701@gmail.com> Thibaut Fernagut wrote: >How can I delete the template posts and the archive that comes after I >create a new blog ? > >I can edit the post but I don't know how to get rid of them. > > I think the following will work: rm -f entries/blog/the*.yaml rm -f htdocs/blog/the*.html hobix regen (This, of course, assumes you haven't created any posts called "the..." that you want to keep). You may also need to remove archive directories, e.g., htdocs/2004/** HTH. Brian From wmorgan-hobix-is-the-way at masanjin.net Thu Oct 27 14:03:06 2005 From: wmorgan-hobix-is-the-way at masanjin.net (William Morgan) Date: Thu, 27 Oct 2005 13:03:06 -0500 Subject: Strange type problem In-Reply-To: <20051026143823.GA19795@power.luon.net> References: <20051026130922.GD24236@power.luon.net> <20051026142620.GF29376@masanjin.net> <20051026143823.GA19795@power.luon.net> Message-ID: <20051027180306.GB18854@masanjin.net> Excerpts from Paul van Tilburg's mail of 26 Oct 2005 (CDT): > On Wed, Oct 26, 2005 at 09:26:20AM -0500, William Morgan wrote: > > Excerpts from Paul van Tilburg's mail of 26 Oct 2005 (CDT): > > > % hobix list journal > > > /usr/lib/ruby/1.8/hobix/storage/filesys.rb:186:in `load_index': > > > undefined method `modified' for # > > > (NoMethodError) > > > > Wild guess: delete index.hobix and index.search and retry. > > Correct guess :) Is this a version transition problem? Or will > it be one? >From what I remember when I had this problem on my system, some CVS changes (that I made, I think!) invalidated the format of one or both of those files. We might consider auto-deleting them during the install script for the next official releases. -- William From why at hobix.com Thu Oct 27 14:34:46 2005 From: why at hobix.com (why the lucky stiff) Date: Thu, 27 Oct 2005 12:34:46 -0600 Subject: ! hobix 0.4 is up for testing Message-ID: <43611DC6.5090701@hobix.com> To install: ruby -ropen-uri -e 'eval(open("http://go.hobix.com/0.4/").read)' This fixes the problem with `share' getting nuked. The installer asks you to confirm and explains that the `share' directory will be nuked and to correct it. Also, `publisher' isn't listed as a patch. It will be in CVS in a bit. _why From why at hobix.com Thu Oct 27 14:56:01 2005 From: why at hobix.com (why the lucky stiff) Date: Thu, 27 Oct 2005 12:56:01 -0600 Subject: ! hobix 0.4 is up for testing In-Reply-To: <43611DC6.5090701@hobix.com> References: <43611DC6.5090701@hobix.com> Message-ID: <436122C1.20407@hobix.com> why the lucky stiff wrote: >To install: > > ruby -ropen-uri -e 'eval(open("http://go.hobix.com/0.4/").read)' > > Rrrrrp. I just disabled the search engine as well. _why From why at hobix.com Thu Oct 27 15:53:20 2005 From: why at hobix.com (why the lucky stiff) Date: Thu, 27 Oct 2005 13:53:20 -0600 Subject: Strange type problem In-Reply-To: <20051026130922.GD24236@power.luon.net> References: <20051026130922.GD24236@power.luon.net> Message-ID: <43613030.9030308@hobix.com> Paul van Tilburg wrote: >I haven't traced the problem to the source yet, but is it one of the >obvious Ruby 1.8.3 YAML oddities? > > Hobix hadn't been updated to reflect the final YAML API for 1.8.3 but had some code in there which was working with Syck CVS. Let's see if we can get this. Update your source and give it a whirl. _why From why at hobix.com Thu Oct 27 15:55:41 2005 From: why at hobix.com (why the lucky stiff) Date: Thu, 27 Oct 2005 13:55:41 -0600 Subject: deleting posts and removing template archive In-Reply-To: <4360AA6D.20207@h0m3.be> References: <4360AA6D.20207@h0m3.be> Message-ID: <436130BD.2090605@hobix.com> Thibaut Fernagut wrote: >How can I delete the template posts and the archive that comes after I >create a new blog ? > > New blogs in 0.4 no longer create the test post in `entries.' However, if you regen, you'll get `htdocs/hobix-default-entry.html.' But I guess once posts are made this file should be automatically deleted. Okay. _why From sl33p3r at free.fr Thu Oct 27 07:12:26 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Thu, 27 Oct 2005 13:12:26 +0200 Subject: deleting posts and removing template archive In-Reply-To: <4360AA6D.20207@h0m3.be> References: <4360AA6D.20207@h0m3.be> Message-ID: <20051027111226.GB4721@hal.void.org> Thibaut Fernagut wrote : | Hi, | | How can I delete the template posts and the archive that comes after I | create a new blog ? | | I can edit the post but I don't know how to get rid of them. Hi Thibaut, Usually I use the simplest approach: do some rm in the 'entries' directory followed by an 'hobix regen my-blog' -- Frederick Ros aka Sleeper -- sleeper at jabber.fr Use the fundamental control flow constructs. - The Elements of Programming Style (Kernighan & Plaugher) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20051027/d3ae4bf3/attachment.bin From sl33p3r at free.fr Thu Oct 27 17:42:04 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Thu, 27 Oct 2005 23:42:04 +0200 Subject: Strange type problem In-Reply-To: <43613030.9030308@hobix.com> References: <20051026130922.GD24236@power.luon.net> <43613030.9030308@hobix.com> Message-ID: <20051027214204.GF4721@hal.void.org> why the lucky stiff wrote : | Hobix hadn't been updated to reflect the final YAML API for 1.8.3 but | had some code in there which was working with Syck CVS. Let's see if we | can get this. Update your source and give it a whirl. Humm .. I'm running 1.8.3 here and saw now pb with hobix ... -- Frederick Ros aka Sleeper -- sleeper at jabber.fr Microsoft is not the answer. Microsoft is the question. NO (or Linux) is the answer. (Taken from a .signature from someone from the UK, source unknown) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20051027/77707cda/attachment.bin From paul at luon.net Thu Oct 27 18:57:00 2005 From: paul at luon.net (Paul van Tilburg) Date: Fri, 28 Oct 2005 00:57:00 +0200 Subject: Strange type problem In-Reply-To: <43613030.9030308@hobix.com> References: <20051026130922.GD24236@power.luon.net> <43613030.9030308@hobix.com> Message-ID: <20051027225700.GB19795@power.luon.net> On Thu, Oct 27, 2005 at 01:53:20PM -0600, why the lucky stiff wrote: > Paul van Tilburg wrote: > > >I haven't traced the problem to the source yet, but is it one of the > >obvious Ruby 1.8.3 YAML oddities? > > > Hobix hadn't been updated to reflect the final YAML API for 1.8.3 but > had some code in there which was working with Syck CVS. Let's see if we > can get this. Update your source and give it a whirl. I will, thanks! I got another report of Hobix trying to handle 0-byte files in the entries dir (can occur by doing a hobix post with a full fs, etc). YAML parses the empty file/string to false and tries to get attributes of this entry which obviously fails with unknown method errors. Can the Storage backend be adapted to ignore such files or maybe be aware of them? Greetings, Paul -- Student @ Eindhoven | email: paul at luon.net University of Technology, The Netherlands | JID: paul at luon.net >>> Using the Power of Debian GNU/Linux <<< | GnuPG key ID: 0x50064181