From binaural at gmail.com Thu Feb 3 16:50:28 2005 From: binaural at gmail.com (Noah K Tilton) Date: Thu Feb 3 16:47:23 2005 Subject: confirm fa21bc2b699dc914dd494e87bff7fd1485372936 In-Reply-To: References: Message-ID: <330d023305020313507b0f9e23@mail.gmail.com> Wow! I want to do this Hobix thing but I'm having problems converting my wordpress blog. Can anyone help?? Thanks! Noah On Thu, 03 Feb 2005 15:56:17 -0500, hobix-is-the-way-request@rubyforge.org wrote: > Mailing list subscription confirmation notice for mailing list > Hobix-is-the-way > > We have received a request from 4.19.111.130 for subscription of your > email address, "binaural@gmail.com", to the > hobix-is-the-way@rubyforge.org mailing list. To confirm that you want > to be added to this mailing list, simply reply to this message, > keeping the Subject: header intact. Or visit this web page: > > http://rubyforge.org/mailman/confirm/hobix-is-the-way/fa21bc2b699dc914dd494e87bff7fd1485372936 > > Or include the following line -- and only the following line -- in a > message to hobix-is-the-way-request@rubyforge.org: > > confirm fa21bc2b699dc914dd494e87bff7fd1485372936 > > Note that simply sending a `reply' to this message should work from > most mail readers, since that usually leaves the Subject: line in the > right form (additional "Re:" text in the Subject: is okay). > > If you do not wish to be subscribed to this list, please simply > disregard this message. If you think you are being maliciously > subscribed to the list, or have any other questions, send them to > hobix-is-the-way-owner@rubyforge.org. > From bitserf at gmail.com Thu Feb 3 21:45:13 2005 From: bitserf at gmail.com (leon breedt) Date: Thu Feb 3 21:43:12 2005 Subject: confirm fa21bc2b699dc914dd494e87bff7fd1485372936 In-Reply-To: <330d023305020313507b0f9e23@mail.gmail.com> References: <330d023305020313507b0f9e23@mail.gmail.com> Message-ID: <270bd0c405020318457d406bd6@mail.gmail.com> On Thu, 3 Feb 2005 15:50:28 -0600, Noah K Tilton wrote: > Wow! I want to do this Hobix thing but I'm having problems converting > my wordpress blog. Can anyone help?? I wrote the lame script that does the imports[1], what's breaking? :) Given WordPress uses raw HTML in the database, you will most likely need to edit some posts by hand after to do the complete Textile conversion (recommended), so it doesn't look a bit screwy. Leon [1] http://hobix.com/contrib/wordpress-to-hobix-0.1.rb From wmorgan-hobix-is-the-way at masanjin.net Mon Feb 7 22:51:10 2005 From: wmorgan-hobix-is-the-way at masanjin.net (William Morgan) Date: Mon Feb 7 22:48:24 2005 Subject: Comments on RedHanded? In-Reply-To: <41C7831B.9080103@hobix.com> References: <66b7e34b04122017273d0c2ece@mail.gmail.com> <41C77D70.6020707@hobix.com> <66b7e34b041220175524f6ae39@mail.gmail.com> <41C7831B.9080103@hobix.com> Message-ID: <20050208035110.GF10521@masanjin.net> Excerpts from why the lucky stiff's mail of 20 Dec 2004 (EST): > >Oh, very cool. Is it close to a public release? > > I'd give Hobix 0.4 another 3 weeks. Anything your army of slavering, orc-like users can do to help? RedHanded's comment system is making us hungry. -- William From bg-hobix at infofiend.com Tue Feb 8 10:16:14 2005 From: bg-hobix at infofiend.com (Ben Giddings) Date: Tue Feb 8 10:13:10 2005 Subject: Comments on RedHanded? In-Reply-To: <20050208035110.GF10521@masanjin.net> References: <66b7e34b04122017273d0c2ece@mail.gmail.com> <41C77D70.6020707@hobix.com> <66b7e34b041220175524f6ae39@mail.gmail.com> <41C7831B.9080103@hobix.com> <20050208035110.GF10521@masanjin.net> Message-ID: <21d8fdab86d709f8ed07d8609e386659@infofiend.com> On Feb 7, 2005, at 22:51, William Morgan wrote: > Excerpts from why the lucky stiff's mail of 20 Dec 2004 (EST): >>> Oh, very cool. Is it close to a public release? >> >> I'd give Hobix 0.4 another 3 weeks. > > Anything your army of slavering, orc-like users can do to help? > RedHanded's comment system is making us hungry. Hey! I'm not orc-like! I just forgot to shave... and bathe... and I follow the great wizard _why_ because um... I just happen to be going that way anyhow! But I do like consuming hobbit... er... hobix, and would be willing to help out to make it ready. Ben From sl33p3r at free.fr Tue Feb 8 15:12:41 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Tue Feb 8 14:46:33 2005 Subject: Comments on RedHanded? In-Reply-To: <21d8fdab86d709f8ed07d8609e386659@infofiend.com> References: <66b7e34b04122017273d0c2ece@mail.gmail.com> <41C77D70.6020707@hobix.com> <66b7e34b041220175524f6ae39@mail.gmail.com> <41C7831B.9080103@hobix.com> <20050208035110.GF10521@masanjin.net> <21d8fdab86d709f8ed07d8609e386659@infofiend.com> Message-ID: <20050208201240.GA7215@hal.void.org> Ben Giddings wrote : | | But I do like consuming hobbit... er... hobix, and would be willing to | help out to make it ready. Gruhhh .. You can count on me also .. I'd really like to have an easy way to add 'command line' plugins ... _why, do you need help on these various directions ? -- Frederick Ros aka Sleeper Avoid unnecessary branches. - 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/20050208/7713e10a/attachment.bin From ken.pratt at gmail.com Tue Feb 8 19:03:58 2005 From: ken.pratt at gmail.com (Ken Pratt) Date: Tue Feb 8 21:32:52 2005 Subject: Comments on RedHanded? In-Reply-To: <20050208201240.GA7215@hal.void.org> References: <66b7e34b04122017273d0c2ece@mail.gmail.com> <41C77D70.6020707@hobix.com> <66b7e34b041220175524f6ae39@mail.gmail.com> <41C7831B.9080103@hobix.com> <20050208035110.GF10521@masanjin.net> <21d8fdab86d709f8ed07d8609e386659@infofiend.com> <20050208201240.GA7215@hal.void.org> Message-ID: > Ben Giddings wrote : > _why, do you need help on these various directions ? I would also love to pitch in if I could be of service. Next week is my "Reading Week" (aka Spring Break), and I will have free time galore to Ruby it up. -Ken From why at hobix.com Tue Feb 8 21:39:37 2005 From: why at hobix.com (why the lucky stiff) Date: Tue Feb 8 21:36:47 2005 Subject: Comments on RedHanded? In-Reply-To: <20050208201240.GA7215@hal.void.org> References: <66b7e34b04122017273d0c2ece@mail.gmail.com> <41C77D70.6020707@hobix.com> <66b7e34b041220175524f6ae39@mail.gmail.com> <41C7831B.9080103@hobix.com> <20050208035110.GF10521@masanjin.net> <21d8fdab86d709f8ed07d8609e386659@infofiend.com> <20050208201240.GA7215@hal.void.org> Message-ID: <420977E9.9040909@hobix.com> Frederick Ros wrote: >Ben Giddings wrote : >| >| But I do like consuming hobbit... er... hobix, and would be willing to >| help out to make it ready. > >Gruhhh .. You can count on me also .. I'd really like to have an easy >way to add 'command line' plugins ... >_why, do you need help on these various directions ? > > Frederick, have you read this? ... http://rubyforge.org/pipermail/hobix-is-the-way/2004-September/000031.html If so, what else are you looking for? If you've mentioned it, then I guess the memory wisps have gone *blatt*. _why From sl33p3r at free.fr Wed Feb 9 02:21:59 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Wed Feb 9 02:18:41 2005 Subject: Comments on RedHanded? In-Reply-To: <420977E9.9040909@hobix.com> References: <66b7e34b04122017273d0c2ece@mail.gmail.com> <41C77D70.6020707@hobix.com> <66b7e34b041220175524f6ae39@mail.gmail.com> <41C7831B.9080103@hobix.com> <20050208035110.GF10521@masanjin.net> <21d8fdab86d709f8ed07d8609e386659@infofiend.com> <20050208201240.GA7215@hal.void.org> <420977E9.9040909@hobix.com> Message-ID: <1107933719.4209ba17df1d7@imp1-q.free.fr> Quoting why the lucky stiff : > Frederick, have you read this? ... > http://rubyforge.org/pipermail/hobix-is-the-way/2004-September/000031.html > > If so, what else are you looking for? If you've mentioned it, then I > guess the memory wisps have gone *blatt*. Hi _why, Yes for sure ! I even use it ;) But quoting this post : > For now, changes will need to be patch right into hobix/commandline.rb. > In the next few days, I'll add a `requires' list to the `~/.hobixrc' > structure which will allow loading of commandline plugins. In fact, I was talking about the require stuff, that would help me to avoid hacking the commandline.rb .. This will also be easier to distribute plugins that can install their own command line options. I actually just looked at it, and think that there's just a little more stuff than just adding the requires in fact. The commandline.rb and eventually plugins should be load before beginning to treat command line options (or lack of command line options). This also mean that there should be a "hobix wide" plugin directory (/usr/share/hobix/lib). I do not remember exactly (and do not have hobix sources at hand), but it seems me that this path was not involved when looking for plugins. Do you mind if I try to hack this things up, and eventually post a patch if I managed to do it ? Thanks again for (all of) your work !! Best Regards, Fred Frederick Ros aka Sleeper From robertbrook.com at gmail.com Wed Feb 9 06:48:33 2005 From: robertbrook.com at gmail.com (Robert Brook) Date: Wed Feb 9 06:45:15 2005 Subject: Hobix 0.3 vs Windows: 'wrong number of arguments' Message-ID: All hail! I've recently installed Hobix 0.3 on Windows 2000, (Ruby 1.8.2), and I get the following error (?) message when trying to create a new weblog with 'hobix create test c:/test/'... *** wrong number of arguments (6 for 0) *** use syntax: 'hobix create weblog-name /path/to/' A Windows path issue, possibly? From robertbrook.com at gmail.com Wed Feb 9 06:52:17 2005 From: robertbrook.com at gmail.com (Robert Brook) Date: Wed Feb 9 06:48:58 2005 Subject: 'hobix blogs': in 'blogs_weblog': undefined method '+' for nil:NilClass Message-ID: All hail! I've recently installed Hobix 0.3 on Windows 2000, (Ruby 1.8.2), and I get the following error message when trying to list weblogs with 'hobix blogs'... c:/ruby/lib/ruby/site_ruby/1.8./hobix/commandline.rb:68:in 'blogs_weblog': undefined method '+' for nil:NilClass (NoMethodError) from c:/ruby/bin/hobix:64:in 'call' from c:/ruby/bin/hobix:64 Have I somehow borked my installation process? From robertbrook.com at gmail.com Wed Feb 9 07:02:15 2005 From: robertbrook.com at gmail.com (Robert Brook) Date: Wed Feb 9 06:58:56 2005 Subject: Hobix.com in CVS: revised URL? Message-ID: (Following earlier email at http://rubyforge.org/pipermail/hobix-is-the-way/2004-September/000033.html) I found Hobix.com in CVS via http://rubyforge.org/cgi-bin/viewcvs.cgi/blog-hobix.com/?cvsroot=hobix Currently staring vacantly at: / blog-hobix.com / lib / hobix.com.rb From sl33p3r at free.fr Wed Feb 9 07:34:20 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Wed Feb 9 07:31:01 2005 Subject: Comments on RedHanded? In-Reply-To: <1107933719.4209ba17df1d7@imp1-q.free.fr> References: <66b7e34b04122017273d0c2ece@mail.gmail.com> <41C77D70.6020707@hobix.com> <66b7e34b041220175524f6ae39@mail.gmail.com> <41C7831B.9080103@hobix.com> <20050208035110.GF10521@masanjin.net> <21d8fdab86d709f8ed07d8609e386659@infofiend.com> <20050208201240.GA7215@hal.void.org> <420977E9.9040909@hobix.com> <1107933719.4209ba17df1d7@imp1-q.free.fr> Message-ID: <1107952460.420a034cd5c6f@imp4-q.free.fr> Quoting Frederick Ros : > > Do you mind if I try to hack this things up, and eventually post a patch if I > managed to do it ? In fact I had time at noon.. It was easier than I was expected.. Using 'extended' method really made it simple. I'll try to post a path tonight or tomorrow Frederick Ros aka Sleeper -- sleeper@jabber.fr From sl33p3r at free.fr Wed Feb 9 17:46:45 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Wed Feb 9 17:20:03 2005 Subject: Comments on RedHanded? In-Reply-To: <1107952460.420a034cd5c6f@imp4-q.free.fr> References: <66b7e34b04122017273d0c2ece@mail.gmail.com> <41C77D70.6020707@hobix.com> <66b7e34b041220175524f6ae39@mail.gmail.com> <41C7831B.9080103@hobix.com> <20050208035110.GF10521@masanjin.net> <21d8fdab86d709f8ed07d8609e386659@infofiend.com> <20050208201240.GA7215@hal.void.org> <420977E9.9040909@hobix.com> <1107933719.4209ba17df1d7@imp1-q.free.fr> <1107952460.420a034cd5c6f@imp4-q.free.fr> Message-ID: <20050209224645.GA7188@hal.void.org> Skipped content of type multipart/mixed-------------- 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/20050209/b6ee2afc/attachment-0001.bin From sam at sewm.org Fri Feb 11 15:00:20 2005 From: sam at sewm.org (Sam MacCutchan) Date: Fri Feb 11 14:56:58 2005 Subject: Problems with hobix regen blahhg after new post Message-ID: <20050211200020.985C38E4@barclay.textdrive.com> Hello, I installed Hobix on my Mac yesterday. The install went fine. I created a new blog with the command hobix create testblog ~/Code/ruby/hobix/testblog. I then ran a hobix regen testblog and everything went fine as well. If I do hobix post testblog firstPost I am able to edit the post fine in vi but then when I exit vi I get the following error message: "/private/tmp/1108151649.702522.hobix" 6L, 93C written *** parse error on line 6, col -1: `' *** use syntax: `hobix post weblog-name shortName' spacemanspiff:~ sam$ I tried creating the ~/Code/ruby/hobix/testblog/entries/firstPost.yaml file manually but then when I do hobix regen testblog I get this, similar, error: *** parse error on line 7, col -1: `' *** use syntax: `hobix regen weblog-name' spacemanspiff:~ sam$ Any suggestions? -Sam From wmorgan-hobix-is-the-way at masanjin.net Fri Feb 11 15:10:11 2005 From: wmorgan-hobix-is-the-way at masanjin.net (William Morgan) Date: Fri Feb 11 15:06:51 2005 Subject: Problems with hobix regen blahhg after new post In-Reply-To: <20050211200020.985C38E4@barclay.textdrive.com> References: <20050211200020.985C38E4@barclay.textdrive.com> Message-ID: <20050211201011.GC18638@masanjin.net> Excerpts from Sam MacCutchan's mail of 11 Feb 2005 (EST): > If I do hobix post testblog firstPost I am able to edit the post fine > in vi but then when I exit vi I get the following error message: > > "/private/tmp/1108151649.702522.hobix" 6L, 93C written > *** parse error on line 6, col -1: `' > *** use syntax: `hobix post weblog-name shortName' That typically happens to me when I mess up the indentation in the content or summary field. YAML is very picky about having two spaces in front of everything if you're using the ">" form. So double-check that. I've lost quite a few posts that way, which is irritating. Now I am sure to write out to backup files before I :wq. -- William From sam at sewm.org Fri Feb 11 15:26:26 2005 From: sam at sewm.org (Sam MacCutchan) Date: Fri Feb 11 15:23:02 2005 Subject: Problems with hobix regen blahhg after new post In-Reply-To: <20050211201011.GC18638@masanjin.net> Message-ID: <20050211202626.69807AE0@barclay.textdrive.com> On 11/2/2005, "William Morgan" wrote: >Excerpts from Sam MacCutchan's mail of 11 Feb 2005 (EST): >> If I do hobix post testblog firstPost I am able to edit the post fine >> in vi but then when I exit vi I get the following error message: >> >> "/private/tmp/1108151649.702522.hobix" 6L, 93C written >> *** parse error on line 6, col -1: `' >> *** use syntax: `hobix post weblog-name shortName' > >That typically happens to me when I mess up the indentation in the >content or summary field. YAML is very picky about having two spaces in >front of everything if you're using the ">" form. So double-check that. > >I've lost quite a few posts that way, which is irritating. Now I am sure >to write out to backup files before I :wq. Thanks William. This was exactly my problem. Now I am off to read up on YAML so as to avoid any future pitfalls :) -Sam From binaural at gmail.com Tue Feb 15 01:06:21 2005 From: binaural at gmail.com (Noah K Tilton) Date: Tue Feb 15 01:02:50 2005 Subject: my stupid blaahhhhhhggggguhhh Message-ID: <330d0233050214220643c60824@mail.gmail.com> Just thought y'all hobixerz might want to check out what I've done widem Hobixez stylez... not much, really, but it looks more like my old conventional blog; see, I have to maintain an outward appearance of presentability otherwise... well, it's no use explaining... hope you like it http://transplant.dyndns.org/sv THANMKYA! Noah From binaural at gmail.com Thu Feb 17 02:27:41 2005 From: binaural at gmail.com (nkt) Date: Thu Feb 17 02:24:24 2005 Subject: a question on newlines, linebreaks, or whatever Message-ID: <4214476D.40401@gmail.com> onanebriate the verbilly qime honolulunge gestickle prancie marvell worp dotcomic s'heel onanebriate the verbilly qime honolulunge gestickle prancie marvell worp dotcomic s'heel i want hobix/yaml to print the top example, and it/then print the bottom example. why does this occur? I have tried wrapping in both | and > Thanks, Noah From why at hobix.com Thu Feb 17 17:43:31 2005 From: why at hobix.com (why the lucky stiff) Date: Thu Feb 17 17:39:55 2005 Subject: a question on newlines, linebreaks, or whatever In-Reply-To: <4214476D.40401@gmail.com> References: <4214476D.40401@gmail.com> Message-ID: <42151E13.80100@hobix.com> nkt wrote: > i want hobix/yaml to print the top example, and it/then print the > bottom example. why does this occur? I have tried wrapping in both | > and > Hi, Noah. Peace and prosperity to you and your caribou. This is a RedCloth deal. Sounds like you are using RedCloth 3, which ignores single linebreaks and requires you to use
. Instead, just add to the lib/local.rb of your site: class RedCloth def hard_breaks; true; end end And you'll probably want to use "literal" mode in your YAML blog entries. Which is the pipe. _why From mark at threewordslong.com Thu Feb 17 20:20:09 2005 From: mark at threewordslong.com (Mark Reid) Date: Thu Feb 17 20:16:20 2005 Subject: Newline problem + other stuff Message-ID: <3B2031F1-814B-11D9-BCDE-000D9346895E@threewordslong.com> _why wrote: > This is a RedCloth deal. Sounds like you are using RedCloth 3, which > ignores single linebreaks and requires you to use
. Instead, > just > add to the lib/local.rb of your site: > > class RedCloth > def hard_breaks; true; end > end > > And you'll probably want to use "literal" mode in your YAML blog > entries. Which is the pipe. > I am also having problems with newlines in entries. I followed the suggestion above and added the "hard_breaks" line to the end of my local.rb file. Sure enough, the post (written using the "block" '|' YAML mode) now renders correctly on my site but if I revisit the post for editing it has been converted to "folded" '>' YAML mode and all of my line breaks have been doubled! What decides the format of the saved YAML post? I've also noticed that short lines written in "folded" mode get quoted and escaped and placed on a single line. Help! Mark. From binaural at gmail.com Sat Feb 19 15:47:46 2005 From: binaural at gmail.com (Noah K Tilton) Date: Sat Feb 19 15:44:05 2005 Subject: a question on newlines, linebreaks, or whatever In-Reply-To: <42151E13.80100@hobix.com> References: <4214476D.40401@gmail.com> <42151E13.80100@hobix.com> Message-ID: <330d0233050219124727b07852@mail.gmail.com> Thanks, _why; I love this piece of prefab sausage. Noah transplant.dyndns.org/sv On Thu, 17 Feb 2005 15:43:31 -0700, why the lucky stiff wrote: > nkt wrote: > > > i want hobix/yaml to print the top example, and it/then print the > > bottom example. why does this occur? I have tried wrapping in both | > > and > > > Hi, Noah. Peace and prosperity to you and your caribou. > > This is a RedCloth deal. Sounds like you are using RedCloth 3, which > ignores single linebreaks and requires you to use
. Instead, just > add to the lib/local.rb of your site: > > class RedCloth > def hard_breaks; true; end > end > > And you'll probably want to use "literal" mode in your YAML blog > entries. Which is the pipe. > > _why > _______________________________________________ > Hobix-is-the-way mailing list > Hobix-is-the-way@rubyforge.org > http://rubyforge.org/mailman/listinfo/hobix-is-the-way > From why at hobix.com Mon Feb 21 02:30:43 2005 From: why at hobix.com (why the lucky stiff) Date: Mon Feb 21 02:27:30 2005 Subject: Newline problem + other stuff In-Reply-To: <3B2031F1-814B-11D9-BCDE-000D9346895E@threewordslong.com> References: <3B2031F1-814B-11D9-BCDE-000D9346895E@threewordslong.com> Message-ID: <42198E23.5010903@hobix.com> Mark Reid wrote: > I am also having problems with newlines in entries. > > I followed the suggestion above and added the "hard_breaks" line to > the end of my local.rb file. Sure enough, the post (written using the > "block" '|' YAML mode) now renders correctly on my site but if I > revisit the post for editing it has been converted to "folded" '>' > YAML mode and all of my line breaks have been doubled! > > What decides the format of the saved YAML post? I've also noticed that > short lines written in "folded" mode get quoted and escaped and placed > on a single line. By default, YAML tries to determine a good fit for readability given your text. It's kind of hit-and-miss with Syck 0.45 (included with Ruby). Newer versions of Syck are getting a lot better. Still, you can force a certain block style by overriding the to_yaml_fold method. a = "test of literal block" def a.to_yaml_fold; '|'; end puts a.to_yaml --- | test of literal block Valid values are '|', '>' and '"'. _why From sl33p3r at free.fr Mon Feb 21 05:47:27 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Mon Feb 21 05:43:42 2005 Subject: Newline problem + other stuff In-Reply-To: <42198E23.5010903@hobix.com> References: <3B2031F1-814B-11D9-BCDE-000D9346895E@threewordslong.com> <42198E23.5010903@hobix.com> Message-ID: <1108982847.4219bc3fc8c09@imp2-q.free.fr> Quoting why the lucky stiff : > Still, you can force a certain block style by overriding the > to_yaml_fold method. > > a = "test of literal block" > def a.to_yaml_fold; '|'; end > puts a.to_yaml > > --- | > test of literal block > > Valid values are '|', '>' and '"'. Woaaaaa .... _why your're definitively the king of configurations !!!! Frederick Ros aka Sleeper -- sleeper@jabber.fr From lyle.johnson at gmail.com Tue Feb 22 11:32:50 2005 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Tue Feb 22 11:29:05 2005 Subject: Content Replication Plugin for Hobix? Message-ID: Frederick, Back in January (see http://rubyforge.org/pipermail/hobix-is-the-way/2005-January/000189.html) you mentioned that you'd developed a plugin that allows you to easily upload the blog content (via ftp) to your ISP. I assume that the plugin code was attached to your original message, but it looks like that got filtered out by the time it made it to the mailing list archives. Do you still have that code around somewhere, and if so, could you point me to it (or send it to me, whatever)? Thanks, Lyle From lyle.johnson at gmail.com Tue Feb 22 11:39:46 2005 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Tue Feb 22 11:35:58 2005 Subject: Lyle's del.icio.us bookmarks for Hobix Message-ID: All, For what it's worth, I've been digging through the hobix-is-the-way mailing list archives this morning and bookmarking a number of the more interesting posts along the way. This includes all of why's early posts about the various template types and how to customize them, plus various plugins that people have announced along the way. So here they are: http://del.icio.us/lyle/hobix Hope this proves useful, Lyle From mark at threewordslong.com Tue Feb 22 17:59:33 2005 From: mark at threewordslong.com (Mark Reid) Date: Tue Feb 22 17:55:25 2005 Subject: Getting entries by name or id Message-ID: <6A6E379B-8525-11D9-BDBC-000D9346895E@threewordslong.com> Hi ho hobixers, There's this thing I'd like to do. I don't think it should be very difficult given the infinite flexibility and general whiz-bangery of Hobix. I'm just not sure what way is the most tasty. On the sidebar of my (hypothetical) site I'd like to display the contents of the entry 'about/me'. If I edit that entry - to mention the extra head I've grown, for example - the contents of the sidebar should change appropriately. At the moment, I've added this to my `sidebar.html.quick`: sidebar: | It seems to work but is a little unwieldy. To make things a little neater, I factored out the `storage.load_entry(id)` bit into `local.rb`: module Hobix class Weblog def entry(id) storage.load_entry(id) end end Which changes the call in `sidebar.html.quick` to `weblog.entry('about/me').content.to_html`. Slightly better... Any thoughts on how else this can (or should) be done? Thanks, Mark. From lyle.johnson at gmail.com Wed Feb 23 22:52:55 2005 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Wed Feb 23 23:16:18 2005 Subject: Need help for adding new entry types Message-ID: I'm looking at this entry from the mailing list archives: http://rubyforge.org/pipermail/hobix-is-the-way/2004-September/000021.html and when I try to follow the example, I'm running into a snag: $ hobix regen akaa *** comparison of Array with Array failed *** use syntax: `hobix regen weblog-name' Here's what I've tried so far: * I copied the source code for the ArtPrint entry class into a file named artprint.rb and installed that file in my local directory. * I added the suggested line (" - local/artprint") to my hobix.yaml file's requires list. * I created a new entry (IroningBoard.yaml) in my entries/artwork subdirectory, with the contents of that entry file copied from the previously mentioned post. When that didn't work, I compared my artprint.rb to the Hobix entry.rb code and tried changing ArtPrint's to_yaml_property_map() method, which had been defined thusly: def to_yaml_property_map [ ['@title', :req], ['@by', :req], ['@created', :opt], ['@modified', :opt], ['@image', :req], ['@note', :opt] ] end to this: def property_map [ ['@title', :req, :text], ['@by', :req, :text], ['@created', :opt, :text], ['@modified', :opt, :text], ['@image', :req, :text], ['@note', :opt, :text] ] end Note the change in the method name, plus the thrid element in each of the property map entry arrays. But I still get the same error as before. I'm willing to debug this, but if someone already knows the answer, or can at least point me to a good starting point, I'd be grateful. Thanks, Lyle From binaural at gmail.com Wed Feb 23 13:44:51 2005 From: binaural at gmail.com (Noah K Tilton) Date: Thu Feb 24 00:33:14 2005 Subject: Newline problem + other stuff In-Reply-To: <1108982847.4219bc3fc8c09@imp2-q.free.fr> References: <3B2031F1-814B-11D9-BCDE-000D9346895E@threewordslong.com> <42198E23.5010903@hobix.com> <1108982847.4219bc3fc8c09@imp2-q.free.fr> Message-ID: <330d023305022310442ea1667d@mail.gmail.com> This is fine and good. I have done as you suggested with regard to getting RedCloth to obey linebreaking, _why, but it would seem now that when I use the |, my entries are printed with a blank line between each line of text, so that the output reads basically like this: " we must deal with huge matrices -- there is too much room in Hilbert space. This formulation led Feynman to speculate that a quantum computer would be able to perform certain tasks that are beyond the reach of any conceivable classical computer. (The quantum computer has no trouble simulating itself!) " Merci, Noah On Mon, 21 Feb 2005 11:47:27 +0100, Frederick Ros wrote: > Quoting why the lucky stiff : > > > Still, you can force a certain block style by overriding the > > to_yaml_fold method. > > > > a = "test of literal block" > > def a.to_yaml_fold; '|'; end > > puts a.to_yaml > > > > --- | > > test of literal block > > > > Valid values are '|', '>' and '"'. > > Woaaaaa .... _why your're definitively the king of configurations !!!! > > > Frederick Ros aka Sleeper -- sleeper@jabber.fr > _______________________________________________ > Hobix-is-the-way mailing list > Hobix-is-the-way@rubyforge.org > http://rubyforge.org/mailman/listinfo/hobix-is-the-way > From why at hobix.com Thu Feb 24 01:13:19 2005 From: why at hobix.com (why the lucky stiff) Date: Thu Feb 24 01:13:21 2005 Subject: Newline problem + other stuff In-Reply-To: <330d023305022310442ea1667d@mail.gmail.com> References: <3B2031F1-814B-11D9-BCDE-000D9346895E@threewordslong.com> <42198E23.5010903@hobix.com> <1108982847.4219bc3fc8c09@imp2-q.free.fr> <330d023305022310442ea1667d@mail.gmail.com> Message-ID: <403AE53C.2060006@hobix.com> Noah K Tilton wrote: >This is fine and good. I have done as you suggested with regard to >getting RedCloth to obey linebreaking, _why, but it would seem now >that when I use the |, my entries are printed with a blank line >between each line of text, so that the output reads basically like >this: > >" >we must deal with huge matrices -- there is too much room in Hilbert space. > >This formulation led Feynman to speculate that a quantum computer > >would be able to perform certain tasks that are beyond the reach of > >any conceivable classical computer. (The quantum computer has no >trouble simulating > >itself!) >" > > Is it wrapped in quotes like above? Or are you seeing something like this: content: | this is all one paragraph which is being split up for some reason. Which? _why From why at hobix.com Fri Feb 25 02:17:01 2005 From: why at hobix.com (why the lucky stiff) Date: Thu Feb 24 02:13:45 2005 Subject: getting ready for Hobix 0.4 Message-ID: <421ED0ED.9030505@hobix.com> I see these blog posts and these tutorials you guys are writing. And it breaks my heart that Hobix still has so many rough edges. Obviously, I need better documentation. However, a lot is still changing and I'm not sure where to start. (Note that the RDoc -- available as well through ri -- is very up-to-date.) I have two big obstacles right now that you guys can help with. 1. Quick Templates. I think Quick templates are awesome. I've never been happy with templating systems. But I love this. I like it because there's so few templates. I only have to write one template and then I can focus on customizations. RedHanded was primarily CSS. The biggest problem with Quick templates is that the default template is hidden in the Hobix source code. I really like the tutorial here: http://sl33p3r.free.fr/hobix-tutorials/hobix-tut-2-en.html (Great job, Frederick. Very, very, very cool!) The full template is there. I'd like to find a way to make it easy to refer to and dissect. Also, QuicktTemplates are sort of difficult. Especially if you don't know ERb or YAML. How do I explain them in a simple fashion in the tutorial on Hobix.com? Someone on this list wrote a great bunch of updates to the FAQ, but I can't seem to find them. 2. CGIs. Hobix 0.4 has a customized version of Tanaka Akira's WebApp, which allows me to run Hobix CGIs through Apache / lighttpd / WEBrick / etc. Issues to be resolved: - file permissions are important to Hobix. on RedHanded, I have a user group called 'redhanded' which 'why' and 'www' users belong to. none of the template or code directories are accessible to the group. only the 'htdocs' and 'entries' directories. that way Daigo and Babie can post through the web manager and I can post using ssh+vim as usual. these file permissions mean another big step in setting up hobix. any suggestions toward smoothing this out? - the cgi is a RESTful api with three branches currently: - RedCloth preview - comment system - blog management each of these subsystems can be toggled in the CGI script. i was considering having a commandline option which installed the CGI. should i just leave it up to the user to create it?? we're talking: require 'hobix/webapp' Hobix::WebApp.load :comments, :preview I'm hesistant to go with a default WEBrick one-liner up-and-running, because people start to use and rely upon it. And I'm not sure I want to litter the htdocs directory with CGIs and .htaccess files for every flavour of web server. Anyway... tired... working long hours on the Guide... _why From sl33p3r at free.fr Thu Feb 24 03:25:30 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Thu Feb 24 03:21:40 2005 Subject: getting ready for Hobix 0.4 In-Reply-To: <421ED0ED.9030505@hobix.com> References: <421ED0ED.9030505@hobix.com> Message-ID: <1109233530.421d8f7a163c2@imp3-q.free.fr> Quoting why the lucky stiff : Hi _why > I have two big obstacles right now that you guys can help with. > > 1. Quick Templates. > > I think Quick templates are awesome. I've never been happy with > templating systems. But I love this. I like it because there's so few > templates. I only have to write one template and then I can focus on > customizations. RedHanded was primarily CSS. I like them too .. I really like the kind of inheritance they provide .. > The biggest problem with Quick templates is that the default template is > hidden in the Hobix source code. I really like the tutorial here: > http://sl33p3r.free.fr/hobix-tutorials/hobix-tut-2-en.html (Great job, > Frederick. Very, very, very cool!) The full template is there. I'd > like to find a way to make it easy to refer to and dissect. The full template is essentially the one you published on the mailing list, and the Hobix tutorials are just a re-wrap of your explanations backed-up with sme source reading and personnal .. hum.. experience ;) So all the credits belong to you. Regarding the problem of the templates, why not to have a default skel (something like the /usr/share/hobix/skel) where would rely all the default template files. Then if user provides non-empty template file, they can be merged in the default template (expressed as an object) ..etc... Not sure I'm quite clear on that, but basically the idea would be that: - files from /usr/share/hobix/skel are loaded in memory. They represent the default templating of the blog - files from the blog skel directory are loaded and merged with the previous templating objects. - the result is used for the current blog Not sure this is easy, but from what I understand the template objects can be seen as hash in memory. Thus merging the default one with the custom one would look like merging 2 hashes ... > Also, QuicktTemplates are sort of difficult. Especially if you don't > know ERb or YAML. How do I explain them in a simple fashion in the > tutorial on Hobix.com? Someone on this list wrote a great bunch of > updates to the FAQ, but I can't seem to find them. IMHO, I think that as soon as you understand the basics of YAML and ERb, Quick Templates are not difficult: just to be seen as inheritance or hash merging .. Moreover YAML is simple enough to be understand even by non-techie people, and ERb can be expressed simply (and can be used to introduce people to Ruby by the way) > Issues to be resolved: > - file permissions are important to Hobix. on RedHanded, I have a user > group called 'redhanded' which 'why' and 'www' users belong to. none of > the template or code directories are accessible to the group. only the > 'htdocs' and 'entries' directories. that way Daigo and Babie can post > through the web manager and I can post using ssh+vim as usual. these > file permissions mean another big step in setting up hobix. any > suggestions toward smoothing this out? > - the cgi is a RESTful api with three branches currently: > - RedCloth preview > - comment system > - blog management > each of these subsystems can be toggled in the CGI script. i was > considering having a commandline option which installed the CGI. should > i just leave it up to the user to create it?? we're talking: > > require 'hobix/webapp' > Hobix::WebApp.load :comments, :preview > I'm not sure to understand all that, but please do not forget poor user that do not have their personnal web server (like me) and that basically upload their blog on their ISP's web server :) Frederick Ros aka Sleeper -- sleeper@jabber.fr From mark at threewordslong.com Thu Feb 24 16:31:23 2005 From: mark at threewordslong.com (Mark Reid) Date: Thu Feb 24 16:27:14 2005 Subject: getting ready for Hobix 0.4 In-Reply-To: <421ED0ED.9030505@hobix.com> References: <421ED0ED.9030505@hobix.com> Message-ID: <6E310378-86AB-11D9-BCEE-000D9346895E@threewordslong.com> On 25/02/2005, at 6:17 PM, why the lucky stiff wrote: > 1. Quick Templates. > > I think Quick templates are awesome. I heartily agree! > > The biggest problem with Quick templates is that the default template > is hidden in the Hobix source code. I agree again. My vote is with Frederick. I think pulling the default templates out of the source and putting them in skel is the way to go. Maybe all the default quick templates could go in a file called `skel/base.suffix.quick`. At the moment, several headers and footers I use across all sections have to be defined in my `hobix.yaml` which seems a strange place for it. This would have the advantage of making it easy for people to share templates that differ in structure from the hard-coded one without having to fiddling with hobix source or users' hobix.yaml files. My $0.022 (inc. 10% GST here in Oz) Mark. From why at hobix.com Thu Feb 24 16:49:18 2005 From: why at hobix.com (why the lucky stiff) Date: Thu Feb 24 16:45:27 2005 Subject: getting ready for Hobix 0.4 In-Reply-To: <6E310378-86AB-11D9-BCEE-000D9346895E@threewordslong.com> References: <421ED0ED.9030505@hobix.com> <6E310378-86AB-11D9-BCEE-000D9346895E@threewordslong.com> Message-ID: <421E4BDE.7060708@hobix.com> Mark Reid wrote: > Maybe all the default quick templates could go in a file called > `skel/base.suffix.quick`. Hhhyes. This is a really great idea! I like that quick-templates could be assigned for each suffix. _why From bg-hobix at infofiend.com Thu Feb 24 17:12:18 2005 From: bg-hobix at infofiend.com (Ben Giddings) Date: Thu Feb 24 17:08:01 2005 Subject: getting ready for Hobix 0.4 In-Reply-To: <421ED0ED.9030505@hobix.com> References: <421ED0ED.9030505@hobix.com> Message-ID: <421E5142.5050609@infofiend.com> why the lucky stiff wrote: > Issues to be resolved: > - file permissions are important to Hobix. on RedHanded, I have a user > group called 'redhanded' which 'why' and 'www' users belong to. none of > the template or code directories are accessible to the group. only the > 'htdocs' and 'entries' directories. that way Daigo and Babie can post > through the web manager and I can post using ssh+vim as usual. these > file permissions mean another big step in setting up hobix. any > suggestions toward smoothing this out? Well it seems obvious to me that the user installing it should be the owner of the weblog files. As for other users/groups, why not add some questions to the thingy that creates new weblogs? puts "Primary username for the weblogs? [why]" user = get_input("default" => detected_user) group = detected_group if not `ps ax`.index("apache").nil? apache_group = discover_apache_group() puts "Apache seems to be running. Group for the files? [apache]" group = get_input("default" => apache_group) end Then the files can be owned by why:apache with mode 664? What's the difficult part here? Deciding on the appropriate ownership of the files? Figuring out the group? > - the cgi is a RESTful api with three branches currently: > - RedCloth preview > - comment system > - blog management > each of these subsystems can be toggled in the CGI script. i was > considering having a commandline option which installed the CGI. should > i just leave it up to the user to create it?? we're talking: > > require 'hobix/webapp' > Hobix::WebApp.load :comments, :preview I'm not sure what you mean here. Do you mean that if you just want comments you'd have a CGI that's entire contents were: require 'hobix/webapp' Hobix::WebApp.load :comments If so, even if the CGI is super simple, it would be great if the installer created it for you, it would just need a quick quiz: features = [] puts "Do you want previews? [Y/n]" if $stdin.gets =~ /y/i features << :previews end puts "Do you want comments? [Y/n]" if $stdin.gets =~ /y/i features << :comments end puts "Do you want blog management? [Y/n]" if $stdin.gets =~ /y/i features << :blog end File.open("hobix.cgi") do |f| f.puts "require 'hobix/webapp'" f.puts "Hobix::WebApp.load(#{features.collect {|e| e.inspect }.join(', ')})" end > I'm hesistant to go with a default WEBrick one-liner up-and-running, > because people start to use and rely upon it. And I'm not sure I want > to litter the htdocs directory with CGIs and .htaccess files for every > flavour of web server. Anyway... tired... working long hours on the > Guide... How many flavours of web server do you really care about? Apache owns 70% of the market, IIS owns 20%. If you cover those two you should be set, right? http://news.netcraft.com/archives/web_server_survey.html Anyhow, sorry if I'm not understanding the issues, but clarify and I'll opine. :) Ben From why at hobix.com Thu Feb 24 18:13:52 2005 From: why at hobix.com (why the lucky stiff) Date: Thu Feb 24 18:10:00 2005 Subject: getting ready for Hobix 0.4 In-Reply-To: <421E5142.5050609@infofiend.com> References: <421ED0ED.9030505@hobix.com> <421E5142.5050609@infofiend.com> Message-ID: <421E5FB0.5040501@hobix.com> Ben Giddings wrote: > Well it seems obvious to me that the user installing it should be the > owner of the weblog files. As for other users/groups, why not add > some questions to the thingy that creates new weblogs? > > puts "Primary username for the weblogs? [why]" > user = get_input("default" => detected_user) > group = detected_group > if not `ps ax`.index("apache").nil? > apache_group = discover_apache_group() > puts "Apache seems to be running. Group for the files? [apache]" > group = get_input("default" => apache_group) > end > > Then the files can be owned by why:apache with mode 664? > > What's the difficult part here? Deciding on the appropriate ownership > of the files? Figuring out the group? Yah, figuring out the group. I like the above and will do the above. > require 'hobix/webapp' > Hobix::WebApp.load :comments Yes. > If so, even if the CGI is super simple, it would be great if the > installer created it for you, it would just need a quick quiz: Okay. Yes. That'll do. This is input. Which I wanted. _why From sl33p3r at free.fr Fri Feb 25 03:13:41 2005 From: sl33p3r at free.fr (Frederick Ros) Date: Fri Feb 25 03:09:49 2005 Subject: getting ready for Hobix 0.4 In-Reply-To: <421E5FB0.5040501@hobix.com> References: <421ED0ED.9030505@hobix.com> <421E5142.5050609@infofiend.com> <421E5FB0.5040501@hobix.com> Message-ID: <1109319221.421ede35c1435@imp3-q.free.fr> Quoting why the lucky stiff : > Okay. Yes. That'll do. This is input. Which I wanted. And by the way, would it be possible to integrate something along the patch I sent regarding the possibility to have "global site" plugins, and thus command line plugins ? Frederick Ros aka Sleeper -- sleeper@jabber.fr