From info at dev-null.be Wed May 2 08:40:40 2007 From: info at dev-null.be (info at dev-null.be) Date: Wed, 2 May 2007 14:40:40 +0200 (CEST) Subject: NoMethodError for sort_index in filesys.rb:215, something to do with 'created'? Message-ID: <33397.193.191.138.240.1178109640.squirrel@webmail.phonq.nl> Hi everyone, I'm having trouble getting my Hobix-blog up and running. I can create a blog (as should) but am unable to regen post or whatever. Hobix informs me of the following: @casper:/Library/WebServer/Documents/dev/hobix/blahg # hobix regen blahg *** Loading /Library/WebServer/Documents/dev/hobix/blahg/hobix.out.quick ++ Reloaded blog/theSixthBook ++ Reloaded blog/theFiftyThirdCalypso ++ Reloaded blog/theBokoMaruCalypso ++ Reloaded about/me /usr/local/lib/ruby/site_ruby/1.8/hobix/storage/filesys.rb:215:in `sort_index': undefined method `<=>' for nil:NilClass (NoMethodError) from /usr/local/lib/ruby/site_ruby/1.8/hobix/storage/filesys.rb:215:in `sort!' from /usr/local/lib/ruby/site_ruby/1.8/hobix/storage/filesys.rb:215:in `sort_index' from /usr/local/lib/ruby/site_ruby/1.8/hobix/storage/filesys.rb:207:in `load_index' from /usr/local/lib/ruby/site_ruby/1.8/hobix/storage/filesys.rb:265:in `find' from /usr/local/lib/ruby/site_ruby/1.8/hobix/weblog.rb:710:in `skel_yearly' from /usr/local/lib/ruby/site_ruby/1.8/hobix/weblog.rb:433:in `call' from /usr/local/lib/ruby/site_ruby/1.8/hobix/weblog.rb:433:in `build_pages' from /usr/local/lib/ruby/site_ruby/1.8/hobix/weblog.rb:428:in `loop' ... 7 levels... from /usr/local/lib/ruby/site_ruby/1.8/hobix/weblog.rb:579:in `regenerate' from /usr/local/lib/ruby/site_ruby/1.8/hobix/commandline.rb:256:in `regen_action' from /usr/local/bin//hobix:84:in `call' from /usr/local/bin//hobix:84 filesys.rb:215 gives this line of code: @index.sort! { |x,y| y[1].created <=> x[1].created } I'm guessing it has something to do with the "created"-tag in the yaml hobix reads. Any suggestions? Apparently I'm not the only one getting this error. I ran across an older mail in the archive describing the exact same error. It is yet unresolved. From mental at rydia.net Wed May 2 22:15:33 2007 From: mental at rydia.net (MenTaLguY) Date: Wed, 02 May 2007 22:15:33 -0400 Subject: NoMethodError for sort_index in filesys.rb:215, something to do with 'created'? In-Reply-To: <33397.193.191.138.240.1178109640.squirrel@webmail.phonq.nl> References: <33397.193.191.138.240.1178109640.squirrel@webmail.phonq.nl> Message-ID: <1178158533.22618.1.camel@localhost.localdomain> On Wed, 2007-05-02 at 14:40 +0200, info at dev-null.be wrote: > Apparently I'm not the only one getting this error. I ran across an older > mail in the archive describing the exact same error. It is yet unresolved. This often is a problem with manually-created posts which do not have a created: field set. It's one of the bugs preventing a final 0.5 from being released. Unfortunately, I've not had time to track it down. But I am aware of it. -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/20070502/15abda7e/attachment.bin From mental at rydia.net Wed May 2 22:17:42 2007 From: mental at rydia.net (MenTaLguY) Date: Wed, 02 May 2007 22:17:42 -0400 Subject: NoMethodError for sort_index in filesys.rb:215, something to do with 'created'? In-Reply-To: <33397.193.191.138.240.1178109640.squirrel@webmail.phonq.nl> References: <33397.193.191.138.240.1178109640.squirrel@webmail.phonq.nl> Message-ID: <1178158662.22618.4.camel@localhost.localdomain> The workaround, incidentally, is to add a created: field with a timestamp to about/me.yaml. Doing a 'hobix post about/me' _might_ also work. -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/20070502/b2ae8b99/attachment.bin From info at dev-null.be Fri May 4 10:06:12 2007 From: info at dev-null.be (info at dev-null.be) Date: Fri, 4 May 2007 16:06:12 +0200 (CEST) Subject: automagically add created tag to new posts Message-ID: <23021.193.191.138.240.1178287572.squirrel@webmail.phonq.nl> Hello, when creating a new post, the 'created tag' wasn't automagically added to the post-yaml (at least not in my case, using Hobix 0.5 from trunk). The omission of a 'created tag' results in an noMethoderror as mentioned in my previous post. I fixed the automatic adition of a created tag with the current date by adding an "entry.created = Time.now" in the post_action in commandline.rb, like this... 359 entry = entry_class.new 360 entry.author = @config['username'] 361 entry.created = Time.now It seems to do just the job. The noMethoderror resorting from the attempt to sort entries by the created tag when there is none (ergo nil) is of course not altered by this. greetings! From mental at rydia.net Thu May 10 20:30:49 2007 From: mental at rydia.net (MenTaLguY) Date: Thu, 10 May 2007 20:30:49 -0400 Subject: automagically add created tag to new posts In-Reply-To: <23021.193.191.138.240.1178287572.squirrel@webmail.phonq.nl> References: <23021.193.191.138.240.1178287572.squirrel@webmail.phonq.nl> Message-ID: <1178843450.5743.0.camel@localhost.localdomain> Thanks for following up on this. I haven't forgotten, but I've not had much time to spend on hobix the past few weeks. Your work will help me get this fixed sooner! -mental On Fri, 2007-05-04 at 16:06 +0200, info at dev-null.be wrote: > Hello, > > when creating a new post, the 'created tag' wasn't automagically added to > the post-yaml (at least not in my case, using Hobix 0.5 from trunk). The > omission of a 'created tag' results in an noMethoderror as mentioned in my > previous post. I fixed the automatic adition of a created tag with the > current date by adding an "entry.created = Time.now" in the post_action in > commandline.rb, like this... > > > 359 entry = entry_class.new > 360 entry.author = @config['username'] > 361 entry.created = Time.now > > It seems to do just the job. > > The noMethoderror resorting from the attempt to sort entries by the > created tag when there is none (ergo nil) is of course not altered by > this. > > greetings! > > _______________________________________________ > Hobix-is-the-way mailing list > Hobix-is-the-way at rubyforge.org > http://rubyforge.org/mailman/listinfo/hobix-is-the-way -------------- 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/20070510/2102f99f/attachment-0001.bin From t.fernagut at h0m3.be Sun May 20 06:07:22 2007 From: t.fernagut at h0m3.be (Thibaut Fernagut) Date: Sun, 20 May 2007 12:07:22 +0200 Subject: Migrate old blog to fresh hobix install Message-ID: <46501DDA.2070802@h0m3.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yo I got it working :-) Finaly . Now I have my old blog, how can I migrate all my blogposts to the new install ? What is the easiest way ? Cheers ! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGUB3aR6N46HXxiJERAupgAJ9mk5bZ7q0tAWrEyP/5NTH5PL0BygCdGfer 6pOMd9jHJ1EbuJY3rPze3sg= =SukT -----END PGP SIGNATURE----- From t.fernagut at h0m3.be Sun May 20 06:50:15 2007 From: t.fernagut at h0m3.be (Thibaut Fernagut) Date: Sun, 20 May 2007 12:50:15 +0200 Subject: Ok .. never mind the old entry's Message-ID: <465027E7.2080305@h0m3.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 :-) http://blog.h0m3.be/ <- my blog Q: How do I get the archive links to work ? When I click on the archive , I see the entry's .. but when I click on the actual post it says 404 Cheers ! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGUCfnR6N46HXxiJERAjirAKDDyxEvTOFOwG7rCMalPmMONr+/0wCffdpx 0TJlhQ+m+OjGdzjvVuVmwu8= =Eo9+ -----END PGP SIGNATURE----- From t.fernagut at h0m3.be Sun May 20 07:43:11 2007 From: t.fernagut at h0m3.be (Thibaut Fernagut) Date: Sun, 20 May 2007 13:43:11 +0200 Subject: Ok .. never mind the old entry's In-Reply-To: <465027E7.2080305@h0m3.be> References: <465027E7.2080305@h0m3.be> Message-ID: <4650344F.2020505@h0m3.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thibaut Fernagut wrote: > :-) > > http://blog.h0m3.be/ <- my blog > > Q: How do I get the archive links to work ? > When I click on the archive , I see the entry's .. but when I click on > the actual post it says 404 > > Cheers ! Same is for tags , I have enabled tags and comments : This is my hobix.yaml - --- !hobix.com,2004/weblog title: Unix For The Jilted Generation link: http://blog.h0m3.be/ tagline: nice, nice, very nice period: 00:60:00 authors: blokkie: name: Thibaut Fernagut url: /var/www/sites/blokkie/blog.h0m3.be/web/htdocs email: t.fernagut at h0m3.be you: name: the ghost of another hobix user-to-be url: http://hobix.com/ email: ghosty at hobixghostfriends.com linklist: - - hobix: http://hobix.com/ - - Richard M Stallman: http://www.stallman.org/ - - Cuddletech: http://www.cuddletech.com/blog/ - - Cosdie: http://www.cosdie.be/ - - GNU: http://www.gnu.org/ - - FSF: http://www.fsf.org/ sections: about: ignore: true sort_by: id requires: - - hobix/storage/filesys - - hobix/out/quick - - hobix/out/erb - - hobix/out/rss - - hobix/out/okaynews - - hobix/out/atom - - hobix/plugin/sections - - hobix/plugin/tags - - hobix/plugin/recent_comments But for some reason I had to manually create the dir structure : blokkie at h0m3 /var/www/sites/blokkie/blog.h0m3.be/web $ pwd /var/www/sites/blokkie/blog.h0m3.be/web blokkie at h0m3 /var/www/sites/blokkie/blog.h0m3.be/web $ tree . |-- entries | |-- Aramiska.yaml | |-- Tag_test.yaml | |-- index.hobix | `-- test.yaml |-- hobix.out.quick |-- hobix.yaml |-- htdocs | |-- 2007 | | |-- 05 | | | `-- index.html | | `-- index.html | |-- Aramiska.html | |-- Tag_test.html | |-- files | | |-- Blokkie.gif | | |-- Database....sql | | |-- H0M3_ebvba_Invoice23-2006-12-3.html | | |-- Songs | | | |-- 03 - behold.mp3 | | | |-- 04 - darkness2.mp3 | | | |-- 07 - Finished_angients.mp3 | | | |-- 08 - kicking.mp3 | | | |-- 09 - NIceNice1.mp3 | | | |-- 11 - Room.mp3 | | | |-- 12 - sweet1.mp3 | | | |-- 13 - sweet_bells.mp3 | | | `-- 15 - verify.mp3 | | |-- ass.ogg | | |-- blokkie.edj | | |-- bombom.rns | | |-- darkness2.ogg | | |-- defautl_site_css | | |-- grond.jpg | | |-- img_1714.jpg | | |-- invoice.html | | |-- logo_HOME.jpg | | |-- logo_HOME_old.jpg | | |-- p1010166.jpg | | |-- pattern_follow.jpg | | |-- screen_e17theme.png | | |-- screen_e17theme_borders.png | | |-- screenshot_final.png | | |-- sitefotos.tar.bz2 | | |-- test1.png | | |-- test2.mp3 | | |-- test2.png | | |-- test_2.mp3 | | |-- thunderbird.png | | |-- verify.ogg | | |-- zones.html | | `-- zshrc.txt | |-- hobix-default-entry.html | |-- images_site | | |-- 2EMlayer.png | | |-- Logo.png | | |-- _tam_EMdark.png | | |-- _tam_EMdark600.png | | |-- _tam_EMdark600_flip.gif | | |-- _tam_EMdark600_flip.png | | |-- _tam_EMdark800.png | | |-- logo-e.gif | | |-- p1000518.png | | |-- p320.png | | |-- p640.png | | |-- p640_pale.png | | `-- tammytuk.png | |-- index.atom | |-- index.html | |-- index.xml | |-- index.yaml | |-- site.css | |-- tags | | |-- blogging | | | `-- index.html | | `-- hobix | `-- test.html |-- site.css `-- skel |-- entry.html.quick |-- index.atom.atom |-- index.html.quick-summary |-- index.xml.rss |-- index.yaml.okaynews |-- monthly.html.quick-archive |-- section.html.quick-archive `-- yearly.html.quick-archive 11 directories, 76 files blokkie at h0m3 /var/www/sites/blokkie/blog.h0m3.be/web $ Could somebody help me here ? Cheers ! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGUDRPR6N46HXxiJERAiY8AJ9YOFvJ/WpLBJ8vfvQ+gBpQ1dZ6KwCghb7n 7idBSM4Lsa3va6as3Ms74Xo= =9m// -----END PGP SIGNATURE----- From splaestro at gmail.com Tue May 22 16:22:04 2007 From: splaestro at gmail.com (Brian C Young) Date: Tue, 22 May 2007 15:22:04 -0500 Subject: RedCloth stack overflow Message-ID: <465350EC.5050509@gmail.com> Hi all-- Has anyone encountered a stack overflow like the below when trying to post a new entry? My entry gets YAML-ized OK, but then when Hobix tries to apply the quick template to generate the HTML, it blows up. This seems to start to happen when an entry approaches about 5K in size, and has a fair amount of formatting--the one that is plaguing me at this point is a long bulleted list of items. The only dependable workaround I've found at this point is to make the entry shorter, or maybe remove some formatting (I generally don't bother with this approach). The root cause error is actually in RedCloth, as per the first part of the stack trace. The regexp that is overflowing appears to be BLOCKS_GROUP_RE (it shows up farther down the stack). I am using RedCloth v3.04, with Hobix v0.3b and Ruby 1.8.2. I know these are not the most recent version of either Hobix or Ruby, but Hobix v0.4 and later won't run on Windows due to the addition of the Lockfile library. This was the most stable setup to which I could revert. Any thoughts, better workarounds, bug fixes for RedCloth? Thanks. Brian c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/redcloth.rb:571:in `gsub!' c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/redcloth.rb:571:in `blocks' c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/redcloth.rb:276:in `to_html' (erb):52:in `load' c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/hobix/out/quick.rb:59:in `load' c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/hobix/weblog.rb:506:in `retouch' c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/hobix/weblog.rb:476:in `each' c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/hobix/weblog.rb:476:in `retouch' c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/hobix/weblog.rb:474:in `each' c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/hobix/weblog.rb:474:in `retouch' c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/hobix/weblog.rb:470:in `regenerate' c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/hobix/commandline.rb:224:in `post_action' c:/ruby-1.8.2/bin/hobix:64:in `call' c:/ruby-1.8.2/bin/hobix:64 c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/hobix/out/quick.rb:92:in `load': Error `Sta ck overflow in regexp matcher: /((?:^([#*> ])(?:[^\n]|\n+(?:\2|>)|\n(?!\n|\Z))+) )|((?:[^\n]+|\n+ +|\n(?![#*\n]|\Z))+)/m' in erb C:/Bri/ESR/ATST250EA/skel/entry.html.quick. (Hobix::Out::QuickError) from c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/hobix/weblog.rb:506:in `retouch' from c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/hobix/weblog.rb:476:in `each' from c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/hobix/weblog.rb:476:in `retouch' from c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/hobix/weblog.rb:474:in `each' from c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/hobix/weblog.rb:474:in `retouch' from c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/hobix/weblog.rb:470:in `regenerate' from c:/ruby-1.8.2/lib/ruby/site_ruby/1.8/hobix/commandline.rb:224:in `post_action' from c:/ruby-1.8.2/bin/hobix:64:in `call' from c:/ruby-1.8.2/bin/hobix:64 -- ------------------------------------------------------------------------ Brian C. Young ?Ignorance doesn't make stuff not exist.? --Bucky Katt