From mental at rydia.net Sun Oct 1 15:21:05 2006 From: mental at rydia.net (MenTaLguY) Date: Sun, 01 Oct 2006 15:21:05 -0400 Subject: Q: Hobix::Page#link versus Hobix::Entry#link Message-ID: <1159730465.13812.26.camel@localhost.localdomain> I've noticed that Hobix::Page#link returns a path without the domain, but Hobix::Entry#link returns a full URL with domain and everything. We should probably make these consistent, but which way to go? -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20061001/81fa6c90/attachment-0001.bin From mental at rydia.net Sun Oct 1 16:31:23 2006 From: mental at rydia.net (MenTaLguY) Date: Sun, 01 Oct 2006 16:31:23 -0400 Subject: 0.5 release nears -- last call In-Reply-To: <20060930071202.GA11226@power.luon.net> References: <1159566125.31624.5.camel@localhost.localdomain> <20060930071202.GA11226@power.luon.net> Message-ID: <1159734683.13812.37.camel@localhost.localdomain> On Sat, 2006-09-30 at 09:12 +0200, Paul van Tilburg wrote: > * The title of an entry is not processed by RedCloth or something > else. > If the title contains for example &, it will lead to invalid HTML. That's really an issue for the templates. We need to provide an 'h' method or similar to the way Rails does for views, to make it easy to html-quote non-formatted strings. > * I have found some small issues with the comments plugin since I > keep being > comment-spammed a lot: > - There is no spam protection, RedHanded seems to have some. I > think > we should release with some protection out of the box. The main thing is I don't feel comfortable implementing that myself, as I don't use hobix comments at all (yet). Part of me is inclined to release 0.5 without spam protection just so someone using the feature is motivated to send in a patch and we can do an 0.6 quick on the heels. :) > - Maybe it is wise to postprocess the comments with RedCloth in > filter_html > mode. I get a lot of spams containing something like: > > This is a foo you should > "http://paul.luon.net/journal/life/AnkorauxUnuEsperantpostajxo#comments" > line: 1 column: 18 source: "new Ajax.Request( > /journal/control/preview, {parameters: > Form.serialize('userComment'), onComplete: function(req) { > $('textilePreview').innerHTML = req.responseText }})"}] > > "new Ajax.Request( /journal/control/preview, {parameters: > Form.serialize('userComment'), onComplete: function(req) { > $('textilePreview').innerHTML = req.responseText }})" > > Line 1, Column 18, File "AnkorauxUnuEsperantpostajxo#comments" in > "http://paul.luon.net/journal/life" I think I've got this one more or less fixed. svn up and let me know. > > If not, I'll look at doing the 0.5 release next week. > > That would be great :) Well... sounds like we've still got some work to do. -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20061001/63eef5e3/attachment.bin From paul at luon.net Mon Oct 2 09:50:49 2006 From: paul at luon.net (Paul van Tilburg) Date: Mon, 2 Oct 2006 15:50:49 +0200 Subject: 0.5 release nears -- last call In-Reply-To: <1159734683.13812.37.camel@localhost.localdomain> References: <1159566125.31624.5.camel@localhost.localdomain> <20060930071202.GA11226@power.luon.net> <1159734683.13812.37.camel@localhost.localdomain> Message-ID: <20061002135049.GA5665@power.luon.net> On Sun, Oct 01, 2006 at 04:31:23PM -0400, MenTaLguY wrote: > On Sat, 2006-09-30 at 09:12 +0200, Paul van Tilburg wrote: > > * The title of an entry is not processed by RedCloth or something > > else. > > If the title contains for example &, it will lead to invalid HTML. > > That's really an issue for the templates. We need to provide an 'h' > method or similar to the way Rails does for views, to make it easy to > html-quote non-formatted strings. Ok, this can be noted as an ToDo item. Which reminds me, since all _why's projects, including this one is now fully hosted on code.whytheluckystiff.net, do we file bugreports/tickets in the built-in Trac or still in the RubyForge project. I would much prefer the first option! Even more so, if why can add the hook to be able to close tickets from svn commit logs (such as: "Added new method for foo (fixes #21)"). > > > * I have found some small issues with the comments plugin since I > > keep being comment-spammed a lot: > > - There is no spam protection, RedHanded seems to have some. I > > think we should release with some protection out of the box. > > The main thing is I don't feel comfortable implementing that myself, as > I don't use hobix comments at all (yet). I am using it also for the sake of trying it out. So far it works well, except for one page that seems to be very popular with comment spammers. That page is almost made unrenderable by the comments within two days, I hadn't expected that. > Part of me is inclined to release 0.5 without spam protection just so > someone using the feature is motivated to send in a patch and we can do > an 0.6 quick on the heels. :) ;) I think we can. I should have some more time later on to work on the plugins. > > - Maybe it is wise to postprocess the comments with RedCloth in > > filter_html mode. I get a lot of spams containing something like: > > > > This is a foo you should > {file: [...] > > > I think I've got this one more or less fixed. svn up and let me know. I'll try it out soon, will reply later. > > > If not, I'll look at doing the 0.5 release next week. > > > > That would be great :) > > Well... sounds like we've still got some work to do. Well, I think it's not that much. We can leave the comments support fixes for now and denote that it is preliminary in the ChangeLog. 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20061002/3552418b/attachment.bin From paul at luon.net Mon Oct 2 10:45:27 2006 From: paul at luon.net (Paul van Tilburg) Date: Mon, 2 Oct 2006 16:45:27 +0200 Subject: 0.5 release nears -- last call In-Reply-To: <20061002135049.GA5665@power.luon.net> References: <1159566125.31624.5.camel@localhost.localdomain> <20060930071202.GA11226@power.luon.net> <1159734683.13812.37.camel@localhost.localdomain> <20061002135049.GA5665@power.luon.net> Message-ID: <20061002144527.GC5665@power.luon.net> On Mon, Oct 02, 2006 at 03:50:49PM +0200, Paul van Tilburg wrote: > On Sun, Oct 01, 2006 at 04:31:23PM -0400, MenTaLguY wrote: > > > - The preview button is not working. I get a JavaScript error: > > > > > > [JavaScript Error: "invalid flag after regular expression" > > > {file: [...] > > > > > I think I've got this one more or less fixed. svn up and let me know. > > I'll try it out soon, will reply later. It is fixed! 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20061002/c1d2df25/attachment.bin From bowman at mazirian.com Mon Oct 2 13:47:26 2006 From: bowman at mazirian.com (Bradford R. Bowman) Date: Mon, 2 Oct 2006 13:47:26 -0400 Subject: 0.5 release nears -- last call In-Reply-To: <1159734683.13812.37.camel@localhost.localdomain> References: <1159566125.31624.5.camel@localhost.localdomain> <20060930071202.GA11226@power.luon.net> <1159734683.13812.37.camel@localhost.localdomain> Message-ID: <20061002174726.GD15122@mazirian.com> On Sun, Oct 01, 2006 at 04:31:23PM -0400, MenTaLguY wrote: > The main thing is I don't feel comfortable implementing that myself, as > I don't use hobix comments at all (yet). > > Part of me is inclined to release 0.5 without spam protection just so > someone using the feature is motivated to send in a patch and we can do > an 0.6 quick on the heels. :) What about using akismet, or is it silly to rely on a third party for the filtering? It just came to mind while reading this article: http://sas.sparklingstudios.com/articles/2006/10/01/how-to-protect-a-rails-application-against-spam-with-akismet I'd really like to avoid captchas if a mechanism is implemented. -- Bradford R. Bowman GnuPG public key [0x3EE183C6] Available at http://pgp.mit.edu -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20061002/24b357ec/attachment.bin From bowman at mazirian.com Thu Oct 5 22:22:08 2006 From: bowman at mazirian.com (Bradford R. Bowman) Date: Thu, 05 Oct 2006 22:22:08 -0400 Subject: 0.5 release nears -- last call In-Reply-To: <20061002174726.GD15122@mazirian.com> References: <1159566125.31624.5.camel@localhost.localdomain> <20060930071202.GA11226@power.luon.net> <1159734683.13812.37.camel@localhost.localdomain> <20061002174726.GD15122@mazirian.com> Message-ID: <1160101328.5766.57.camel@phandaal> On Mon, 2006-10-02 at 13:47 -0400, Bradford R. Bowman wrote: > What about using akismet, or is it silly to rely on a third party for > the filtering? It just came to mind while reading this article: Hearing no yeas or nays, I put together a super quick hack to test akismet's comment spam checking. It appears to work, but my blog is too insignificant and silly to have attracted any comment spam yet, so I can't exactly say it's effective. It's just a proof of concept thing, at this point but if anyone is interested in it, let me know. -- Bradford R. Bowman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20061005/d8bcd73d/attachment.bin From splaestro at gmail.com Thu Oct 5 22:58:26 2006 From: splaestro at gmail.com (Brian C Young) Date: Thu, 05 Oct 2006 22:58:26 -0400 Subject: Trying to get 0.5 running on Windoze (was: 0.5 release nears -- last call) In-Reply-To: <1159566125.31624.5.camel@localhost.localdomain> References: <1159566125.31624.5.camel@localhost.localdomain> Message-ID: <4525C652.2030809@gmail.com> MenTaLguY wrote: > With the latest checkins for RSS and Atom feeds, I've committed > everything I personally wanted for the 0.5 release. > > Does anyone else have any wishes for 0.5? > > If not, I'll look at doing the 0.5 release next week. > Hi mental et. al.-- I'm getting back to trying to get Hobix working with Ruby 1.8.5 on Windows. I now have the latest from SVN. I feel like it will take awhile, so I don't want to hold up the 0.5 release if you want to go ahead. I would like other eyes to look at an issue, however. The first problem I need to fix in order to get anywhere at all on Windows is in the initial bin/hobix script: --- hobix (revision 151) +++ hobix (working copy) @@ -58,13 +58,9 @@ puts "*** type `hobix help' and check your spelling." exit end - hobix_weblog = URI::parse( cmdline.config['weblogs'][ weblog ] ) - if hobix_weblog.scheme + hobix_weblog = URI::parse(URI::escape(cmdline.config['weblogs'][ weblog ])) + if hobix_weblog.scheme and cmdline.respond_to? "#{ hobix_weblog.scheme }_#{ cmd }_remote" mname = "#{ hobix_weblog.scheme }_#{ cmd }_remote" - unless cmdline.respond_to? mname - opts.unshift cmd - mname = hobix_weblog.scheme - end else hobix_weblog = Hobix::Weblog.load( cmdline.config['weblogs'][ weblog ] ) mname = "#{ cmd }_action" The problem is that parsing a Windows filepath with URI.parse (line 61) will return the drive letter in the scheme field (grrr!). The script as it is now assumes it's got something reasonable, like 'http', so it continues on its merry way 'til later on, when it realizes that '#{drive_letter}' is a worthless value for mname. The changes above will solve my problem, but I don't want to commit without asking: 1) will deleting lines 64-67 create problems? I can't figure out how these lines would ever have yielded a useful value in mname, but I could easily be overlooking something. 2) my changes are not particularly DRY; does anyone have a more elegant solution? BTW, all this business with the _remote methods seems to have been added by _why in v0.4 to support remote posting and editing, etc. Pretty cool; has anyone (else) actually used these? If so, what is the server-side agent that receives these requests? Thanks. ------------------------------------------------------------------------ Brian C. Young ?...the depth of human sinfulness is expressed in the way in which human beings deceive themselves into believing that the defense of, or commitment to, their own people requires the harm of other people.? --Duane K. Friesen From paul at luon.net Fri Oct 6 17:19:56 2006 From: paul at luon.net (Paul van Tilburg) Date: Fri, 6 Oct 2006 23:19:56 +0200 Subject: 0.5 release nears -- last call In-Reply-To: <1160101328.5766.57.camel@phandaal> References: <1159566125.31624.5.camel@localhost.localdomain> <20060930071202.GA11226@power.luon.net> <1159734683.13812.37.camel@localhost.localdomain> <20061002174726.GD15122@mazirian.com> <1160101328.5766.57.camel@phandaal> Message-ID: <20061006211956.GA4995@power.luon.net> On Thu, Oct 05, 2006 at 10:22:08PM -0400, Bradford R. Bowman wrote: > On Mon, 2006-10-02 at 13:47 -0400, Bradford R. Bowman wrote: > > > What about using akismet, or is it silly to rely on a third party for > > the filtering? It just came to mind while reading this article: > > Hearing no yeas or nays, I put together a super quick hack to test > akismet's comment spam checking. It appears to work, but my blog is too > insignificant and silly to have attracted any comment spam yet, so I > can't exactly say it's effective. I have a post page that is spammed 40x on a daily basis, so I would very much like to test it. > It's just a proof of concept thing, > at this point but if anyone is interested in it, let me know. I'm interested... :) 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20061006/ae3695d2/attachment.bin From bowman at mazirian.com Sun Oct 8 13:06:13 2006 From: bowman at mazirian.com (Bradford R. Bowman) Date: Sun, 8 Oct 2006 13:06:13 -0400 Subject: 0.5 release nears -- last call In-Reply-To: <20061006211956.GA4995@power.luon.net> References: <1159566125.31624.5.camel@localhost.localdomain> <20060930071202.GA11226@power.luon.net> <1159734683.13812.37.camel@localhost.localdomain> <20061002174726.GD15122@mazirian.com> <1160101328.5766.57.camel@phandaal> <20061006211956.GA4995@power.luon.net> Message-ID: <20061008170613.GA21422@mazirian.com> On Fri, Oct 06, 2006 at 11:19:56PM +0200, Paul van Tilburg wrote: > > On Mon, 2006-10-02 at 13:47 -0400, Bradford R. Bowman wrote: > > [...] I put together a super quick hack to test > > akismet's comment spam checking. > I'm interested... :) Ok, here is a diff for hobix/facets/comments.rb: Index: lib/hobix/facets/comments.rb =================================================================== --- lib/hobix/facets/comments.rb (revision 151) +++ lib/hobix/facets/comments.rb (working copy) @@ -54,11 +54,37 @@ c.ipaddress = app.remote_addr end - # Save the comment, upgen - @weblog.storage.append_to_attachment( entry_id, 'comments', comment ) - @weblog.regenerate :update - - # Redirect + # A quick hack to try akismet content spam checking + + if @weblog.requires.detect{ |i| i['hobix/plugin/akismet'] } + @akismet = Akismet.new(@weblog.link, AkismetKey.key) + if @akismet.verifyAPIKey + if @akismet.commentCheck( + app.remote_addr, # remote IP + app.get_request_header('User-Agent'), # user agent + app.get_request_header('Referer'), # http referer + '', # permalink + 'comment', # comment type + app._POST['hobix_comment:author'].to_s, # author name + '', # author email + '', # author url + app._POST['hobix_comment:comment'].to_s, # comment text + {}) # other + app.puts( "Sorry, that smelled like spam. If wasn't meant to, go back and try again" ) + return true + end + else + # If the key does not verify, post the comment + # but note the failure in the apache error logs. + $stderr.puts( "Hobix: akismet apikey did not verify." ) + end + end + + # Save the comment, upgen + @weblog.storage.append_to_attachment( entry_id, 'comments', comment ) + @weblog.regenerate :update + + # Redirect link = @weblog.output_entry_map[entry_id] app.setup_redirection( 302, @weblog.expand_path( link[:page].link ) ) return true And I have attached my test plugin (hobix/plugin/akismet.rb) I have no idea how effective akismet is, but I see that it's used by wordpress, typo and now mephisto and others. Also, I'm not sure how this should really be implemented in hobix. -- Bradford R. Bowman GnuPG public key [0x3EE183C6] Available at http://pgp.mit.edu -------------- next part -------------- # Just a quick hack to test akismet as I didn't # feel like rewriting the Akismet class to make it # work as a proper plugin. # Add this file to the hobix/plugins/ # In hobix.yaml add: # - hobix/plugin/akismet: # apiKey: # # You can obtain a free akismet api key # By registering a user account at wordpress.com # See http://www.akismet.com module Hobix class AkismetKey < BasePlugin def initialize(weblog, params = {}) raise %{The Akismet plugin is not configured. See hobix/plugin/akismet.rb.} unless params.member?("apiKey") @@key = params["apiKey"] #TODO raise error if no such parameter end def self.key; @@key; end end end # Akismet # # Author:: David Czarnecki # Copyright:: Copyright (c) 2005 - David Czarnecki # License:: BSD # Modified by Dieter Komendera, Sparkling Studios: # append blog= to data string (Akismet said it is required) # changed require 'net/HTTP' to require 'net/http' (to work for me unter GNU/Linux) class Akismet require 'net/http' require 'uri' STANDARD_HEADERS = { 'User-Agent' => 'Akismet Ruby API/1.0', 'Content-Type' => 'application/x-www-form-urlencoded' } # Instance variables @apiKey @blog @verifiedKey @proxyPort = nil @proxyHost = nil # Create a new instance of the Akismet class # # apiKey # Your Akismet API key # blog # The blog associated with your api key def initialize(blog, apiKey) @apiKey = apiKey @blog = blog @verifiedKey = false end # Set proxy information # # proxyHost # Hostname for the proxy to use # proxyPort # Port for the proxy def setProxy(proxyHost, proxyPort) @proxyPort = proxyPort @proxyHost = proxyHost end # Call to check and verify your API key. You may then call the #hasVerifiedKey method to see if your key has been validated. def verifyAPIKey() http = Net::HTTP.new('rest.akismet.com', 80, @proxyHost, @proxyPort) path = '/1.1/verify-key' data="key=#{@apiKey}&blog=#{@blog}" resp, data = http.post(path, data, STANDARD_HEADERS) @verifiedKey = (data == "valid") end # Returns true if the API key has been verified, false otherwise def hasVerifiedKey() return @verifiedKey end # Internal call to Akismet. Prepares the data for posting to the Akismet service. # # akismet_function # The Akismet function that should be called # user_ip (required) # IP address of the comment submitter. # user_agent (required) # User agent information. # referrer (note spelling) # The content of the HTTP_REFERER header should be sent here. # permalink # The permanent location of the entry the comment was submitted to. # comment_type # May be blank, comment, trackback, pingback, or a made up value like "registration". # comment_author # Submitted name with the comment # comment_author_email # Submitted email address # comment_author_url # Commenter URL. # comment_content # The content that was submitted. # Other server enviroment variables # In PHP there is an array of enviroment variables called $_SERVER which contains information about the web server itself as well as a key/value for every HTTP header sent with the request. This data is highly useful to Akismet as how the submited content interacts with the server can be very telling, so please include as much information as possible. def callAkismet(akismet_function, user_ip, user_agent, referrer, permalink, comment_type, comment_author, comment_author_email, comment_author_url, comment_content, other) http = Net::HTTP.new("#{@apiKey}.rest.akismet.com", 80, @proxyHost, @proxyPort) path = "/1.1/#{akismet_function}" data = "blog=#{@blog}&user_ip=#{user_ip}&user_agent=#{user_agent}&referrer=#{referrer}&permalink=#{permalink}&comment_type=#{comment_type}&comment_author=#{comment_author}&comment_author_email=#{comment_author_email}&comment_author_url=#{comment_author_url}&comment_content=#{comment_content}" if (other != nil) other.each_pair {|key, value| data.concat("&#{key}=#{value}")} end resp, data = http.post(path, data, STANDARD_HEADERS) return (data != "false") end protected :callAkismet # This is basically the core of everything. This call takes a number of arguments and characteristics about the submitted content and then returns a thumbs up or thumbs down. Almost everything is optional, but performance can drop dramatically if you exclude certain elements. # # user_ip (required) # IP address of the comment submitter. # user_agent (required) # User agent information. # referrer (note spelling) # The content of the HTTP_REFERER header should be sent here. # permalink # The permanent location of the entry the comment was submitted to. # comment_type # May be blank, comment, trackback, pingback, or a made up value like "registration". # comment_author # Submitted name with the comment # comment_author_email # Submitted email address # comment_author_url # Commenter URL. # comment_content # The content that was submitted. # Other server enviroment variables # In PHP there is an array of enviroment variables called $_SERVER which contains information about the web server itself as well as a key/value for every HTTP header sent with the request. This data is highly useful to Akismet as how the submited content interacts with the server can be very telling, so please include as much information as possible. def commentCheck(user_ip, user_agent, referrer, permalink, comment_type, comment_author, comment_author_email, comment_author_url, comment_content, other) return callAkismet('comment-check', user_ip, user_agent, referrer, permalink, comment_type, comment_author, comment_author_email, comment_author_url, comment_content, other) end # This call is for submitting comments that weren't marked as spam but should have been. It takes identical arguments as comment check. # The call parameters are the same as for the #commentCheck method. def submitSpam(user_ip, user_agent, referrer, permalink, comment_type, comment_author, comment_author_email, comment_author_url, comment_content, other) callAkismet('submit-spam', user_ip, user_agent, referrer, permalink, comment_type, comment_author, comment_author_email, comment_author_url, comment_content, other) end # This call is intended for the marking of false positives, things that were incorrectly marked as spam. It takes identical arguments as comment check and submit spam. # The call parameters are the same as for the #commentCheck method. def submitHam(user_ip, user_agent, referrer, permalink, comment_type, comment_author, comment_author_email, comment_author_url, comment_content, other) callAkismet('submit-ham', user_ip, user_agent, referrer, permalink, comment_type, comment_author, comment_author_email, comment_author_url, comment_content, other) end end -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20061008/5bb9765e/attachment-0001.bin From undees at gmail.com Sun Oct 8 22:55:51 2006 From: undees at gmail.com (Ian Dees) Date: Sun, 8 Oct 2006 19:55:51 -0700 Subject: Themes and pending 0.5 release Message-ID: How different is the stock 0.5 theme from 0.4? IE has a rendering bug that shifts the blog area down past the end of the sidebar (its horizontal size/position are correct; it's just the vertical position that's off). The problem seems to be an argument between dayHeader and entry; when I get rid of entry's padding-left space, the issue goes away (but then, of course, the dayHeader and entry don't line up as prettily, which I'm willing to live with foisting on my IE viewers for now). From paul at luon.net Mon Oct 9 11:34:55 2006 From: paul at luon.net (Paul van Tilburg) Date: Mon, 9 Oct 2006 17:34:55 +0200 Subject: 0.5 release nears -- last call In-Reply-To: <20061008170613.GA21422@mazirian.com> References: <1159566125.31624.5.camel@localhost.localdomain> <20060930071202.GA11226@power.luon.net> <1159734683.13812.37.camel@localhost.localdomain> <20061002174726.GD15122@mazirian.com> <1160101328.5766.57.camel@phandaal> <20061006211956.GA4995@power.luon.net> <20061008170613.GA21422@mazirian.com> Message-ID: <20061009153455.GD4477@power.luon.net> On Sun, Oct 08, 2006 at 01:06:13PM -0400, Bradford R. Bowman wrote: > On Fri, Oct 06, 2006 at 11:19:56PM +0200, Paul van Tilburg wrote: > > > On Mon, 2006-10-02 at 13:47 -0400, Bradford R. Bowman wrote: > > > [...] I put together a super quick hack to test > > > akismet's comment spam checking. > > > I'm interested... :) > > Ok, here is a diff for hobix/facets/comments.rb: > [...] > And I have attached my test plugin (hobix/plugin/akismet.rb) > > I have no idea how effective akismet is, but I see that it's used by > wordpress, typo and now mephisto and others. Also, I'm not sure how > this should really be implemented in hobix. Well, I added it to my Hobix almost as-is and it works fine. Bounced all 6 spam comments already. Maybe some parts are a bit 'unhobixish', but I can work it out. Mental, what do you think, include it for 0.5 or wait for post 0.(>= 5) ? 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20061009/d4d43f3e/attachment.bin From why at hobix.com Mon Oct 9 14:44:39 2006 From: why at hobix.com (why the lucky stiff) Date: Mon, 9 Oct 2006 13:44:39 -0500 Subject: Rebooting Hobix (with Ferret and Camping) Message-ID: <20061009184439.GG13218@lstsv-3264.layeredtech.com> Friends of Hobix, assorted coders in distant lands and species: come out, come out wherever you are! [...] You who? Hobix is way too big and wrong for what it does. So, here's the plan: * Start over from scratch. I'm not very far, yet. But: http://code.whytheluckystiff.net/svn/hobix/branches/proto-bix/ * Your old entries are fine, they will be preserved. * Skel, hobix.yaml, and plugins will be completely different. * The indexing is now done with Ferret, which is much, much faster and better. (Yeah: Ferret+YAML is awesome and what Hobix should have always been!) * All dynamic web stuff will be done with Camping rather than WebApp. Quick templates are cool, but Markaby is great, too. I'm thinking of making a hybrid. Like you can setup blocks that override sections of the template. For example, this YAML file: entries: | <% entries.each_day do |day, day_entries| %> <+ day_header +> <% day_entries.each do |entry| %> <+ entry +> <% end %> <% end %> entry: |
<+ entry_title +> <+ entry_content +>
Becomes: page.entries do entries.each_day do |day, day_entries| page.day_header day_entries.each do |entry| page.entry end end end page.entry do div.entry do page.entry_title page.entry_content end div.entry_footer { page.entry_footer } end Obviously lots to do, but if we keep it small we can get this kicked out quick. Any things that you found essential in the original Hobix? _why From splaestro at gmail.com Mon Oct 9 21:27:00 2006 From: splaestro at gmail.com (Brian C Young) Date: Mon, 09 Oct 2006 21:27:00 -0400 Subject: Rebooting Hobix (with Ferret and Camping) In-Reply-To: <20061009184439.GG13218@lstsv-3264.layeredtech.com> References: <20061009184439.GG13218@lstsv-3264.layeredtech.com> Message-ID: <452AF6E4.2070100@gmail.com> why the lucky stiff wrote: > Friends of Hobix, assorted coders in distant lands and species: come out, come > out wherever you are! [...] You who? > > Hobix is way too big and wrong for what it does. The tailor himself emerges to propose not so much an altered white pantsuit, but rather a completely new set of clothes for all of us to wear! Will it be a frilly fuchsia tuxedo? Or rhinestone-studded coveralls? Regardless, it's likely to be shiny... > So, here's the plan: > > * Start over from scratch. > > * Your old entries are fine, they will be preserved. > > * Skel, hobix.yaml, and plugins will be completely different. > > * All dynamic web stuff will be done with Camping rather than > WebApp. > So... very good to know old entries can be regen'd; how old? Most of my blogs were created using v0.3b. Will it still be possible to override skel templates in hobix.yaml, or will there be some other way? Re: Camping, how dynamic is dynamic? Will the model still involve generating static output which can be transferred to a server where Ruby does not live? > Quick templates are cool, but Markaby is great, too. I'm thinking of making a > hybrid. Like you can setup blocks that override sections of the template. > This looks very cool. > Obviously lots to do, but if we keep it small we can get this kicked out quick. > Any things that you found essential in the original Hobix? As long as there's a clear migration path for old entries (and other stuff as above), I say go. Others would likely nominate measures to defeat comment spam (see the recent exchange re: using akismet). So, folks, do we abandon the alterations to the pantsuit known as 0.5, or do we still need something to ward off autumn's chill for the time being? ------------------------------------------------------------------------ Brian C. Young ?...the depth of human sinfulness is expressed in the way in which human beings deceive themselves into believing that the defense of, or commitment to, their own people requires the harm of other people.? --Duane K. Friesen From mental at rydia.net Tue Oct 10 19:32:32 2006 From: mental at rydia.net (MenTaLguY) Date: Tue, 10 Oct 2006 19:32:32 -0400 Subject: 0.5 release nears -- last call In-Reply-To: <20061009153455.GD4477@power.luon.net> References: <1159566125.31624.5.camel@localhost.localdomain> <20060930071202.GA11226@power.luon.net> <1159734683.13812.37.camel@localhost.localdomain> <20061002174726.GD15122@mazirian.com> <1160101328.5766.57.camel@phandaal> <20061006211956.GA4995@power.luon.net> <20061008170613.GA21422@mazirian.com> <20061009153455.GD4477@power.luon.net> Message-ID: <1160523152.5602.0.camel@localhost.localdomain> On Mon, 2006-10-09 at 17:34 +0200, Paul van Tilburg wrote: > Well, I added it to my Hobix almost as-is and it works fine. Bounced all > 6 spam comments already. Maybe some parts are a bit 'unhobixish', but I > can work it out. > Mental, what do you think, include it for 0.5 or wait for post 0.(>= 5) ? I say go for it. I'm still busy getting ready for Small Press Expo. -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20061010/68cdfab3/attachment.bin From mental at rydia.net Tue Oct 10 19:39:02 2006 From: mental at rydia.net (MenTaLguY) Date: Tue, 10 Oct 2006 19:39:02 -0400 Subject: Themes and pending 0.5 release In-Reply-To: References: Message-ID: <1160523542.5602.5.camel@localhost.localdomain> On Sun, 2006-10-08 at 19:55 -0700, Ian Dees wrote: > How different is the stock 0.5 theme from 0.4? IE has a rendering bug > that shifts the blog area down past the end of the sidebar (its > horizontal size/position are correct; it's just the vertical position > that's off). > > The problem seems to be an argument between dayHeader and entry; when > I get rid of entry's padding-left space, the issue goes away (but > then, of course, the dayHeader and entry don't line up as prettily, > which I'm willing to live with foisting on my IE viewers for now). The problem is still present in trunk, unfortunately removing the padding from the .entry rule didn't fix it for me. Any other suggestions? I've got a live web site where this is kind of a major issue actually, and no time to redo the template majorly. -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20061010/4b7f478a/attachment.bin From mental at rydia.net Tue Oct 10 19:48:59 2006 From: mental at rydia.net (MenTaLguY) Date: Tue, 10 Oct 2006 19:48:59 -0400 Subject: Rebooting Hobix (with Ferret and Camping) In-Reply-To: <452AF6E4.2070100@gmail.com> References: <20061009184439.GG13218@lstsv-3264.layeredtech.com> <452AF6E4.2070100@gmail.com> Message-ID: <1160524139.5602.11.camel@localhost.localdomain> On Mon, 2006-10-09 at 21:27 -0400, Brian C Young wrote: > So, folks, do we abandon the alterations to the pantsuit known as 0.5, > or do we still need something to ward off autumn's chill for the time being? I say let's go ahead with an 0.5 release, just so we have an actual release to tide people (i.e. me) over until neu-bix is ready. Just let's not do any real heavy work on trunk anymore. -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20061010/08cefa48/attachment.bin From mental at rydia.net Tue Oct 10 19:56:14 2006 From: mental at rydia.net (MenTaLguY) Date: Tue, 10 Oct 2006 19:56:14 -0400 Subject: Rebooting Hobix (with Ferret and Camping) In-Reply-To: <20061009184439.GG13218@lstsv-3264.layeredtech.com> References: <20061009184439.GG13218@lstsv-3264.layeredtech.com> Message-ID: <1160524575.5602.17.camel@localhost.localdomain> On Mon, 2006-10-09 at 13:44 -0500, why the lucky stiff wrote: > Becomes: > > page.entries do > entries.each_day do |day, day_entries| > page.day_header > day_entries.each do |entry| > page.entry > end > end > end So, calling the method with a block actually defines it (via method_missing, I guess)? Clever. Using Markaby should also help to address the difficulties we've had with HTML escaping. -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20061010/a63fcb6f/attachment.bin From why at hobix.com Tue Oct 10 20:07:36 2006 From: why at hobix.com (why the lucky stiff) Date: Tue, 10 Oct 2006 19:07:36 -0500 Subject: Rebooting Hobix (with Ferret and Camping) In-Reply-To: <1160524139.5602.11.camel@localhost.localdomain> References: <20061009184439.GG13218@lstsv-3264.layeredtech.com> <452AF6E4.2070100@gmail.com> <1160524139.5602.11.camel@localhost.localdomain> Message-ID: <20061011000736.GO13218@lstsv-3264.layeredtech.com> On Tue, Oct 10, 2006 at 07:48:59PM -0400, MenTaLguY wrote: > I say let's go ahead with an 0.5 release, just so we have an actual > release to tide people (i.e. me) over until neu-bix is ready. Just > let's not do any real heavy work on trunk anymore. Yeah, do it, don't stop the commotion. I have missed the last several months of email since Mailman had me marked as BOUNCING. And if you and Paul and anyone else end up preferring 0.5, then I can call mine a branch and give it a different name. _why From paul at luon.net Wed Oct 11 02:30:05 2006 From: paul at luon.net (Paul van Tilburg) Date: Wed, 11 Oct 2006 08:30:05 +0200 Subject: Rebooting Hobix (with Ferret and Camping) In-Reply-To: <20061011000736.GO13218@lstsv-3264.layeredtech.com> References: <20061009184439.GG13218@lstsv-3264.layeredtech.com> <452AF6E4.2070100@gmail.com> <1160524139.5602.11.camel@localhost.localdomain> <20061011000736.GO13218@lstsv-3264.layeredtech.com> Message-ID: <20061011063004.GM14493@power.luon.net> On Tue, Oct 10, 2006 at 07:07:36PM -0500, why the lucky stiff wrote: > On Tue, Oct 10, 2006 at 07:48:59PM -0400, MenTaLguY wrote: > > I say let's go ahead with an 0.5 release, just so we have an actual > > release to tide people (i.e. me) over until neu-bix is ready. Just > > let's not do any real heavy work on trunk anymore. > > Yeah, do it, don't stop the commotion. I have missed the last several > months of email since Mailman had me marked as BOUNCING. Heh, that may explain your silence. I thought you had abandoned your child :) Welcome back! > And if you and Paul and anyone else > end up preferring 0.5, then I can call mine a branch and give it a > different name. Well, I think that up until 0.5 has clearly shown what is possible, and how it can be done differently than all the other blog software out there. But a few things, like the small dynamic part, and some user-friendliness issues have been bugging me, so a rewrite could do Hobix justice. 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 undees at gmail.com Wed Oct 11 14:29:11 2006 From: undees at gmail.com (Ian Dees) Date: Wed, 11 Oct 2006 11:29:11 -0700 Subject: Themes and pending 0.5 release Message-ID: Hi, MenTaL. > The problem is still present in trunk, unfortunately removing the > padding from the .entry rule didn't fix it for me. Whoops, sorry about that. I took kind of a circuitous route to getting my blog working in IE. I had kind of smooshed together the Hobix theme and another one, and _after that_ is when changing the entry padding worked for me. I had assumed it would work on a stock site.css as well. But as you correctly point out, it doesn't. Fortunately, I was able to get the stock one to work after a bit of fiddling. In the rule for #blog, changing the padding rule to "padding:20px 2px 20px 2px;" worked for me. (If we're going to use this in the real thing, I'd recommend hiding it behind some kind of browser hack, so we don't change anything for Firefox/Safari/Opera.) If anyone is morbidly curious about the wrong-headed, complicated way involving smooshing two themes together and removing stuff until IE stops breaking, see here: http://www.ian.dees.name/site.css. --Ian From csimonut at gmail.com Sat Oct 21 06:03:48 2006 From: csimonut at gmail.com (Christian Simonutti) Date: Sat, 21 Oct 2006 12:03:48 +0200 (CEST) Subject: patch for get_months() - return only months with an entry Message-ID: <50851.62.178.208.147.1161425028.squirrel@localdomain.at> Hi, get_months should return only months which contain an entry: # Returns an Array of Arrays representing the months which contain # +entries+ but it returns all months between the first and the last entry. I modified it to return only months which contain an entry. Simon -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: patch_filesys.rb.txt Url: http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20061021/2c63c5b7/attachment.txt From mental at rydia.net Sun Oct 22 19:27:04 2006 From: mental at rydia.net (MenTaLguY) Date: Sun, 22 Oct 2006 19:27:04 -0400 Subject: patch for get_months() - return only months with an entry In-Reply-To: <50851.62.178.208.147.1161425028.squirrel@localdomain.at> References: <50851.62.178.208.147.1161425028.squirrel@localdomain.at> Message-ID: <1161559624.32463.4.camel@localhost.localdomain> On Sat, 2006-10-21 at 12:03 +0200, Christian Simonutti wrote: > I modified it to return only months which contain an entry. Thankyou! Your patch has been applied! -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20061022/1396b8d3/attachment.bin