From transfire at gmail.com Thu Jun 1 00:02:46 2006 From: transfire at gmail.com (TRANS) Date: Thu, 1 Jun 2006 00:02:46 -0400 Subject: [Nitro] Reap Progress Message-ID: <4b6f054f0605312102w69c15a54p7ef9ac140f30a4b6@mail.gmail.com> I've done quite a bit of work on Reap these last couple of weeks. The changes are extensive. The overall design is completely different (although the underlying tasks remain the same). The last couple days I went ahead laid the ground work for a complete task/build system. So, a la Rake, one can now create a Reapfile (vs a Rakefile) and do all the same sorts of things. Of course it's not quite as filled out as Rake is yet, but the fundamentals are all there. So the reason I'm writing is becuase I really need to move on to some other work. The next verion of Facets is just about ready and I want to upload it to devlab so as to help open up development to others as I take a step back. I want to do the same with Reap, but unlike Facets, Reap stills needs a fair bit of personal attention. So I am inquiring, is there anyone out there who would like to be the next shepard of Reap? Reap is a really great project with lots of capabilities already and lots more potential yet as well. I hate to see it wither just b/c I have to get some other stuff done. Let me know. Thanks, T. From dnm at pobox.com Thu Jun 1 05:07:34 2006 From: dnm at pobox.com (Dan Moniz) Date: Thu, 01 Jun 2006 05:07:34 -0400 Subject: [Nitro] Shepherding Nitro documentation (and Reap) Message-ID: <447EAE56.1090301@pobox.com> Hi all, I just rejoined the list (in digest mode; apologies in advance if I take a day or two to reply to list mail) after having been on briefly during 2005, and generally lurking via the Mailman archives. I'm a fan of Nitro and would like to see it prosper. In reading over some of the list traffic over the past few months, I agree with the sentiment that James and others have mentioned: documentation is crucial and packaging is key. I don't think anyone on this list thinks otherwise, but everyone has things they need to do and are already working hard on. I'm willing to step forward and take on the task of shepherding Nitro documentation, in concert with the work already being done on Oxyliquit and elswhere, to help out the project. I've been hacking in Ruby since January 2001, have been building (internal, non-public) apps with Rails since mid-2004, and have been playing off and on with Nitro since 2005. I think there's lots of room for both Rails and Nitro (and still others!), and would love to see Nitro become another viable option for Ruby hackers on the order of Rails. One area I think I can also be of help outside documentation is on Windows support, as I primarily do development on Windows (and OS X). Additionally, I saw that Thomas is looking for someone to take on Reap. Since I'm using Rake now and already playing with and investigating Reap as a general task execution/build management/automation system, and since there's a lot of things I'd like Rake to do that it doesn't, whereas Reap doesn't but *could*, given its design, I'm game to do this as well. -- Dan Moniz [http://pobox.com/~dnm/] From george.moschovitis at gmail.com Thu Jun 1 09:25:12 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 1 Jun 2006 16:25:12 +0300 Subject: [Nitro] Status In-Reply-To: References: <4b6f054f0605281107y3fd7d3ebt82a64d1267a97b90@mail.gmail.com> Message-ID: I had zero time (due to the army) this week. This issue will be hopefully resolved next week and I will be able to deliver what I promised. regards, George. On 5/31/06, Bryan Soto wrote: > On 5/28/06, George Moschovitis wrote: > > > 1) Rewrite of Og > > > > 80% (mostly have to convert all the drivers) > > > > Does that mean that the code available from your repo is now official? > > > > 2) nitroproject.org Homepage! > > > > Working on this, many small details, but it is one of my top > > priorities these days. > > > > Good to hear. :) > > > > 3) Transition to remove Glue dependency. > > > > This is lower priority at the moment. > > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From john at oxyliquit.de Thu Jun 1 10:45:07 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Thu, 01 Jun 2006 16:45:07 +0200 Subject: [Nitro] Shepherding Nitro documentation (and Reap) In-Reply-To: <447EAE56.1090301@pobox.com> References: <447EAE56.1090301@pobox.com> Message-ID: Hi, > I'm willing to step forward and take on the task of shepherding Nitro > documentation, in concert with the work already being done on Oxyliquit > and elswhere, to help out the project. Waaaay cool, I root for you :D You already got.. like a plan on where to start with the documentation? If you come by in the irc channel (#nitro at irc.freenode.net), you'll find really nice people there to chat and discuss ideas with (yes, shameless plug here ;D) It would also be good to have a guy there using windows :) Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From george.moschovitis at gmail.com Thu Jun 1 12:04:46 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 1 Jun 2006 19:04:46 +0300 Subject: [Nitro] Shepherding Nitro documentation (and Reap) In-Reply-To: References: <447EAE56.1090301@pobox.com> Message-ID: > You already got.. like a plan on where to start with the documentation? Yeah, I was wondering if you have a plan or something. As I said on the list, in a few weeks I will be able to work quite more on community development issues (including docs). It would be nice to cooperate with you (an all other parties interested) regards, George. -- http://www.gmosx.com http://www.nitroproject.org From zimba.tm at gmail.com Thu Jun 1 13:39:42 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Thu, 1 Jun 2006 19:39:42 +0200 Subject: [Nitro] Reap Progress In-Reply-To: <4b6f054f0605312102w69c15a54p7ef9ac140f30a4b6@mail.gmail.com> References: <4b6f054f0605312102w69c15a54p7ef9ac140f30a4b6@mail.gmail.com> Message-ID: <3ff63f9b0606011039j2ce650e5h9bd12502356791d@mail.gmail.com> Hi TRANS, what's your next project after reap ? I'm using it a lot and find it very usefull. I think George does too. If you want, we can put it on devlab too, so that we can fix things, add tasks, ... it's a community development after all. -- Cheers, zimba http://zimbatm.oree.ch From lasso at lassoweb.nu Fri Jun 2 03:03:36 2006 From: lasso at lassoweb.nu (Lars Olsson) Date: Fri, 2 Jun 2006 09:03:36 +0200 (CEST) Subject: [Nitro] Passing data from a controller to a template Message-ID: <36775.192.176.230.1.1149231816.squirrel@www.scorpionshops.com> Hi list! I'm a bit confused about the relationshop between the controller and the template when rendering pages. Lets say I have a simple template (foo.xhtml): #{title} #{content} tags: However, sometimes I feel it would be nicer to put the programming logic in a separate space (MVC style). So I create a controller: class MyController < Nitro::Controller def foo title = 'Page title' content = 'Some content...' #{ #{title} #{content} So I dl'ed the development sources from the darcs repository at http://devlab.oree.ch/darcs/nitrohq/ to fix the trailing 404 bug using nitro under mongrel. Immediately had this error: irb(main):001:0> require 'nitro_and_og' /usr/local/lib/ruby/gems/1.8/gems/facets-1.3.3/lib/facets/core/class/cattr.rb:39: warning: parenthesize argument(s) for future version SyntaxError: compile error /usr/local/lib/ruby/gems/1.8/gems/facets-1.3.3/lib/facets/core/class/cattr.rb:39: parse error, unexpected tIDENTIFIER, expecting '\n' or ';' def self.The value is already used ^ /usr/local/lib/ruby/gems/1.8/gems/facets-1.3.3/lib/facets/core/class/cattr.rb:40: parse error, unexpected tIDENTIFIER, expecting $ @@The value is already used ^ from /usr/local/lib/ruby/gems/1.8/gems/facets-1.3.3/lib/facets/core/class/cattr.rb:40:in `cattr_reader' from /usr/local/lib/ruby/gems/1.8/gems/facets-1.3.3/lib/facets/core/class/cattr.rb:38:in `cattr_reader' from /usr/local/lib/ruby/gems/1.8/gems/facets-1.3.3/lib/facets/core/class/cattr.rb:96:in `cattr_accessor' from /usr/local/lib/ruby/gems/1.8/gems/og-0.30.0/lib/og/validation.rb:13 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from /usr/local/lib/ruby/gems/1.8/gems/og-0.30.0/lib/og.rb:194 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from /usr/local/lib/ruby/gems/1.8/gems/nitro-0.30.1/lib/nitro_and_og.rb:2 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from (irb):1 So, after a little poking around I found the docs for cattr_accessor. I changed the code in og/validation from: class Errors cattr_accessor :not_unique, 'The value is already used' cattr_accessor :invalid_relation, 'Invalid relations' end to class Errors cattr_accessor :not_unique self.not_unique = "The value is already used" cattr_accessor :invalid_relation self.invalid_relation = "Invalid relations" end based on my understanding of the docs. Everything works... now, someone tell my why I'm wrong. rjspotter -- "If people keep creating new Java applications, the world is going to come to an end" --David Heinemeier Hansson From webmaster at rjspotter.com Fri Jun 2 04:39:49 2006 From: webmaster at rjspotter.com (rjspotter) Date: Fri, 02 Jun 2006 04:39:49 -0400 Subject: [Nitro] *disregard* devlab sources and cattr_accessor In-Reply-To: <447FF69B.8040608@rjspotter.com> References: <447FF69B.8040608@rjspotter.com> Message-ID: <447FF955.6070208@rjspotter.com> Using the wrong og version. It is fixed in the devlab sources. Sorry for wasting your time, rjspotter -- "If people keep creating new Java applications, the world is going to come to an end" --David Heinemeier Hansson From james_b at neurogami.com Fri Jun 2 04:06:59 2006 From: james_b at neurogami.com (James Britt) Date: Fri, 02 Jun 2006 01:06:59 -0700 Subject: [Nitro] Passing data from a controller to a template In-Reply-To: <36775.192.176.230.1.1149231816.squirrel@www.scorpionshops.com> References: <36775.192.176.230.1.1149231816.squirrel@www.scorpionshops.com> Message-ID: <447FF1A3.10800@neurogami.com> Lars Olsson wrote: > Hi list! Hi! > ... > This moves both the programming logic and the template data into the same > space, but I want them separated, like this: > > class MyController < Nitro::Controller > def foo > title = 'Page title' > content = 'Some content...' > # pass title and content too foo.xhtml and render the template > end > end class MyController < Nitro::Controller def foo # Make these instance attributes @title = 'Page title' @content = 'Some content...' end end Then, in foo.xhtml, refer to @title and @content. -- James Britt "Judge a man by his questions, rather than his answers." - Voltaire From john at oxyliquit.de Fri Jun 2 06:27:40 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Fri, 02 Jun 2006 12:27:40 +0200 Subject: [Nitro] Passing data from a controller to a template In-Reply-To: <36775.192.176.230.1.1149231816.squirrel@www.scorpionshops.com> References: <36775.192.176.230.1.1149231816.squirrel@www.scorpionshops.com> Message-ID: Hi, > I'm a bit confused about the relationshop between the controller and the > template when rendering pages. > How do I acomplish this within Nitro? Is it possible? James: thank you for answering. For everyone else as well: http://oxyliquit.de/question/53 Which incorporates a little more detail. Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From john at oxyliquit.de Fri Jun 2 07:35:36 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Fri, 02 Jun 2006 13:35:36 +0200 Subject: [Nitro] *disregard* devlab sources and cattr_accessor In-Reply-To: <447FF955.6070208@rjspotter.com> References: <447FF69B.8040608@rjspotter.com> <447FF955.6070208@rjspotter.com> Message-ID: Hi, > Sorry for wasting your time, Don't worry, we love the traffic ;D Welcome to nitro :) Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From transfire at gmail.com Fri Jun 2 10:50:15 2006 From: transfire at gmail.com (TRANS) Date: Fri, 2 Jun 2006 10:50:15 -0400 Subject: [Nitro] A Facets Namespace? Message-ID: <4b6f054f0606020750r3565c9ecq481ecc70fc1f9b53@mail.gmail.com> Should all Facets' classes and modules be wrapped in a Facets namespace? I've considered but haven't gone that route fro a few reasons. 1) Some modules seem so basic as to be fitting the toplevel. 2) Some facets create extensions to core/standard. Does it make sense to encapsulate classes/modules in a "brand" namespaces when aspects of them effect other toplevel modules and classes? 3) I have a working model of requiring into. That method is currently defined in roll.rb but I can add it to Facets. The question is, is it robust enough? Other considerations? T. From transfire at gmail.com Fri Jun 2 11:30:51 2006 From: transfire at gmail.com (TRANS) Date: Fri, 2 Jun 2006 11:30:51 -0400 Subject: [Nitro] Small inheritor issue Message-ID: <4b6f054f0606020830g2ba4de1ela4658c55be964754@mail.gmail.com> Found a little problem with inheritor: module X inheritor :x, {}, :merge end class Module include X end But it works if you do: class Module inheritor :x, {}, :merge end The reason is b/c of this code in inheritor.rb which decides how to load the inheritor code (store in the Proc deflambda) into the container. if self == Class or self == Module class_eval &deflambda elsif is_a?(Class) (class << self; self; end).class_eval &deflambda elsif is_a?(Module) class_inherit &deflambda else # other Object (class << self; self; end).class_eval &deflambda end The is_a?(Module) part is the most important is actaully the reason inheritor exists at all --i.e. modules aren't class-level inheirtable (which sucks to no end). T. From george.moschovitis at gmail.com Fri Jun 2 12:19:07 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Fri, 2 Jun 2006 19:19:07 +0300 Subject: [Nitro] Credits in source files. Message-ID: Dear devs, in the process of cleaning a bit the source code, I would like to remove the credit lines at the end of the source files (most of them say George Moschovitis anyway). Instead the credits will be available in the ChangeLog and the AUTHORS file (probably renamed to Contributors or something to mention donators and more). I expect more contribution to the project after the new site will be released, and I dont want to add 10-20 lined to each file and keep track of credits per file. Does anyone see any problem? thanks, George. -- http://www.nitroproject.org From george.moschovitis at gmail.com Fri Jun 2 12:19:58 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Fri, 2 Jun 2006 19:19:58 +0300 Subject: [Nitro] A Facets Namespace? In-Reply-To: <4b6f054f0606020750r3565c9ecq481ecc70fc1f9b53@mail.gmail.com> References: <4b6f054f0606020750r3565c9ecq481ecc70fc1f9b53@mail.gmail.com> Message-ID: I would suggest going the Glue way, ie use a namespace (Facets) but include in the default namespace ;-) regards, George. On 6/2/06, TRANS wrote: > Should all Facets' classes and modules be wrapped in a Facets namespace? > > I've considered but haven't gone that route fro a few reasons. > > 1) Some modules seem so basic as to be fitting the toplevel. > > 2) Some facets create extensions to core/standard. Does it make sense > to encapsulate classes/modules in a "brand" namespaces when aspects of > them effect other toplevel modules and classes? > > 3) I have a working model of requiring into. That method is currently > defined in roll.rb but I can add it to Facets. The question is, is it > robust enough? > > Other considerations? > > T. > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Fri Jun 2 12:20:57 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Fri, 2 Jun 2006 19:20:57 +0300 Subject: [Nitro] A Facets Namespace? In-Reply-To: References: <4b6f054f0606020750r3565c9ecq481ecc70fc1f9b53@mail.gmail.com> Message-ID: Core classes changes should remain in the top level namespace. -g. PS: but perhaps there is no need for changes and should probably leave the classes in the top level namespace as they are now. If we see problems in the future we can change this. On 6/2/06, George Moschovitis wrote: > I would suggest going the Glue way, ie use a namespace (Facets) but > include in the default namespace ;-) > > regards, > George. > > On 6/2/06, TRANS wrote: > > Should all Facets' classes and modules be wrapped in a Facets namespace? > > > > I've considered but haven't gone that route fro a few reasons. > > > > 1) Some modules seem so basic as to be fitting the toplevel. > > > > 2) Some facets create extensions to core/standard. Does it make sense > > to encapsulate classes/modules in a "brand" namespaces when aspects of > > them effect other toplevel modules and classes? > > > > 3) I have a working model of requiring into. That method is currently > > defined in roll.rb but I can add it to Facets. The question is, is it > > robust enough? > > > > Other considerations? > > > > T. > > _______________________________________________ > > Nitro-general mailing list > > Nitro-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/nitro-general > > > > > -- > http://www.gmosx.com > http://www.nitroproject.org > -- http://www.gmosx.com http://www.nitroproject.org From itsme213 at hotmail.com Fri Jun 2 12:27:49 2006 From: itsme213 at hotmail.com (itsme213) Date: Fri, 2 Jun 2006 11:27:49 -0500 Subject: [Nitro] Passing data from a controller to a template Message-ID: > Then, in foo.xhtml, refer to @title and @content. Is there a way to do this using accessors instead of instance variables? Thanks. From transfire at gmail.com Fri Jun 2 12:32:17 2006 From: transfire at gmail.com (TRANS) Date: Fri, 2 Jun 2006 12:32:17 -0400 Subject: [Nitro] A Facets Namespace? In-Reply-To: References: <4b6f054f0606020750r3565c9ecq481ecc70fc1f9b53@mail.gmail.com> Message-ID: <4b6f054f0606020932v103baf93o7f7a2429140b288c@mail.gmail.com> On 6/2/06, George Moschovitis wrote: > PS: but perhaps there is no need for changes and should probably leave > the classes in the top level namespace as they are now. If we see > problems in the future we can change this. That's been my plan ;) From james_b at neurogami.com Fri Jun 2 12:42:29 2006 From: james_b at neurogami.com (James Britt) Date: Fri, 02 Jun 2006 09:42:29 -0700 Subject: [Nitro] Credits in source files. In-Reply-To: References: Message-ID: <44806A75.2000302@neurogami.com> > > Does anyone see any problem? Not I. > > thanks, > George. > -- James Britt "I often work by avoidance." - Brian Eno From transfire at gmail.com Fri Jun 2 12:47:09 2006 From: transfire at gmail.com (TRANS) Date: Fri, 2 Jun 2006 12:47:09 -0400 Subject: [Nitro] TSort an Inheritor? You got to be kidding me! Message-ID: <4b6f054f0606020947m2600222do47cf23e7b0933e4c@mail.gmail.com> Little things aside. I'm ONE UGLY BUG away from getting out the new versions of Facets and Reap out. The problem of course arises once again from Module's frig'n lack of class-level inheritance. Sigh. Specfically it looks like the TSort module can't handed an inheritor. This is killing me with taskable.rb (was task.rb) which provides the basis of Reap's task system. (WARNING DIGRESSION: You know what really ticks me off? I can change just few lines of code in the Ruby's source and these module inheritance issues vanish. Arghhh.) Okay, anyone feel up to the challenge of figuring out how to TSort an inheritor? My mind is starting to leak. Oh a side note anyone ever thought of a way to make a better inheritor? T. From transfire at gmail.com Fri Jun 2 12:48:23 2006 From: transfire at gmail.com (TRANS) Date: Fri, 2 Jun 2006 12:48:23 -0400 Subject: [Nitro] Credits in source files. In-Reply-To: <44806A75.2000302@neurogami.com> References: <44806A75.2000302@neurogami.com> Message-ID: <4b6f054f0606020948w2e1be066r1bba93a1e81d50d1@mail.gmail.com> I always thought they were kind of cute. But no biggy and no of course no problem. From dylanb at digitalvalence.com Fri Jun 2 13:14:22 2006 From: dylanb at digitalvalence.com (Dylan Bruzenak) Date: Fri, 02 Jun 2006 12:14:22 -0500 Subject: [Nitro] Credits in source files. In-Reply-To: <4b6f054f0606020948w2e1be066r1bba93a1e81d50d1@mail.gmail.com> References: <44806A75.2000302@neurogami.com> <4b6f054f0606020948w2e1be066r1bba93a1e81d50d1@mail.gmail.com> Message-ID: <448071EE.9020305@digitalvalence.com> So are puppies, but I don't put them in my source files ;) Centralizing this kind of thing is good, I think. Now I just need to get back onto an og project so that I can contribute :) > I always thought they were kind of cute. But no biggy and no of course > no problem. > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > > From fabian at oggu.de Fri Jun 2 13:24:21 2006 From: fabian at oggu.de (Fabian Buch) Date: Fri, 2 Jun 2006 19:24:21 +0200 Subject: [Nitro] TSort an Inheritor? You got to be kidding me! In-Reply-To: <4b6f054f0606020947m2600222do47cf23e7b0933e4c@mail.gmail.com> References: <4b6f054f0606020947m2600222do47cf23e7b0933e4c@mail.gmail.com> Message-ID: Am 02.06.2006 um 18:47 schrieb TRANS: > Oh a side note anyone ever thought of a way to make a better inheritor? isn't that maybe a question for Matz? From transfire at gmail.com Fri Jun 2 13:34:29 2006 From: transfire at gmail.com (TRANS) Date: Fri, 2 Jun 2006 13:34:29 -0400 Subject: [Nitro] TSort an Inheritor? You got to be kidding me! In-Reply-To: References: <4b6f054f0606020947m2600222do47cf23e7b0933e4c@mail.gmail.com> Message-ID: <4b6f054f0606021034u6c853351le08d1b23fbfb803f@mail.gmail.com> On 6/2/06, Fabian Buch wrote: > > Am 02.06.2006 um 18:47 schrieb TRANS: > > Oh a side note anyone ever thought of a way to make a better inheritor? > > isn't that maybe a question for Matz? Hmmm... good point. I'll try that. T. From zimba.tm at gmail.com Fri Jun 2 13:46:33 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Fri, 2 Jun 2006 19:46:33 +0200 Subject: [Nitro] Credits in source files. In-Reply-To: <448071EE.9020305@digitalvalence.com> References: <44806A75.2000302@neurogami.com> <4b6f054f0606020948w2e1be066r1bba93a1e81d50d1@mail.gmail.com> <448071EE.9020305@digitalvalence.com> Message-ID: <3ff63f9b0606021046j55093db1vcde084b17ba8de47@mail.gmail.com> Cute but won't miss them -- Cheers, zimba http://zimbatm.oree.ch From transfire at gmail.com Fri Jun 2 14:30:07 2006 From: transfire at gmail.com (TRANS) Date: Fri, 2 Jun 2006 14:30:07 -0400 Subject: [Nitro] RWB and Nitro? Message-ID: <4b6f054f0606021130h5ad8f85bm522cec73f744a4d3@mail.gmail.com> Worth a look I imagine. http://on-ruby.blogspot.com/2006/06/free-to-good-home-rwb.html T. From transfire at gmail.com Fri Jun 2 14:30:29 2006 From: transfire at gmail.com (TRANS) Date: Fri, 2 Jun 2006 14:30:29 -0400 Subject: [Nitro] TSort an Inheritor? You got to be kidding me! In-Reply-To: <4b6f054f0606021034u6c853351le08d1b23fbfb803f@mail.gmail.com> References: <4b6f054f0606020947m2600222do47cf23e7b0933e4c@mail.gmail.com> <4b6f054f0606021034u6c853351le08d1b23fbfb803f@mail.gmail.com> Message-ID: <4b6f054f0606021130t5b8912a6g24a6e74456e5e03b@mail.gmail.com> On 6/2/06, TRANS wrote: > On 6/2/06, Fabian Buch wrote: > > > > Am 02.06.2006 um 18:47 schrieb TRANS: > > > Oh a side note anyone ever thought of a way to make a better inheritor? > > > > isn't that maybe a question for Matz? > > Hmmm... good point. I'll try that. Tried it --we'llsee waht he says. T. From transfire at gmail.com Fri Jun 2 14:45:12 2006 From: transfire at gmail.com (TRANS) Date: Fri, 2 Jun 2006 14:45:12 -0400 Subject: [Nitro] Reap Progress In-Reply-To: <3ff63f9b0606011039j2ce650e5h9bd12502356791d@mail.gmail.com> References: <4b6f054f0605312102w69c15a54p7ef9ac140f30a4b6@mail.gmail.com> <3ff63f9b0606011039j2ce650e5h9bd12502356791d@mail.gmail.com> Message-ID: <4b6f054f0606021145w3d74ef28ibe2525090d9e8317@mail.gmail.com> On 6/1/06, Jonas Pfenniger wrote: > Hi TRANS, > > what's your next project after reap ? Well, as far as programiming goes I like to get this Javascript code editor up to reasonable usabliity, so that Code Shepperd take put it to use. I'm also working on a browser based file manger using Web 2.0 tech. Maybe Code Sheppard can use it too, but I actually want to use it myself. There's also Rolls which is really quite close to being finished, but it's not 100% usable until it's easy to copy files into versioned locations at package or install time --in either case I got more work too do :/ But the main reason I need to back-off a good bit is becuase 1) I have non-profit organization for which I have to put up a website and finish paper work, but more importantly 2) I HAVE TO MAKE SOME MONEY! > I'm using it a lot and find it > very usefull. I think George does too. If you want, we can put it on > devlab too, so that we can fix things, add tasks, ... it's a community > development after all. I'm really glad to hear that. *Warm Fuzzies* :-) This next version is pretty sweet. I'm looking foward to putting it on devlab and see how the community runs with it. Now if I can just get this bug fixed.... Thanks, T. From dylanb at digitalvalence.com Fri Jun 2 14:59:00 2006 From: dylanb at digitalvalence.com (Dylan Bruzenak) Date: Fri, 02 Jun 2006 13:59:00 -0500 Subject: [Nitro] Reap Progress In-Reply-To: <4b6f054f0606021145w3d74ef28ibe2525090d9e8317@mail.gmail.com> References: <4b6f054f0605312102w69c15a54p7ef9ac140f30a4b6@mail.gmail.com> <3ff63f9b0606011039j2ce650e5h9bd12502356791d@mail.gmail.com> <4b6f054f0606021145w3d74ef28ibe2525090d9e8317@mail.gmail.com> Message-ID: <44808A74.8040002@digitalvalence.com> A web 2.0 file manager ? Sounds interesting. Got a feature list ? > On 6/1/06, Jonas Pfenniger wrote: > >> Hi TRANS, >> >> what's your next project after reap ? >> > > Well, as far as programiming goes I like to get this Javascript code > editor up to reasonable usabliity, so that Code Shepperd take put it > to use. I'm also working on a browser based file manger using Web 2.0 > tech. Maybe Code Sheppard can use it too, but I actually want to use > it myself. There's also Rolls which is really quite close to being > finished, but it's not 100% usable until it's easy to copy files into > versioned locations at package or install time --in either case I got > more work too do :/ > > But the main reason I need to back-off a good bit is becuase 1) I have > non-profit organization for which I have to put up a website and > finish paper work, but more importantly 2) I HAVE TO MAKE SOME MONEY! > > >> I'm using it a lot and find it >> very usefull. I think George does too. If you want, we can put it on >> devlab too, so that we can fix things, add tasks, ... it's a community >> development after all. >> > > I'm really glad to hear that. *Warm Fuzzies* :-) This next version is > pretty sweet. I'm looking foward to putting it on devlab and see how > the community runs with it. Now if I can just get this bug fixed.... > > Thanks, > T. > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > > From john at oxyliquit.de Fri Jun 2 18:55:50 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Sat, 03 Jun 2006 00:55:50 +0200 Subject: [Nitro] Passing data from a controller to a template In-Reply-To: References: Message-ID: Hi, >> Then, in foo.xhtml, refer to @title and @content. > > Is there a way to do this using accessors instead of instance variables? You are aJavaFan(String newTitle), aren't you ;D No seriously, using instance variables is the correct way here (calling methods should be done in the Controller anyway) but you could sure create extra functions (accessors) for all your instance variables. class MyController attr :foo # public stuff 'n actions goes here private def setFoo(f); @foo = f; end def getFoo; @foo; end end #{getFoo} But... aint that ugly? Basically, the foo.xhtml IS the Controller instance, so you can do everyting you can do in the controller, no limits here, nitro is all about freedom ;) But you should be careful with that, don't call yourself or any other called part via a function() calls or you get yourself nice limitless recursive template compiler calls :) Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From john at oxyliquit.de Fri Jun 2 18:55:52 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Sat, 03 Jun 2006 00:55:52 +0200 Subject: [Nitro] Credits in source files. In-Reply-To: <3ff63f9b0606021046j55093db1vcde084b17ba8de47@mail.gmail.com> References: <afd80b540606020919w16a7e885p248370c0ce17cb86@mail.gmail.com> <44806A75.2000302@neurogami.com> <4b6f054f0606020948w2e1be066r1bba93a1e81d50d1@mail.gmail.com> <448071EE.9020305@digitalvalence.com> <3ff63f9b0606021046j55093db1vcde084b17ba8de47@mail.gmail.com> Message-ID: <op.taji7gjexegpx6@jo.local> > Cute but won't miss them +1 Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From itsme213 at hotmail.com Fri Jun 2 19:21:17 2006 From: itsme213 at hotmail.com (itsme213) Date: Fri, 2 Jun 2006 18:21:17 -0500 Subject: [Nitro] Passing data from a controller to a template References: <BAY108-DAV173C962EFD5F819145C7699910@phx.gbl> <op.taji6qqsxegpx6@jo.local> Message-ID: <e5qh5j$e3l$1@sea.gmane.org> > <html><head><title>#{getFoo} duh :-) I (quite dumnbly) misread James' post to mean you could only directly refer to @ivs and not to accessor methods. From james_b at neurogami.com Fri Jun 2 20:50:41 2006 From: james_b at neurogami.com (James Britt) Date: Fri, 02 Jun 2006 17:50:41 -0700 Subject: [Nitro] Passing data from a controller to a template In-Reply-To: <op.taji6qqsxegpx6@jo.local> References: <BAY108-DAV173C962EFD5F819145C7699910@phx.gbl> <op.taji6qqsxegpx6@jo.local> Message-ID: <4480DCE1.8040104@neurogami.com> Jonathan Buch wrote: > Hi, > > >>>Then, in foo.xhtml, refer to @title and @content. >> >>Is there a way to do this using accessors instead of instance variables? > > > You are aJavaFan(String newTitle), aren't you ;D :) Don't worry; we see this a lot in RubyLand (I mean ruby_land). > > No seriously, using instance variables is the correct way here (calling > methods should be done in the Controller anyway) but you could sure > create extra functions (accessors) for all your instance variables. > > class MyController > attr :foo > > # public stuff 'n actions goes here > > private > > def setFoo(f); @foo = f; end > def getFoo; @foo; end > end > > <html><head><title>#{getFoo} > > But... aint that ugly? Yeah, but why do it like that? Why not make the methods look like attribute accessors? def foo=(f); @foo = f; end def foo; @foo; end > > Basically, the foo.xhtml IS the Controller instance, so you can do > everyting you can do in the controller, no limits here, nitro is all > about freedom ;) Could not one just use the controller class (i.e, some_controller.rb) to define data accesor methods, and omit the specific action methods? So that, for example, MainController would not define an 'index' method; index.xhtml would reference assorted methods defined in MainController and render the results. (This means that any business logic associated with the call to index would either be in index.xhtml, or would emerge from the calls made by index.xhtml to the various data accessor methods of MainController.) -- James Britt http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - The Journal By & For Rubyists http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.30secondrule.com - Building Better Tools From james_b at neurogami.com Sat Jun 3 00:42:24 2006 From: james_b at neurogami.com (James Britt) Date: Fri, 02 Jun 2006 21:42:24 -0700 Subject: [Nitro] Possible bug in Controller#mount_at Message-ID: <44811330.6090007@neurogami.com> I've been trying to figure out the correct usage of 'mount_at' and was puzzled because it worked about half the time. I tried putting it right at the start of my controller class Main < Nitro::Controller self.mount_at( "/main/" ) .. and I also tried putting it in run.rb: Main.mount_at( "/main/" ) Nitro.run(Main) ... But still the templates for Main were not always found. If I edited code while in debugging mode, certain classes got reload and then it would work. But rarely would the templates path be correct right after a restart. It seems that other (Nitro) code is calling 'mount_at', and my paths were getting boinked. I looked at lib/nitro/controller.rb , and saw that 'mount_at' would always create an empty @template_root, and then add some standard paths and whatever was passed to the method. So I changed @template_root = [] to @template_root ||= [] And all was golden. However, just because it works doesn't mean it is working the right way for the right reason. But as best I can tell, each controller has 'mount_at' called implicitly; additional calls to mount_at shouldn't be resetting the path, no? -- James Britt "You harmonize; then you customize." - Wilson Pickett From john at oxyliquit.de Sat Jun 3 06:04:15 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Sat, 03 Jun 2006 12:04:15 +0200 Subject: [Nitro] Passing data from a controller to a template In-Reply-To: <4480DCE1.8040104@neurogami.com> References: <BAY108-DAV173C962EFD5F819145C7699910@phx.gbl> <op.taji6qqsxegpx6@jo.local> <4480DCE1.8040104@neurogami.com> Message-ID: <op.takal2i1xegpx6@jo.local> Hi, > Don't worry; we see this a lot in RubyLand (I mean ruby_land). Yes yes, this was a pun about getter/setter mentality ;) > Yeah, but why do it like that? Why not make the methods look like > attribute accessors? Because (if you don't create extra logic in those getters/setters) they just add another redirection instead to clarify things. Ruby is not fast in calling methods. So, my vote would be, to use the instance variables whenever available. But not because of the speed, it's more that the @ is a visual cue for me, that I'm working on the data now. > Could not one just use the controller class (i.e, some_controller.rb) to > define data accesor methods, and omit the specific action methods? > > So that, for example, MainController would not define an 'index' method; > index.xhtml would reference assorted methods defined in MainController > and render the results. > > > (This means that any business logic associated with the call to index > would either be in index.xhtml, or would emerge from the calls made by > index.xhtml to the various data accessor methods of MainController.) I'm not really sure how this would work.. Basically you would determine the 'path' of a 'action' (meaning the index.xhtml) by its location in the template folder? What about nice-urls? or would it just skip the .xhtml. How do you handle `/index/foo` or `/index?foo=bar`? What we have now, is a tight coupling between View and Controller.. maybe this idea would loosen this? But I'm not sure, since it sounds like the View would have too much processing in it... I will have to think more about this... Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From m.fellinger at gmail.com Sat Jun 3 10:04:45 2006 From: m.fellinger at gmail.com (Michael Fellinger) Date: Sat, 3 Jun 2006 23:04:45 +0900 Subject: [Nitro] Credits in source files. In-Reply-To: <op.taji7gjexegpx6@jo.local> References: <afd80b540606020919w16a7e885p248370c0ce17cb86@mail.gmail.com> <44806A75.2000302@neurogami.com> <4b6f054f0606020948w2e1be066r1bba93a1e81d50d1@mail.gmail.com> <448071EE.9020305@digitalvalence.com> <3ff63f9b0606021046j55093db1vcde084b17ba8de47@mail.gmail.com> <op.taji7gjexegpx6@jo.local> Message-ID: <9c00d3e00606030704l10073cd6qb7f26da5e906532d@mail.gmail.com> +1 On 6/3/06, Jonathan Buch <john at oxyliquit.de> wrote: > > Cute but won't miss them > > +1 > > Kashia > > -- > Feel the love > http://pinkjuice.com/pics/ruby.png > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > From james_b at neurogami.com Sat Jun 3 10:16:33 2006 From: james_b at neurogami.com (James Britt) Date: Sat, 03 Jun 2006 07:16:33 -0700 Subject: [Nitro] Passing data from a controller to a template In-Reply-To: <op.takal2i1xegpx6@jo.local> References: <BAY108-DAV173C962EFD5F819145C7699910@phx.gbl> <op.taji6qqsxegpx6@jo.local> <4480DCE1.8040104@neurogami.com> <op.takal2i1xegpx6@jo.local> Message-ID: <448199C1.8030902@neurogami.com> Jonathan Buch wrote: > James wrote: >>Could not one just use the controller class (i.e, some_controller.rb) to >>define data accesor methods, and omit the specific action methods? >> >>So that, for example, MainController would not define an 'index' method; >>index.xhtml would reference assorted methods defined in MainController >>and render the results. >> >> >>(This means that any business logic associated with the call to index >>would either be in index.xhtml, or would emerge from the calls made by >>index.xhtml to the various data accessor methods of MainController.) > > > I'm not really sure how this would work.. Basically you would determine the > 'path' of a 'action' (meaning the index.xhtml) by its location in the > template folder? Yes. > What about nice-urls? or would it just skip the .xhtml. How do you handle > `/index/foo` or `/index?foo=bar`? Oh, I don't know. I was tossing out the idea to see if others thought it interesting or useful or broken or whatever. > What we have now, is a tight coupling between View and Controller.. maybe > this idea would loosen this? But I'm not sure, since it sounds like the > View would have too much processing in it... Well, I don't have an example use case, so it's a bit abstract, but my general thought was that if a view called foo(), bar(), and baz(), then each of those would be altering server state and, in turn, possibly altering what the next method might return. -- James Britt http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - The Journal By & For Rubyists http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://yourelevatorpitch.com - Finding Business Focus From john at oxyliquit.de Sat Jun 3 16:29:27 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Sat, 03 Jun 2006 22:29:27 +0200 Subject: [Nitro] [BUG] Mongrel + Pager Message-ID: <op.tak67dsmxegpx6@jo.local> Hi, I tried to move Oxyliquit to mongrel (because my virtual server is acting up real strange) but I have a problem: The pager doesn't work anymore. The links are broken (they don't have the domain it it, just the path). Might be the @request.uri ? Not sure. I moved Oxywtf back to apache. Thank you William for reporting the problem with the Tutorials! I apologize for the instability of Oxywtf... This vServer sucks donkey ass... I want a better one, should've taken Hosteurope after all.... ;/ Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From transfire at gmail.com Sat Jun 3 17:28:49 2006 From: transfire at gmail.com (TRANS) Date: Sat, 3 Jun 2006 17:28:49 -0400 Subject: [Nitro] TSort an Inheritor? You got to be kidding me! In-Reply-To: <4b6f054f0606021130t5b8912a6g24a6e74456e5e03b@mail.gmail.com> References: <4b6f054f0606020947m2600222do47cf23e7b0933e4c@mail.gmail.com> <cde91a22d04e619c7a621a9c5c12513b@oggu.de> <4b6f054f0606021034u6c853351le08d1b23fbfb803f@mail.gmail.com> <4b6f054f0606021130t5b8912a6g24a6e74456e5e03b@mail.gmail.com> Message-ID: <4b6f054f0606031428y3a7836a9yc93b538a7742e33f@mail.gmail.com> Really curious about what Matz will say. That was a great idea Fabian. Nonetheless, I managed to work out a solution today by using TSort on the fly --generating the task prerequsite graph each time a task is called. Along the way I discoverd a minor limitation of class_inherit. The problem is when using #extend. I was doing something like this: module N inheritor :x, [], :| def x ; self.class.x ; end end module M ; extend N ; end M.x and getting undefined method `x' for Module:Class (NoMethodError) I was able to work around thouigh by doing this instead: M = Class..new{ include N }.new So now I'm FINALLY just about ready to release. T. From james_b at neurogami.com Sat Jun 3 21:14:22 2006 From: james_b at neurogami.com (James Britt) Date: Sat, 03 Jun 2006 18:14:22 -0700 Subject: [Nitro] Question about include files Message-ID: <448233EE.8090606@neurogami.com> I'm trying to write abut how Nitro lets you reuse page chunks. One way is to use include files: <render href='some_partial_thing' /> And then there'd be a file, some_partial_thing.xhtml or some_partial_thing.xinc in the template path. I had some problems getting this working right (I think there are ordering issues when setting Template.root and also calling mount_at for controllers), and noticed the messages coming from the WEBbrick server. I *think* that you can use the <render> syntax to invoke a method|action on the parent controller. I tried an experiment. I had my index.xhtml template include <render href='copyright' /> And then added a 'copyright' method to the main controller, but did not provide a corresponding view file. So the code is this: def copyright STDERR.puts "MainController#copyright" "Hey! (c)" end and when i call the page I can see the STDERR message, but the string returned from the method never appears in the view. What am I misunderstanding about the use of controller methods in place of include files? If I change that method to use @out << "Hey! (c)" then it works, but that seems a bit hackish. I guess I'm hoping that <render> is just another way to invoke actions, but perhaps their place in the rendering sequence prevent this. I also now see that this: def copyright STDERR.puts "MainController#copyright" @c = "Hey! (c)" end will work fine when I have copyright.xhtml in the template path. But I can't seem to get the raw return value of the method to render. (BTW, after my code change to how "mount_at" works, I see that I can have multiple template paths for a controller by calling mount_at multiple times. I believe this is the intended behavior, based on the comments in include.rb and it referring to Nitro searching the "template_root stack" if the included file is referenced with a relative path. Is this correct?) -- James Britt "The greatest obstacle to discovery is not ignorance, but the illusion of knowledge." - D. Boorstin From itsme213 at hotmail.com Sun Jun 4 01:14:10 2006 From: itsme213 at hotmail.com (itsme213) Date: Sun, 4 Jun 2006 00:14:10 -0500 Subject: [Nitro] TSort an Inheritor? You got to be kidding me! References: <4b6f054f0606020947m2600222do47cf23e7b0933e4c@mail.gmail.com><cde91a22d04e619c7a621a9c5c12513b@oggu.de><4b6f054f0606021034u6c853351le08d1b23fbfb803f@mail.gmail.com><4b6f054f0606021130t5b8912a6g24a6e74456e5e03b@mail.gmail.com> <4b6f054f0606031428y3a7836a9yc93b538a7742e33f@mail.gmail.com> Message-ID: <e5tq7b$nk5$1@sea.gmane.org> "TRANS" <transfire at gmail.com> wrote in message > Really curious about what Matz will say. Likewise. Could you share your question (and Matz' answer when it arrives)? From zimba.tm at gmail.com Sun Jun 4 09:35:53 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Sun, 4 Jun 2006 15:35:53 +0200 Subject: [Nitro] Reap Progress In-Reply-To: <44808A74.8040002@digitalvalence.com> References: <4b6f054f0605312102w69c15a54p7ef9ac140f30a4b6@mail.gmail.com> <3ff63f9b0606011039j2ce650e5h9bd12502356791d@mail.gmail.com> <4b6f054f0606021145w3d74ef28ibe2525090d9e8317@mail.gmail.com> <44808A74.8040002@digitalvalence.com> Message-ID: <3ff63f9b0606040635v7edc06c5xb7b08d9e37779944@mail.gmail.com> I'm more interested in the Gem replacement. Any ideas on this ? -- Cheers, zimba http://zimbatm.oree.ch From transfire at gmail.com Sun Jun 4 09:50:01 2006 From: transfire at gmail.com (TRANS) Date: Sun, 4 Jun 2006 09:50:01 -0400 Subject: [Nitro] Reap Progress In-Reply-To: <3ff63f9b0606040635v7edc06c5xb7b08d9e37779944@mail.gmail.com> References: <4b6f054f0605312102w69c15a54p7ef9ac140f30a4b6@mail.gmail.com> <3ff63f9b0606011039j2ce650e5h9bd12502356791d@mail.gmail.com> <4b6f054f0606021145w3d74ef28ibe2525090d9e8317@mail.gmail.com> <44808A74.8040002@digitalvalence.com> <3ff63f9b0606040635v7edc06c5xb7b08d9e37779944@mail.gmail.com> Message-ID: <4b6f054f0606040650v6baf7eb3na7fe9c466236d86a@mail.gmail.com> On 6/4/06, Jonas Pfenniger <zimba.tm at gmail.com> wrote: > I'm more interested in the Gem replacement. Any ideas on this ? Yep. Well, it depends on what part you mean. But Rolls handles the versioning side of things (without being tied to packaging) and that's basically working. As for the packaging side of thing I have a project called Rain. But it's in very early expiremntal stage. With it one can download and install a source package direclty from a project's site easy enough. But the "bigger idea" is that it could be used as a server and generate (and cache) a variety of package formats on demand. Eventually it could get as detailed as to support cross-compilation for c sources. Oh yea, and it also has a web clienbt interface to go along with the console interface. T. From transfire at gmail.com Sun Jun 4 09:53:58 2006 From: transfire at gmail.com (TRANS) Date: Sun, 4 Jun 2006 09:53:58 -0400 Subject: [Nitro] Reap Progress In-Reply-To: <44808A74.8040002@digitalvalence.com> References: <4b6f054f0605312102w69c15a54p7ef9ac140f30a4b6@mail.gmail.com> <3ff63f9b0606011039j2ce650e5h9bd12502356791d@mail.gmail.com> <4b6f054f0606021145w3d74ef28ibe2525090d9e8317@mail.gmail.com> <44808A74.8040002@digitalvalence.com> Message-ID: <4b6f054f0606040653g2e1a4a3dnf441d3eb31207500@mail.gmail.com> On 6/2/06, Dylan Bruzenak <dylanb at digitalvalence.com> wrote: > A web 2.0 file manager ? Sounds interesting. Got a feature list ? Not really -- early stages. I just had some problems with Gnome and had to use Thunar and then I though why all this mess when a web brower could be used on ANY platform. Right now it uses SVG for icons (looks good) and I'm organizing the icon view by colums --so you change the number oc columns visible and alls the icons shrink or grow to fill the window space accordingly (within limits of course). I also plan to do thumbnails and of course list and detail views. Also I'm considering using an Amiga like .info files for metadata (b/c it's a cross-platform solution). T. From george.moschovitis at gmail.com Mon Jun 5 11:11:09 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Mon, 5 Jun 2006 18:11:09 +0300 Subject: [Nitro] Credits in source files. In-Reply-To: <9c00d3e00606030704l10073cd6qb7f26da5e906532d@mail.gmail.com> References: <afd80b540606020919w16a7e885p248370c0ce17cb86@mail.gmail.com> <44806A75.2000302@neurogami.com> <4b6f054f0606020948w2e1be066r1bba93a1e81d50d1@mail.gmail.com> <448071EE.9020305@digitalvalence.com> <3ff63f9b0606021046j55093db1vcde084b17ba8de47@mail.gmail.com> <op.taji7gjexegpx6@jo.local> <9c00d3e00606030704l10073cd6qb7f26da5e906532d@mail.gmail.com> Message-ID: <afd80b540606050811v63538eb3v81d72b452f06d32a@mail.gmail.com> Ok, already started removing them... On 6/3/06, Michael Fellinger <m.fellinger at gmail.com> wrote: > +1 > > On 6/3/06, Jonathan Buch <john at oxyliquit.de> wrote: > > > Cute but won't miss them > > > > +1 > > > > Kashia > > > > -- > > Feel the love > > http://pinkjuice.com/pics/ruby.png > > _______________________________________________ > > Nitro-general mailing list > > Nitro-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/nitro-general > > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Mon Jun 5 11:12:18 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Mon, 5 Jun 2006 18:12:18 +0300 Subject: [Nitro] Nitro Team Message-ID: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> Another thing, which name should we use for the nitro 'organization'? Somnething like: - nitro core team - nitro development team - nitro team? ideas?? -g. -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Mon Jun 5 11:13:28 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Mon, 5 Jun 2006 18:13:28 +0300 Subject: [Nitro] RWB and Nitro? In-Reply-To: <4b6f054f0606021130h5ad8f85bm522cec73f744a4d3@mail.gmail.com> References: <4b6f054f0606021130h5ad8f85bm522cec73f744a4d3@mail.gmail.com> Message-ID: <afd80b540606050813i116d7b0dt4059c4ca4018afdf@mail.gmail.com> will have a look, thanks for mentioning this! -g. On 6/2/06, TRANS <transfire at gmail.com> wrote: > Worth a look I imagine. > > http://on-ruby.blogspot.com/2006/06/free-to-good-home-rwb.html > > > T. > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From james_b at neurogami.com Mon Jun 5 11:26:47 2006 From: james_b at neurogami.com (James Britt) Date: Mon, 05 Jun 2006 08:26:47 -0700 Subject: [Nitro] bump Re: Question about include files In-Reply-To: <448233EE.8090606@neurogami.com> References: <448233EE.8090606@neurogami.com> Message-ID: <44844D37.3040105@neurogami.com> Sorry for the repeat; I saw no reply to this, and I want to make sure I'm documenting things correctly. Thanks! James Britt wrote: > I'm trying to write abut how Nitro lets you reuse page chunks. One way > is to use include files: > > <render href='some_partial_thing' /> > > And then there'd be a file, some_partial_thing.xhtml or > some_partial_thing.xinc in the template path. > > I had some problems getting this working right (I think there are > ordering issues when setting Template.root and also calling mount_at for > controllers), and noticed the messages coming from the WEBbrick server. > > I *think* that you can use the <render> syntax to invoke a method|action > on the parent controller. > > I tried an experiment. I had my index.xhtml template include > > > <render href='copyright' /> > > And then added a 'copyright' method to the main controller, but did not > provide a corresponding view file. > > So the code is this: > > def copyright > STDERR.puts "MainController#copyright" > "Hey! (c)" > end > > and when i call the page I can see the STDERR message, but the string > returned from the method never appears in the view. > > What am I misunderstanding about the use of controller methods in place > of include files? > > If I change that method to use > > @out << "Hey! (c)" > > then it works, but that seems a bit hackish. > > I guess I'm hoping that <render> is just another way to invoke actions, > but perhaps their place in the rendering sequence prevent this. > > > I also now see that this: > > > def copyright > STDERR.puts "MainController#copyright" > @c = "Hey! (c)" > end > > will work fine when I have copyright.xhtml in the template path. > > But I can't seem to get the raw return value of the method to render. > > (BTW, after my code change to how "mount_at" works, I see that I can > have multiple template paths for a controller by calling mount_at > multiple times. I believe this is the intended behavior, based on the > comments in include.rb and it referring to Nitro searching the > "template_root stack" if the included file is referenced with a relative > path. Is this correct?) > > -- James Britt "Take eloquence and wring its neck." - Paul Verlaine From zimba.tm at gmail.com Mon Jun 5 11:34:28 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Mon, 5 Jun 2006 17:34:28 +0200 Subject: [Nitro] bump Re: Question about include files In-Reply-To: <44844D37.3040105@neurogami.com> References: <448233EE.8090606@neurogami.com> <44844D37.3040105@neurogami.com> Message-ID: <3ff63f9b0606050834i103feaf7u4915b83f6579a544@mail.gmail.com> On 05/06/06, James Britt <james_b at neurogami.com> wrote: > > Sorry for the repeat; I saw no reply to this, and I want to make sure > I'm documenting things correctly. > > > Thanks! Hi James, I think some corners or Nitro are not that well tested. This might be one of the dusty places. I've personally never used the <render> thing, but you can get more informations about it in Glue::Template. -- Cheers, zimba http://zimbatm.oree.ch From zimba.tm at gmail.com Mon Jun 5 11:36:21 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Mon, 5 Jun 2006 17:36:21 +0200 Subject: [Nitro] Nitro Team In-Reply-To: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> Message-ID: <3ff63f9b0606050836k6c8526e1p35b1356cd82cbee7@mail.gmail.com> the nitro devs ? On 05/06/06, George Moschovitis <george.moschovitis at gmail.com> wrote: > Another thing, > > which name should we use for the nitro 'organization'? Somnething like: > > - nitro core team > - nitro development team > - nitro team? > > ideas?? > > -g. > > -- > http://www.gmosx.com > http://www.nitroproject.org > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- Cheers, zimba http://zimbatm.oree.ch From george.moschovitis at gmail.com Mon Jun 5 12:07:39 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Mon, 5 Jun 2006 19:07:39 +0300 Subject: [Nitro] bump Re: Question about include files In-Reply-To: <3ff63f9b0606050834i103feaf7u4915b83f6579a544@mail.gmail.com> References: <448233EE.8090606@neurogami.com> <44844D37.3040105@neurogami.com> <3ff63f9b0606050834i103feaf7u4915b83f6579a544@mail.gmail.com> Message-ID: <afd80b540606050907s42dcc490rf3503f0fdf1eb67@mail.gmail.com> Hello James, let me try to give you some help: There are two methods to include sub-templates in Nitro: - Static Include (the template is injected in the main template at compile time, speady-less flexible): <?include href="sub" ?> Typically you want to use the .xinc extension instead of .xhtml for security reasons (nitro will not render a .xinc template as a main template, so you can be lazy and avoid security overhead per subtemplate) - Dynamic include (the template is included at run time, ie as the html code is generated during a request processing cycle <render href="sub" /> or <include href="sub" /> (suit yourself) Please note the difference between: <render href="sub" /> (include relative to the current controller mount point) <render href="/sub" /> (include from root '/') Now about def sub ... "test" end not working, I am planning to remove the feature where returning a string from an action will append it to the output buffer. You will have to use: def sub print "test" end (this allready works, and is the prefered way instead of @out << "test") The reasons for this removal will be explained in another email. I will probably reanable the behaviour where nitro will automatically redirect to the refer if the action generates no output and there is no other redirect. Discussion in a future email. Hope the above was helpful. If someone could improve my usage of english and prepare a nice Rdoc version of it so that I could include it in the source it would be nice. regards, George. < On 6/5/06, Jonas Pfenniger <zimba.tm at gmail.com> wrote: > On 05/06/06, James Britt <james_b at neurogami.com> wrote: > > > > Sorry for the repeat; I saw no reply to this, and I want to make sure > > I'm documenting things correctly. > > > > > > Thanks! > > Hi James, I think some corners or Nitro are not that well tested. This > might be one of the dusty places. I've personally never used the > <render> thing, but you can get more informations about it in > Glue::Template. > > -- > Cheers, > zimba > > http://zimbatm.oree.ch > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From transfire at gmail.com Mon Jun 5 12:25:56 2006 From: transfire at gmail.com (TRANS) Date: Mon, 5 Jun 2006 12:25:56 -0400 Subject: [Nitro] Nitro Team In-Reply-To: <3ff63f9b0606050836k6c8526e1p35b1356cd82cbee7@mail.gmail.com> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> <3ff63f9b0606050836k6c8526e1p35b1356cd82cbee7@mail.gmail.com> Message-ID: <4b6f054f0606050925o74d0d42csd9f1281d7a4584ae@mail.gmail.com> nitro glyceriders ;-) T. From transfire at gmail.com Mon Jun 5 12:34:41 2006 From: transfire at gmail.com (TRANS) Date: Mon, 5 Jun 2006 12:34:41 -0400 Subject: [Nitro] Fwd: Troubles along the class-level heirarchy In-Reply-To: <1149517379.792853.19549.nullmailer@x31.priv.netlab.jp> References: <4b6f054f0606021124t32a25db5kbd0ef4aa39132c88@mail.gmail.com> <1149517379.792853.19549.nullmailer@x31.priv.netlab.jp> Message-ID: <4b6f054f0606050934x2bb83b5fqe7b889aae5dabeae@mail.gmail.com> Hi all! Matz responded. And it looks promising! He asks for a good example of inheritor. Anyone know of good example from Nitro that would be easy enough to snip and still be understandable for a ruby-talk post? (At the bottom I put my original message to matz). Thanks, T. ---------- Forwarded message ---------- From: Yukihiro Matsumoto <matz at ruby-lang.org> Date: Jun 5, 2006 10:22 AM Subject: Re: Troubles along the class-level heirarchy To: transfire at gmail.com Hi, In message "Re: Troubles along the class-level heirarchy" on Fri, 2 Jun 2006 14:24:35 -0400, TRANS <transfire at gmail.com> writes: |The problem I am now facing is that TSort doesn't wantto work with |inheritor. I'm not sure why yet, but once again I am confronted with |an issue related to this same problem. I have put hundreds of hours |into the problem and have brought it up multiple time on ruby-talk. |But alwasy I get the same old response, "Ruby doesn't need that". You |have said so too. The concrete example helps us to understand the situation. Can I see the example of usage of inheritor.rb (in nitro)? Preferably in the ruby-core (or ruby-talk) list? |So, if that's is true, than I am at a loss and am hoping you might |give me some guidance on how I ought to be handling this need. The default behavior of #include cannot inherit module methods into destination classes, just because I don't want to contaminate classes, for example include the Math module. But there might be a possibility for an alternative inclusion method which inherits module level methods as well. In that case, we have to find the proper name for the behavior. matz. ---- ORIGINAL MESSAGE Hi Matz, For a long time now I've been struggling with the limitations of module inheritance, namely that a module's "class-level" can't be inherited. This ability has proven crucial for some of the libs we developed for the Nitro project (a system that uses meta-programming extensively). There's one lib in particular that we use called inheriter.rb. This allows one to create a very flexible class-level variable that inherits data along the class hierarchy. Of course to work, I had to over come the module inheirtance issue. I did this with another lib called classinherit.rb. The problem I am now facing is that TSort doesn't wantto work with inheritor. I'm not sure why yet, but once again I am confronted with an issue related to this same problem. I have put hundreds of hours into the problem and have brought it up multiple time on ruby-talk. But alwasy I get the same old response, "Ruby doesn't need that". You have said so too. So, if that's is true, than I am at a loss and am hoping you might give me some guidance on how I ought to be handling this need. I have included both of the libs for you to have a look at. They aren't very long, but they are subtle. Hope you have the time to have a look. Thanks, Trans P.S. The funny/depressing thing is that it takes about ten seconds to can change a few lines of Ruby source (to allow classes to be inherited like modules) and all these problems go away. Of course maybe other problems arise from it, yet all the test cases run just fine. So I wonder why we can't do that. From james_b at neurogami.com Mon Jun 5 12:58:29 2006 From: james_b at neurogami.com (James Britt) Date: Mon, 05 Jun 2006 09:58:29 -0700 Subject: [Nitro] Nitro Team In-Reply-To: <4b6f054f0606050925o74d0d42csd9f1281d7a4584ae@mail.gmail.com> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> <3ff63f9b0606050836k6c8526e1p35b1356cd82cbee7@mail.gmail.com> <4b6f054f0606050925o74d0d42csd9f1281d7a4584ae@mail.gmail.com> Message-ID: <448462B5.9060907@neurogami.com> TRANS wrote: > nitro glyceriders ;-) Not Nitro Generation? Nitrates Nitrons Nite-riders Nite Stalkers :) -- James Britt "I often work by avoidance." - Brian Eno From george.moschovitis at gmail.com Mon Jun 5 13:00:02 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Mon, 5 Jun 2006 20:00:02 +0300 Subject: [Nitro] Nitro Team In-Reply-To: <448462B5.9060907@neurogami.com> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> <3ff63f9b0606050836k6c8526e1p35b1356cd82cbee7@mail.gmail.com> <4b6f054f0606050925o74d0d42csd9f1281d7a4584ae@mail.gmail.com> <448462B5.9060907@neurogami.com> Message-ID: <afd80b540606051000m51a2f088uace15479c437a6dd@mail.gmail.com> > Nitrons funny ;-) -- http://www.gmosx.com http://www.nitroproject.org From transfire at gmail.com Mon Jun 5 13:19:56 2006 From: transfire at gmail.com (TRANS) Date: Mon, 5 Jun 2006 13:19:56 -0400 Subject: [Nitro] [ANN] Facets 1.4 RC1 Message-ID: <4b6f054f0606051019q60c67e1cg73375d98595bcb06@mail.gmail.com> Just uploaded Facets 1.4.0! You "glyceriders" get dibs of course since you all help me root out those pesky bugs. Please have at it and let me know if you run into any troubles --shouldn't be to many, if any, since it is mostly an update of additions and not changes. Thanks, T. P.S. Reap 6 (which requires Facets 1.4) will be right behind. From george.moschovitis at gmail.com Mon Jun 5 13:24:41 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Mon, 5 Jun 2006 20:24:41 +0300 Subject: [Nitro] [ANN] Facets 1.4 RC1 In-Reply-To: <4b6f054f0606051019q60c67e1cg73375d98595bcb06@mail.gmail.com> References: <4b6f054f0606051019q60c67e1cg73375d98595bcb06@mail.gmail.com> Message-ID: <afd80b540606051024w68fed70cq5c15661954b9381f@mail.gmail.com> Have you added the symbol of the annotated attribute in the annotation as I asked you some days ago? regards, George. On 6/5/06, TRANS <transfire at gmail.com> wrote: > Just uploaded Facets 1.4.0! You "glyceriders" get dibs of course since > you all help me root out those pesky bugs. > > Please have at it and let me know if you run into any troubles > --shouldn't be to many, if any, since it is mostly an update of > additions and not changes. > > Thanks, > T. > > P.S. Reap 6 (which requires Facets 1.4) will be right behind. > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From zimba.tm at gmail.com Mon Jun 5 13:25:40 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Mon, 5 Jun 2006 19:25:40 +0200 Subject: [Nitro] Fwd: Troubles along the class-level heirarchy In-Reply-To: <4b6f054f0606050934x2bb83b5fqe7b889aae5dabeae@mail.gmail.com> References: <4b6f054f0606021124t32a25db5kbd0ef4aa39132c88@mail.gmail.com> <1149517379.792853.19549.nullmailer@x31.priv.netlab.jp> <4b6f054f0606050934x2bb83b5fqe7b889aae5dabeae@mail.gmail.com> Message-ID: <3ff63f9b0606051025w6a8d2825k1dba30215fd8c5ee@mail.gmail.com> On 05/06/06, TRANS <transfire at gmail.com> wrote: > Hi all! Matz responded. And it looks promising! > > He asks for a good example of inheritor. Anyone know of good example > from Nitro that would be easy enough to snip and still be > understandable for a ruby-talk post? If you take Nitro::Scaffold, all class methods are also to be extended except self.included(klass) naturally. You often don't want to inherit that method. This is the perfect case where you need a ClassMethods module. Otherwise, look in "nitro/lib/nitro/controller.rb". There is a mess with the Publishable module I don't even want to understand. Glue::Annotation and Glue::Configuration may use class values inheritance. -- Cheers, zimba http://zimbatm.oree.ch From transfire at gmail.com Mon Jun 5 14:24:29 2006 From: transfire at gmail.com (TRANS) Date: Mon, 5 Jun 2006 14:24:29 -0400 Subject: [Nitro] [ANN] Facets 1.4 RC1 In-Reply-To: <afd80b540606051024w68fed70cq5c15661954b9381f@mail.gmail.com> References: <4b6f054f0606051019q60c67e1cg73375d98595bcb06@mail.gmail.com> <afd80b540606051024w68fed70cq5c15661954b9381f@mail.gmail.com> Message-ID: <4b6f054f0606051124v9e71956sb1ef5c49b2b3c218@mail.gmail.com> On 6/5/06, George Moschovitis <george.moschovitis at gmail.com> wrote: > Have you added the symbol of the annotated attribute in the annotation > as I asked you some days ago? I did look at that, but I haven't come to a conclusion. My frist impression is that it may be a problem. An Annotation is an independent object, so technically it could be reused. While I doubt anyone is using it in that way, if we tied the name to it then it certainly could not be used that way. What do others think? Is it reasonable to think that one Annotation might be shared between more than one method/symbol/name? Or should there be a strict one-to-one relationship? Personally I lean toward keeping it open though I may be totally off base. Hmmm... If I am not totally off-base then there may be another way to solve the issue. The problem is with passing around an Annotation but also having to pass the name along with it, right? I can see how that doesn't seem very DRY. Perhaps using something like an Association would be useful? "pass( the_name >> the_ann )" But probably better would be creating a delegating class. Also, I wonder, do you ever have to pass the object or class the annoation is for? If so then a delegator might really be the way to go. class AnnotatedItem( name, klass, annotation ) And I should be able to add a method to annotation.rb that would return one of these just by providing the name from with in the context of the class. I.e class X annitem( :foo ) end Would that work for you? Sorry, if this issue is holding you up. Lets work on it and find a good solution. T. From bryan.a.soto at gmail.com Mon Jun 5 14:37:12 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Mon, 5 Jun 2006 11:37:12 -0700 Subject: [Nitro] [BUG] Mongrel + Pager In-Reply-To: <op.tak67dsmxegpx6@jo.local> References: <op.tak67dsmxegpx6@jo.local> Message-ID: <bd93db0d0606051137y7b9371f3q86f9061c40cf9c10@mail.gmail.com> Hi Kashia, Just a quick note. I think this might be a Mongrel bug. I'm going to try out Zed's release candidate and see if it works there. If not, I'll run it by him and see. Basically, Mongrel is setting the REQUEST_URI header to '/' rather than the full uri like Apache, Webrick, etc. Bryan On 6/3/06, Jonathan Buch <john at oxyliquit.de> wrote: > Hi, > > I tried to move Oxyliquit to mongrel (because my virtual server is > acting up real strange) but I have a problem: > > The pager doesn't work anymore. The links are broken (they don't have > the domain it it, just the path). Might be the @request.uri ? > Not sure. I moved Oxywtf back to apache. > > Thank you William for reporting the problem with the Tutorials! > > I apologize for the instability of Oxywtf... > This vServer sucks donkey ass... I want a better one, should've taken > Hosteurope after all.... ;/ > > Kashia > > -- > Feel the love > http://pinkjuice.com/pics/ruby.png > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > From zimba.tm at gmail.com Mon Jun 5 15:18:55 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Mon, 5 Jun 2006 21:18:55 +0200 Subject: [Nitro] [BUG] Mongrel + Pager In-Reply-To: <bd93db0d0606051137y7b9371f3q86f9061c40cf9c10@mail.gmail.com> References: <op.tak67dsmxegpx6@jo.local> <bd93db0d0606051137y7b9371f3q86f9061c40cf9c10@mail.gmail.com> Message-ID: <3ff63f9b0606051218s3c5a2595r983f66e8ea529785@mail.gmail.com> The REQUEST_URI thing is wrong, I've made an adapter today and it did work. I think the problem comes from the adapter that was just copy-paster from the Webrick adapter. On 05/06/06, Bryan Soto <bryan.a.soto at gmail.com> wrote: > Hi Kashia, > > Just a quick note. I think this might be a Mongrel bug. I'm going to > try out Zed's release candidate and see if it works there. If not, > I'll run it by him and see. Basically, Mongrel is setting the > REQUEST_URI header to '/' rather than the full uri like Apache, > Webrick, etc. > > Bryan > > On 6/3/06, Jonathan Buch <john at oxyliquit.de> wrote: > > Hi, > > > > I tried to move Oxyliquit to mongrel (because my virtual server is > > acting up real strange) but I have a problem: > > > > The pager doesn't work anymore. The links are broken (they don't have > > the domain it it, just the path). Might be the @request.uri ? > > Not sure. I moved Oxywtf back to apache. > > > > Thank you William for reporting the problem with the Tutorials! > > > > I apologize for the instability of Oxywtf... > > This vServer sucks donkey ass... I want a better one, should've taken > > Hosteurope after all.... ;/ > > > > Kashia > > > > -- > > Feel the love > > http://pinkjuice.com/pics/ruby.png > > _______________________________________________ > > Nitro-general mailing list > > Nitro-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/nitro-general > > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- Cheers, zimbatm http://zimbatm.oree.ch From bryan.a.soto at gmail.com Mon Jun 5 16:14:01 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Mon, 5 Jun 2006 13:14:01 -0700 Subject: [Nitro] [BUG] Mongrel + Pager In-Reply-To: <3ff63f9b0606051218s3c5a2595r983f66e8ea529785@mail.gmail.com> References: <op.tak67dsmxegpx6@jo.local> <bd93db0d0606051137y7b9371f3q86f9061c40cf9c10@mail.gmail.com> <3ff63f9b0606051218s3c5a2595r983f66e8ea529785@mail.gmail.com> Message-ID: <bd93db0d0606051314w336b7ea3gaff29fef55019d13@mail.gmail.com> What version of Mongrel did you use? I confirmed the error with 0.3.12.4 on Win32. Could you share your adapter? On 6/5/06, Jonas Pfenniger <zimba.tm at gmail.com> wrote: > The REQUEST_URI thing is wrong, I've made an adapter today and it did > work. I think the problem comes from the adapter that was just > copy-paster from the Webrick adapter. > > On 05/06/06, Bryan Soto <bryan.a.soto at gmail.com> wrote: > > Hi Kashia, > > > > Just a quick note. I think this might be a Mongrel bug. I'm going to > > try out Zed's release candidate and see if it works there. If not, > > I'll run it by him and see. Basically, Mongrel is setting the > > REQUEST_URI header to '/' rather than the full uri like Apache, > > Webrick, etc. > > > > Bryan > > > > On 6/3/06, Jonathan Buch <john at oxyliquit.de> wrote: > > > Hi, > > > > > > I tried to move Oxyliquit to mongrel (because my virtual server is > > > acting up real strange) but I have a problem: > > > > > > The pager doesn't work anymore. The links are broken (they don't have > > > the domain it it, just the path). Might be the @request.uri ? > > > Not sure. I moved Oxywtf back to apache. > > > > > > Thank you William for reporting the problem with the Tutorials! > > > > > > I apologize for the instability of Oxywtf... > > > This vServer sucks donkey ass... I want a better one, should've taken > > > Hosteurope after all.... ;/ > > > > > > Kashia > > > > > > -- > > > Feel the love > > > http://pinkjuice.com/pics/ruby.png > > > _______________________________________________ > > > Nitro-general mailing list > > > Nitro-general at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/nitro-general > > > > > _______________________________________________ > > Nitro-general mailing list > > Nitro-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/nitro-general > > > > > -- > Cheers, > zimbatm > > http://zimbatm.oree.ch > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > From zimba.tm at gmail.com Mon Jun 5 16:23:40 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Mon, 5 Jun 2006 22:23:40 +0200 Subject: [Nitro] [BUG] Mongrel + Pager In-Reply-To: <bd93db0d0606051314w336b7ea3gaff29fef55019d13@mail.gmail.com> References: <op.tak67dsmxegpx6@jo.local> <bd93db0d0606051137y7b9371f3q86f9061c40cf9c10@mail.gmail.com> <3ff63f9b0606051218s3c5a2595r983f66e8ea529785@mail.gmail.com> <bd93db0d0606051314w336b7ea3gaff29fef55019d13@mail.gmail.com> Message-ID: <3ff63f9b0606051323t5026fc4x9f19f752b718f7ef@mail.gmail.com> On 05/06/06, Bryan Soto <bryan.a.soto at gmail.com> wrote: > What version of Mongrel did you use? I confirmed the error with > 0.3.12.4 on Win32. Could you share your adapter? Same mongrel version but on Gnu/Linux/Ubuntu/Dapper http://zimbatm.oree.ch/files/redirect_handler.tgz <-- Teh adapter -- Cheers, zimbatm http://zimbatm.oree.ch From john at oxyliquit.de Mon Jun 5 16:48:23 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Mon, 05 Jun 2006 22:48:23 +0200 Subject: [Nitro] Nitro Team In-Reply-To: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> Message-ID: <op.taoxexevxegpx6@jo.local> Hi, > - nitro core team > - nitro development team > - nitro team? how about - nitro core developers Jo -- Feel the love http://pinkjuice.com/pics/ruby.png From bryan.a.soto at gmail.com Mon Jun 5 17:02:39 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Mon, 5 Jun 2006 14:02:39 -0700 Subject: [Nitro] [BUG] Mongrel + Pager In-Reply-To: <3ff63f9b0606051323t5026fc4x9f19f752b718f7ef@mail.gmail.com> References: <op.tak67dsmxegpx6@jo.local> <bd93db0d0606051137y7b9371f3q86f9061c40cf9c10@mail.gmail.com> <3ff63f9b0606051218s3c5a2595r983f66e8ea529785@mail.gmail.com> <bd93db0d0606051314w336b7ea3gaff29fef55019d13@mail.gmail.com> <3ff63f9b0606051323t5026fc4x9f19f752b718f7ef@mail.gmail.com> Message-ID: <bd93db0d0606051402l718d8a64t5648492e1ce563c8@mail.gmail.com> On 6/5/06, Jonas Pfenniger <zimba.tm at gmail.com> wrote: > On 05/06/06, Bryan Soto <bryan.a.soto at gmail.com> wrote: > > What version of Mongrel did you use? I confirmed the error with > > 0.3.12.4 on Win32. Could you share your adapter? > > Same mongrel version but on Gnu/Linux/Ubuntu/Dapper > > http://zimbatm.oree.ch/files/redirect_handler.tgz <-- Teh adapter > Okay. My mistake. I put a breakpoint in the code before any of our code executed and saw REQUEST_URI = '/', but I comment out some of the later manipulations and things work fine. So at this point, I'm not quite sure what I saw. I'll see what manipulations are required and I'm sure Kashia will be happy to test. :) Bryan From bryan.a.soto at gmail.com Mon Jun 5 17:17:03 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Mon, 5 Jun 2006 14:17:03 -0700 Subject: [Nitro] [BUG] Mongrel + Pager In-Reply-To: <op.tak67dsmxegpx6@jo.local> References: <op.tak67dsmxegpx6@jo.local> Message-ID: <bd93db0d0606051417t7c63b03bh231be89e81acbee3@mail.gmail.com> On 6/3/06, Jonathan Buch <john at oxyliquit.de> wrote: > Hi, > > I tried to move Oxyliquit to mongrel (because my virtual server is > acting up real strange) but I have a problem: > > The pager doesn't work anymore. The links are broken (they don't have > the domain it it, just the path). Might be the @request.uri ? > Not sure. I moved Oxywtf back to apache. > Hey Kashia, if you have time, I uploaded a bundle to devlab. It works with the pager in case you're interested. From transfire at gmail.com Mon Jun 5 18:17:55 2006 From: transfire at gmail.com (TRANS) Date: Mon, 5 Jun 2006 18:17:55 -0400 Subject: [Nitro] Reap 6.0.0 (RC) Message-ID: <4b6f054f0606051517o73e40edbtb94f98370a71f4ba@mail.gmail.com> Okay I just uploaded Reap 6. Have a look, give it a whirl and report any problems. Note, Reap 6 requires Facets 1.4.0. And please don't be foolish! Backup your projects before trying Reap 6 out on them! I'll be working on improving the docs to explain some of the latest features such as the new trunk setting that can be used by a number of tasks (useful for svn style project folders) and the ability to create a Reapfile. I'm looking forward to moving both Facets and Reap to devlab after the round of release candidates and subsequent offical release. Have fun! T. From bryan.a.soto at gmail.com Mon Jun 5 20:00:09 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Mon, 5 Jun 2006 17:00:09 -0700 Subject: [Nitro] puts vs. Logger.info Message-ID: <bd93db0d0606051700q51bf25dane235bb251880c265@mail.gmail.com> This uses Logger: INFO: Og uses the Mysql store. Shouldn't this be output with the Logger as well rather than puts? ==> Setup for live mode ==> Listening at 0.0.0.0:9999. [MONGREL] ==> Press Ctrl-C to shutdown; Run with --help for options. Opinions? From james_b at neurogami.com Mon Jun 5 21:50:46 2006 From: james_b at neurogami.com (James Britt) Date: Mon, 05 Jun 2006 18:50:46 -0700 Subject: [Nitro] puts vs. Logger.info In-Reply-To: <bd93db0d0606051700q51bf25dane235bb251880c265@mail.gmail.com> References: <bd93db0d0606051700q51bf25dane235bb251880c265@mail.gmail.com> Message-ID: <4484DF76.8030702@neurogami.com> Bryan Soto wrote: > This uses Logger: > > INFO: Og uses the Mysql store. > > Shouldn't this be output with the Logger as well rather than puts? > > ==> Setup for live mode > ==> Listening at 0.0.0.0:9999. [MONGREL] > ==> Press Ctrl-C to shutdown; Run with --help for options. I like getting easy verification of configuration. I'd even like to see the Og store with this initial display. -- James Britt "A principle or axiom is of no value without the rules for applying it." - Len Bullard From zimba.tm at gmail.com Tue Jun 6 03:36:04 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 6 Jun 2006 09:36:04 +0200 Subject: [Nitro] Nitro Team In-Reply-To: <op.taoxexevxegpx6@jo.local> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> <op.taoxexevxegpx6@jo.local> Message-ID: <3ff63f9b0606060036i7c575b73ua9220f695b37e983@mail.gmail.com> On 05/06/06, Jonathan Buch <john at oxyliquit.de> wrote: > - nitro core developers Or nitro hardcore developers :-p -- Cheers, zimbatm http://zimbatm.oree.ch From aidan at yoyo.org Tue Jun 6 04:04:36 2006 From: aidan at yoyo.org (Aidan Rogers) Date: Tue, 6 Jun 2006 09:04:36 +0100 Subject: [Nitro] Nitro Team In-Reply-To: <3ff63f9b0606060036i7c575b73ua9220f695b37e983@mail.gmail.com> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> <op.taoxexevxegpx6@jo.local> <3ff63f9b0606060036i7c575b73ua9220f695b37e983@mail.gmail.com> Message-ID: <1199533C-70AB-4316-9AED-1FE9C0B2790D@yoyo.org> I'd say Nitro Core Team, simply because not everyone on the team will be an active developer (necessarily). There may well be people on there who are great at testing and documenting. As developers, we often overlook these wonderful people. Aidan On 06/06/2006, at 8:36 AM, Jonas Pfenniger wrote: > On 05/06/06, Jonathan Buch <john at oxyliquit.de> wrote: >> - nitro core developers > > Or nitro hardcore developers :-p > > > -- > Cheers, > zimbatm > > http://zimbatm.oree.ch > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > From john at oxyliquit.de Tue Jun 6 04:45:03 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Tue, 06 Jun 2006 10:45:03 +0200 Subject: [Nitro] [BUG] Mongrel + Pager In-Reply-To: <bd93db0d0606051417t7c63b03bh231be89e81acbee3@mail.gmail.com> References: <op.tak67dsmxegpx6@jo.local> <bd93db0d0606051417t7c63b03bh231be89e81acbee3@mail.gmail.com> Message-ID: <op.tapukys3xegpx6@jo.local> Hi, > Hey Kashia, if you have time, I uploaded a bundle to devlab. It works > with the pager in case you're interested. Thank you very much! Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From dnm at pobox.com Tue Jun 6 05:11:59 2006 From: dnm at pobox.com (Dan Moniz) Date: Tue, 06 Jun 2006 02:11:59 -0700 Subject: [Nitro] Nitro-general Digest, Vol 18, Issue 1 In-Reply-To: <mailman.1382.1149233838.25533.nitro-general@rubyforge.org> References: <mailman.1382.1149233838.25533.nitro-general@rubyforge.org> Message-ID: <448546DF.3020603@pobox.com> nitro-general-request at rubyforge.org wrote: > Message: 9 > Date: Thu, 1 Jun 2006 19:04:46 +0300 > From: "George Moschovitis" <george.moschovitis at gmail.com> > Subject: Re: [Nitro] Shepherding Nitro documentation (and Reap) > To: "General discussion about Nitro" <nitro-general at rubyforge.org> > Message-ID: <afd80b540606010904n167885c9m8a09c6dbec4fb3c8 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >> > You already got.. like a plan on where to start with the documentation? > > Yeah, I was wondering if you have a plan or something. > > As I said on the list, in a few weeks I will be able to work quite > more on community development issues (including docs). It would be > nice to cooperate with you (an all other parties interested) I'm putting together a comprehensive plan after I finish going through the existing documentation and mailing list archives in order to pull some common threads together about what's already there or kinda there, and what's totally missing, combined with what people have been asking (and in the case of Oxyliquit, what people have been answering). I have a sketch of plan now, mostly based off of my experiences using Nitro and a long post James Britt made a while back, which I think enumerated a lot of good documentation targets. I'm also very concerned and interested in packaging Nitro in easier-to-get-running ways, so I'm working on that as well. -- Dan Moniz <dnm at pobox.com> [http://pobox.com/~dnm/] From dnm at pobox.com Tue Jun 6 05:14:46 2006 From: dnm at pobox.com (Dan Moniz) Date: Tue, 06 Jun 2006 02:14:46 -0700 Subject: [Nitro] RubyForge home page link needs to be fixed Message-ID: <44854786.9050604@pobox.com> Hi all, Small change request to the RubyForge Nitro page. The Project Home Page link still points to nitrohq.com, which is now a place holder site having nothing to do with Nitro. I know the new site is still in the works behind the scenes, but pointing it even to the placeholder site at nitroproject.org would be a huge boon, especially to those I send to the RubyForge page... -- Dan Moniz <dnm at pobox.com> [http://pobox.com/~dnm/] From john at oxyliquit.de Tue Jun 6 05:46:33 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Tue, 06 Jun 2006 11:46:33 +0200 Subject: [Nitro] Nitro-general Digest, Vol 18, Issue 1 In-Reply-To: <448546DF.3020603@pobox.com> References: <mailman.1382.1149233838.25533.nitro-general@rubyforge.org> <448546DF.3020603@pobox.com> Message-ID: <op.tapxfveexegpx6@jo.local> Hi, > I'm putting together a comprehensive plan after I finish going through > the existing documentation and mailing list archives in order to pull > some common threads together about what's already there or kinda there, > and what's totally missing, combined with what people have been asking > (and in the case of Oxyliquit, what people have been answering). > > I have a sketch of plan now, mostly based off of my experiences using > Nitro and a long post James Britt made a while back, which I think > enumerated a lot of good documentation targets. Very good :) > I'm also very concerned and interested in packaging Nitro in > easier-to-get-running ways, so I'm working on that as well. Could you tell us more about this, since my brother and I are working on a one-click Nitro installer/runner/organizer/controller like "Locomotive" for Rails. Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From transfire at gmail.com Tue Jun 6 06:39:09 2006 From: transfire at gmail.com (TRANS) Date: Tue, 6 Jun 2006 06:39:09 -0400 Subject: [Nitro] RubyForge home page link needs to be fixed In-Reply-To: <44854786.9050604@pobox.com> References: <44854786.9050604@pobox.com> Message-ID: <4b6f054f0606060339m38ad6f4cyb5e97a4b717acd6f@mail.gmail.com> On 6/6/06, Dan Moniz <dnm at pobox.com> wrote: > Hi all, > > Small change request to the RubyForge Nitro page. The Project Home Page > link still points to nitrohq.com, which is now a place holder site > having nothing to do with Nitro. I know the new site is still in the > works behind the scenes, but pointing it even to the placeholder site at > nitroproject.org would be a huge boon, especially to those I send to the > RubyForge page... > George, how about giving Rubyforge admin rights to a second person so they can help with little things like this. T. From jlsysinc at alltel.net Tue Jun 6 07:16:03 2006 From: jlsysinc at alltel.net (Jon A. Lambert) Date: Tue, 6 Jun 2006 07:16:03 -0400 Subject: [Nitro] Arbitrary length URIs Message-ID: <013d01c6895a$99a69150$0200000a@agamemnon> I want to pass the URI parameters as an array to my action, because it's a file path and can be an arbitrary length. http://myssite.com/repository/index/dir_1/dir_2/dir_n In Rails I would do: map.connect 'repository/index/*path', :controller => "repository", :action => "index" I tried this in my repository controller def index(*fpath) end And am I going to have problems with periods? Is something going to intercept what look like file requests before they get to my controller? As in.. http://myssite.com/repository/show/dir_1/dir_2/dir_n/file.txt Thanks J. Lambert From surrender_it at yahoo.it Tue Jun 6 07:38:47 2006 From: surrender_it at yahoo.it (gabriele renzi) Date: Tue, 06 Jun 2006 13:38:47 +0200 Subject: [Nitro] Nitro Team In-Reply-To: <1199533C-70AB-4316-9AED-1FE9C0B2790D@yoyo.org> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> <op.taoxexevxegpx6@jo.local> <3ff63f9b0606060036i7c575b73ua9220f695b37e983@mail.gmail.com> <1199533C-70AB-4316-9AED-1FE9C0B2790D@yoyo.org> Message-ID: <e63pg7$6vv$1@sea.gmane.org> Aidan Rogers ha scritto: > I'd say Nitro Core Team, simply because not everyone on the team will > be an active developer (necessarily). There may well be people on > there who are great at testing and documenting. As developers, we > often overlook these wonderful people. +1, and it also is the most understandable name for people not involeved in the comunity, imvho. From zimba.tm at gmail.com Tue Jun 6 07:50:27 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 6 Jun 2006 13:50:27 +0200 Subject: [Nitro] Nitro Team In-Reply-To: <e63pg7$6vv$1@sea.gmane.org> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> <op.taoxexevxegpx6@jo.local> <3ff63f9b0606060036i7c575b73ua9220f695b37e983@mail.gmail.com> <1199533C-70AB-4316-9AED-1FE9C0B2790D@yoyo.org> <e63pg7$6vv$1@sea.gmane.org> Message-ID: <3ff63f9b0606060450q71976eb1iec633ffbf1a776f7@mail.gmail.com> Ruby Core Team : +1 -- Cheers, zimbatm http://zimbatm.oree.ch From fabian at oggu.de Tue Jun 6 09:09:25 2006 From: fabian at oggu.de (Fabian Buch) Date: Tue, 6 Jun 2006 15:09:25 +0200 Subject: [Nitro] RubyForge home page link needs to be fixed In-Reply-To: <44854786.9050604@pobox.com> References: <44854786.9050604@pobox.com> Message-ID: <2f014087110b933f99ac07ea98aefae8@oggu.de> +1 Only big G has the permission to do that? Or Brian too? Am 06.06.2006 um 11:14 schrieb Dan Moniz: > Small change request to the RubyForge Nitro page. The Project Home Page > link still points to nitrohq.com, which is now a place holder site > having nothing to do with Nitro. I know the new site is still in the > works behind the scenes, but pointing it even to the placeholder site > at > nitroproject.org would be a huge boon, especially to those I send to > the > RubyForge page... From john at oxyliquit.de Tue Jun 6 09:35:32 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Tue, 06 Jun 2006 15:35:32 +0200 Subject: [Nitro] Nitro Team In-Reply-To: <3ff63f9b0606060450q71976eb1iec633ffbf1a776f7@mail.gmail.com> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> <op.taoxexevxegpx6@jo.local> <3ff63f9b0606060036i7c575b73ua9220f695b37e983@mail.gmail.com> <1199533C-70AB-4316-9AED-1FE9C0B2790D@yoyo.org> <e63pg7$6vv$1@sea.gmane.org> <3ff63f9b0606060450q71976eb1iec633ffbf1a776f7@mail.gmail.com> Message-ID: <op.tap71ipfxegpx6@jo.local> On Tue, 06 Jun 2006 13:50:27 +0200, Jonas Pfenniger <zimba.tm at gmail.com> wrote: > Ruby Core Team : +1 +1 Kash -- Feel the love http://pinkjuice.com/pics/ruby.png From john at oxyliquit.de Tue Jun 6 09:41:09 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Tue, 06 Jun 2006 15:41:09 +0200 Subject: [Nitro] Arbitrary length URIs In-Reply-To: <013d01c6895a$99a69150$0200000a@agamemnon> References: <013d01c6895a$99a69150$0200000a@agamemnon> Message-ID: <op.tap8avvexegpx6@jo.local> Hi, > I tried this in my repository controller > def index(*fpath) > end Which is almost the right way to do it :) def show(*fpath) end should be used (like your url below) because mapping *fpath to index isn't going to work if you have a url like: /repository/dir_1/ etc (because it will look for a method called `dir_1` in the controller. > And am I going to have problems with periods? Is something going to > intercept what look like file requests before they get to my controller? > As in.. > http://myssite.com/repository/show/dir_1/dir_2/dir_n/file.txt If that file (file.txt) exists in the path `$appdir/public/repository/show/dir_1/dir_2/dir_n/` then it will be served, otherwise it will be handled by your controller. Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From aidan at yoyo.org Tue Jun 6 09:43:50 2006 From: aidan at yoyo.org (Aidan Rogers) Date: Tue, 6 Jun 2006 14:43:50 +0100 Subject: [Nitro] Nitro Team In-Reply-To: <op.tap71ipfxegpx6@jo.local> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> <op.taoxexevxegpx6@jo.local> <3ff63f9b0606060036i7c575b73ua9220f695b37e983@mail.gmail.com> <1199533C-70AB-4316-9AED-1FE9C0B2790D@yoyo.org> <e63pg7$6vv$1@sea.gmane.org> <3ff63f9b0606060450q71976eb1iec633ffbf1a776f7@mail.gmail.com> <op.tap71ipfxegpx6@jo.local> Message-ID: <B52B5B1D-8535-4BFA-BCD9-FF4BB5E2C4BE@yoyo.org> I take it you mean Nitro Core Team as opposed to Ruby? Or are we all getting promotions? :-) Aidan On 06/06/2006, at 2:35 PM, Jonathan Buch wrote: >> Ruby Core Team : +1 > > +1 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060606/6b67eef9/attachment.html From john at oxyliquit.de Tue Jun 6 09:52:19 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Tue, 06 Jun 2006 15:52:19 +0200 Subject: [Nitro] Arbitrary length URIs In-Reply-To: <op.tap8avvexegpx6@jo.local> References: <013d01c6895a$99a69150$0200000a@agamemnon> <op.tap8avvexegpx6@jo.local> Message-ID: <op.tap8qlpwxegpx6@jo.local> Hi, A little thought I had afterwards: >> And am I going to have problems with periods? Is something going to >> intercept what look like file requests before they get to my controller? >> As in.. >> http://myssite.com/repository/show/dir_1/dir_2/dir_n/file.txt > > If that file (file.txt) exists in the path > `$appdir/public/repository/show/dir_1/dir_2/dir_n/` > then it will be served, otherwise it will be handled by your controller. This is dependand on your Nitro version. I think versions before 0.30 had this evil regex that all urls with periods in it were regarded as files in the filesystem. This was removed gladly. In 0.30 and above my comment will be true. Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From john at oxyliquit.de Tue Jun 6 09:52:21 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Tue, 06 Jun 2006 15:52:21 +0200 Subject: [Nitro] Nitro Team In-Reply-To: <B52B5B1D-8535-4BFA-BCD9-FF4BB5E2C4BE@yoyo.org> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> <op.taoxexevxegpx6@jo.local> <3ff63f9b0606060036i7c575b73ua9220f695b37e983@mail.gmail.com> <1199533C-70AB-4316-9AED-1FE9C0B2790D@yoyo.org> <e63pg7$6vv$1@sea.gmane.org> <3ff63f9b0606060450q71976eb1iec633ffbf1a776f7@mail.gmail.com> <op.tap71ipfxegpx6@jo.local> <B52B5B1D-8535-4BFA-BCD9-FF4BB5E2C4BE@yoyo.org> Message-ID: <op.tap8sxhcxegpx6@jo.local> On Tue, 06 Jun 2006 15:43:50 +0200, Aidan Rogers <aidan at yoyo.org> wrote: > I take it you mean Nitro Core Team as opposed to Ruby? Or are we all > getting promotions? :-) Argh! Teh pain ;D >>> Nitro Core Team +1 kash ;/ -- Feel the love http://pinkjuice.com/pics/ruby.png From jlsysinc at alltel.net Tue Jun 6 10:00:27 2006 From: jlsysinc at alltel.net (Jon A. Lambert) Date: Tue, 6 Jun 2006 10:00:27 -0400 Subject: [Nitro] Request parameters Message-ID: <016b01c68971$912998d0$0200000a@agamemnon> Since I didn't know how to pass arbitrary number of params as array, I tried request parameters. I was getting an error in my actions concerning the number of parameter, so I added a 2nd parameter. This is what it looks lke Mapping... Nitro::Server.map = { '/' => ArchiveController } Controller has... def index(path="",foo="") pp path pp foo end For: http://localhost:7777/ Prints: "" "" For: http://localhost:7777/?path= Prints: "path" nil For: http://localhost:7777/?path=papers Prints: "papers" "papers" What gives? Thanks J. Lambert From jlsysinc at alltel.net Tue Jun 6 10:13:00 2006 From: jlsysinc at alltel.net (Jon A. Lambert) Date: Tue, 6 Jun 2006 10:13:00 -0400 Subject: [Nitro] Arbitrary length URIs References: <013d01c6895a$99a69150$0200000a@agamemnon> <op.tap8avvexegpx6@jo.local> Message-ID: <018001c68973$5166e520$0200000a@agamemnon> Jonathan Buch wrote: > Hi, > >> I tried this in my repository controller >> def index(*fpath) >> end > > Which is almost the right way to do it :) > > def show(*fpath) > end What's the difference? > should be used (like your url below) because mapping *fpath to index > isn't going to work if you have a url like: > /repository/dir_1/ etc (because it will look for a method called > `dir_1` in the controller. My urls aren't like.. http://myssite.com/repository/dir_1/dir_2/dir_n I have the action, 'index', in the url. http://myssite.com/repository/index/dir_1/dir_2/dir_n I had assumed that http://myssite.com/repository/ and http://myssite.com/repository/index both call the index method of RepositoryController? -- J. Lambert From bryan.a.soto at gmail.com Tue Jun 6 10:57:26 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Tue, 6 Jun 2006 07:57:26 -0700 Subject: [Nitro] RubyForge home page link needs to be fixed In-Reply-To: <2f014087110b933f99ac07ea98aefae8@oggu.de> References: <44854786.9050604@pobox.com> <2f014087110b933f99ac07ea98aefae8@oggu.de> Message-ID: <bd93db0d0606060757t1bd80056hbc213c0dcaf2a363@mail.gmail.com> On 6/6/06, Fabian Buch <fabian at oggu.de> wrote: > +1 > > Only big G has the permission to do that? Or Brian too? > Just George. Bryan From transfire at gmail.com Tue Jun 6 11:04:24 2006 From: transfire at gmail.com (TRANS) Date: Tue, 6 Jun 2006 11:04:24 -0400 Subject: [Nitro] Project Directory Layouts (on Ruby-talk) Message-ID: <4b6f054f0606060804p4011a9e8vf7abda4e80e23a75@mail.gmail.com> Just would like to direct attention to my latest ruby-talk post (rather than cross-post). http://groups.google.com/group/ruby-talk-google/browse_thread/thread/a4c8cc98a77fc9f2/39cd01a8acb68c6f?hl=en#39cd01a8acb68c6f T. From james_b at neurogami.com Tue Jun 6 12:05:22 2006 From: james_b at neurogami.com (James Britt) Date: Tue, 06 Jun 2006 09:05:22 -0700 Subject: [Nitro] Nitro Team In-Reply-To: <op.tap8sxhcxegpx6@jo.local> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> <op.taoxexevxegpx6@jo.local> <3ff63f9b0606060036i7c575b73ua9220f695b37e983@mail.gmail.com> <1199533C-70AB-4316-9AED-1FE9C0B2790D@yoyo.org> <e63pg7$6vv$1@sea.gmane.org> <3ff63f9b0606060450q71976eb1iec633ffbf1a776f7@mail.gmail.com> <op.tap71ipfxegpx6@jo.local> <B52B5B1D-8535-4BFA-BCD9-FF4BB5E2C4BE@yoyo.org> <op.tap8sxhcxegpx6@jo.local> Message-ID: <4485A7C2.4050501@neurogami.com> Jonathan Buch wrote: > On Tue, 06 Jun 2006 15:43:50 +0200, Aidan Rogers <aidan at yoyo.org> wrote: > > >>I take it you mean Nitro Core Team as opposed to Ruby? Or are we all >>getting promotions? :-) > > > Argh! Teh pain ;D > > >>>>Nitro Core Team The nucleus! -- James Britt http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - The Journal By & For Rubyists http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys http://www.30secondrule.com - Building Better Tools From jeff.darklight at gmail.com Tue Jun 6 12:07:32 2006 From: jeff.darklight at gmail.com (Jeff Wood) Date: Tue, 6 Jun 2006 09:07:32 -0700 Subject: [Nitro] Nitro Team In-Reply-To: <4485A7C2.4050501@neurogami.com> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> <op.taoxexevxegpx6@jo.local> <3ff63f9b0606060036i7c575b73ua9220f695b37e983@mail.gmail.com> <1199533C-70AB-4316-9AED-1FE9C0B2790D@yoyo.org> <e63pg7$6vv$1@sea.gmane.org> <3ff63f9b0606060450q71976eb1iec633ffbf1a776f7@mail.gmail.com> <op.tap71ipfxegpx6@jo.local> <B52B5B1D-8535-4BFA-BCD9-FF4BB5E2C4BE@yoyo.org> <op.tap8sxhcxegpx6@jo.local> <4485A7C2.4050501@neurogami.com> Message-ID: <b539c61e0606060907u6cba97a0q4a0cced4e66dd353@mail.gmail.com> What about Nitro Generators ??? --jw. On 6/6/06, James Britt <james_b at neurogami.com> wrote: > Jonathan Buch wrote: > > On Tue, 06 Jun 2006 15:43:50 +0200, Aidan Rogers <aidan at yoyo.org> wrote: > > > > > >>I take it you mean Nitro Core Team as opposed to Ruby? Or are we all > >>getting promotions? :-) > > > > > > Argh! Teh pain ;D > > > > > >>>>Nitro Core Team > > The nucleus! > > > -- > James Britt > > http://www.ruby-doc.org - Ruby Help & Documentation > http://www.artima.com/rubycs/ - The Journal By & For Rubyists > http://www.rubystuff.com - The Ruby Store for Ruby Stuff > http://www.jamesbritt.com - Playing with Better Toys > http://www.30secondrule.com - Building Better Tools > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > From john at oxyliquit.de Tue Jun 6 12:08:27 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Tue, 06 Jun 2006 18:08:27 +0200 Subject: [Nitro] Arbitrary length URIs In-Reply-To: <018001c68973$5166e520$0200000a@agamemnon> References: <013d01c6895a$99a69150$0200000a@agamemnon> <op.tap8avvexegpx6@jo.local> <018001c68973$5166e520$0200000a@agamemnon> Message-ID: <op.taqe4dq8xegpx6@jo.local> Hi, >>> def index(*fpath) >>> end >> >> Which is almost the right way to do it :) >> >> def show(*fpath) >> end > > What's the difference? The difference being (like you note later in this post) that /repository/ is the same as /repository/index >> should be used (like your url below) because mapping *fpath to index >> isn't going to work if you have a url like: >> /repository/dir_1/ etc (because it will look for a method called >> `dir_1` in the controller. > > My urls aren't like.. > http://myssite.com/repository/dir_1/dir_2/dir_n > I have the action, 'index', in the url. > http://myssite.com/repository/index/dir_1/dir_2/dir_n I think I got confused by your last url, which is: http://myssite.com/repository/show/dir_1/dir_2/dir_n/file.txt (note the /show/ here), and my assumption that you maybe didn't know about that the index method gets mapped to /repository/. > I had assumed that http://myssite.com/repository/ and > http://myssite.com/repository/index both call the index method of > RepositoryController? This is correct, yes. Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From john at oxyliquit.de Tue Jun 6 12:20:58 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Tue, 06 Jun 2006 18:20:58 +0200 Subject: [Nitro] Request parameters In-Reply-To: <016b01c68971$912998d0$0200000a@agamemnon> References: <016b01c68971$912998d0$0200000a@agamemnon> Message-ID: <op.taqfo8xpxegpx6@jo.local> On Tue, 06 Jun 2006 16:00:27 +0200, Jon A. Lambert <jlsysinc at alltel.net> wrote: > Since I didn't know how to pass arbitrary number of params as array, I > tried request parameters. > I was getting an error in my actions concerning the number of parameter, > so I added a 2nd parameter. This is what it looks lke Yes, I'm getting bitten by that too, which produces real nasty workarounds in Oxyliquit ;/ There was a workaround from Gillaume which iirc was a bit questionable... George, could you please disable this "munging" of ?params=asd into actions? This really is annoying... But maybe I'm getting this all wrong? I know that at least Manveru has problems with that too... Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From chiron.sun at gmail.com Tue Jun 6 12:37:58 2006 From: chiron.sun at gmail.com (chiron sun) Date: Wed, 7 Jun 2006 02:37:58 +1000 Subject: [Nitro] Hi -- accessing two databases In-Reply-To: <op.tapukys3xegpx6@jo.local> Message-ID: <017001c68987$94ba37a0$80e7dbcb@ghostgum> Hello folks I want to get a picture of Og. I have been playing with Ruby for a little while. I've been playing with applications and middleware for 20+ years. I have some previous FORTH and Smalltalk experience everything Ruby is not completely new to me. I like it a lot. More so I like the community process developing. Funny how the community reflects the language. Can someone point me to a basic (descriptive) documentation on Og. Essentially the kind of thing that goes into a "User Guide" or "Programmers Guide". Failing that, I've got an expanded quest ... My first question is about the complete set of Options (properties) for Og as in the Og.setup(...) method. And the options on the Model class. Such beauties as: > is Timestamped > is Taggable > is Revisable > include Sweeper > > property :title, String, :uniq => true > property :body, String, :control => :textarea > > (... from nitro/Spark) Not every "label" and "symbol" is completely intuitive. I've discovered that Taggable can create at least two un-documented tables. Automation is fine. When it comes to what goes on a database, it all has to be "accounted for" and "tracked". I find some Og behaviours bordering on frightening (hence my added 'warning' on the question). I have spent my evening 'diagnosing' the changes in my "Test" database. They are both interesting and inscrutable. See this question. It has become very interesting as a learning exercise: http://oxyliquit.de/question/58 I want to keep the question manageable. If someone can begin with the functions (descriptive) of the options that one may use with a model file and the managed classes' options. On the critical level, there needs to be a way to package one database (technical term a "sub-schema") as an object. At the data-model-layer Og is some tables with relations. I say this because the answer to my question is at the (unit) database logical level and not with collected "tables". Some of the info I'm looking for was on the nitrohq wiki -- Is that going to be restored? Aloha, platypus (William) -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.2/356 - Release Date: 05-Jun-2006 From dylanb at digitalvalence.com Tue Jun 6 13:08:39 2006 From: dylanb at digitalvalence.com (Dylan Bruzenak) Date: Tue, 06 Jun 2006 12:08:39 -0500 Subject: [Nitro] Nitro Team In-Reply-To: <b539c61e0606060907u6cba97a0q4a0cced4e66dd353@mail.gmail.com> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> <op.taoxexevxegpx6@jo.local> <3ff63f9b0606060036i7c575b73ua9220f695b37e983@mail.gmail.com> <1199533C-70AB-4316-9AED-1FE9C0B2790D@yoyo.org> <e63pg7$6vv$1@sea.gmane.org> <3ff63f9b0606060450q71976eb1iec633ffbf1a776f7@mail.gmail.com> <op.tap71ipfxegpx6@jo.local> <B52B5B1D-8535-4BFA-BCD9-FF4BB5E2C4BE@yoyo.org> <op.tap8sxhcxegpx6@jo.local> <4485A7C2.4050501@neurogami.com> <b539c61e0606060907u6cba97a0q4a0cced4e66dd353@mail.gmail.com> Message-ID: <4485B697.4000907@digitalvalence.com> :) NitrOgs ? Nitro Code Shepards ? Nitro Core Team is good, but so very generic :) Then again, sometimes that is best. > What about > > Nitro Generators ??? > > --jw. > > On 6/6/06, James Britt <james_b at neurogami.com> wrote: > >> Jonathan Buch wrote: >> >>> On Tue, 06 Jun 2006 15:43:50 +0200, Aidan Rogers <aidan at yoyo.org> wrote: >>> >>> >>> >>>> I take it you mean Nitro Core Team as opposed to Ruby? Or are we all >>>> getting promotions? :-) >>>> >>> Argh! Teh pain ;D >>> >>> >>> >>>>>> Nitro Core Team >>>>>> >> The nucleus! >> >> >> -- >> James Britt >> >> http://www.ruby-doc.org - Ruby Help & Documentation >> http://www.artima.com/rubycs/ - The Journal By & For Rubyists >> http://www.rubystuff.com - The Ruby Store for Ruby Stuff >> http://www.jamesbritt.com - Playing with Better Toys >> http://www.30secondrule.com - Building Better Tools >> _______________________________________________ >> Nitro-general mailing list >> Nitro-general at rubyforge.org >> http://rubyforge.org/mailman/listinfo/nitro-general >> >> > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > > From transfire at gmail.com Tue Jun 6 13:21:42 2006 From: transfire at gmail.com (TRANS) Date: Tue, 6 Jun 2006 13:21:42 -0400 Subject: [Nitro] [ANN] Facets 1.4 RC1 In-Reply-To: <4b6f054f0606051124v9e71956sb1ef5c49b2b3c218@mail.gmail.com> References: <4b6f054f0606051019q60c67e1cg73375d98595bcb06@mail.gmail.com> <afd80b540606051024w68fed70cq5c15661954b9381f@mail.gmail.com> <4b6f054f0606051124v9e71956sb1ef5c49b2b3c218@mail.gmail.com> Message-ID: <4b6f054f0606061021n36afc70bs6121571562507ca6@mail.gmail.com> Hey all. Just put out Facets 1.4.1 (aka RC2) There are only two changes. 1) the package is all inclusive now, i.e. contains the whole project repository. And 2) included an update to typecast.rb (Thanks zimbatm!) I also update Reap to 6.0.1 (same deal) It too fixes the package to contain the whole repository and I also ditched the "trunk" parameter (stupid idea, glad it's gone) Also I added a new parameter to the package task which allows you to set rules for where the files are copied into the release package. By default it's a one to one mirror image. I'll explain more about how it works later. T. From john at oxyliquit.de Tue Jun 6 19:00:59 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Wed, 07 Jun 2006 01:00:59 +0200 Subject: [Nitro] Hi -- accessing two databases In-Reply-To: <017001c68987$94ba37a0$80e7dbcb@ghostgum> References: <017001c68987$94ba37a0$80e7dbcb@ghostgum> Message-ID: <op.taqx7xisxegpx6@jo.local> Hi, > Can someone point me to a basic (descriptive) documentation on Og. > Essentially the kind of thing that goes into a "User Guide" or > "Programmers Guide". Failing that, I've got an expanded quest ... A tad older and not using all available goodies, an early tutorial from George is still very useful: http://rubygarden.org/index.cgi/Libraries/og_tutorial.rdoc > > is Timestamped This is a helper, look in og/lib/glue/ for all standard helpers. > > include Sweeper This is caching, my advise: stay away from that right now until George writes a tutorial about that like he promised some time ago (George, ping) > > property :title, String, :uniq => true > > property :body, String, :control => :textarea > Not every "label" and "symbol" is completely intuitive. I've discovered > that Taggable can create at least two un-documented tables. Automation > is fine. When it comes to what goes on a database, it all has to be > "accounted for" and "tracked". Og tracks your changes, that is all that is needed. To quote "robby on rails": http://www.robbyonrails.com:8680/articles/2005/08/18/active-record-i-3-u-but-i-still-trust-my-database-server-a-tiny-bit-more >> UPDATE: DHH responded to this post and provided a link which discusses >> Application Database[1] versus Integrated Database[2] >> [1]http://martinfowler.com/bliki/ApplicationDatabase.html >> [2]http://martinfowler.com/bliki/IntegrationDatabase.html > I find some Og behaviours bordering on frightening (hence my added > 'warning' on the question). I have spent my evening 'diagnosing' the > changes in my "Test" database. They are both interesting and > inscrutable. This are not so much 'changes' as things you type in your Og model get reflected to your Database instantly (well, after reloading the app). > Model classes are TABLES. Well.. yes? This is instantly visible in the DB after using the class. But even if you don't realize this at first, it "just works" like I'd say ;D > Og generates apparently missing tables. Heh.. yes? I'm not sure about your ruby background, but I have the hunch that you might come from the ActiveRecord front (I think AR doesn't create tables for you). Maybe that should be clarified on a "big picture" page on the new nitroproject page (when it goes live)? > Early tests made new tables. (Good thing I have a back-up). Um.. yes? Don't run on production systems while developing your new DB layout, this holds true for old-style hand editing as well ;) > Table names are based on the class-name (d'er). uhm.. sure.. how'd you like it? > Make sure the class names are the final table names you want. Nope, you can change the table name. class Asdf ann self, :sql_table => "TableName" end A tad undocumented perhaps, but it's good to match the DB names and Model names anyway (application database). > These points may be obvious to Og mechanics. For us newbies they can be > potential pitfalls. Yep, true that ^^; > See this question. It has become very interesting as a learning > exercise: > http://oxyliquit.de/question/58 Generally, please don't use Questions to carry additional information, better use a Tip with a good topic. (Search reasons, so that new users who begin to search on Oxywtf will get the most 'relevant' results first, and don't have to look for information in a question on a slightly different topic) > I want to keep the question manageable. If someone can begin with the > functions (descriptive) of the options that one may use with a model file > and the managed classes' options. [to be filled] > On the critical level, there needs to be a way to package one database Please define 'critical'. > (technical term a "sub-schema") as an object. At the data-model-layer Why would you want to have a database object? I mean other than an og instance (like in your question ($mysql = Og.setup(...))) would be such an object. Do I think too 'low-level'? Done too much `$sql1.exec("")` in php? But Og is like the _opposite_ of that... *think* Please define "sub-schema" here, possibly with a pointer to an appliaction or a library which handles 'packaging a database'. > Og is some tables with relations. Isn't that what 'Data' means? Some data floating around (somewhere I don't really care) which have dependencies and I can get them in any way I want. > I say this because the answer to my question is at the (unit) database > logical level and not with collected "tables". Define 'logical level'? Can I get you to rephrase this whole paragraph? I'm sorry but I think we're just on a different level of application coding somehow. Or did I get the meaning of 'database object' wrong? Well, in the case you meant that a database object is a `Foo.new` in the Database, so that Og manages a 'real' ORDBMS then the answer is no. Question is, why should it? Tables are so much more convenient, at least for me :P > Some of the info I'm looking for was on the nitrohq wiki -- Is that > going to be restored? I sure hope so... /me glares at big G. ;) Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From chiron.sun at gmail.com Wed Jun 7 00:17:38 2006 From: chiron.sun at gmail.com (chiron sun) Date: Wed, 7 Jun 2006 14:17:38 +1000 Subject: [Nitro] a 'database' entity? In-Reply-To: <op.taqx7xisxegpx6@jo.local> Message-ID: <01a501c689e9$531c80c0$80e7dbcb@ghostgum> G'day Kashia Thanks for your tips to my previous mail. I'll get on and apply the information were I'm able and digest new information. I think a discussion on one question you raised is useful generally. I mentioned a 'database entity' (or database object), viz. w> (technical term a "sub-schema") as an object. At the data-model-layer k> Why would you want to have a database object? I mean other than an og k> instance (like in your question ($mysql = Og.setup(...))) would be such k> an object. k> k> Do I think too 'low-level'? Done too much `$sql1.exec("")` in php? k> But Og is like the _opposite_ of that... *think* A database entity would be the collection of the table items that one (now) keeps in their model.rb file. In technical database terms it is everything in a "subschema". (Or some DBMS also name this as "schema". Pedantically a "schema" is everything managed by a DBMS, and more of a management item than anything of application interest.) My answer to the why question, is the same as my question to: Why would you want to have a "Post" object? In the example blog model from the article you mention ... http://rubygarden.org/index.cgi/Libraries/og_tutorial.rdoc k> Why would you want to have a database object? I mean other than an og A database entity is the structure for the tables and other structures that are all related to the same thing. A database encapsulates these model objects as the owner object. Using the "basic blog model" example from the article, the 'database' persists as three objects: # Blog category class Category attr_accessor :name end # Blog posting class Post attr_accessor :title attr_accessor :body attr_accessor :author end # Blog comment class Comment attr_accessor :title attr_accessor :body attr_accessor :author end In this simple case, a high-level database entity would be something like: # Basic Blog database class BasicBlog entity :Category entity :Post entity :Comment end The database entity encapsulates the model as a whole thing. There was also a request to identify a programme command k> library which handles 'packaging a database'. Generally that is the CONNECT command, or the database name you get when you use a database systems console client, e.g. with mysql: mysql database --user=me --password=pswd What is important in the context of my original query is that there is a lot of house keeping and benefits that come with Og generated and maintained automatically in the database as beneficial effects from using Og and Glue and perhaps other toys. My notion of structure and encapsulation suggests to me that if a framework manages internals automatically, then I should not need to know any of the internals unless I'm curious or actually working on the framework. My present understanding is that I can't connect something called "BasicBlog" and say scan the 'database entity' such as: myblog = BasicBlog.new( ... ) myblog.each do | item | { ... Clean up old entries ... } I can do something similar if I understand some internals for Og, the major comment on that is conceptual. The encapsulation is suitable or not suitable for the purpose at hand. I'm outlining the substance of my observation. As a novice player, the result of Og.setup( ... ) 'would' correspond to my example BasicBlog.new( ... ) Cheers, Will. -----Original Message----- From: nitro-general-bounces at rubyforge.org [mailto:nitro-general-bounces at rubyforge.org] On Behalf Of Jonathan Buch Sent: Wednesday, 7 June 2006 09:01 To: General discussion about Nitro Subject: Re: [Nitro] Hi -- accessing two databases Importance: Low > Essentially the kind of thing that goes into a "User Guide" or > "Programmers Guide". Failing that, I've got an expanded quest ... A tad older and not using all available goodies, an early tutorial from George is still very useful: http://rubygarden.org/index.cgi/Libraries/og_tutorial.rdoc ...........<snip>....... > Model classes are TABLES. Well.. yes? This is instantly visible in the DB after using the class. But even if you don't realize this at first, it "just works" like I'd say ;D ...........<snip>....... > On the critical level, there needs to be a way to package one database Please define 'critical'. > (technical term a "sub-schema") as an object. At the data-model-layer Why would you want to have a database object? I mean other than an og instance (like in your question ($mysql = Og.setup(...))) would be such an object. Do I think too 'low-level'? Done too much `$sql1.exec("")` in php? But Og is like the _opposite_ of that... *think* Please define "sub-schema" here, possibly with a pointer to an appliaction or a library which handles 'packaging a database'. ...........<snip>....... -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.2/356 - Release Date: 05-Jun-2006 From john at oxyliquit.de Wed Jun 7 08:37:17 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Wed, 07 Jun 2006 14:37:17 +0200 Subject: [Nitro] a 'database' entity? In-Reply-To: <01a501c689e9$531c80c0$80e7dbcb@ghostgum> References: <01a501c689e9$531c80c0$80e7dbcb@ghostgum> Message-ID: <op.tarzyypbxegpx6@jo.local> Hi, > A database entity would be the collection of the table items that one > (now) keeps in their model.rb file. In technical database terms it is > everything in a "subschema". (Or some DBMS also name this as "schema". > Pedantically a "schema" is everything managed by a DBMS, and more of a > management item than anything of application interest.) [1] > A database entity is the structure for the tables and other structures > that are all related to the same thing. A database encapsulates these > model objects as the owner object. This description fits $db = Og.start(....) very well.. > In this simple case, a high-level database entity would be something > like: > class BasicBlog > entity :Category > entity :Post > entity :Comment > end This is done by: $db.manage_classes(Foo, Bar, Asdf) right now, although I have to say that you idea of how to put the Models into a Database is very nice. George, you see this as well? > My notion of structure and encapsulation suggests to me that if a > framework manages internals automatically, then I should not need to > know any of the internals unless I'm curious or actually working on > the framework. Well, that is true, actually you shouldn't even be asking those questions if you didn't want to know about internals ;D That it is kind of icky right now to get 2 databases running, is a pity yes, but if you'd just run a single database, you wouldn't ever had to look into how your Data is managed (if you are meaning by 'internals' how the data is managed) > My present understanding is that I can't connect something called > "BasicBlog" and say scan the 'database entity' such as: You can: > myblog = BasicBlog.new( ... ) > myblog.each do | item | > { > ... Clean up old entries ... > } require 'myblog_models.rb' myblog = Og.setup(..) myblog.managed_classes.each do |item| # clean up old entries end That is, if you mean by myblog.each that you want to iterate over your previously defined Entities (entity :Category). If you mean by that, that you want to iterate over all existing 'objects' in your database, then you could use: items = myblog.managed_classes.map {|x| x.all }.flatten items.each do |item| # do stuff here end x.all is like Category.all, it will return all category objects. Although I doubt the usability of something like that in the most cases.. > I can do something similar if I understand some internals for Og, the > major comment on that is conceptual. The encapsulation is suitableor > not suitable for the purpose at hand. I'm outlining the substanceof my > observation. Atm the problem is just that the documentation is missing. A quote: > <paca> I don't know about the learning curve.. but the "running" > curve is pretty steep.. > <Kashia> well, that's kind of the same right now *g* Similar applies here, actually you don't have to know Og internals, you have to have basic information on how-stuff-works which is a bit lacking unfortunately. (Yes, that is quite a understatement ;D) Or maybe I'm misunderstanding your definition of 'internals'? For me, Og internals are how *Og* does something (like how it fetches stuff from the DB and makes Ruby objects from it), not how *I* can do what I want (for example, how can I get all managed classes from an Og instance (DB object)) > As a novice player, the result of Og.setup( ... ) 'would' correspond > to my example BasicBlog.new( ... ) What is the second part of this sentence? ('would' correspond to... *if* ..) Like I see it, Og.setup does exactly what BasicBlog.new would do (maybe not as nice, code-wise) I hope those directions put you on the right path and that you're able to use nitro how you would like to. Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From george.moschovitis at gmail.com Wed Jun 7 10:53:36 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Wed, 7 Jun 2006 17:53:36 +0300 Subject: [Nitro] Reap 6.0.0 (RC) In-Reply-To: <4b6f054f0606051517o73e40edbtb94f98370a71f4ba@mail.gmail.com> References: <4b6f054f0606051517o73e40edbtb94f98370a71f4ba@mail.gmail.com> Message-ID: <afd80b540606070753k47e39b54vfbcb5a9076ab6915@mail.gmail.com> Sory if you have explained this before, but do the old ProjectInfo files work with 6.0 ? thanks for your hard work, -g. On 6/6/06, TRANS <transfire at gmail.com> wrote: > Okay I just uploaded Reap 6. Have a look, give it a whirl and report > any problems. Note, Reap 6 requires Facets 1.4.0. > > And please don't be foolish! Backup your projects before trying Reap 6 > out on them! > > I'll be working on improving the docs to explain some of the latest > features such as the new trunk setting that can be used by a number of > tasks (useful for svn style project folders) and the ability to create > a Reapfile. > > I'm looking forward to moving both Facets and Reap to devlab after the > round of release candidates and subsequent offical release. > > Have fun! > T. > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Wed Jun 7 10:54:25 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Wed, 7 Jun 2006 17:54:25 +0300 Subject: [Nitro] puts vs. Logger.info In-Reply-To: <bd93db0d0606051700q51bf25dane235bb251880c265@mail.gmail.com> References: <bd93db0d0606051700q51bf25dane235bb251880c265@mail.gmail.com> Message-ID: <afd80b540606070754y4b576eb2ia5361d3d5e3a61d5@mail.gmail.com> Funny, I was thinking about that 2 days ago, will probably convert to Logger. -g. On 6/6/06, Bryan Soto <bryan.a.soto at gmail.com> wrote: > This uses Logger: > > INFO: Og uses the Mysql store. > > Shouldn't this be output with the Logger as well rather than puts? > > ==> Setup for live mode > ==> Listening at 0.0.0.0:9999. [MONGREL] > ==> Press Ctrl-C to shutdown; Run with --help for options. > > Opinions? > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Wed Jun 7 11:36:58 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Wed, 7 Jun 2006 18:36:58 +0300 Subject: [Nitro] repo.nitroproject.org Message-ID: <afd80b540606070836s20c4afa4h6ab5c94bb0ee440f@mail.gmail.com> Dear devs, I just uploaded some new stuff in the repo.nitroproject.org version. After some extrensive low level changes to og and other parts of nitro this is mostly working code now. Beware, only tthe mysql driver is ported and more refactoring is planned. If anyone feels adventerous, please download the code, and have a look at the store/adapter code and give your suggestions for further improvements before we go on and convert the rest of the drivers. On negative news, the release of nitroproject.org will be delayed for about a week (due to technical reasons). The code is progressing nicely though even though the initial release will not be the final version (ie the site will be updated and improved regularly). George. PS: one nice feature in the repo that I want to mention, because it was in the todo list for soooo long: og collection building Hopefully an example will suffice: a = Article.new a.categories << c1 a.categories << c2 a.tags << t1 a.tags << t2 a.save the collections are accumulated in memory and saved in one go. (a nice side effect, the admin joins_many control now works correctly ;-)) -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Wed Jun 7 11:38:54 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Wed, 7 Jun 2006 18:38:54 +0300 Subject: [Nitro] Nitro Team In-Reply-To: <4485B697.4000907@digitalvalence.com> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> <1199533C-70AB-4316-9AED-1FE9C0B2790D@yoyo.org> <e63pg7$6vv$1@sea.gmane.org> <3ff63f9b0606060450q71976eb1iec633ffbf1a776f7@mail.gmail.com> <op.tap71ipfxegpx6@jo.local> <B52B5B1D-8535-4BFA-BCD9-FF4BB5E2C4BE@yoyo.org> <op.tap8sxhcxegpx6@jo.local> <4485A7C2.4050501@neurogami.com> <b539c61e0606060907u6cba97a0q4a0cced4e66dd353@mail.gmail.com> <4485B697.4000907@digitalvalence.com> Message-ID: <afd80b540606070838o61499364sd411778eecf12b96@mail.gmail.com> Ok, I understand the majority wants NCT. Lets go for it (unless we find a better name) regards, George. On 6/6/06, Dylan Bruzenak <dylanb at digitalvalence.com> wrote: > :) > > NitrOgs ? Nitro Code Shepards ? > > Nitro Core Team is good, but so very generic :) Then again, sometimes > that is best. > > What about > > > > Nitro Generators ??? > > > > --jw. > > > > On 6/6/06, James Britt <james_b at neurogami.com> wrote: > > > >> Jonathan Buch wrote: > >> > >>> On Tue, 06 Jun 2006 15:43:50 +0200, Aidan Rogers <aidan at yoyo.org> wrote: > >>> > >>> > >>> > >>>> I take it you mean Nitro Core Team as opposed to Ruby? Or are we all > >>>> getting promotions? :-) > >>>> > >>> Argh! Teh pain ;D > >>> > >>> > >>> > >>>>>> Nitro Core Team > >>>>>> > >> The nucleus! > >> > >> > >> -- > >> James Britt > >> > >> http://www.ruby-doc.org - Ruby Help & Documentation > >> http://www.artima.com/rubycs/ - The Journal By & For Rubyists > >> http://www.rubystuff.com - The Ruby Store for Ruby Stuff > >> http://www.jamesbritt.com - Playing with Better Toys > >> http://www.30secondrule.com - Building Better Tools > >> _______________________________________________ > >> Nitro-general mailing list > >> Nitro-general at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/nitro-general > >> > >> > > _______________________________________________ > > Nitro-general mailing list > > Nitro-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/nitro-general > > > > > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Wed Jun 7 11:42:01 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Wed, 7 Jun 2006 18:42:01 +0300 Subject: [Nitro] [BUG] Mongrel + Pager In-Reply-To: <3ff63f9b0606051323t5026fc4x9f19f752b718f7ef@mail.gmail.com> References: <op.tak67dsmxegpx6@jo.local> <bd93db0d0606051137y7b9371f3q86f9061c40cf9c10@mail.gmail.com> <3ff63f9b0606051218s3c5a2595r983f66e8ea529785@mail.gmail.com> <bd93db0d0606051314w336b7ea3gaff29fef55019d13@mail.gmail.com> <3ff63f9b0606051323t5026fc4x9f19f752b718f7ef@mail.gmail.com> Message-ID: <afd80b540606070842q587a45e7x3f84de24712e8a7c@mail.gmail.com> thanks ;-) On 6/5/06, Jonas Pfenniger <zimba.tm at gmail.com> wrote: > On 05/06/06, Bryan Soto <bryan.a.soto at gmail.com> wrote: > > What version of Mongrel did you use? I confirmed the error with > > 0.3.12.4 on Win32. Could you share your adapter? > > Same mongrel version but on Gnu/Linux/Ubuntu/Dapper > > http://zimbatm.oree.ch/files/redirect_handler.tgz <-- Teh adapter > > -- > Cheers, > zimbatm > > http://zimbatm.oree.ch > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Wed Jun 7 11:46:02 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Wed, 7 Jun 2006 18:46:02 +0300 Subject: [Nitro] RubyForge home page link needs to be fixed In-Reply-To: <bd93db0d0606060757t1bd80056hbc213c0dcaf2a363@mail.gmail.com> References: <44854786.9050604@pobox.com> <2f014087110b933f99ac07ea98aefae8@oggu.de> <bd93db0d0606060757t1bd80056hbc213c0dcaf2a363@mail.gmail.com> Message-ID: <afd80b540606070846m51783000je220bf3d618cef9c@mail.gmail.com> > Just George. I just gave you admin rights on Rubyforge ;-) regards, George. -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Wed Jun 7 11:50:58 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Wed, 7 Jun 2006 18:50:58 +0300 Subject: [Nitro] RubyForge home page link needs to be fixed In-Reply-To: <44854786.9050604@pobox.com> References: <44854786.9050604@pobox.com> Message-ID: <afd80b540606070850l2b3ea5f8uac264b62004231c1@mail.gmail.com> Fixed, sorry for the inconvienience! regards, George. On 6/6/06, Dan Moniz <dnm at pobox.com> wrote: > Hi all, > > Small change request to the RubyForge Nitro page. The Project Home Page > link still points to nitrohq.com, which is now a place holder site > having nothing to do with Nitro. I know the new site is still in the > works behind the scenes, but pointing it even to the placeholder site at > nitroproject.org would be a huge boon, especially to those I send to the > RubyForge page... > > > -- > Dan Moniz <dnm at pobox.com> [http://pobox.com/~dnm/] > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Wed Jun 7 11:55:13 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Wed, 7 Jun 2006 18:55:13 +0300 Subject: [Nitro] a 'database' entity? In-Reply-To: <op.tarzyypbxegpx6@jo.local> References: <01a501c689e9$531c80c0$80e7dbcb@ghostgum> <op.tarzyypbxegpx6@jo.local> Message-ID: <afd80b540606070855w76098b52jde6dce94873d1864@mail.gmail.com> > right now, although I have to say that you idea of how to put the Models > into a Database is very nice. George, you see this as well? yeap, the idea is interesting/elegant. -- http://www.gmosx.com http://www.nitroproject.org From transfire at gmail.com Wed Jun 7 13:35:58 2006 From: transfire at gmail.com (TRANS) Date: Wed, 7 Jun 2006 13:35:58 -0400 Subject: [Nitro] Reap 6.0.0 (RC) In-Reply-To: <afd80b540606070753k47e39b54vfbcb5a9076ab6915@mail.gmail.com> References: <4b6f054f0606051517o73e40edbtb94f98370a71f4ba@mail.gmail.com> <afd80b540606070753k47e39b54vfbcb5a9076ab6915@mail.gmail.com> Message-ID: <4b6f054f0606071035m53ef9ab5te79782448bfaeed8@mail.gmail.com> On 6/7/06, George Moschovitis <george.moschovitis at gmail.com> wrote: > Sory if you have explained this before, but do the old ProjectInfo > files work with 6.0 ? > > thanks for your hard work, > -g. As long as you have the right !!type task attached to the node they should work fine. I did very little work on the tasks themselves for this releae so the ProjectInfo files should still work fine. Be sure to be using 6.0.1 though. Are you having any troubles in this regard? BTW you can read about all the tasks available in the RDocs under the Tasks module. http://reap.rubyforge.org/doc/api/classes/Tasks.html T. From transfire at gmail.com Wed Jun 7 13:38:08 2006 From: transfire at gmail.com (TRANS) Date: Wed, 7 Jun 2006 13:38:08 -0400 Subject: [Nitro] puts vs. Logger.info In-Reply-To: <afd80b540606070754y4b576eb2ia5361d3d5e3a61d5@mail.gmail.com> References: <bd93db0d0606051700q51bf25dane235bb251880c265@mail.gmail.com> <afd80b540606070754y4b576eb2ia5361d3d5e3a61d5@mail.gmail.com> Message-ID: <4b6f054f0606071038s7fd7dd58j89270f6c3b45c3a0@mail.gmail.com> Why wouldn't it do both? From transfire at gmail.com Wed Jun 7 13:43:46 2006 From: transfire at gmail.com (TRANS) Date: Wed, 7 Jun 2006 13:43:46 -0400 Subject: [Nitro] repo.nitroproject.org In-Reply-To: <afd80b540606070836s20c4afa4h6ab5c94bb0ee440f@mail.gmail.com> References: <afd80b540606070836s20c4afa4h6ab5c94bb0ee440f@mail.gmail.com> Message-ID: <4b6f054f0606071043x39445d83u59cee7dda2c94aa2@mail.gmail.com> On 6/7/06, George Moschovitis <george.moschovitis at gmail.com> wrote: > Dear devs, > > I just uploaded some new stuff in the repo.nitroproject.org version. > After some extrensive low level changes to og and other parts of nitro > this is mostly working code now. Beware, only tthe mysql driver is > ported and more refactoring is planned. > > If anyone feels adventerous, please download the code, and have a look > at the store/adapter code and give your suggestions for further > improvements before we go on and convert the rest of the drivers. > > On negative news, the release of nitroproject.org will be delayed for > about a week (due to technical reasons). The code is progressing > nicely though even though the initial release will not be the final > version (ie the site will be updated and improved regularly). Might I suggest you at least make a quick hand made page with a big nitro graphic in the middle of the page and blurb about it under redevelopment and with the links you already have? You know just something that looks nice even if it's not feature rich. T. From transfire at gmail.com Wed Jun 7 13:49:09 2006 From: transfire at gmail.com (TRANS) Date: Wed, 7 Jun 2006 13:49:09 -0400 Subject: [Nitro] Nitro Team In-Reply-To: <afd80b540606070838o61499364sd411778eecf12b96@mail.gmail.com> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> <e63pg7$6vv$1@sea.gmane.org> <3ff63f9b0606060450q71976eb1iec633ffbf1a776f7@mail.gmail.com> <op.tap71ipfxegpx6@jo.local> <B52B5B1D-8535-4BFA-BCD9-FF4BB5E2C4BE@yoyo.org> <op.tap8sxhcxegpx6@jo.local> <4485A7C2.4050501@neurogami.com> <b539c61e0606060907u6cba97a0q4a0cced4e66dd353@mail.gmail.com> <4485B697.4000907@digitalvalence.com> <afd80b540606070838o61499364sd411778eecf12b96@mail.gmail.com> Message-ID: <4b6f054f0606071049n5a1f5781ve11197ab1b630041@mail.gmail.com> On 6/7/06, George Moschovitis <george.moschovitis at gmail.com> wrote: > Ok, > > I understand the majority wants NCT. Lets go for it (unless we find a > better name) Glyceriders! ;) If no'n else is go'n to join my gang, guess I'll be the Lone Glycerider! Where's my hat? Oh there it is! C|:D T. From james_b at neurogami.com Wed Jun 7 17:27:33 2006 From: james_b at neurogami.com (James Britt) Date: Wed, 07 Jun 2006 14:27:33 -0700 Subject: [Nitro] puts vs. Logger.info In-Reply-To: <4b6f054f0606071038s7fd7dd58j89270f6c3b45c3a0@mail.gmail.com> References: <bd93db0d0606051700q51bf25dane235bb251880c265@mail.gmail.com> <afd80b540606070754y4b576eb2ia5361d3d5e3a61d5@mail.gmail.com> <4b6f054f0606071038s7fd7dd58j89270f6c3b45c3a0@mail.gmail.com> Message-ID: <448744C5.6020403@neurogami.com> TRANS wrote: > Why wouldn't it do both? That's my thinking. When I start this sort of process I like to get some initial feedback to tell that it has started, and started correctly. I'd rather not have to go check some log to see about this. -- James Britt "A principle or axiom is of no value without the rules for applying it." - Len Bullard From james_b at neurogami.com Wed Jun 7 17:28:19 2006 From: james_b at neurogami.com (James Britt) Date: Wed, 07 Jun 2006 14:28:19 -0700 Subject: [Nitro] Nitro Team In-Reply-To: <4b6f054f0606071049n5a1f5781ve11197ab1b630041@mail.gmail.com> References: <afd80b540606050812l119bb4dg5a019f2b7a9f8e4e@mail.gmail.com> <e63pg7$6vv$1@sea.gmane.org> <3ff63f9b0606060450q71976eb1iec633ffbf1a776f7@mail.gmail.com> <op.tap71ipfxegpx6@jo.local> <B52B5B1D-8535-4BFA-BCD9-FF4BB5E2C4BE@yoyo.org> <op.tap8sxhcxegpx6@jo.local> <4485A7C2.4050501@neurogami.com> <b539c61e0606060907u6cba97a0q4a0cced4e66dd353@mail.gmail.com> <4485B697.4000907@digitalvalence.com> <afd80b540606070838o61499364sd411778eecf12b96@mail.gmail.com> <4b6f054f0606071049n5a1f5781ve11197ab1b630041@mail.gmail.com> Message-ID: <448744F3.1010204@neurogami.com> TRANS wrote: > On 6/7/06, George Moschovitis <george.moschovitis at gmail.com> wrote: > >>Ok, >> >>I understand the majority wants NCT. Lets go for it (unless we find a >>better name) > > > Glyceriders! ;) > I like it! -- James Britt "A principle or axiom is of no value without the rules for applying it." - Len Bullard From billk at cts.com Wed Jun 7 20:00:47 2006 From: billk at cts.com (Bill Kelly) Date: Wed, 7 Jun 2006 17:00:47 -0700 Subject: [Nitro] Attempting to run Spark test/tc_controller.rb tests Message-ID: <08d001c68a8e$9a3547d0$6442a8c0@musicbox> Hi, I'm using nitro-0.30.0, and am attempting to learn how to do TDD in Nitro. I saw spark-1.2.0 has some tests, so I'm trying to get them to run. I was able to get Spark's test/tc_model.rb tests to run by adding a "require 'cgi'" at the top of the file. But the test/tc_controller.rb tests are failing with: NoMethodError: undefined method `controller' for #<TestWikiController:0x52aea2f0> test/tc_controller.rb:7:in `setup' Failing on line 7: 06: def setup 07: controller WikiController 08: end I tried grepping Nitro's source for "def.*controller" but only located one such method being defined, in lib/nitro/context.rb, and that controller method seems to be unrelated. Kashia tried to help me on IRC, but: [16:11] <Kashia> well, I get the same error as you, so it didn't get fixed in the newest glycerin either :) Thanks for any help. Regards, Bill From transfire at gmail.com Wed Jun 7 22:16:56 2006 From: transfire at gmail.com (TRANS) Date: Wed, 7 Jun 2006 22:16:56 -0400 Subject: [Nitro] Fwd: Troubles along the class-level heirarchy In-Reply-To: <3ff63f9b0606051025w6a8d2825k1dba30215fd8c5ee@mail.gmail.com> References: <4b6f054f0606021124t32a25db5kbd0ef4aa39132c88@mail.gmail.com> <1149517379.792853.19549.nullmailer@x31.priv.netlab.jp> <4b6f054f0606050934x2bb83b5fqe7b889aae5dabeae@mail.gmail.com> <3ff63f9b0606051025w6a8d2825k1dba30215fd8c5ee@mail.gmail.com> Message-ID: <4b6f054f0606071916v67a33c2dm109119ec04f36859@mail.gmail.com> On 6/5/06, Jonas Pfenniger <zimba.tm at gmail.com> wrote: > If you take Nitro::Scaffold, all class methods are also to be extended > except self.included(klass) naturally. You often don't want to inherit > that method. This is the perfect case where you need a ClassMethods > module. Looking at this code.... well, lets start here: Is this really supposed to define the same method three times in a row? # to_edit_href # ex: admin/articles/edit/23 define_instance_method klass, :to_admin_href, %{ "\#{AdminController.mount_path}/\#{self.class.name.underscore.pluralize}/edit/\#{oid}" } if defined? AdminController # to_admin_href # ex: admin/articles/list define_instance_method klass, :to_admin_href, %{ "\#{AdminController.mount_path}/\#{self.class.name.underscore.pluralize}/list" } # to_admin_href # ex: admin/articles/list define_class_method klass, :to_admin_href, %{ "\#{AdminController.mount_path}/\#{self.name.underscore.pluralize}/list" } > Otherwise, look in "nitro/lib/nitro/controller.rb". There is a mess > with the Publishable module I don't even want to understand. Is that module being used at all? Is there something preventing it from using class_inherit? I just want to make sure all you Glyceriders... I mean the NCT ;) knows that def self.included( base ) base.module_eval { ... } end is a NO NO. It misrepresents what's really going on. The class hierachy will show the module included, but in actually the code has been pasted directly into the class --their is no inheritance, you couldn't redefine a method and call super from it, etc. Moreover the class methods one might define in this way, to get around the lack of class-level module inheritance, are only effective at one level, a module of this kind included in another module will not be effective. So please do not use this technique and help root out all occurances of it. I spent a good bit of time myself getting rid of it in Og about a year ago. Unfortuantely Ruby doesn't exactly make the proper approach very easy. But in most cases using class_inherit (from Facets) will do the trick --it sets up proper module inheritace through the class level hierachy (and BTW is the successor to the out-dated ClassMethods approach). The other alternative is an actual "code paste" component system. An expiremental one is codepack.rb in Facets' forge/ folder --but I'm not convinced it's the neccessarily the good approach. It does have some minor efficency advantages but it too thwarts inheritance and has the same one-level deep issue. HTH, T. From transfire at gmail.com Wed Jun 7 23:13:08 2006 From: transfire at gmail.com (TRANS) Date: Wed, 7 Jun 2006 23:13:08 -0400 Subject: [Nitro] Fwd: Troubles along the class-level heirarchy In-Reply-To: <4b6f054f0606071916v67a33c2dm109119ec04f36859@mail.gmail.com> References: <4b6f054f0606021124t32a25db5kbd0ef4aa39132c88@mail.gmail.com> <1149517379.792853.19549.nullmailer@x31.priv.netlab.jp> <4b6f054f0606050934x2bb83b5fqe7b889aae5dabeae@mail.gmail.com> <3ff63f9b0606051025w6a8d2825k1dba30215fd8c5ee@mail.gmail.com> <4b6f054f0606071916v67a33c2dm109119ec04f36859@mail.gmail.com> Message-ID: <4b6f054f0606072013q48544fayc9620e7747088ac3@mail.gmail.com> Oh, one other thing. There is currently no Kernel#ann method. There are a couple ways in which this could be defined. It could 1) reference annotations for the object itself (You may not know this but you can annotate any object via #annotation, not just classes.) or, 2) route to the object's singleton class, or 3) route to the regular class. If #3 then references like 'self.class.ann.foo' can be reduced to 'ann.foo'. But then won't #2 inheirt from the regular class too? If so that would be better than #3 I think. Although maybe #1 is most proper? (But not as useful for reducing 'self.class.ann'.) Thoughts? T. From itsme213 at hotmail.com Thu Jun 8 00:11:01 2006 From: itsme213 at hotmail.com (itsme213) Date: Wed, 7 Jun 2006 23:11:01 -0500 Subject: [Nitro] a 'database' entity? References: <01a501c689e9$531c80c0$80e7dbcb@ghostgum> <op.tarzyypbxegpx6@jo.local> Message-ID: <e68810$4hf$1@sea.gmane.org> "Jonathan Buch" <john at oxyliquit.de> wrote in message news:op.tarzyypbxegpx6 at jo.local... > right now, although I have to say that you idea of how to put the Models > into a Database is very nice. +1 From jlsysinc at alltel.net Thu Jun 8 02:01:21 2006 From: jlsysinc at alltel.net (Jon A. Lambert) Date: Thu, 8 Jun 2006 02:01:21 -0400 Subject: [Nitro] Render#redirect question Message-ID: <001c01c68ac0$f928c370$0200000a@agamemnon> Just a question about nitro/render.rb def redirect(url, status = 303) url = url.to_s unless url =~ /^http/ url = "#@base/#{url}" unless url =~ /^\// url = "#{@context.host_url}/#{url.gsub(/^\//, '')}" end @context.status = status @context.out = "<html><a href=\"#{url}\">#{url}</a>.</html>\n" @context.response_headers['location'] = url raise RenderExit end Shouldn't that be status 302 assuming it's the same as the HTTP status codes? Thanks J. Lambert From jlsysinc at alltel.net Thu Jun 8 03:46:33 2006 From: jlsysinc at alltel.net (Jon A. Lambert) Date: Thu, 8 Jun 2006 03:46:33 -0400 Subject: [Nitro] Nitro 0.30 patch - sendfile() Message-ID: <002301c68acf$aa22f980$0200000a@agamemnon> This is a patch to Nitro 0.30 to simplify file downloading. I've tested it in IE 6.0 and FireFox 1.5. Content-Description and Content-Disposition have been deprecated and it seems most browsers don't use them, so you have to have the filename in your URL in order to get the browser to use your name. Attachment included. I put it in lib/nitro/cgi/sendfile.rb --cut-- require 'nitro/render' module Nitro module Render # Send a file download to the client. # # Like render and redirect, the action is exited upon calling # # [+fname+] That name of the file # [+path+] Specifying true mean fname contains the full path. # The default, false, uses Server.public_root as the path. # # [+return+] true on success, false on failure # # === Examples # # require 'nitro/cgi/sendfile' # class MyController < Nitro:Controller # def download(fname) # sendfile(fname) # end # end # # class MyController < Nitro:Controller # def download() # sendfile('/etc/password', true) # end # end def sendfile(fname=nil, fullpath=false) fname = fullpath ? fname : "#{Server.public_root}/#{fname}" f = File.open(fname, "rb") @context.response_headers["Cache-control"] = 'private' @context.response_headers["Content-Length"] = "#{File.size?(f) || 0}" @context.response_headers["Content-Type"] = 'application/force-download' @context.out = f raise RenderExit end end end --cut-- -- J. Lambert -------------- next part -------------- A non-text attachment was scrubbed... Name: sendfile.rb Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060608/c1f6657a/attachment.obj From chiron.sun at gmail.com Thu Jun 8 12:32:15 2006 From: chiron.sun at gmail.com (chiron sun) Date: Fri, 9 Jun 2006 02:32:15 +1000 Subject: [Nitro] a 'database' entity? In-Reply-To: <op.tarzyypbxegpx6@jo.local> Message-ID: <028601c68b19$1d57bb90$80e7dbcb@ghostgum> Hi there Kashia Thanks for reviewing my comments. The 'theory' however is not mine. There is quite a body of work on what a database is, what it needs to do, etc. I'm only taking credit for my errors in describing 'theory' or misunderstandings about Og or ruby. I have written a couple of databases from the ISAM-up. And I feel I can comment on places where "there be dragons". Unfortunately I think quality tools like mysql or oracle encourage me to take some things I think of as "basic" for granted. There's good descriptions for the things that make databases 'reliable', 'trustworthy' and 'consistent'. This paper on data integrity from Oracle is nicely done: http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10743/data_int .htm Some people will find it interesting, to observe that Og and ActiveRecord are mechanisms to implement "hierarchical databases" atop (so far) relational database engines. Postgress remembers its hierarchical roots. Before foreign key tables and joins hierarchical databases saved 'pointers' (on-disk references) to dependant and back to parent rows. A big problem was referential integrity. When I update my Foot, my Toe instances must 'know'. All the hierarchical issues and advantages are likely to come-up as more people use these OO persistent data. I have been working through the Og documents and source in order to document a catalogue of attributes, and features. In the process I'm realising some DB things that I'd like. At some point I hope to have a picture of what's there and a more informed opinion. As an aside, is there is a place for a discovery lexxer to enumerate class attributes (I have seen something along those lines. The automatic documentation doesn't seem to list legitimate options and attributes.) Back onto your comments, I see what you are saying, and I believe I can see "why" you see things this way. I'd like to ask you to accept that there are some good reasons for holding an alternative point of view on this. Perhaps I phrased my earlier description poorly. Comments below ... -----Original Message----- From: On Behalf Of Jonathan Buch Sent: Wednesday, 7 June 2006 22:37 >w> A database entity is the structure for the tables and other structures >w> that are all related to the same thing. A database encapsulates these >w> model objects as the owner object. > k> This description fits $db = Og.start(....) very well.. k> >w> In this simple case, a high-level database entity would be something >w> like: >w> class BasicBlog >w> entity :Category >w> entity :Post >w> entity :Comment >w> end k> This is done by: k> k> $db.manage_classes(Foo, Bar, Asdf) k> Unfortunately I do not agree. The code sequence given: $db = Og.start(....) # [1] $db.manage_classes(Foo, Bar, Asdf) # [2] Does not encapsulate a database entity or 'object'. The "$db" global correlates to a database connection. In DB API it would be an "Open()" or "Connect()" call [1]. The other 'maverick' thing here is my application need to know my tables, viz. "Foo", "Bar" and "Asdf" [2]. So my object is not integral, it is incomplete. Finally my test of this sequence demonstrates that the line: $db.manage_classes(Foo, Bar, Asdf) # [2] Will incorporate any currently 'require'-d Og classes (tables) in my application. As you recall Kashia, you reminded me that the order of 'require'-s is critical (necessary) to correctly open two databases. This may or may not be desirable. I know from my exercise to open two distinct databases, the results were highly undesirable. My second programming affirmation is "do no harm". Propagating new tables can be convenient, when I want. It can be extremely wrong, especially if data goes to the wrong data store. For example, this would be acceptable: $db.manage_classes(Foo, Bar, Asdf) # ==> LOG ... "Bar" not found. # ==> LOG ... Creating new table "ogbar", class(es): "Bar". # ==> LOG ... Creating foreign key "og_foo_bar", class(es): "Foo",. "Bar". What I saw, is something more like this: class NewFoo < Foo .... end $db.manage_classes(Foo, Bar, Asdf) # ==> LOG ... "bar" not found. # ==> LOG ... Creating new table "ogbar", class(es): "Bar". # ==> LOG ... Creating foreign key "og_foo_bar", class(es): "Foo",. "Bar". # ==> LOG ... "ognewfoo" not found. # ==> LOG ... Creating new table "ognewfoo", class(es): "NewFoo". # [3] So in line [3], a new table was created for the NewFoo class. Unless I take specific steps to 'require' or declare the NewFoo class after the "og.setup()" call. In brief I'm saying that a DB entity would be a container, it is nominally a management entity. The example give: $db.manage_classes(Foo, Bar, Asdf) # [2] This is something that at best describes a 'managed' logical connection. If there is a dependency or constraint in the database linking Foo with table pay_scale, the application runs a real risk of blowing the business' data integrity right out of the water. Why? Because the "view" provided in [2] is not integrated. It is probably not wholistic in the sense of OO analysis. For the Foo, Bar, Asdf application this is probably fine. It could be a simple 'read-only reporting' program. The challenge comes in six months or later when the payroll manager decides the report program should also apply the new pay grades or when the government decides to introduce a new tax on Foo-s. If I'm clear on these points, then I've covered the part I think is useful. A 'database entity' would represent the whole for a domain of data. A data domain can be many different applications. If we take a different example for line [2], like: $db.manage_classes( Members, Category, Comment ) # [4] There is an equally valid application that might want a different connection (and view) of the data such as: $db.manage_classes( Members, BugsDesc, Comment ) # [5] Both lines [4] and [5] can exemplify distinct applications over the same data 'universe'. It is no mistake that some DBMS-s is call the database disk area "a universe". For now Og apps are single or limited domain in scope. As these tools develop, they will grow in scope and application. I have a deep abiding faith in the creativity of people to come up with fantastic ways to use software and most especially middleware. Thanks for the chat. My aim is to add comments that are constructive, I ought to admit that my perspective one that sees database as the most mature element of software development. The way things are, stems from survival of the "most suitable". Cheers, Will -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.2/356 - Release Date: 05-Jun-2006 From jlsysinc at alltel.net Thu Jun 8 12:36:47 2006 From: jlsysinc at alltel.net (Jon A. Lambert) Date: Thu, 8 Jun 2006 12:36:47 -0400 Subject: [Nitro] Request parameters References: <016b01c68971$912998d0$0200000a@agamemnon> <op.taqfo8xpxegpx6@jo.local> Message-ID: <003801c68b19$bcc1ab50$0200000a@agamemnon> Jonathan Buch wrote: > > George, could you please disable this "munging" of ?params=asd into > actions? > This really is annoying... But maybe I'm getting this all wrong? > I know that at least Manveru has problems with that too... > +1 I have an edit action in my controller def edit(entry=nil) ... end http://localhost:7777/edit/2304 So far so good. This is in my edit.xhtml <form method="post" action="edit/#{@entry.oid}"> <textarea name="content" class="editbox">#{@entry.desc}</textarea> <br /> <label for="name">Name: </label> <input type="text" name="name" value="#{@entry.name}" size="60" value="" /> <br /> <input name="commit" type="submit" value="Save" /> <input name="commit" type="submit" value="Preview" /> <input name="commit" type="submit" value="Cancel" /> <input name="commit" type="submit" value="Save" /> </form> Error: wrong number of arguments (5 for 1) Parameters: {"name"=>nil, "commit"=>"Cancel", "content"=>nil} REQUEST_URI => /edit/edit/2304 REFERER => http://localhost:7777/edit/2304 SERVER_PORT => 7777 GATEWAY_INTERFACE => CGI/1.1 QUERY_STRING => edit;2304; *boggles* Why is 'edit' being loaded into the QUERY_STRING? Is there anyway to turn off params being sent as arguments to the action? What happens to <input type="file"> elements? Are they on both the URI and in the params hash? The only thing I can think of is to do: def edit(entry=nil, *params) ... end Except 'edit' is loaded into the URI making my 'entry' param the 1st parameter on GET and 2nd parameter on POST. Thanks -- J. Lambert From jlsysinc at alltel.net Thu Jun 8 13:07:40 2006 From: jlsysinc at alltel.net (Jon A. Lambert) Date: Thu, 8 Jun 2006 13:07:40 -0400 Subject: [Nitro] Request parameters References: <016b01c68971$912998d0$0200000a@agamemnon><op.taqfo8xpxegpx6@jo.local> <003801c68b19$bcc1ab50$0200000a@agamemnon> Message-ID: <007d01c68b1e$0d10ea90$0200000a@agamemnon> Jon A. Lambert wrote: > <form method="post" action="edit/#{@entry.oid}"> Okay I put the backslash in my action and that takes edit out of the query string. <form method="post" action="/edit/#{@entry.oid}"> I guess the other problem is that it's an array of values and order dependent. As passed to action --> [nil, "Cancel", nil] As passed in @request.params {"name"=>nil, "commit"=>"Cancel", "content"=>nil} The order is guess work. -- J Lambert From bryan.a.soto at gmail.com Thu Jun 8 16:12:51 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Thu, 8 Jun 2006 13:12:51 -0700 Subject: [Nitro] Nitro 0.30 patch - sendfile() In-Reply-To: <002301c68acf$aa22f980$0200000a@agamemnon> References: <002301c68acf$aa22f980$0200000a@agamemnon> Message-ID: <bd93db0d0606081312g53c9732cjf606da8a20c739d9@mail.gmail.com> On 6/8/06, Jon A. Lambert <jlsysinc at alltel.net> wrote: > This is a patch to Nitro 0.30 to simplify file downloading. I've tested it > in IE 6.0 and FireFox 1.5. > Nice. Thanks for the patch. :) From bryan.a.soto at gmail.com Thu Jun 8 16:25:58 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Thu, 8 Jun 2006 13:25:58 -0700 Subject: [Nitro] Nitro 0.30 patch - sendfile() In-Reply-To: <bd93db0d0606081312g53c9732cjf606da8a20c739d9@mail.gmail.com> References: <002301c68acf$aa22f980$0200000a@agamemnon> <bd93db0d0606081312g53c9732cjf606da8a20c739d9@mail.gmail.com> Message-ID: <bd93db0d0606081325y656e6b1evc9b03865831e78d8@mail.gmail.com> On 6/8/06, Bryan Soto <bryan.a.soto at gmail.com> wrote: > On 6/8/06, Jon A. Lambert <jlsysinc at alltel.net> wrote: > > This is a patch to Nitro 0.30 to simplify file downloading. I've tested it > > in IE 6.0 and FireFox 1.5. > > > > Nice. Thanks for the patch. :) > I've applied to devlab. require 'nitro/cgi/sendfile' for access. Please give it a thrashing. :) From zimba.tm at gmail.com Thu Jun 8 18:04:55 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Fri, 9 Jun 2006 00:04:55 +0200 Subject: [Nitro] Fwd: Troubles along the class-level heirarchy In-Reply-To: <4b6f054f0606071916v67a33c2dm109119ec04f36859@mail.gmail.com> References: <4b6f054f0606021124t32a25db5kbd0ef4aa39132c88@mail.gmail.com> <1149517379.792853.19549.nullmailer@x31.priv.netlab.jp> <4b6f054f0606050934x2bb83b5fqe7b889aae5dabeae@mail.gmail.com> <3ff63f9b0606051025w6a8d2825k1dba30215fd8c5ee@mail.gmail.com> <4b6f054f0606071916v67a33c2dm109119ec04f36859@mail.gmail.com> Message-ID: <3ff63f9b0606081504o16673c8cy7ae286f95d85dfbc@mail.gmail.com> On 08/06/06, TRANS <transfire at gmail.com> wrote: > Looking at this code.... well, lets start here: Is this really > supposed to define the same method three times in a row? > > # to_edit_href > # ex: admin/articles/edit/23 > > define_instance_method klass, :to_admin_href, %{ > "\#{AdminController.mount_path}/\#{self.class.name.underscore.pluralize}/edit/\#{oid}" > } > > if defined? AdminController > # to_admin_href > # ex: admin/articles/list > > define_instance_method klass, :to_admin_href, %{ > "\#{AdminController.mount_path}/\#{self.class.name.underscore.pluralize}/list" > } > > # to_admin_href > # ex: admin/articles/list > > define_class_method klass, :to_admin_href, %{ > "\#{AdminController.mount_path}/\#{self.name.underscore.pluralize}/list" > } Some parts are only well understood by George I think. > > Otherwise, look in "nitro/lib/nitro/controller.rb". There is a mess > > with the Publishable module I don't even want to understand. > > Is that module being used at all? Is there something preventing it > from using class_inherit? Yes it is used as a way of abstraction because it is then included in the Controller. I think it is only there to specify the publishing side of it but the contract is not much clearer to me. > I just want to make sure all you Glyceriders... I mean the NCT ;) knows that > > def self.included( base ) > base.module_eval { ... } > end > > is a NO NO. It misrepresents what's really going on. The class > hierachy will show the module included, but in actually the code has > been pasted directly into the class --their is no inheritance, you > couldn't redefine a method and call super from it, etc. Moreover the > class methods one might define in this way, to get around the lack of > class-level module inheritance, are only effective at one level, a > module of this kind included in another module will not be effective. > So please do not use this technique and help root out all occurances > of it. I spent a good bit of time myself getting rid of it in Og about > a year ago. This is an interesting point I've never thought of, thx for the clarification :-) > Unfortuantely Ruby doesn't exactly make the proper approach very easy. > But in most cases using class_inherit (from Facets) will do the trick > --it sets up proper module inheritace through the class level hierachy > (and BTW is the successor to the out-dated ClassMethods approach). I don't know really. A programming language is just a tool that allows you to represent the way you want to solve a specific problem. The problem is, that with a too powerful language it also gets harder to map the problem in your mind. You spend more and more time trying to figure out how to do it in the language instead of just writing something. I think "entreprise java" is a good example of this. A whole new world is created that generates new problems and in the end you have a big pile of code that's just here to make good or follow useless standarts. On one side, ruby is a wonderful langage because it allows you to take shortcuts where a big pile of adaptor classes would be used in other languages. That's what makes it elegant. Modules are exactly there for that. Avoid the complexity of multiple class inheritance, but still having some flexibility. Looking at the Nitro code, I'm often wondering what some bits of code are doing. Nitro is maybe using too much magic. By trying to abuse the language you're maybe getting something smaller but not necessary clearlier. My point is that I fear, but I'm not sure, that the percieved problem of Module/Class inheritance is maybe just a smell of bad code and that adding yet another way of inclusion would bring more complexity. And this maybe why it's so hard to find a real world problem where it is necessary ? -- Cheers, zimbatm http://zimbatm.oree.ch From zimba.tm at gmail.com Thu Jun 8 18:12:40 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Fri, 9 Jun 2006 00:12:40 +0200 Subject: [Nitro] Fwd: Troubles along the class-level heirarchy In-Reply-To: <4b6f054f0606072013q48544fayc9620e7747088ac3@mail.gmail.com> References: <4b6f054f0606021124t32a25db5kbd0ef4aa39132c88@mail.gmail.com> <1149517379.792853.19549.nullmailer@x31.priv.netlab.jp> <4b6f054f0606050934x2bb83b5fqe7b889aae5dabeae@mail.gmail.com> <3ff63f9b0606051025w6a8d2825k1dba30215fd8c5ee@mail.gmail.com> <4b6f054f0606071916v67a33c2dm109119ec04f36859@mail.gmail.com> <4b6f054f0606072013q48544fayc9620e7747088ac3@mail.gmail.com> Message-ID: <3ff63f9b0606081512m17d57ed4t5c9cb0b3ac890933@mail.gmail.com> On 08/06/06, TRANS <transfire at gmail.com> wrote: > Oh, one other thing. There is currently no Kernel#ann method. There > are a couple ways in which this could be defined. It could 1) > reference annotations for the object itself (You may not know this but > you can annotate any object via #annotation, not just classes.) or, 2) > route to the object's singleton class, or 3) route to the regular > class. > > If #3 then references like 'self.class.ann.foo' can be reduced to > 'ann.foo'. But then won't #2 inheirt from the regular class too? If so > that would be better than #3 I think. Although maybe #1 is most > proper? (But not as useful for reducing 'self.class.ann'.) > > Thoughts? Does annotation inherit values like Glue::Configuration ? IMHO object notation are like attr_accessor, so not very usefull. What is a "regular" class ? I know the singleton class but the other is just the class Class ? -- Cheers, zimbatm http://zimbatm.oree.ch From zimba.tm at gmail.com Thu Jun 8 18:15:05 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Fri, 9 Jun 2006 00:15:05 +0200 Subject: [Nitro] Render#redirect question In-Reply-To: <001c01c68ac0$f928c370$0200000a@agamemnon> References: <001c01c68ac0$f928c370$0200000a@agamemnon> Message-ID: <3ff63f9b0606081515g6b1b3cb9r4f27625571dcafd2@mail.gmail.com> On 08/06/06, Jon A. Lambert <jlsysinc at alltel.net> wrote: > Just a question about nitro/render.rb > > def redirect(url, status = 303) > url = url.to_s > unless url =~ /^http/ > url = "#@base/#{url}" unless url =~ /^\// > url = "#{@context.host_url}/#{url.gsub(/^\//, '')}" > end > > @context.status = status > @context.out = "<html><a href=\"#{url}\">#{url}</a>.</html>\n" > @context.response_headers['location'] = url > > raise RenderExit > end > > Shouldn't that be status 302 assuming it's the same as the HTTP status > codes? Yes it's the same as HTTP status codes but I don't know them by heart. Can you provide a patch ? -- Cheers, zimbatm http://zimbatm.oree.ch From transfire at gmail.com Fri Jun 9 01:12:01 2006 From: transfire at gmail.com (TRANS) Date: Fri, 9 Jun 2006 01:12:01 -0400 Subject: [Nitro] Fwd: Troubles along the class-level heirarchy In-Reply-To: <3ff63f9b0606081504o16673c8cy7ae286f95d85dfbc@mail.gmail.com> References: <4b6f054f0606021124t32a25db5kbd0ef4aa39132c88@mail.gmail.com> <1149517379.792853.19549.nullmailer@x31.priv.netlab.jp> <4b6f054f0606050934x2bb83b5fqe7b889aae5dabeae@mail.gmail.com> <3ff63f9b0606051025w6a8d2825k1dba30215fd8c5ee@mail.gmail.com> <4b6f054f0606071916v67a33c2dm109119ec04f36859@mail.gmail.com> <3ff63f9b0606081504o16673c8cy7ae286f95d85dfbc@mail.gmail.com> Message-ID: <4b6f054f0606082212s674f143l14ce174e4b6858d3@mail.gmail.com> On 6/8/06, Jonas Pfenniger <zimba.tm at gmail.com> wrote: > Yes it is used as a way of abstraction because it is then included in > the Controller. I think it is only there to specify the publishing > side of it but the contract is not much clearer to me. Amazing, cause there's two clear bugs in that snip of code. > > Unfortuantely Ruby doesn't exactly make the proper approach very easy. > > But in most cases using class_inherit (from Facets) will do the trick > > --it sets up proper module inheritace through the class level hierachy > > (and BTW is the successor to the out-dated ClassMethods approach). > > I don't know really. A programming language is just a tool that allows > you to represent the way you want to solve a specific problem. The > problem is, that with a too powerful language it also gets harder to > map the problem in your mind. You spend more and more time trying to > figure out how to do it in the language instead of just writing > something. I think "entreprise java" is a good example of this. A > whole new world is created that generates new problems and in the end > you have a big pile of code that's just here to make good or follow > useless standarts. True enough, but there's also getting to know your lanaguage. And that generally means working with the code a lot, esspecially trying out new things and studying other's examples. If you just sit down and start banging out code in a laguage you barely know you're going to get a lot of what you're talking about. That's okay, as long as you coninually refine your style over time. If your stuck in that same mode of coding though (and I think people do this b/c they "fall in love" with their own code) then you're pretty much going no where. > On one side, ruby is a wonderful langage because it allows you to take > shortcuts where a big pile of adaptor classes would be used in other > languages. That's what makes it elegant. Modules are exactly there for > that. Avoid the complexity of multiple class inheritance, but still > having some flexibility. > > Looking at the Nitro code, I'm often wondering what some bits of code > are doing. Nitro is maybe using too much magic. By trying to abuse the > language you're maybe getting something smaller but not necessary > clearlier. My point is that I fear, but I'm not sure, that the > percieved problem of Module/Class inheritance is maybe just a smell of > bad code and that adding yet another way of inclusion would bring more > complexity. And this maybe why it's so hard to find a real world > problem where it is necessary ? Well, class-level "inheritance" is useful as is clear by the fact that it is used often --no doubt one can divide things into more modules, that's an option. Then you'd extend and include as neded --but doesn't it seem silly when it's always both for one hing? Eg. include FooIncludable extend FooExtendable No sense it this lack of DRY. And if Nitro did this it would be prerty full of such. Nonetheless, you are absolutely right. Nitro is too much *black* magic under the hood. T. From transfire at gmail.com Fri Jun 9 01:20:19 2006 From: transfire at gmail.com (TRANS) Date: Fri, 9 Jun 2006 01:20:19 -0400 Subject: [Nitro] Fwd: Troubles along the class-level heirarchy In-Reply-To: <3ff63f9b0606081512m17d57ed4t5c9cb0b3ac890933@mail.gmail.com> References: <4b6f054f0606021124t32a25db5kbd0ef4aa39132c88@mail.gmail.com> <1149517379.792853.19549.nullmailer@x31.priv.netlab.jp> <4b6f054f0606050934x2bb83b5fqe7b889aae5dabeae@mail.gmail.com> <3ff63f9b0606051025w6a8d2825k1dba30215fd8c5ee@mail.gmail.com> <4b6f054f0606071916v67a33c2dm109119ec04f36859@mail.gmail.com> <4b6f054f0606072013q48544fayc9620e7747088ac3@mail.gmail.com> <3ff63f9b0606081512m17d57ed4t5c9cb0b3ac890933@mail.gmail.com> Message-ID: <4b6f054f0606082220n45319f1etc9bb7cacc5682176@mail.gmail.com> On 6/8/06, Jonas Pfenniger <zimba.tm at gmail.com> wrote: > On 08/06/06, TRANS <transfire at gmail.com> wrote: > > Oh, one other thing. There is currently no Kernel#ann method. There > > are a couple ways in which this could be defined. It could 1) > > reference annotations for the object itself (You may not know this but > > you can annotate any object via #annotation, not just classes.) or, 2) > > route to the object's singleton class, or 3) route to the regular > > class. > > > > If #3 then references like 'self.class.ann.foo' can be reduced to > > 'ann.foo'. But then won't #2 inheirt from the regular class too? If so > > that would be better than #3 I think. Although maybe #1 is most > > proper? (But not as useful for reducing 'self.class.ann'.) > > > > Thoughts? > > Does annotation inherit values like Glue::Configuration ? Indeed. Glue Configuration is based on the same framework I believe (i.e. inheritor). > IMHO object notation are like attr_accessor, so not very usefull. ? > What is a > "regular" class ? I know the singleton class but the other is just the > class Class ? Yea. You have an object (obj): (class << obj; self; end) # returns singleton class obj.class # returns regular class That's all I meant. The question is basically this: module Kernel # 1 def ann(*args) annotation(*args) end # 2 def ann(*args) (class << obj; self; end).ann(*args) end # 3 def ann(*args) self.class.ann(*args) end end T. From lasso at lassoweb.nu Fri Jun 9 01:13:57 2006 From: lasso at lassoweb.nu (Lars Olsson) Date: Fri, 09 Jun 2006 07:13:57 +0200 Subject: [Nitro] Render#redirect question In-Reply-To: <3ff63f9b0606081515g6b1b3cb9r4f27625571dcafd2@mail.gmail.com> References: <001c01c68ac0$f928c370$0200000a@agamemnon> <3ff63f9b0606081515g6b1b3cb9r4f27625571dcafd2@mail.gmail.com> Message-ID: <44890395.7090203@lassoweb.nu> Hi, According to http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html the difference between a 302 and a 303 status codes is that the 303 status code explicitly tells the browser to use a GET request when redirecting. The 302 allows POST and HEAD as well. The 'patch' is as simple as changing the default for the status parameter to 302 instead of 303. Kindly /Lasso ________________________________________ Lars Olsson lasso at lassoweb.nu http://www.lassoweb.nu/ Jonas Pfenniger skrev: > On 08/06/06, Jon A. Lambert <jlsysinc at alltel.net> wrote: >> Just a question about nitro/render.rb >> >> def redirect(url, status = 303) >> url = url.to_s >> unless url =~ /^http/ >> url = "#@base/#{url}" unless url =~ /^\// >> url = "#{@context.host_url}/#{url.gsub(/^\//, '')}" >> end >> >> @context.status = status >> @context.out = "<html><a href=\"#{url}\">#{url}</a>.</html>\n" >> @context.response_headers['location'] = url >> >> raise RenderExit >> end >> >> Shouldn't that be status 302 assuming it's the same as the HTTP status >> codes? > > Yes it's the same as HTTP status codes but I don't know them by heart. > Can you provide a patch ? > From bryan.a.soto at gmail.com Fri Jun 9 01:57:24 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Thu, 8 Jun 2006 22:57:24 -0700 Subject: [Nitro] Render#redirect question In-Reply-To: <44890395.7090203@lassoweb.nu> References: <001c01c68ac0$f928c370$0200000a@agamemnon> <3ff63f9b0606081515g6b1b3cb9r4f27625571dcafd2@mail.gmail.com> <44890395.7090203@lassoweb.nu> Message-ID: <bd93db0d0606082257k304201d4n1559d199960b962e@mail.gmail.com> On 6/8/06, Lars Olsson <lasso at lassoweb.nu> wrote: > Hi, > > According to http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html the > difference between a 302 and a 303 status codes is that the 303 status > code explicitly tells the browser to use a GET request when redirecting. > The 302 allows POST and HEAD as well. The 'patch' is as simple as > changing the default for the status parameter to 302 instead of 303. > I'm not so sure that's the only difference... Nice link by the way. :) 10.3.3 302 Found The requested resource resides temporarily under a different URI. vs. 10.3.4 303 See Other The response to the request can be found under a different URI and SHOULD be retrieved using a GET method on that resource. The response code of 303 seems more in line with typical usage, i.e. redirecting to a login screen for protected content, but that's just my opinion and a relatively uninformed one at that, in regards to HTTP response codes. Should it be 302 rather than 303? Opinions anyone? :) From lasso at lassoweb.nu Fri Jun 9 02:45:01 2006 From: lasso at lassoweb.nu (Lars Olsson) Date: Fri, 9 Jun 2006 08:45:01 +0200 (CEST) Subject: [Nitro] Render#redirect question In-Reply-To: <bd93db0d0606082257k304201d4n1559d199960b962e@mail.gmail.com> References: <001c01c68ac0$f928c370$0200000a@agamemnon> <3ff63f9b0606081515g6b1b3cb9r4f27625571dcafd2@mail.gmail.com> <44890395.7090203@lassoweb.nu> <bd93db0d0606082257k304201d4n1559d199960b962e@mail.gmail.com> Message-ID: <12078.192.176.230.1.1149835501.squirrel@www.scorpionshops.com> Seems I skipped some important bits when reading the specs. You're completely right Bryan, there area some problems when using the 302 header. I found a very interesting article concerning this issue: http://ppewww.ph.gla.ac.uk/~flavell/www/post-redirect.html Maybe nothing should be changed until all implications are sorted out. /Lasso > On 6/8/06, Lars Olsson <lasso at lassoweb.nu> wrote: >> Hi, >> >> According to http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html the >> difference between a 302 and a 303 status codes is that the 303 status >> code explicitly tells the browser to use a GET request when redirecting. >> The 302 allows POST and HEAD as well. The 'patch' is as simple as >> changing the default for the status parameter to 302 instead of 303. >> > > I'm not so sure that's the only difference... Nice link by the way. :) > > 10.3.3 302 Found > > The requested resource resides temporarily under a different URI. > > vs. > > 10.3.4 303 See Other > > The response to the request can be found under a different URI and > SHOULD be retrieved using a GET method on that resource. > > The response code of 303 seems more in line with typical usage, i.e. > redirecting to a login screen for protected content, but that's just > my opinion and a relatively uninformed one at that, in regards to HTTP > response codes. > > Should it be 302 rather than 303? Opinions anyone? :) > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general From jlsysinc at alltel.net Fri Jun 9 04:39:25 2006 From: jlsysinc at alltel.net (Jon A. Lambert) Date: Fri, 9 Jun 2006 04:39:25 -0400 Subject: [Nitro] Render#redirect question References: <001c01c68ac0$f928c370$0200000a@agamemnon><3ff63f9b0606081515g6b1b3cb9r4f27625571dcafd2@mail.gmail.com><44890395.7090203@lassoweb.nu><bd93db0d0606082257k304201d4n1559d199960b962e@mail.gmail.com> <12078.192.176.230.1.1149835501.squirrel@www.scorpionshops.com> Message-ID: <01d101c68ba0$37215f40$0200000a@agamemnon> Lars Olsson wrote: > Seems I skipped some important bits when reading the specs. You're > completely right Bryan, there area some problems when using the 302 > header. I found a very interesting article concerning this issue: > > http://ppewww.ph.gla.ac.uk/~flavell/www/post-redirect.html > > That's an excellent link. I think it answers the question, well at least for me. The default should probably remain as 303. As long as 'status' remains an optional overridable parameter in the redirect_* methods calls, I don't see any problem. -- J Lambert From rahul2012 at gmail.com Fri Jun 9 05:07:36 2006 From: rahul2012 at gmail.com (Rahul) Date: Fri, 9 Jun 2006 14:37:36 +0530 Subject: [Nitro] resultset metadata Message-ID: <b6c060d90606090207h5c5d8de5gd3a6a2b8db7de48e@mail.gmail.com> hi, i am new to ruby. Came across OG and have been trying it out. I am writing an program that produces reports based on an sql or tablename provided by the caller. The program works fine, except that i cannot get the column names for the result-set. I tried taking the keys for the first row, but the order of the keys is (obviously) not the same as that of the fields in the resultset array. hsh = res.fetch_hash hsh.each_key { |key| print key + field_sep; } Is there a way of getting resultset metadata? My second question relates to getting the tablenames of a database. And then for each table getting the columns and column info. I have managed to do that using rails but wish to do some simple work outside of rails to begin with. Can that be done using OG? I wish to port a report generator i once did in Java. Please note that my questions relate to tables created outside the OG framework. A user can connect to any database on the LAN and start using this program to generate reports. -- thanks and regards, rahul benegal -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060609/e4caf45d/attachment.html From john at oxyliquit.de Fri Jun 9 06:02:37 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Fri, 09 Jun 2006 12:02:37 +0200 Subject: [Nitro] a 'database' entity? In-Reply-To: <028601c68b19$1d57bb90$80e7dbcb@ghostgum> References: <028601c68b19$1d57bb90$80e7dbcb@ghostgum> Message-ID: <op.tavh5rasxegpx6@jo.local> Hi, up front, if I sounded a bit too 'defensive', I apologize for that, it really wasn't my intention :) I really like your ideas, and others do to (there was talk on #nitro about this discussion). Quotes (so we don't appear to be talking behind you back about you): <bsoto> Man, Chiron and zimba need to talk. It's like Og 2.0 all over again. * FabianB wonders how this database guru chiron got interested in og. <FabianB> this sounds very much like an academic discussion.. it might help Og though, if someone understands it and can improve Og in some of the ways he explains.. maybe he himself, if he's interested long enough and dives deep into Og > Thanks for reviewing my comments. The 'theory' however is not mine. > There is quite a body of work on what a database is, what it needs to > do, etc. > I'm only taking credit for my errors in describing 'theory' or > misunderstandings about Og or ruby. > > I have written a couple of databases from the ISAM-up. And I feel I can > comment on places where "there be dragons". Unfortunately I think > quality tools like mysql or oracle encourage me to take some things I > think of as "basic" for granted. [snip from further down] > Back onto your comments, I see what you are saying, and I believe I can > see "why" you see things this way. I'd like to ask you to accept that > there are some good reasons for holding an alternative point of view on > this. Perhaps I phrased my earlier description poorly. I think here lies the problem *sweatdrop* The difference of experience between you and me, and the level on which the discussion is on. What I think I have problems with, is the theory/academic-level of stuff :) My brain is full of 'how can I solve this problem at hand' so I try to show you solutions as well, which you maybe didn't want (like that). I hope that more people comment on your posts (they sure attract attention) so you get more views than mine :) > There's good descriptions for the things that make databases 'reliable', > 'trustworthy' and 'consistent'. This paper on data integrity from > Oracle is nicely done: > http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10743/data_int.htm My first reaction to this would be 'But the postgres adapter adds constraints, exactly like the url above!' which would probably be true in one sense, but I think it's not what you meant. > Some people will find it interesting, to observe that Og and ActiveRecord > are mechanisms to implement "hierarchical databases" atop (so far) > relational database engines. Postgress remembers its hierarchical roots. > Before foreign key tables and joins hierarchical databases saved > 'pointers' > (on-disk references) to dependant and back to parent rows. A big problem > was referential integrity. When I update my Foot, my Toe instances must > 'know'. All the hierarchical issues and advantages are likely to > come-up as more people use these OO persistent data. I can't really comment on this section, my knowledge about database internals is very limited. Am I right that this is about reliability/consistency? > I have been working through the Og documents and source in order to > document a catalogue of attributes, and features. In the process I'm > realising some DB things that I'd like. At some point I hope to have > a picture of what's there and a more informed opinion. As the quote from FabianB: I too hope that you'll stay around, your ideas are very good and a little more professional/better educated than probably any of us ^^; > As an aside, is there is a place for a discovery lexxer to enumerate > class attributes (I have seen something along those lines. The automatic > documentation doesn't seem to list legitimate options and attributes.) I have no idea what a discovery lexxer is :D (even google didn't want to tell me). My guess what you mean by class attributes is (please correct me, and I will try to provide a better answer): property :name, String, :unique => true Programmatically (like discovery lexxer sounds) it is impossible to find the possible options, even if you had a perfect Ruby parser, you would have a hell of a time checking for stuff that is valid there. Best is to look in the Og code for the actual implementation (as long as the wiki is still down, which had these informations): og/lib/og/stores/sql.rb:650:def resolve_options(klass, options) There it is quite clearly shown what the options are and what they do. Yes I realize that normally people don't want to look at the implementation of libraries (like I normally don't either), but 'unfortunately' with Nitro/Og not being as stable/finished/polished/well-documented/complete as one would wish it was. `grep` is my tool of choice :P [snip, the rest of the message] I will not comment on the rest of the message, as it is all valid and I can't find anything to add. George, please read it carefully, as it is a 'bug-report', kinda :) Yet some more general Og directions: $psql = Og.setup( :destroy => false, :evolve_schema => true, :store => :psql, :name => 'oxyliquit', :user => 'john', :password => '', :connection_count => 2, :evolve_schema_cautious => true ) Note, that if you set :evolve_schema to false, you will get your behaviour that no new table is added/removed/touched. You will still get notified that a table is not available (due to creation of a new Og-Class or even by subclassing of another class), but the DB layout will not get changed. The whole 'automagic' adding to the previous initialized Og entity comes from the 'enchanting' of classes by using 'property' or 'prop_writer' etc. With your idea (meaning the theory) of creating real database objects (with different views possible on one real database) this could change the whole Og library to something else (Og 2.0?). I think James Britt said once in a discussion on the auto-enchanting, that he liked it, because sometimes in his developing process he just wants to make some objects persistant. Og provides him a way to do so, minimal change to his code. (I hope I got that right, if not, sorry James) I hope you can stay a little longer and possibly contribute more views, ideas, theoretic and practic as well as academic knowledge. Jonathan -- Feel the love http://pinkjuice.com/pics/ruby.png From fabian at oggu.de Fri Jun 9 06:34:15 2006 From: fabian at oggu.de (Fabian Buch) Date: Fri, 9 Jun 2006 12:34:15 +0200 Subject: [Nitro] resultset metadata In-Reply-To: <b6c060d90606090207h5c5d8de5gd3a6a2b8db7de48e@mail.gmail.com> References: <b6c060d90606090207h5c5d8de5gd3a6a2b8db7de48e@mail.gmail.com> Message-ID: <864b58dedfcdcefd19d17198a7730929@oggu.de> hi Rahul, Your aproach is kinda the low-level approach of a PHP database adapter. You can use those in Ruby too, like using ruby-dbi, or ruby-mysql directly, these are the low-level libraries and you can use them kinda like in PHP. ActiveRecord (from Rails) and Og (ObjectGraph) are a lot more high-level but with a different perspective. In ActiveRecord you do the database-stuff first and an "Object-model" gets created out of that, as far as I understand it (didn't use it since one of the very early versions of it). In Og you do it the other way round. You model the classes with it's properties first, like: class User property :surname, String property :firstname, String end Og then creates a table named "user" with the columns "surname" and "firstname". It's a totally different approach to what you were describing. You have the column names and such already as properties of the class User. So before going ahead with Og you should probably do the following first: - learn more about the language Ruby - try using ruby-dbi and see whether it fits your world better - try ActiveRecord (Rails) which makes your life a lot easier than low-level libs - learn more about ActiveRecord while devoping your apps - have a look at Hibernate - if you get more used to TopDown approaches (Objects first) learn more about Og - get prepared to read Og's source as its documentation - try Og - enjoy the magic of Og If you are at step 8, try the following Og tutorial http://oxywtf.de/tutorial/1 Fabian From aglarond at gmail.com Fri Jun 9 06:48:43 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Fri, 9 Jun 2006 12:48:43 +0200 Subject: [Nitro] resultset metadata In-Reply-To: <b6c060d90606090207h5c5d8de5gd3a6a2b8db7de48e@mail.gmail.com> References: <b6c060d90606090207h5c5d8de5gd3a6a2b8db7de48e@mail.gmail.com> Message-ID: <55c107bf0606090348r248b170dk1743fd974f908505@mail.gmail.com> Hi Rahul, On 6/9/06, Rahul <rahul2012 at gmail.com> wrote: > > > My second question relates to getting the tablenames of a database. And > then for each table getting the columns and column info. I have managed to > do that using rails but wish to do some simple work outside of rails to > begin with. Can that be done using OG? I wish to port a report generator i > once did in Java. > If your main objective is to write a report generator in Ruby, take a look at Ruport. <http://rubyforge.org/projects/ruport> It may already provide the functionality you're looking for. - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060609/deb43b22/attachment.html From rahul2012 at gmail.com Fri Jun 9 06:51:41 2006 From: rahul2012 at gmail.com (Rahul) Date: Fri, 9 Jun 2006 16:21:41 +0530 Subject: [Nitro] resultset metadata In-Reply-To: <864b58dedfcdcefd19d17198a7730929@oggu.de> References: <b6c060d90606090207h5c5d8de5gd3a6a2b8db7de48e@mail.gmail.com> <864b58dedfcdcefd19d17198a7730929@oggu.de> Message-ID: <b6c060d90606090351t3f4c985avc98c5c52e17bc065@mail.gmail.com> thanks for your guidance. your points are very valid. i was just using ruby-mysql - it gives the tablenames (list_tables) and databasenames (list_dbs) but the list_fields(table) doesnt return anything! i will try ruby-dbi too. from what i saw, dbi apps such as dbtalk hardcode db-specific calls in order to talk to different databases. i really appreciate your thoughtful advice. thanks again. On 6/9/06, Fabian Buch <fabian at oggu.de> wrote: > > hi Rahul, > > Your aproach is kinda the low-level approach of a PHP database adapter. > You can use those in Ruby too, like using ruby-dbi, or ruby-mysql > directly, these are the low-level libraries and you can use them kinda > like in PHP. > <snip> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060609/77308ed7/attachment.html From aglarond at gmail.com Fri Jun 9 07:03:08 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Fri, 9 Jun 2006 13:03:08 +0200 Subject: [Nitro] REST helper In-Reply-To: <bd93db0d0605122333i3b2dbe75idcab3899be6e4afb@mail.gmail.com> References: <55c107bf0605110635j5869f2b5je61d792c1f5620f7@mail.gmail.com> <bd93db0d0605111653l22d0d920r43594b1cb9ed4eb6@mail.gmail.com> <55c107bf0605112345j2727e212w5f913c82b0ab7662@mail.gmail.com> <bd93db0d0605122333i3b2dbe75idcab3899be6e4afb@mail.gmail.com> Message-ID: <55c107bf0606090403pe74c0e6k4260716e10bfc562@mail.gmail.com> Hi Bryan, Sorry for the very delayed post, but I was Offline for quite awhile, then had to play catch-up. :) On 5/13/06, Bryan Soto <bryan.a.soto at gmail.com> wrote: > > > Okay, let's discuss. I'm intrigued that it seems possible to do this > as a helper. I'd always assumed it'd be necessary to modify Nitro to > make it restful. Do you think it can or is this just a start? And do > you have any ideas on how to handle the differing method of output? It > seems with George's recent compiler work, the pieces might be in place > for this. I had toyed with the idea of a RESTController, but I think that a helper is less confining. A developer can use the standard Nitro controller, mix-in the desired helper libraries, and create something new. The REST helper is designed to provide methods that would help an application to be RESTful. In its current state, it's woefully incomplete, but I was hoping to garner some further input from the list... What would people like to see as helper methods here? Already included would be: accept_headers, content_headers - to extract certain header information features - to determine the supported features of a server negotiate_content, negotiate_format, negotiate_language - to discover what's the best form of a resource to deliver representation - to actually deliver that resource restify_form - use Ajax techniques to help a form work within the REST framework (this could also be thought of as an extension to the Form helper). A developer could then pick and choose the methods he/she would like to use. This may seem like a weak approach, but I think it fits in well with Nitro's philosophy of being as open as possible for developers to use as they please. I don't mean you directly, Dimitri, in the above, though if you have > thoughts I'd be interested to hear them. What other topics did you > want to talk about? :) > I'm sorry that nobody has weighed-in here yet. Let this post function as a "bump" to revisit the topic of REST in Nitro. Anyone have any ideas/suggestions? - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060609/86d3f300/attachment.html From aglarond at gmail.com Fri Jun 9 07:11:03 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Fri, 9 Jun 2006 13:11:03 +0200 Subject: [Nitro] Dimitri's Transformer. In-Reply-To: <afd80b540604290229w1e0e8b59tc153bfddbdcc0c89@mail.gmail.com> References: <afd80b540604290229w1e0e8b59tc153bfddbdcc0c89@mail.gmail.com> Message-ID: <55c107bf0606090411v27b8e81fud95b4af2c3a757a7@mail.gmail.com> Hi George, On 4/29/06, George Moschovitis <george.moschovitis at gmail.com> wrote: > > I had a look at this code, and it seems interesting. However this > seems to be a subset of a bigger idea I am trying to formulate in my > mind. I will get back to this at a later time. > Any progress on this? I know you're busy with Og improvements, docs, and the website... If you could just send an email to the list that sketches out the ideas you'd like to follow here, I'm sure a couple of us could write some code that would help realize them. Just talking/writing about ideas helps one to formulate them better. What's the bigger idea you mention here? Anxiously awaiting a better way of using templates, - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060609/3fd82445/attachment.html From james_b at neurogami.com Fri Jun 9 09:32:57 2006 From: james_b at neurogami.com (James Britt) Date: Fri, 09 Jun 2006 06:32:57 -0700 Subject: [Nitro] resultset metadata In-Reply-To: <864b58dedfcdcefd19d17198a7730929@oggu.de> References: <b6c060d90606090207h5c5d8de5gd3a6a2b8db7de48e@mail.gmail.com> <864b58dedfcdcefd19d17198a7730929@oggu.de> Message-ID: <44897889.2040302@neurogami.com> Fabian Buch wrote: ... > So before going ahead with Og you should probably do the following > first: > - learn more about the language Ruby > - try using ruby-dbi and see whether it fits your world better > - try ActiveRecord (Rails) which makes your life a lot easier than > low-level libs > - learn more about ActiveRecord while devoping your apps I have to agree. Not to discourage anyone from using Og, but you should try to pick the right tool. The big appeal of Og is that it focuses on the Ruby model, not the underlying storage mechanism. So if the storage mechanism is your first concern, then DBI is probably a better fit. James From bryan.a.soto at gmail.com Fri Jun 9 13:55:39 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Fri, 9 Jun 2006 10:55:39 -0700 Subject: [Nitro] Render#redirect question In-Reply-To: <01d101c68ba0$37215f40$0200000a@agamemnon> References: <001c01c68ac0$f928c370$0200000a@agamemnon> <3ff63f9b0606081515g6b1b3cb9r4f27625571dcafd2@mail.gmail.com> <44890395.7090203@lassoweb.nu> <bd93db0d0606082257k304201d4n1559d199960b962e@mail.gmail.com> <12078.192.176.230.1.1149835501.squirrel@www.scorpionshops.com> <01d101c68ba0$37215f40$0200000a@agamemnon> Message-ID: <bd93db0d0606091055jc98eebbx535dcac3364f1b21@mail.gmail.com> On 6/9/06, Jon A. Lambert <jlsysinc at alltel.net> wrote: > Lars Olsson wrote: > > Seems I skipped some important bits when reading the specs. You're > > completely right Bryan, there area some problems when using the 302 > > header. I found a very interesting article concerning this issue: > > > > http://ppewww.ph.gla.ac.uk/~flavell/www/post-redirect.html > > > > > > That's an excellent link. I think it answers the question, well at least > for me. The default should probably remain as 303. As long as 'status' > remains an optional overridable parameter in the redirect_* methods calls, I > don't see any problem. > Ah, we've reached a consensus and nothing changes. I should be a politician... ;) From george.moschovitis at gmail.com Sat Jun 10 03:57:08 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Sat, 10 Jun 2006 10:57:08 +0300 Subject: [Nitro] repo.nitroproject.org In-Reply-To: <4b6f054f0606071043x39445d83u59cee7dda2c94aa2@mail.gmail.com> References: <afd80b540606070836s20c4afa4h6ab5c94bb0ee440f@mail.gmail.com> <4b6f054f0606071043x39445d83u59cee7dda2c94aa2@mail.gmail.com> Message-ID: <afd80b540606100057o5c69a7f7ofc9ce9c5eb2435fc@mail.gmail.com> > Might I suggest you at least make a quick hand made page with a big > nitro graphic in the middle of the page and blurb about it under > redevelopment and with the links you already have? You know just > something that looks nice even if it's not feature rich. Sorry I am working overtime at the moment. Perhaps someone with some time could provide this temporal page? But you can trust me, the first version of the new nitro site is almost complete. regards, George. -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Sat Jun 10 03:59:43 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Sat, 10 Jun 2006 10:59:43 +0300 Subject: [Nitro] Request parameters In-Reply-To: <007d01c68b1e$0d10ea90$0200000a@agamemnon> References: <016b01c68971$912998d0$0200000a@agamemnon> <op.taqfo8xpxegpx6@jo.local> <003801c68b19$bcc1ab50$0200000a@agamemnon> <007d01c68b1e$0d10ea90$0200000a@agamemnon> Message-ID: <afd80b540606100059n47d4bc30ib355bae8ad05c896@mail.gmail.com> will have a look, thanks for reporting. -g. On 6/8/06, Jon A. Lambert <jlsysinc at alltel.net> wrote: > Jon A. Lambert wrote: > > <form method="post" action="edit/#{@entry.oid}"> > > Okay I put the backslash in my action and that takes edit out of the query > string. > <form method="post" action="/edit/#{@entry.oid}"> > > I guess the other problem is that it's an array of values and order > dependent. > > As passed to action --> [nil, "Cancel", nil] > As passed in @request.params {"name"=>nil, "commit"=>"Cancel", > "content"=>nil} > > The order is guess work. > > -- > J Lambert > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Sat Jun 10 04:10:12 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Sat, 10 Jun 2006 11:10:12 +0300 Subject: [Nitro] REST helper In-Reply-To: <55c107bf0606090403pe74c0e6k4260716e10bfc562@mail.gmail.com> References: <55c107bf0605110635j5869f2b5je61d792c1f5620f7@mail.gmail.com> <bd93db0d0605111653l22d0d920r43594b1cb9ed4eb6@mail.gmail.com> <55c107bf0605112345j2727e212w5f913c82b0ab7662@mail.gmail.com> <bd93db0d0605122333i3b2dbe75idcab3899be6e4afb@mail.gmail.com> <55c107bf0606090403pe74c0e6k4260716e10bfc562@mail.gmail.com> Message-ID: <afd80b540606100110t2b9f747aqfb6b0ac4789bff49@mail.gmail.com> I had a look at your code, but it seemed to me that it was an extremely early prototype. If you could work a little bit on this interesting idea I would *love* to see an updated version. regards, George. On 6/9/06, Dimitri Aivaliotis <aglarond at gmail.com> wrote: > Hi Bryan, > > Sorry for the very delayed post, but I was Offline for quite awhile, then > had to play catch-up. :) > > > On 5/13/06, Bryan Soto < bryan.a.soto at gmail.com> wrote: > > > > Okay, let's discuss. I'm intrigued that it seems possible to do this > > as a helper. I'd always assumed it'd be necessary to modify Nitro to > > make it restful. Do you think it can or is this just a start? And do > > you have any ideas on how to handle the differing method of output? It > > seems with George's recent compiler work, the pieces might be in place > > for this. > > > I had toyed with the idea of a RESTController, but I think that a helper is > less confining. A developer can use the standard Nitro controller, mix-in > the desired helper libraries, and create something new. The REST helper is > designed to provide methods that would help an application to be RESTful. > In its current state, it's woefully incomplete, but I was hoping to garner > some further input from the list... What would people like to see as helper > methods here? > > Already included would be: > > accept_headers, content_headers - to extract certain header information > > features - to determine the supported features of a server > > negotiate_content, negotiate_format, negotiate_language - to discover what's > the best form of a resource to deliver > representation - to actually deliver that resource > > restify_form - use Ajax techniques to help a form work within the REST > framework (this could also be thought of as an extension to the Form > helper). > > A developer could then pick and choose the methods he/she would like to use. > This may seem like a weak approach, but I think it fits in well with > Nitro's philosophy of being as open as possible for developers to use as > they please. > > > > I don't mean you directly, Dimitri, in the above, though if you have > > thoughts I'd be interested to hear them. What other topics did you > > want to talk about? :) > > > > I'm sorry that nobody has weighed-in here yet. Let this post function as a > "bump" to revisit the topic of REST in Nitro. Anyone have any > ideas/suggestions? > > - Dimitri > > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Sat Jun 10 04:11:03 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Sat, 10 Jun 2006 11:11:03 +0300 Subject: [Nitro] Dimitri's Transformer. In-Reply-To: <55c107bf0606090411v27b8e81fud95b4af2c3a757a7@mail.gmail.com> References: <afd80b540604290229w1e0e8b59tc153bfddbdcc0c89@mail.gmail.com> <55c107bf0606090411v27b8e81fud95b4af2c3a757a7@mail.gmail.com> Message-ID: <afd80b540606100111pf1fdb29i42fccf41b4093041@mail.gmail.com> Ok, let me have a look at this again, and I could post some ideas ;-) regards, George. On 6/9/06, Dimitri Aivaliotis <aglarond at gmail.com> wrote: > Hi George, > > > On 4/29/06, George Moschovitis <george.moschovitis at gmail.com> wrote: > > I had a look at this code, and it seems interesting. However this > > seems to be a subset of a bigger idea I am trying to formulate in my > > mind. I will get back to this at a later time. > > > > Any progress on this? I know you're busy with Og improvements, docs, and > the website... > > If you could just send an email to the list that sketches out the ideas > you'd like to follow here, I'm sure a couple of us could write some code > that would help realize them. Just talking/writing about ideas helps one to > formulate them better. What's the bigger idea you mention here? > > Anxiously awaiting a better way of using templates, > > - Dimitri > > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Sat Jun 10 04:26:00 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Sat, 10 Jun 2006 11:26:00 +0300 Subject: [Nitro] Fwd: Troubles along the class-level heirarchy In-Reply-To: <4b6f054f0606071916v67a33c2dm109119ec04f36859@mail.gmail.com> References: <4b6f054f0606021124t32a25db5kbd0ef4aa39132c88@mail.gmail.com> <1149517379.792853.19549.nullmailer@x31.priv.netlab.jp> <4b6f054f0606050934x2bb83b5fqe7b889aae5dabeae@mail.gmail.com> <3ff63f9b0606051025w6a8d2825k1dba30215fd8c5ee@mail.gmail.com> <4b6f054f0606071916v67a33c2dm109119ec04f36859@mail.gmail.com> Message-ID: <afd80b540606100126p3a8ba582w5dc3cad1f8856448@mail.gmail.com> > def self.included( base ) > base.module_eval { ... } > end > > is a NO NO. It misrepresents what's really going on. The class > hierachy will show the module included, but in actually the code has > been pasted directly into the class --their is no inheritance, you > couldn't redefine a method and call super from it, etc. Moreover the > class methods one might define in this way, to get around the lack of > class-level module inheritance, are only effective at one level, a > module of this kind included in another module will not be effective. > So please do not use this technique and help root out all occurances > of it. I spent a good bit of time myself getting rid of it in Og about > a year ago. interesting... -g. -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Sat Jun 10 04:29:02 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Sat, 10 Jun 2006 11:29:02 +0300 Subject: [Nitro] Render#redirect question In-Reply-To: <001c01c68ac0$f928c370$0200000a@agamemnon> References: <001c01c68ac0$f928c370$0200000a@agamemnon> Message-ID: <afd80b540606100129m53afef64se7e4ca541ec28a9b@mail.gmail.com> I think 303 is correct. -g. -- http://www.gmosx.com http://www.nitroproject.org From riku.raisanen at walkingwoods.com Sat Jun 10 06:59:53 2006 From: riku.raisanen at walkingwoods.com (=?iso-8859-1?Q?Riku_R=E4is=E4nen?=) Date: Sat, 10 Jun 2006 13:59:53 +0300 Subject: [Nitro] REST helper References: <mailman.4825.1149927065.25533.nitro-general@rubyforge.org> Message-ID: <004001c68c7d$010b5b80$b5b44e3e@syli> > I'm sorry that nobody has weighed-in here yet. Let this post function as > a > "bump" to revisit the topic of REST in Nitro. Anyone have any > ideas/suggestions? > > - Dimitri I've been working with Adobe Flex 2.0 beta 3 for some time now. Flex/Flash player supports RESTful methods like GET,POST,PUT,DELETE. Rich Internet Applications are getting more and more attention everyday. I could really put RESThelper into some good use. Also, I rather like the way this is done in camping: class ProductCotroller < Nitro::Controller helper :RESThelper def get(id) Product[id.to_i].to_xml end def delete(id) return '<success />' if Product[id.to_i].delete end end and so on.. This might lead into multiple controllers, which is fine by me, but if you can think of some ruby-magic way to put the stuff into one controller with modules or something like that, this would ne nice too. It seems that you're planning to be very specific to some REST whitepapers.. I'm not sure if all that functionality is needed. Haven't looked much into it tho. Just writing down some ideas before the topic dies again. Now I need to continue this project.. gosh, I hate working on weekends. -Riku R?is?nen From zimba.tm at gmail.com Sat Jun 10 08:54:37 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Sat, 10 Jun 2006 14:54:37 +0200 Subject: [Nitro] a 'database' entity? In-Reply-To: <op.tavh5rasxegpx6@jo.local> References: <028601c68b19$1d57bb90$80e7dbcb@ghostgum> <op.tavh5rasxegpx6@jo.local> Message-ID: <3ff63f9b0606100554j3e485032mf88362f3fcf69958@mail.gmail.com> My POV == Class for Database representation Og uses some database as a store for the various datas. By defining entities, you define the structure of what you want to store in the database. Looking like this, the database is only usefull to put and retrieve the datas. A database representation is already done in Og when you start an Og::Manager. I think this is a better approach than using a class for the following reasons : * Tables that are not managed by Og are not interesting because not usable in Og * It would make things more static. The database name is something you want to change more often (eg. different environment like debug or live) Naturally, the database class could have an extra attribute to tell it's database name. But you'll have to write extra code for that class all the time without having a real benefit. Or I missed the point. cf. managed_classes What I think is the next thing to do is cross queries. Og (and AR) transform the relational database into a hierarchical database. Where objects belongs_to other objects, ... In some cases it make it hard / inefficient to consilitate datas in different entities. -- Cheers, zimbatm http://zimbatm.oree.ch From zimba.tm at gmail.com Sat Jun 10 17:45:45 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Sat, 10 Jun 2006 23:45:45 +0200 Subject: [Nitro] Devlab update Message-ID: <3ff63f9b0606101445w5bdac6d4n6b3c58de7c663e42@mail.gmail.com> Hi community, finally, the trac is back up at devlab. I'm really sorry for the inconveniences and I hope you won't find any problems further. Notes : * New trac url : http://devlab.oree.ch/trac/glycerin * New darcs url : http://devlab.oree.ch/darcs/glycerin (old still working) More informations on my blog : http://zimbatm.oree.ch/articles/2006/06/10/devlab-update Please let me know if you encounter any problems so that I can correct them as fast as possible ! -- Cheers, zimbatm http://zimbatm.oree.ch From anne at wjh.harvard.edu Sun Jun 11 05:10:32 2006 From: anne at wjh.harvard.edu (Anne G) Date: Sun, 11 Jun 2006 05:10:32 -0400 (EDT) Subject: [Nitro] Can nitro be used with eruby? Message-ID: <Pine.SOL.4.30.0606110506140.15257-100000@wjh1.wjh.harvard.edu> I am a beginner at web programming. I have installed eruby, and I am using open-uri to open html files and extract information. Now, I would like my rhtml file to do different things depending on the parameters. So I figured I need a class, methods, and a way to link methods to relative links. The nitro example hello does just that. I seem to have installed nitro ok. But when I add <% require 'nitro' %> to my <% require 'open-uri' %> the rhtml crashes. Premature end of script Can nitro be used with eruby? thanks Anne G. From george.moschovitis at gmail.com Sun Jun 11 06:49:28 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Sun, 11 Jun 2006 13:49:28 +0300 Subject: [Nitro] Can nitro be used with eruby? In-Reply-To: <Pine.SOL.4.30.0606110506140.15257-100000@wjh1.wjh.harvard.edu> References: <Pine.SOL.4.30.0606110506140.15257-100000@wjh1.wjh.harvard.edu> Message-ID: <afd80b540606110349y260cde74id549924d71897cd4@mail.gmail.com> Hello, nitro provides several replacements for eruby. As a quick tip do the following: gem install nitro (install nitro) mkdir mydir mkdir mydir/public vi mydir/public/index.xhtml: <html> <title>Hello The time now is #{Time.now} vi mydir/run.rb: require 'nitro' Nitro.run then cd mydir ruby run.rb and point your browser to: localhost:9999 Btw, nitro also alows you to use the <% .. %> syntax like eruby if you want, but generally we prefer the xhtml compliant syntax: #{ } regards, George. On 6/11/06, Anne G wrote: > I am a beginner at web programming. > > I have installed eruby, and I am using open-uri to open html > files and extract information. > > Now, I would like my rhtml file to do different things > depending on the parameters. So I figured I need a class, > methods, and a way to link methods to relative links. > > The nitro example hello does just that. I seem to have > installed nitro ok. But when I add > <% require 'nitro' %> > to my > <% require 'open-uri' %> > the rhtml crashes. Premature end of script > > Can nitro be used with eruby? > > thanks > Anne G. > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From fabian at oggu.de Sun Jun 11 07:13:04 2006 From: fabian at oggu.de (Fabian Buch) Date: Sun, 11 Jun 2006 13:13:04 +0200 Subject: [Nitro] Can nitro be used with eruby? In-Reply-To: References: Message-ID: <8e9fb6871e6770701edbd63b4edff879@oggu.de> hi Anne, Like in a previous thread about Og, I have to say again, you should choose the right tools for your needs. You seem to mix up some things, like frameworks with templating.. Eruby is for templating only. A web framework (like Nitro, or RoR) is complete sets of tools that usually bring everything with them to develop complete web apps. Some of it is for templating (Nitro has it's own, RoR (Rails) uses erb (similar to eruby)), additionally there might be helper stuff, and maybe some separation for MVC (Model, View, Controller). There are all kinds of frameworks out there and every is working a little different. My advise for you is to first figure out what you need and then choose what to use: - learn what a framework is - do you really need a full blown framework? - take a look at what MVC is - do you need a framework with MVC separation? - if you like eruby, need a framework and MVC you might like Rails and should have a look at it - take a look at Nitro, which brings it's own, feature-rich MVC and a little different templating compared to Rails and eruby - read a Nitro tutorial ( http://oxyliquit.de/tutorial/nitro%20in%20flames ) It's generally a bad idea to try to mingle different templating systems and/or even frameworks together as a beginner in web development. Hopefully the above will be useful for you and welcome to the Nitro community if you find out that's what fits your needs best. Fabian From george.moschovitis at gmail.com Sun Jun 11 07:25:19 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Sun, 11 Jun 2006 14:25:19 +0300 Subject: [Nitro] Devlab update In-Reply-To: <3ff63f9b0606101445w5bdac6d4n6b3c58de7c663e42@mail.gmail.com> References: <3ff63f9b0606101445w5bdac6d4n6b3c58de7c663e42@mail.gmail.com> Message-ID: thanks, nice blog btw ;-) -g. On 6/11/06, Jonas Pfenniger wrote: > Hi community, > > finally, the trac is back up at devlab. I'm really sorry for the > inconveniences and I hope you won't find any problems further. > > Notes : > * New trac url : http://devlab.oree.ch/trac/glycerin > * New darcs url : http://devlab.oree.ch/darcs/glycerin (old still working) > > More informations on my blog : > http://zimbatm.oree.ch/articles/2006/06/10/devlab-update > > Please let me know if you encounter any problems so that I can correct > them as fast as possible ! > > -- > Cheers, > zimbatm > > http://zimbatm.oree.ch > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From john at oxyliquit.de Sun Jun 11 07:34:50 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Sun, 11 Jun 2006 13:34:50 +0200 Subject: [Nitro] Devlab update In-Reply-To: <3ff63f9b0606101445w5bdac6d4n6b3c58de7c663e42@mail.gmail.com> References: <3ff63f9b0606101445w5bdac6d4n6b3c58de7c663e42@mail.gmail.com> Message-ID: Hi, > finally, the trac is back up at devlab. I'm really sorry for the > inconveniences and I hope you won't find any problems further. > > Notes : > * New trac url : http://devlab.oree.ch/trac/glycerin > * New darcs url : http://devlab.oree.ch/darcs/glycerin (old still > working) Yay for a working trac again :D Thank you very much for your hard work Zimba, this is very much appriciated :) > More informations on my blog : > http://zimbatm.oree.ch/articles/2006/06/10/devlab-update Cool ajaxified blog ;) If it only were built in Nitro :P > Please let me know if you encounter any problems so that I can correct > them as fast as possible ! Will do :) Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From anne at wjh.harvard.edu Sun Jun 11 09:03:36 2006 From: anne at wjh.harvard.edu (Anne G) Date: Sun, 11 Jun 2006 09:03:36 -0400 (EDT) Subject: [Nitro] Can nitro be used with eruby? In-Reply-To: Message-ID: Thank you George. Installing nitro was not quite as simple as you suggested, it seemed to require og, glue, facets, redcloth 3.0.3, ruby-breakpoint (0.5) and daemons (0.4.2) Thank you for your quick tour on how to get started with Nitro. Your example separates starting webrick from the html file structure nitro expects, making it a little clearer to me, I will play with Nitro a bit, see if I can get an easy implementation of my exercise. Thank you Fabian for your response. since my goal is to understand Web programming (I am working on the prerequesite exercises for a 2003 web course posted on the web, so real basic stuff right now), I think I should use the lightest tool for the task. Templates vs Framework All of the frameworks offer a way to map a URL to a template file. In addition to simple mappings similar to the handling of static documents, some offer ways to intercept all requests within a certain directory for pre-processing, or create an object inheritance scheme out of the directory structure of a site. http://perl.apache.org/docs/tutorials/tmpl/comparison/comparison.html#Application_Frameworks_vs__Just_Templates As I understand it, eruby is a pre-processor. When you try to access an rhtml file, eruby is called first, runs, is replaced by the result of the computation, and then the browser presents the resulting html file. A framework is just a bunch of code. Since you say Rails is based on erb, I should be able to recreate Rails like behavior out of just ruby and erb. When the browser receives a pgm.rhtml request, it looks for a pgm.rhtml file in the given directory. With the frameworks rails and nitro, somehow running nitro links up a directory to an address localhost:9999, and then any address down stream from that adress is captured by the program and redirected by it. Right now I can't see how to get that kind of basic behavior with eruby, since there must be an exact match one to one between an url and a file. Yet you tell me that rails does it with erb. and erb and eruby are very similar. What is the key idea I am missing? thanks Anne G. From anne at wjh.harvard.edu Sun Jun 11 09:26:08 2006 From: anne at wjh.harvard.edu (Anne G) Date: Sun, 11 Jun 2006 09:26:08 -0400 (EDT) Subject: [Nitro] Can nitro be used with eruby? In-Reply-To: Message-ID: Oups, misread, you said the templating in Rails is done with erb. So what are the minimum ingredients I need to get nitro like behavior, is ruby + erb/eruby or cgi enough ? and if so what is the key idea, how to get this kind of parsing of url + redirecting behavior? anne G. From fabian at oggu.de Sun Jun 11 10:11:40 2006 From: fabian at oggu.de (Fabian Buch) Date: Sun, 11 Jun 2006 16:11:40 +0200 Subject: [Nitro] Can nitro be used with eruby? In-Reply-To: References: Message-ID: <391dc1b41d4d5ef7fe6bc691c78a6031@oggu.de> Am 11.06.2006 um 15:03 schrieb Anne G: > Installing nitro was not quite as simple as you suggested, > it seemed to require og, glue, facets, redcloth 3.0.3, > ruby-breakpoint (0.5) and daemons (0.4.2) Nitro is tightly coupled with some of these (libraries). Actually Og for example is the M part of Nitro's MVC (Model, View, Controller -> http://en.wikipedia.org/wiki/Model-view-controller). > Nitro. Your example separates starting webrick from the > html file structure nitro expects, making it a little > clearer to me, I will play with Nitro a bit, see if I can > get an easy implementation of my exercise. Webrick is just a webserver (http://en.wikipedia.org/wiki/Webserver), it's written in ruby and easy to start with, which is the reason for Nitro to use it as standard-webserver. It's usually only used in the development-phase. Later in deployment you'd usually use a faster/more powerful webserver like Apache, Lighttpd or Mongrel. For Nitro: files in public/ are served statically by the webserver (e.g. webrick). The rest is handled by Controller actions. > since my goal is to understand Web programming (I am working > on the prerequesite exercises for a 2003 web course posted > on the web, so real basic stuff right now), I think I should > use the lightest tool for the task. Well, Nitro is definitely not the lightest tool, it's a very complex and high-level framework. The lightest would maybe be mod_ruby, eruby or PHP (if you're not limited to the Ruby programming language). > Templates vs Framework > All of the frameworks offer a way to map a URL to a template > file. In addition to simple mappings similar to the handling > of static documents, some offer ways to intercept all > requests within a certain directory for pre-processing, or > create an object inheritance scheme out of the directory > structure of a site. > http://perl.apache.org/docs/tutorials/tmpl/comparison/ > comparison.html#Application_Frameworks_vs__Just_Templates This is a very limited view. You should probably read a little bit more: http://en.wikipedia.org/wiki/Web_application_framework and all web frameworks work a little bit different: http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks > As I understand it, eruby is a pre-processor. When you try > to access an rhtml file, eruby is called first, runs, is > replaced by the result of the computation, and then the > browser presents the resulting html file. > > A framework is just a bunch of code. Since you say Rails is > based on erb, I should be able to recreate Rails like > behavior out of just ruby and erb. Well, basically yes, but it's not just "a bunch of code", it's a lot of code and a lot of ideas. It's nothing you could achieve in a few months. The templating in Rails is only a small part of Rails and not only erb either. > When the browser receives a pgm.rhtml request, it looks for > a pgm.rhtml file in the given directory. Depends on how your files are served by the webserver or your framework, which again can be like you said above or even totally different (it's more complex in most web application frameworks). > With the frameworks rails and nitro, somehow running nitro > links up a directory to an address localhost:9999, and then > any address down stream from that adress is captured by the > program and redirected by it. Not necessarily. I'm not so familiar with Rails, but for Nitro: some files (like in public/) are served directly by the webserver, others aren't and might be processed or created by Controllers. > Right now I can't see how to get that kind of basic behavior > with eruby, since there must be an exact match one to one > between an url and a file. Yet you tell me that rails does > it with erb. and erb and eruby are very similar. What is the > key idea I am missing? The MVC paradigm probably! For Rails or Nitro you have to get an idea of what this mean. Read some more of the links I provided above. I'm not sure whether you need this as web application development beginner though and whether eruby or php might not be sufficient for you. That's something you gotta figure out. As a beginner it's definitely easier to start with non-MVC in PHP or eruby (if it has to be ruby). Fabian PS: btw. before you ask, MVC (http://ootips.org/mvc-pattern.html) is not only for web applications, it's also used by many other applications, especially GUI applications and only recently found it's way into the web. From fabian at oggu.de Sun Jun 11 10:18:19 2006 From: fabian at oggu.de (Fabian Buch) Date: Sun, 11 Jun 2006 16:18:19 +0200 Subject: [Nitro] Can nitro be used with eruby? In-Reply-To: References: Message-ID: Am 11.06.2006 um 15:26 schrieb Anne G: > So what are the minimum ingredients I need to get nitro like > behavior, is ruby + erb/eruby or cgi enough ? and if so what > is the key idea, how to get this kind of parsing of url + > redirecting behavior? I still don't know what you want to achieve. What do you mean by behavior? A framework has not much to do with URLs. Of course it handles URLs somehow, but it's not its main goal to parse URLs. Do you maybe want to have so called Nice-URLs? Like http://your.domain/blog/entry/1? You don't need a full-blown web framework for this, you can do that via Apaches mod_rewrite (http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html) and other webservers have similar features too (I'm pretty sure lighttpd does). Fabian From transfire at gmail.com Sun Jun 11 11:04:04 2006 From: transfire at gmail.com (TRANS) Date: Sun, 11 Jun 2006 11:04:04 -0400 Subject: [Nitro] Deprecating class_inherit.rb In-Reply-To: <4b6f054f0606110733m3c7d09bao701a89bae39bbe95@mail.gmail.com> References: <4b6f054f0606110733m3c7d09bao701a89bae39bbe95@mail.gmail.com> Message-ID: <4b6f054f0606110804n41e6bb38tc03d61e8e6c181d3@mail.gmail.com> Hey NCT, I will be deprecating class_inherit.rb for the final release of Facets 1.4. Presenlty (an I hhad forgotten that I had done this actually) classmethods.rb is completely compatibile in functionality, all you have to do is replace calls to 'class_inherit' with 'class_methods'. But I am debating switching the terminology to *extensible*. module X extensible do ... end end and module X module Extensible ... end end versus module X class_methods do ... end end and module X module ClassMethods ... end end Which do you all prefer? T. From zimba.tm at gmail.com Sun Jun 11 11:08:14 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Sun, 11 Jun 2006 17:08:14 +0200 Subject: [Nitro] Deprecating class_inherit.rb In-Reply-To: <4b6f054f0606110804n41e6bb38tc03d61e8e6c181d3@mail.gmail.com> References: <4b6f054f0606110733m3c7d09bao701a89bae39bbe95@mail.gmail.com> <4b6f054f0606110804n41e6bb38tc03d61e8e6c181d3@mail.gmail.com> Message-ID: <3ff63f9b0606110808i31295f71r5e7f77f473f4db1c@mail.gmail.com> +1 for ClassMethods Maybe my bias comes that I'm used to that approach but ClassMethods is more precise than Extensible. -- Cheers, zimbatm http://zimbatm.oree.ch From william.full.moon at gmail.com Sun Jun 11 11:13:27 2006 From: william.full.moon at gmail.com (* William) Date: Mon, 12 Jun 2006 01:13:27 +1000 Subject: [Nitro] a 'database' entity? In-Reply-To: <3ff63f9b0606100554j3e485032mf88362f3fcf69958@mail.gmail.com> Message-ID: <036c01c68d69$9bfba2c0$80e7dbcb@ghostgum> Hi Jonas I was writing earlier on this notion. I can see your point of view, it makes sense and fits with most of the Og behaviour/design. Under the conditions outlined, you can't call Og a "database" access. An appropriate description I came-up with to identify Og is: 'Object persistence via logical data tables" That leaves the implementation flexible for memory based schemes and alternatives not restricted to relational database engines. This is a truth, you only need a regular table structure of rows and columns to implement an underlying Og support structure. People indexed entries can utilise an ISAM based store. Or a flat-file store can implement it's own indexing. That fully complies with the requirements expressed: z> A database representation is already done in Og when you start an Og::Manager. z> I think this is a better approach than using a class for the following z> reasons : z> z> * Tables that are not managed by Og are not interesting because not z> usable in Og z> * It would make things more static. The database name is something you z> want to change more often (eg. different environment like debug z> or live) z> The Og::Manager does _not_ implement a database. It can and does pull in tables that are not part of the database. You may have missed my initial exercise to open old-database and copy records to a new-database. Simply opening TWO distinct "og::Manager instances" was problematic. Not only because of my ignorance of Oq, also by design deliberate or otherwise. As you say, I can open some tables with Og and work only with those entities. What do I do when application #A only include some dependent table? There is no integration of the data for the tables that were not interesting to application #A. Databases are a really useful and necessary tool for software development. When you don't have one, you will re-discover lots and lots of bugs that databases left behind 15-20 years ago. z> for that class all the time without having a real benefit. Or I missed the z> point. cf. managed_classes Again, I think instantiated managed_class only accesses tables given in the Og.Setup(...). And none of any Other tables in a database. And the also "vacuum up" other database classes NOT in the database. I discovered this in the copy old-db to new-db exercise (see earlier post). It is a cheap shot to suggest that managed_classes are not managed very well in the current implementation. Much discussion can happen because of different requirements for something that persists data. In your case, a database is the tables your application needs to use (as I understand your comments). In the Og/Nitro context would that mean that my web site would have a Blog application, a Wiki application, a cookbook application and (say) a forums app. Each of those four applications would be in separate data-silos. We both know that I don't want four user_registration tables, so each application presumably shared the user_registration table. That is just good Object oriented decomposition. In a few years or months time someone will get a good idea that uses one or more data-silos in some brilliant way! The difference between a 'clean' data model and persistent entity-relations (which is what OG::managed_classes is), will be the time and money it costs to make the good idea work and the number of extra bugs due to the good idea spread over the five applications (four plus one). I _want_ a database class, that give me a wholistic data model. I wasn't asking someone to agree with me. It is worth clearly explaining what I am saying. What is misleading for people like me is that ActiveRecord and Og sit on top of database API-s and using them for managed table access. I have to back down. Any bunch of text files can be a "database". I saw one nice database that read in a bunch of XML files and ran-live in memory until the database was saved. The purpose of a database-entity is to mediate access to a database object implementation. In this discussion Og would use a Database entity -- It must use one for postgresql, sqlite, mysql, etc because they layers implement a database entity. The difference is that the Og layer is exercising the database underneath as a simple file/table manager. That's fine with me, as long as I'm not confused and as long as others especially the newly arrived are tapped on the shoulder and told how things work. Cheers, Will. -----Original Message----- From: nitro-general-bounces at rubyforge.org [mailto:nitro-general-bounces at rubyforge.org] On Behalf Of Jonas Pfenniger Sent: Saturday, 10 June 2006 22:55 To: General discussion about Nitro Subject: Re: [Nitro] a 'database' entity? Importance: Low My POV == Class for Database representation Og uses some database as a store for the various datas. By defining entities, you define the structure of what you want to store in the database. Looking like this, the database is only usefull to put and retrieve the datas. A database representation is already done in Og when you start an Og::Manager. I think this is a better approach than using a class for the following reasons : * Tables that are not managed by Og are not interesting because not usable in Og * It would make things more static. The database name is something you want to change more often (eg. different environment like debug or live) Naturally, the database class could have an extra attribute to tell it's database name. But you'll have to write extra code for that class all the time without having a real benefit. Or I missed the point. cf. managed_classes What I think is the next thing to do is cross queries. Og (and AR) transform the relational database into a hierarchical database. Where objects belongs_to other objects, ... In some cases it make it hard / inefficient to consilitate datas in different entities. -- Cheers, zimbatm http://zimbatm.oree.ch _______________________________________________ Nitro-general mailing list Nitro-general at rubyforge.org http://rubyforge.org/mailman/listinfo/nitro-general -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/360 - Release Date: 09-Jun-2006 From john at oxyliquit.de Sun Jun 11 12:50:24 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Sun, 11 Jun 2006 18:50:24 +0200 Subject: [Nitro] a 'database' entity? In-Reply-To: <036c01c68d69$9bfba2c0$80e7dbcb@ghostgum> References: <036c01c68d69$9bfba2c0$80e7dbcb@ghostgum> Message-ID: Hi, me again ;) I will not comment on the rest of the post, I'll let Zimba answer that :) > In the Og/Nitro context would that mean that my web site would have a > Blog application, a Wiki application, a cookbook application and (say) > a forums app. Each of those four applications would be in separate > data-silos. Ok, lets say we have these applications. For complete abstraction I will run all applications completely independend on a webserver. 5 tables in the DB at first: * oguser * ogblogpost * ogwikipage * ogcookbookpage * ogforumpost lets build those: $ cat blog/models/blog.rb class BlogPost property :title, String property :text, String belongs_to User end $ cat cookbook/models/cookbook.rb class CookbookPage property :recipe, String property :text, String belongs_to User end $ cat forum/models/forum.rb class ForumPost is NestedSets # a little more advanced `has_many :answers, ForumPost` property :title, String property :text, String belongs_to User end > We both know that I don't want four user_registration tables, so each > application presumably shared the user_registration table. That is just > good Object oriented decomposition. $ cat common/models/common.rb class User property :name, String prop_read :pass, String end Which gets included in every other application. (Later on, on how to do that with different 'silos'). Right now, all applications run on the same silo. Now, all the applications have a run.rb (i.e. cookbook/run.rb) which has the Og.setup in it (which handles the connection to the silo). > In a few years or months time someone will get a good idea that uses one > or more data-silos in some brilliant way! The difference between a > 'clean' data model and persistent entity-relations (which is what > OG::managed_classes is), will be the time and money it costs to make the > good idea work and the number of extra bugs due to the good idea spread > over the five applications (four plus one). I'm now the one that gets the brilliant idea! I'm building a social network application (Yes, I'm sooo Web 2.0 ;D (just kidding :P)) which is based on my previous work on the other applications. I'm using the cookbook and the forum posts to match the taste of everyone to get information what is the most popular meal in my community. $ cat info/models/info.rb require '../common/models/common.rb' require '../forum/models/forum.rb' require '../cookbook/models/cookbook.rb' class Statistics property :description, String has_one CookbookPage has_many User # this has effects on Users, it adds a column # which won't be seen by the other applications end What I have now, is a different view on the DB of what I had before, but while the data will physically exist in the same bucket of information, it will only be readable by the statistics app, because only it has the access (by using the Og Classes). What I did now, is, reusing the readily existing data to rapidly build another application. If now the data would persist in "different" data-silos, meaning other DBs or stores (like perhaps "Madeleine", which is a pure Ruby object store). I would do the following, which is also done pretty fast: $ cat info/models/info.rb require '../common/models/common.rb' $userstore = Og.setup() require '../forum/models/forum.rb' $forumstore = Og.setup() require '../cookbook/models/cookbook.rb' $cookbookstore = Og.setup() class Statistics property :description, String has_one CookbookPage has_many User # this has effects on Users, it adds a column # which won't be seen by the other applications end $infostore = Og.setup() The Og.setup stuff are just copy/pastes from the applications where they come from, one may even set up a special [info]/model/connector.rb which has that Og.setup() readily available (good idea *takes note*). We now have 4 stores with data in it. We actually don't need the global variables to them, they're not needed anyway. All I have to take care of that the right Class ends up in the right store, which we have done by sequentially call Og.setup with the right parameters and to require the right Classes right above them to avoid any unessessary troubles. What we have, after we leave the 4 stores (without knowing about the global variables) is 4 object-sources which are ready to be used by the current application, no need to know about anything else in here. Now in our glorious information hunting application we do the rest, like linking the forum posts to the cookbook by maybe running a CRM114 Bayesian Markovian Discriminator to classify every message, which is left as a programming exercise to the reader :) This approach is imo very fast, almost can't be beaten by any other means since there is no recreation needed, all is there, ready to use, just make the right connections between programs. (Side note: This approach can be used for the User table as well for each individual application, if they can't be in a single store together.) I hope anyone finds that little tutorial at least entertaining to read :) /me has written enough for today, and will have a rest, all your fault, William ;D Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From zimba.tm at gmail.com Sun Jun 11 12:54:51 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Sun, 11 Jun 2006 18:54:51 +0200 Subject: [Nitro] a 'database' entity? In-Reply-To: <036c01c68d69$9bfba2c0$80e7dbcb@ghostgum> References: <3ff63f9b0606100554j3e485032mf88362f3fcf69958@mail.gmail.com> <036c01c68d69$9bfba2c0$80e7dbcb@ghostgum> Message-ID: <3ff63f9b0606110954j605d48a4r2f8f7d0ec52f5107@mail.gmail.com> Hi William, On 11/06/06, * William wrote > That leaves the implementation flexible for memory based schemes and > alternatives not restricted to relational database engines. This is a > truth, you only need a regular table structure of rows and columns to > implement an underlying Og support structure. Yes plus the CRUD methods that Og doesn't provide. It only interfaces them. > The Og::Manager does _not_ implement a database. It can and does pull in > tables that are not part of the database. Ok I get you're point and I may have misexpressed myself but it's not what I meant. Og::Manager is only a part of the logical glue between the database and ruby. > You may have missed my initial > exercise to open old-database and copy records to a new-database. Simply > opening TWO distinct "og::Manager instances" was problematic. Not only > because of my ignorance of Oq, also by design deliberate or otherwise. Because Og still has some bugs doesn't mean the design is wrong. > As you say, I can open some tables with Og and work only with those > entities. What do I do when application #A only include some dependent > table? Dependent of what ? > There is no integration of the data for the tables that were not > interesting to application #A. What kind of integration are you looking for ? > Again, I think instantiated managed_class only accesses tables given in the > Og.Setup(...). And none of any Other tables in a database. And the also > "vacuum up" other database classes NOT in the database. I discovered this > in the copy old-db to new-db exercise (see earlier post). Well, Og.setup is only a utility that : * Sets default options * Start an Og::Manager * Tells him to manage all classes If you have a set of entities, say [A, B, C, D], you could theorically use man1 = Og::Manager.new(options1) man2 = Og::Manager.new(options2) man1.manage_classes A,B man2.manage_classes C,D > It is a cheap shot to suggest that managed_classes are not managed very well > in the current implementation. That's possible > Much discussion can happen because of > different requirements for something that persists data. In your case, a > database is the tables your application needs to use (as I understand your > comments). No, the tables and database are only the side effects of using Og. Og is there to allow you to think in term of persistable objects. If you would like to introduce grouping, then it should have nothing to do with real databases. Like you said, Og is usable with flat files or memory stores. > In the Og/Nitro context would that mean that my web site would have a Blog > application, a Wiki application, a cookbook application and (say) a forums > app. Each of those four applications would be in separate data-silos. We > both know that I don't want four user_registration tables, so each > application presumably shared the user_registration table. That is just > good Object oriented decomposition. Yes but it has nothing to do with databases. If you want to unify your authentication scheme, you generally create a library that each of the four applications would use. Now it is up to you to decide where you want to store the data when configuring Og. You could have all four apps plus the lib in the save database, or each in his own with the library in a separate one, using multiple Og::Manager. > I _want_ a database class, that give me a wholistic data model. I wasn't > asking someone to agree with me. It is worth clearly explaining what I am > saying. If you want somebody to code something for you, you'd better not use that argument :-p I think that you don't fully understand the goals of Og and that you want to map a traditional RDBM view to Og. Don't take it as a critic. I've made the same error when starting with Og. I think this is a common new commer error. When X doesn't fit your way of thinking you start saying it's wrong instead of trying to understand how it works really. I can assure you that Og have some shortcoming but I don't think it's the case here. Like you stated, a file or memory can be used to persist data, even if they don't have a "database" concept. You can think that the database in the database server is just a location (like the path to the file) to store your datas. Nothing more. Again, I may have missed the point. Maybe to make things more clear you can tell us what real world problem you try to solve or if it is an academic point of view ? -- Cheers, zimbatm http://zimbatm.oree.ch From james_b at neurogami.com Sun Jun 11 13:44:43 2006 From: james_b at neurogami.com (James Britt) Date: Sun, 11 Jun 2006 10:44:43 -0700 Subject: [Nitro] Can nitro be used with eruby? In-Reply-To: <391dc1b41d4d5ef7fe6bc691c78a6031@oggu.de> References: <391dc1b41d4d5ef7fe6bc691c78a6031@oggu.de> Message-ID: <448C568B.10201@neurogami.com> Fabian Buch wrote: > > Well, Nitro is definitely not the lightest tool, it's a very complex > and high-level framework. The lightest would maybe be mod_ruby, eruby > or PHP (if you're not limited to the Ruby programming language). Well, to be fair, while there are some complex parts in Nitro, one can safely ignore most of it and do simple, template-driven Web sites quite easily. That, for me, is part of the appeal. Use what you want, ignore the rest. Here's an erb example: # ---------- File run.rb -------------- #!/usr/bin/env ruby require 'nitro' require 'erb' require 'controller/main' Nitro.run(Main) # ---------------------------------- #--- File src/controller/main/rb --- class Main def index @title = "Erb Example" @body = "

Hello from Nitro

" emit end private def emit template = ERB.new( html ) template.result(binding) end def html "<%=@title %> <%= @body %>" end end # ---------------------------------- -- James Britt http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - The Journal By & For Rubyists http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://web2.0validator.com - We're the Dot in Web 2.0 From transfire at gmail.com Mon Jun 12 09:01:54 2006 From: transfire at gmail.com (TRANS) Date: Mon, 12 Jun 2006 09:01:54 -0400 Subject: [Nitro] Component System instead of ClassMethods hack? Message-ID: <4b6f054f0606120601t33744a9cg279befbba7729b7b@mail.gmail.com> Given what Matz is saying on the thread concerning ClassMethods, I would suggest deprecating the use of class_inherit and ClassMethods, and instead go through the Nitro/Og code and split the modules into two, extend vs. include parts. Then use each separately. But I realize that some of those modules have to go together, so it seems silly that they'd be split this way, So I was thinking of a system like this: class Component def initialize( &template ) @extensions = [] @inclusions = [] instance_eval &template end def self.[]( e, i ) c = new c << e c < i end def include( *inclusions ) @inclusions.concat *inclusions end def extend( *extensions ) @extensions.concat extensions end def <( inclusion ) @inclusions << inclusion self end def <<( extension ) @extensions << extension self end def apply_features( base ) base.module_eval { extend *@extensions include *@inclusions end end end class Module def inherit( *components ) components.each { |c| c.apply_features( self ) end end end Then we can do things like: module Mc def c ; "c" ; end end module Mi def i; "i"; end end # quick notation for a pair M = Component[ Mc, Mi ] # or long notaion for more complex components M = Component.new do extend Mc include Mi end class X inherit M end X.c #=> c X.new.i #=> i Thoughts? T. From lasso at lassoweb.nu Mon Jun 12 09:57:53 2006 From: lasso at lassoweb.nu (Lars Olsson) Date: Mon, 12 Jun 2006 15:57:53 +0200 (CEST) Subject: [Nitro] Quick session questions Message-ID: <53277.192.176.230.1.1150120673.squirrel@www.scorpionshops.com> Hi, some quick session questions: 1. How do I change the session cache type (to use og instead of memory sessions) 2. In a controller the "session" hash contains the current session variables. Do I need to do something special in order to use this hash in the view as well? /Lasso -- ________________________________________ Lars Olsson lasso at lassoweb.nu http://www.lassoweb.nu/ From zimba.tm at gmail.com Mon Jun 12 10:31:53 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Mon, 12 Jun 2006 16:31:53 +0200 Subject: [Nitro] Component System instead of ClassMethods hack? In-Reply-To: <4b6f054f0606120601t33744a9cg279befbba7729b7b@mail.gmail.com> References: <4b6f054f0606120601t33744a9cg279befbba7729b7b@mail.gmail.com> Message-ID: <3ff63f9b0606120731x6db90490tf016802c89e176df@mail.gmail.com> > Thoughts? Yes, please don't use Component it is a too generic term. I propose Aggregator since it's what it's doing. Il also goes well with the Delegator and Forwarder terms. On the technical part, should X inheritors also inherit class methods ? I don't know if you handled that case. Eg. class Y < X; end Y.c #=> c Also, is this always a wanted feature or does it needs some control ? -- Cheers, zimbatm http://zimbatm.oree.ch From transfire at gmail.com Mon Jun 12 11:16:42 2006 From: transfire at gmail.com (TRANS) Date: Mon, 12 Jun 2006 11:16:42 -0400 Subject: [Nitro] Component System instead of ClassMethods hack? In-Reply-To: <3ff63f9b0606120731x6db90490tf016802c89e176df@mail.gmail.com> References: <4b6f054f0606120601t33744a9cg279befbba7729b7b@mail.gmail.com> <3ff63f9b0606120731x6db90490tf016802c89e176df@mail.gmail.com> Message-ID: <4b6f054f0606120816ie8de899x92ec566ee94f8bd1@mail.gmail.com> On 6/12/06, Jonas Pfenniger wrote: > > Thoughts? > > Yes, please don't use Component it is a too generic term. I propose > Aggregator since it's what it's doing. Il also goes well with the > Delegator and Forwarder terms. Is there a conflict with the term 'Component' somewhere? Well, maybe it is too generic, but I don't like Aggregator, it's far too tied up with the concept of RSS these days. And I don't want to name it after something it incidently "does", but rather what it represents, eg. a synonym for 'Module'. Hmm... How about 'Capsule'? > On the technical part, should X inheritors also inherit class methods > ? I don't know if you handled that case. > > Eg. > > class Y < X; end > Y.c #=> c It does. > Also, is this always a wanted feature or does it needs some control ? That's beyond anyone's control but Matz', I'm afraid. (Well, there may be some convoluted means of working something to that effect in, but I don't think the very limited use case warrents all the nastiness.) T. From zimba.tm at gmail.com Mon Jun 12 11:46:36 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Mon, 12 Jun 2006 17:46:36 +0200 Subject: [Nitro] Component System instead of ClassMethods hack? In-Reply-To: <4b6f054f0606120816ie8de899x92ec566ee94f8bd1@mail.gmail.com> References: <4b6f054f0606120601t33744a9cg279befbba7729b7b@mail.gmail.com> <3ff63f9b0606120731x6db90490tf016802c89e176df@mail.gmail.com> <4b6f054f0606120816ie8de899x92ec566ee94f8bd1@mail.gmail.com> Message-ID: <3ff63f9b0606120846q12b597fbgf36e6001627dfcf@mail.gmail.com> On 12/06/06, TRANS wrote: > Is there a conflict with the term 'Component' somewhere? Well, maybe > it is too generic, but I don't like Aggregator, it's far too tied up > with the concept of RSS these days. And I don't want to name it after > something it incidently "does", but rather what it represents, eg. a > synonym for 'Module'. Hmm... How about 'Capsule'? Ok I agree, it's better to name something to what it does. What about 'Compound'. Nitro has Components for example (not in the root namespace) and I suspect many other libs. Aggregat is nice also I think. -- Cheers, zimbatm http://zimbatm.oree.ch From fabian at oggu.de Mon Jun 12 12:01:23 2006 From: fabian at oggu.de (Fabian Buch) Date: Mon, 12 Jun 2006 18:01:23 +0200 Subject: [Nitro] Quick session questions In-Reply-To: <53277.192.176.230.1.1150120673.squirrel@www.scorpionshops.com> References: <53277.192.176.230.1.1150120673.squirrel@www.scorpionshops.com> Message-ID: Since it might be useful for other ppl too, I posted it on oxywtf.de including an answer: Am 12.06.2006 um 15:57 schrieb Lars Olsson: > 1. How do I change the session cache type (to use og instead of memory > sessions) http://oxyliquit.de/question/60 > 2. In a controller the "session" hash contains the current session > variables. Do I need to do something special in order to use this hash > in > the view as well? No, you can use it in templates the same way as in the controller. Fabian From john at oxyliquit.de Mon Jun 12 12:35:25 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Mon, 12 Jun 2006 18:35:25 +0200 Subject: [Nitro] Quick session questions In-Reply-To: References: <53277.192.176.230.1.1150120673.squirrel@www.scorpionshops.com> Message-ID: On Mon, 12 Jun 2006 18:01:23 +0200, Fabian Buch wrote: > Since it might be useful for other ppl too, I posted it on oxywtf.de > including an answer: > > Am 12.06.2006 um 15:57 schrieb Lars Olsson: >> 1. How do I change the session cache type (to use og instead of memory >> sessions) > > http://oxyliquit.de/question/60 > >> 2. In a controller the "session" hash contains the current session >> variables. Do I need to do something special in order to use this hash >> in >> the view as well? > > No, you can use it in templates the same way as in the controller. Side note: In the Model (and everywhere else you would suspect that the Session is not available use: `Session.current`, which always works. Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From thoraval.yvon at free.fr Mon Jun 12 13:09:28 2006 From: thoraval.yvon at free.fr (Yvon Thoraval) Date: Mon, 12 Jun 2006 19:09:28 +0200 Subject: [Nitro] unable to unsubscribe Message-ID: <7ED8C7BD-0C81-4316-8EFA-083C03DBD9BC@free.fr> doing the unsubscribing process at http://rubyforge.org/mailman/ listinfo/nitro-general, i never get the unsubscribing email confirmation. then, i'm still subscribed. how to unsubscribe effectively ? best, Yvon From lasso at lassoweb.nu Mon Jun 12 13:30:04 2006 From: lasso at lassoweb.nu (Lars Olsson) Date: Mon, 12 Jun 2006 19:30:04 +0200 Subject: [Nitro] Quick session questions In-Reply-To: References: <53277.192.176.230.1.1150120673.squirrel@www.scorpionshops.com> Message-ID: <448DA49C.8070309@lassoweb.nu> Hi, thanks for answering so quickly. I'm still having trouble getting it to work though. A sample app: require 'nitro' require 'og' class Foo def index "Hello, I'm Foo" end end # I don't know whether this is necessary, but the app doesn't work # with or without it Og.setup( :destroy => true, :store => 'sqlite', :name => 'foo' ) # I get errors when using this. Without this line the app runs fine Nitro::Session.cache_type = :og Nitro.run(Foo) app.log attached. I start Nitro by doing: ruby -rubygems run.rb --webrick --live --address 127.0.0.1 --port 80 --start What am I doing wrong? /Lasso ________________________________________ Lars Olsson lasso at lassoweb.nu http://www.lassoweb.nu/ Fabian Buch skrev: > Since it might be useful for other ppl too, I posted it on oxywtf.de > including an answer: > > Am 12.06.2006 um 15:57 schrieb Lars Olsson: >> 1. How do I change the session cache type (to use og instead of memory >> sessions) > > http://oxyliquit.de/question/60 > >> 2. In a controller the "session" hash contains the current session >> variables. Do I need to do something special in order to use this hash >> in >> the view as well? > > No, you can use it in templates the same way as in the controller. > > Fabian > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: app.log Url: http://rubyforge.org/pipermail/nitro-general/attachments/20060612/1a2b50b8/attachment.pl From john at oxyliquit.de Mon Jun 12 13:56:06 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Mon, 12 Jun 2006 19:56:06 +0200 Subject: [Nitro] Quick session questions In-Reply-To: <448DA49C.8070309@lassoweb.nu> References: <53277.192.176.230.1.1150120673.squirrel@www.scorpionshops.com> <448DA49C.8070309@lassoweb.nu> Message-ID: Hi, reorder your code like this. > Nitro::Session.cache_type = :og > Og.setup( > :destroy => true, > :store => 'sqlite', > :name => 'foo' > ) The Og session handler creates a new Og class, which has to be loaded by Og (which is done by running a Og.setup after doing so). I hope this works, untested, but it should. (I used Og session store before, so I'm quite sure it does.) Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From lasso at lassoweb.nu Mon Jun 12 14:10:39 2006 From: lasso at lassoweb.nu (Lars Olsson) Date: Mon, 12 Jun 2006 20:10:39 +0200 Subject: [Nitro] Quick session questions In-Reply-To: References: <53277.192.176.230.1.1150120673.squirrel@www.scorpionshops.com> <448DA49C.8070309@lassoweb.nu> Message-ID: <448DAE1F.10106@lassoweb.nu> That worked great. Thanks! Seems a bit strange though...It seems quite unlogical to me that the Session references something that isn't initialized yet. But never mind...as long as it works. :) /Lasso ________________________________________ Lars Olsson lasso at lassoweb.nu http://www.lassoweb.nu/ Jonathan Buch skrev: > Hi, > > reorder your code like this. > >> Nitro::Session.cache_type = :og >> Og.setup( >> :destroy => true, >> :store => 'sqlite', >> :name => 'foo' >> ) > > The Og session handler creates a new Og class, which has to be > loaded by Og (which is done by running a Og.setup after doing so). > > I hope this works, untested, but it should. (I used Og session > store before, so I'm quite sure it does.) > > Kashia > From itsme213 at hotmail.com Mon Jun 12 15:34:58 2006 From: itsme213 at hotmail.com (itsme213) Date: Mon, 12 Jun 2006 14:34:58 -0500 Subject: [Nitro] Component System instead of ClassMethods hack? References: <4b6f054f0606120601t33744a9cg279befbba7729b7b@mail.gmail.com> Message-ID: "TRANS" wrote in message > Given what Matz is saying on the thread concerning ClassMethods, Could you share a pointer to the thread please? Do the proposals depend on 1.9.x, and if so does he suggest anything for 1.8.x? Naming-wise I am not up to speed with the thinking behind your post, but thought I would add this anyway. How about: - Class for anything that defines methods, ivars, etc. for classes - regardless of whether implemented as a class or module - Object for anything that defined methods, ivars, etc. for non-class objects - regardless of whether implemented as a class or module In any DSL-ish approach, these two often go together e.g. - Workflow - WorkflowClass has activities, flows, initial_state, etc. - WorkflowObject has current_state So we might name a pairing of Class and Object an Concept. Perhaps an Concept might most naturally be implemented as a module. module WorkflowConcept ... WorkflowClass ... ... WorkflowObject ... end From john at oxyliquit.de Mon Jun 12 17:30:12 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Mon, 12 Jun 2006 23:30:12 +0200 Subject: [Nitro] Quick session questions In-Reply-To: <448DAE1F.10106@lassoweb.nu> References: <53277.192.176.230.1.1150120673.squirrel@www.scorpionshops.com> <448DA49C.8070309@lassoweb.nu> <448DAE1F.10106@lassoweb.nu> Message-ID: Hi, > That worked great. Thanks! > > Seems a bit strange though...It seems quite unlogical to me that the > Session references something that isn't initialized yet. But never > mind...as long as it works. :) Well, imho not so much unlogical as annoying, that the error message is clearly advertising the problem for experienced Og users, but the message is very misleading for new people. The error message inside the Og Session store should say somethin like: "Og Store not initialized yet, please initialize it _after_ setting up the Og Session Store." instead of 'missing ogmanager'. This is clearly annoying and should be cleaned up. The Og Session Store _can't_ know where it should save it's data (to the Og instance you declared before? Or a new one?) so it does the right thing, it throws an error. Now, we just need to get nicer error messages :P George you hearing me? :P Quick workaround: lib/og/entity.rb:519:in `method_missing' << just put a condition in there, if a 'ogmanager' is missing, rethrow the error just with another message. Unclean? dunno. Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From george.moschovitis at gmail.com Tue Jun 13 12:30:05 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Tue, 13 Jun 2006 19:30:05 +0300 Subject: [Nitro] Removing some code from Nitro/Og. Message-ID: Dear devs, I would like to remove some unclean/not widely used code from Nitro/Og. Examples include the og_clone functionality, properties postprocess, the code in og/evolution.rb the rsshelper and some more. If anyone has any objections or can point me to additional code i could remove, please let me know. regards, George. -- http://www.gmosx.com http://www.nitroproject.org From zimba.tm at gmail.com Tue Jun 13 12:39:43 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 13 Jun 2006 18:39:43 +0200 Subject: [Nitro] Removing some code from Nitro/Og. In-Reply-To: References: Message-ID: <3ff63f9b0606130939r43913132ic4c587d341df657f@mail.gmail.com> On 13/06/06, George Moschovitis wrote: > Dear devs, > > I would like to remove some unclean/not widely used code from > Nitro/Og. Examples include the og_clone functionality, properties > postprocess, the code in og/evolution.rb the rsshelper and some more. > If anyone has any objections or can point me to additional code i > could remove, please let me know. +1, Nitro needs some cleanup -- Cheers, zimbatm http://zimbatm.oree.ch From george.moschovitis at gmail.com Tue Jun 13 13:05:04 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Tue, 13 Jun 2006 20:05:04 +0300 Subject: [Nitro] Nitro Team In-Reply-To: <448744F3.1010204@neurogami.com> References: <4485A7C2.4050501@neurogami.com> <4485B697.4000907@digitalvalence.com> <4b6f054f0606071049n5a1f5781ve11197ab1b630041@mail.gmail.com> <448744F3.1010204@neurogami.com> Message-ID: I think a better name is just: Team Nitro -g. On 6/8/06, James Britt wrote: > TRANS wrote: > > On 6/7/06, George Moschovitis wrote: > > > >>Ok, > >> > >>I understand the majority wants NCT. Lets go for it (unless we find a > >>better name) > > > > > > Glyceriders! ;) > > > > I like it! > > > -- > James Britt > > "A principle or axiom is of no value without the rules for applying it." > - Len Bullard > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From james_b at neurogami.com Tue Jun 13 13:10:01 2006 From: james_b at neurogami.com (James Britt) Date: Tue, 13 Jun 2006 10:10:01 -0700 Subject: [Nitro] Nitro Team In-Reply-To: References: <4485A7C2.4050501@neurogami.com> <4485B697.4000907@digitalvalence.com> <4b6f054f0606071049n5a1f5781ve11197ab1b630041@mail.gmail.com> <448744F3.1010204@neurogami.com> Message-ID: <448EF169.7000507@neurogami.com> George Moschovitis wrote: > I think a better name is just: > > Team Nitro I like it. I want the football jersey -- James Britt "Take eloquence and wring its neck." - Paul Verlaine From george.moschovitis at gmail.com Tue Jun 13 13:58:52 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Tue, 13 Jun 2006 20:58:52 +0300 Subject: [Nitro] [BUG] Mongrel + Pager In-Reply-To: References: Message-ID: > Hey Kashia, if you have time, I uploaded a bundle to devlab. It works > with the pager in case you're interested. Bryan, can you email me the bundle? thanks, George. -- http://www.gmosx.com http://www.nitroproject.org From zimba.tm at gmail.com Tue Jun 13 14:03:14 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 13 Jun 2006 20:03:14 +0200 Subject: [Nitro] Facets version for repo.nitroproject.com ? Message-ID: <3ff63f9b0606131103g7515e38ev772d0c510d2f00b@mail.gmail.com> George, what version of facets are you using with your local repo ? I have some problems with Og's new attributes : /home/zimbatm/Code/NitroHQ/repo.nitroproject.org/glue/lib/glue/attribute.rb:69:in `serializable_attributes': undefined local variable or method `attributes' for # (NameError) from (eval):25:in `attr_accessor' from /home/zimbatm/Code/NitroHQ/repo.nitroproject.org/og/lib/og.rb:122 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' -- Cheers, zimbatm http://zimbatm.oree.ch From george.moschovitis at gmail.com Tue Jun 13 14:11:21 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Tue, 13 Jun 2006 21:11:21 +0300 Subject: [Nitro] Facets version for repo.nitroproject.com ? In-Reply-To: <3ff63f9b0606131103g7515e38ev772d0c510d2f00b@mail.gmail.com> References: <3ff63f9b0606131103g7515e38ev772d0c510d2f00b@mail.gmail.com> Message-ID: Facets 1.3.3 On 6/13/06, Jonas Pfenniger wrote: > George, > > what version of facets are you using with your local repo ? I have > some problems with Og's new attributes : > > /home/zimbatm/Code/NitroHQ/repo.nitroproject.org/glue/lib/glue/attribute.rb:69:in > `serializable_attributes': undefined local variable or method > `attributes' for # (NameError) > from (eval):25:in `attr_accessor' > from /home/zimbatm/Code/NitroHQ/repo.nitroproject.org/og/lib/og.rb:122 > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require' > > > -- > Cheers, > zimbatm > > http://zimbatm.oree.ch > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Tue Jun 13 14:13:12 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Tue, 13 Jun 2006 21:13:12 +0300 Subject: [Nitro] Facets version for repo.nitroproject.com ? In-Reply-To: <3ff63f9b0606131103g7515e38ev772d0c510d2f00b@mail.gmail.com> References: <3ff63f9b0606131103g7515e38ev772d0c510d2f00b@mail.gmail.com> Message-ID: Perhaps you are using multiple versions of nitro? Please also note that you need mysql to test my version of nitro. regards, George. On 6/13/06, Jonas Pfenniger wrote: > George, > > what version of facets are you using with your local repo ? I have > some problems with Og's new attributes : > > /home/zimbatm/Code/NitroHQ/repo.nitroproject.org/glue/lib/glue/attribute.rb:69:in > `serializable_attributes': undefined local variable or method > `attributes' for # (NameError) > from (eval):25:in `attr_accessor' > from /home/zimbatm/Code/NitroHQ/repo.nitroproject.org/og/lib/og.rb:122 > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require' > > > -- > Cheers, > zimbatm > > http://zimbatm.oree.ch > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From zimba.tm at gmail.com Tue Jun 13 14:24:51 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 13 Jun 2006 20:24:51 +0200 Subject: [Nitro] Facets version for repo.nitroproject.com ? In-Reply-To: References: <3ff63f9b0606131103g7515e38ev772d0c510d2f00b@mail.gmail.com> Message-ID: <3ff63f9b0606131124p1598e9f1mbb9c7def8422012c@mail.gmail.com> On 13/06/06, George Moschovitis wrote: > Perhaps you are using multiple versions of nitro? No > Please also note that you need mysql to test my version of nitro. Yes, it's what I have :-) I found out what the problem was : Facets 1.4.1 now separate the annotation attributes in another file. Just add "require '/facets/more/annattr'" in front of glue/attribute -- Cheers, zimbatm http://zimbatm.oree.ch From george.moschovitis at gmail.com Tue Jun 13 14:30:19 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Tue, 13 Jun 2006 21:30:19 +0300 Subject: [Nitro] Facets version for repo.nitroproject.com ? In-Reply-To: <3ff63f9b0606131124p1598e9f1mbb9c7def8422012c@mail.gmail.com> References: <3ff63f9b0606131103g7515e38ev772d0c510d2f00b@mail.gmail.com> <3ff63f9b0606131124p1598e9f1mbb9c7def8422012c@mail.gmail.com> Message-ID: Ok, will do... -g. On 6/13/06, Jonas Pfenniger wrote: > On 13/06/06, George Moschovitis wrote: > > Perhaps you are using multiple versions of nitro? > > No > > > Please also note that you need mysql to test my version of nitro. > > Yes, it's what I have :-) > > I found out what the problem was : Facets 1.4.1 now separate the > annotation attributes in another file. > > Just add "require '/facets/more/annattr'" in front of glue/attribute > > -- > Cheers, > zimbatm > > http://zimbatm.oree.ch > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From neokolor at gmx.de Tue Jun 13 16:00:23 2006 From: neokolor at gmx.de (jfwittmann) Date: Tue, 13 Jun 2006 22:00:23 +0200 Subject: [Nitro] og.rb, thread_safe question ? Message-ID: <448F1957.6050904@gmx.de> why is this line "# @@manager and @@manager.class.managers.each { |m| m.initialize_store }" in the method thread_safe in 'og' out-commentated ? with this, the thread_safe method has no effect.. example: Og.start Og.thread_safe=false From zimba.tm at gmail.com Tue Jun 13 16:22:29 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 13 Jun 2006 22:22:29 +0200 Subject: [Nitro] Facets version for repo.nitroproject.com ? In-Reply-To: References: <3ff63f9b0606131103g7515e38ev772d0c510d2f00b@mail.gmail.com> <3ff63f9b0606131124p1598e9f1mbb9c7def8422012c@mail.gmail.com> Message-ID: <3ff63f9b0606131322mc933706x8bd9e0cd29eb02cc@mail.gmail.com> George, there seem to be a problem in Glue::Orderable too. It produces weird queries : [SELECT * FROM ogrstreamer_stream ORDER BY position integer DESC LIMIT 1] I wanted to debug it but I don't understand some things : * how `self.included_with_parameters` work. * where you change the default select to add order attribute in that class * why you use `alias_method` instead of the `alias` keyword Another weird behavior is that Og creates the `position` field but then declares that it's not available. I think it has to do that you changed how glue/attribute work, isn't it ? On 13/06/06, George Moschovitis wrote: > Ok, will do... > > -g. > > On 6/13/06, Jonas Pfenniger wrote: > > On 13/06/06, George Moschovitis wrote: > > > Perhaps you are using multiple versions of nitro? > > > > No > > > > > Please also note that you need mysql to test my version of nitro. > > > > Yes, it's what I have :-) > > > > I found out what the problem was : Facets 1.4.1 now separate the > > annotation attributes in another file. > > > > Just add "require '/facets/more/annattr'" in front of glue/attribute > > > > -- > > Cheers, > > zimbatm > > > > http://zimbatm.oree.ch > > _______________________________________________ > > Nitro-general mailing list > > Nitro-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/nitro-general > > > > > -- > http://www.gmosx.com > http://www.nitroproject.org > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- Cheers, zimbatm http://zimbatm.oree.ch From zimba.tm at gmail.com Tue Jun 13 17:26:45 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 13 Jun 2006 23:26:45 +0200 Subject: [Nitro] Facets version for repo.nitroproject.com ? In-Reply-To: <3ff63f9b0606131322mc933706x8bd9e0cd29eb02cc@mail.gmail.com> References: <3ff63f9b0606131103g7515e38ev772d0c510d2f00b@mail.gmail.com> <3ff63f9b0606131124p1598e9f1mbb9c7def8422012c@mail.gmail.com> <3ff63f9b0606131322mc933706x8bd9e0cd29eb02cc@mail.gmail.com> Message-ID: <3ff63f9b0606131426w594d7a71ib06abaa38d6a332d@mail.gmail.com> I have another weird error here. By looking at the code, all sql exceptions should be handled by Og::SqlStore#handle_sql_exception right ? Altrough, I have a Mysql::Error in my frontend that was not filtered with the meaningless message : "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1" I have set $DBG = true to have more output in the console but the offending query don't appear here. Do you know where I could look next ? I'm sure you know better than me :-p -- Cheers, zimbatm http://zimbatm.oree.ch From james_b at neurogami.com Wed Jun 14 02:27:39 2006 From: james_b at neurogami.com (James Britt) Date: Tue, 13 Jun 2006 23:27:39 -0700 Subject: [Nitro] Bug in mongrel.rb? Message-ID: <448FAC5B.3020508@neurogami.com> I thought try out the latest Mongrel (0.13, not formally released) with Nitro 0.30, and was getting an error in mongrel.rb in the 'handle' method when setting context.in: def handle(req, res) unless handle_file(req, res) path = req.path_info begin context = Context.new(@server) context.in = StringIO.new(req.body || "") I changed the call to StringIO.new to ensure it was getting a string: context.in = StringIO.new(req.body.to_s || "") and life was good. I'm on a WinXP box with ruby 1.8.4 (2005-12-24) [i386-mswin32] -- James Britt http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - The Journal By & For Rubyists http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://web2.0validator.com - We're the Dot in Web 2.0 From zimba.tm at gmail.com Wed Jun 14 03:28:56 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Wed, 14 Jun 2006 09:28:56 +0200 Subject: [Nitro] Bug in mongrel.rb? In-Reply-To: <448FAC5B.3020508@neurogami.com> References: <448FAC5B.3020508@neurogami.com> Message-ID: <3ff63f9b0606140028u2bd9a185k732de8d67b2b0230@mail.gmail.com> Hi James, On 14/06/06, James Britt wrote: > context.in = StringIO.new(req.body.to_s || "") nil.to_s || "hi" #=> "" I think the to_s is enough -- Cheers, zimbatm http://zimbatm.oree.ch From guillaume.pierronnet at gmail.com Wed Jun 14 05:03:51 2006 From: guillaume.pierronnet at gmail.com (guillaume pierronnet) Date: Wed, 14 Jun 2006 11:03:51 +0200 Subject: [Nitro] Request parameters In-Reply-To: References: <016b01c68971$912998d0$0200000a@agamemnon> <003801c68b19$bcc1ab50$0200000a@agamemnon> <007d01c68b1e$0d10ea90$0200000a@agamemnon> Message-ID: <6a7d49ca0606140203i7a89d68duf4c9270c7a70c2a2@mail.gmail.com> hi all, what's wrong with my patch ? 2006/6/10, George Moschovitis : > will have a look, thanks for reporting. > > -g. > > On 6/8/06, Jon A. Lambert wrote: > > Jon A. Lambert wrote: > > >
> > > > Okay I put the backslash in my action and that takes edit out of the query > > string. > > > > > > I guess the other problem is that it's an array of values and order > > dependent. > > > > As passed to action --> [nil, "Cancel", nil] > > As passed in @request.params {"name"=>nil, "commit"=>"Cancel", > > "content"=>nil} > > > > The order is guess work. > > > > -- > > J Lambert > > > > _______________________________________________ > > Nitro-general mailing list > > Nitro-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/nitro-general > > > > > -- > http://www.gmosx.com > http://www.nitroproject.org > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > From zimba.tm at gmail.com Wed Jun 14 05:59:28 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Wed, 14 Jun 2006 11:59:28 +0200 Subject: [Nitro] Facets version for repo.nitroproject.com ? In-Reply-To: <3ff63f9b0606131426w594d7a71ib06abaa38d6a332d@mail.gmail.com> References: <3ff63f9b0606131103g7515e38ev772d0c510d2f00b@mail.gmail.com> <3ff63f9b0606131124p1598e9f1mbb9c7def8422012c@mail.gmail.com> <3ff63f9b0606131322mc933706x8bd9e0cd29eb02cc@mail.gmail.com> <3ff63f9b0606131426w594d7a71ib06abaa38d6a332d@mail.gmail.com> Message-ID: <3ff63f9b0606140259o4145d59at6dc1d3e98c8954fb@mail.gmail.com> I also have a backtrace for that error. While debugging, I've also added more checks to the mysql adapter and made exceptions catching more accurate. Everything's in the bundle. The backtrace : (eval):5:in `query', (eval):5:in `og_insert', /home/zimbatm/Code/NitroHQ/local2/og/lib/og/store.rb:76:in `save', /home/zimbatm/Code/NitroHQ/local2/og/lib/og/entity.rb:31:in `save', /home/zimbatm/Code/ProVision/rstreamer/lib/rstreamer/host.rb:67:in `init', /home/zimbatm/Code/ProVision/rstreamer/lib/rstreamer/host.rb:63:in `init', /home/zimbatm/Code/NitroHQ/local2/og/lib/og/store.rb:178:in `transaction', /home/zimbatm/Code/NitroHQ/local2/og/lib/og/entity.rb:366:in `transaction', /home/zimbatm/Code/ProVision/rstreamer/lib/rstreamer/host.rb:56:in `init', (eval):3:in `og_update', /home/zimbatm/Code/NitroHQ/local2/og/lib/og/store.rb:74:in `save', /home/zimbatm/Code/NitroHQ/local2/og/lib/og/entity.rb:31:in `save', /home/zimbatm/Code/ProVision/rstreamer/lib/rstreamer/camping.rb:115:in `post', (eval):23:in `service', (eval):43:in `run', /home/zimbatm/bin/pro_vision:126:in `run', /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel/camping.rb:36:in `process', /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb:425:in `process_client', /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb:424:in `process_client', /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb:495:in `run', /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb:494:in `run', /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb:483:in `run', /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb:774:in `run', /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb:772:in `run', /home/zimbatm/bin/pro_vision:158:in `cloaker_', /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb:658:in `listener', /home/zimbatm/bin/pro_vision:148:in `cloaker_', /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb:616:in `initialize', /home/zimbatm/bin/pro_vision:147 On 13/06/06, Jonas Pfenniger wrote: > I have another weird error here. > > By looking at the code, all sql exceptions should be handled by > Og::SqlStore#handle_sql_exception right ? > > Altrough, I have a Mysql::Error in my frontend that was not filtered > with the meaningless message : "You have an error in your SQL syntax; > check the manual that corresponds to your MySQL server version for the > right syntax to use near ')' at line 1" > > I have set $DBG = true to have more output in the console but the > offending query don't appear here. > > Do you know where I could look next ? I'm sure you know better than me :-p > > -- > Cheers, > zimbatm > > http://zimbatm.oree.ch > -- Cheers, zimbatm http://zimbatm.oree.ch -------------- next part -------------- A non-text attachment was scrubbed... Name: bundle.tgz Type: application/x-gzip Size: 2577 bytes Desc: not available Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060614/359e754a/attachment.tgz From zimba.tm at gmail.com Wed Jun 14 06:55:08 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Wed, 14 Jun 2006 12:55:08 +0200 Subject: [Nitro] Facets version for repo.nitroproject.com ? In-Reply-To: <3ff63f9b0606140259o4145d59at6dc1d3e98c8954fb@mail.gmail.com> References: <3ff63f9b0606131103g7515e38ev772d0c510d2f00b@mail.gmail.com> <3ff63f9b0606131124p1598e9f1mbb9c7def8422012c@mail.gmail.com> <3ff63f9b0606131322mc933706x8bd9e0cd29eb02cc@mail.gmail.com> <3ff63f9b0606131426w594d7a71ib06abaa38d6a332d@mail.gmail.com> <3ff63f9b0606140259o4145d59at6dc1d3e98c8954fb@mail.gmail.com> Message-ID: <3ff63f9b0606140355m63620c7bp578015451ce9695b@mail.gmail.com> More output : * why does some methods directly call @conn.query instead of store.query ? * casting '' to an sql integer gives '' which is wrong : [UPDATE ogrstreamer_host SET hostname='10.13.37.22', port=80, config_oid=NULL WHERE oid=] ^ see oid= -- Cheers, zimbatm http://zimbatm.oree.ch From john at oxyliquit.de Wed Jun 14 09:40:33 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Wed, 14 Jun 2006 15:40:33 +0200 Subject: [Nitro] Request parameters In-Reply-To: <6a7d49ca0606140203i7a89d68duf4c9270c7a70c2a2@mail.gmail.com> References: <016b01c68971$912998d0$0200000a@agamemnon> <003801c68b19$bcc1ab50$0200000a@agamemnon> <007d01c68b1e$0d10ea90$0200000a@agamemnon> <6a7d49ca0606140203i7a89d68duf4c9270c7a70c2a2@mail.gmail.com> Message-ID: Hi, good that you're still around :) > what's wrong with my patch ? It didn't get officially included, that is the problem. The reason was maybe because it was a bit questionable (IMHO). Maybe you remember me asking about what the patch fixes and how it does so. You responded with a very general answer, that it fixes the parameter bug. What you didn't tell, was _how_ it does so, and what actually is the problem. A workaround from Manveru (proposed in #nitro) was, just to comment the line you put in the `else` block. Why did you put the line into the else block and why does it fix the issue and what is the cause of that parameter bug anyway? That would be my question again, sorry to be a little pushing here. I think I applied one of the fixes (yours or manvs) on Oxy and it broke some things horribly. (I'm not sure what the cause was, but I tossed it aside for the moment for my ugly hack fixes to work around the bug are stable right now.) Kashia -- Feel the love http://pinkjuice.com/pics/ruby.png From anne at wjh.harvard.edu Wed Jun 14 11:14:44 2006 From: anne at wjh.harvard.edu (Anne G) Date: Wed, 14 Jun 2006 11:14:44 -0400 (EDT) Subject: [Nitro] Can nitro be used with eruby? In-Reply-To: Message-ID: 1. using Nitro > while there are some complex parts in Nitro, one can > safely ignore most of it and do simple, template-driven > Web sites quite easily. Sounds like what I need. Right now I am trying to learn the B-A-ba > Q10: Ok! I see the example, I run it, but I do not > understand what is happening. Could you explain the > execution cycle of a small application like the > HelloWorld? E.g when I do: "ruby run.rb" what happens? George answered I 'll come back with this one :) but he did not!!! I wish he had. the tutorial uses a skeleton, not what I am looking for right now. The examples George and James gave me were best. -------------------------------------------------------- I started with George's example, instead of The time now is #{Time.now} I tried, in public, index.xhtml: Hello or what , I only get, or what. Next I tried puting the ruby code in the run.rb require 'nitro' value1="1" Nitro.run and trying The value is #{value1} that gave an error The value is #{value1=1} worked (I get: the value is 1). ------------------------------------- I thought James example would be easy to use but I get an error, right now I don't see what could be the problem. its from day 2 teach yourself ruby! #--- File src/controller/main/rb --- class Main def index @title = "Erb Example" @body = task1 +task2 emit end private def task1 return "1" end def task2 return "2" end def emit template = ERB.new( html ) template.result(binding) end def html "<%=@title %> <%= @body %>" end end --------------------------------------------------------- That's for the applied exercise using NITRO. For the conceptural issues involved, I wrote down what I understood so far. It is still a bit vague, but I will clean my post as I find more info. http://blogs.law.harvard.edu/dreamseeker/ finding http://wiki.rubyonrails.com/rails/pages/UnderstandingHowRequestsAreRouted was a big step forward. My thinking is that with apache, I can set up a .htaccess file, which will redirect calls to a cgi file which would act as james controller. I should do it just to demonstrate the concept. But first it would be nice to have George et James modified examples working thanks for your help, Anne From anne at wjh.harvard.edu Wed Jun 14 12:04:47 2006 From: anne at wjh.harvard.edu (Anne G) Date: Wed, 14 Jun 2006 12:04:47 -0400 (EDT) Subject: [Nitro] Can nitro be used with eruby? In-Reply-To: Message-ID: I figured this part out, ruby needs a space! task1 + task2 works. So I will try to go further with this format > > class Main > def index > @title = "Erb Example" > @body = task1 +task2 > emit > end > From james_b at neurogami.com Wed Jun 14 12:50:45 2006 From: james_b at neurogami.com (James Britt) Date: Wed, 14 Jun 2006 09:50:45 -0700 Subject: [Nitro] Bug in mongrel.rb? In-Reply-To: <3ff63f9b0606140028u2bd9a185k732de8d67b2b0230@mail.gmail.com> References: <448FAC5B.3020508@neurogami.com> <3ff63f9b0606140028u2bd9a185k732de8d67b2b0230@mail.gmail.com> Message-ID: <44903E65.9020000@neurogami.com> Jonas Pfenniger wrote: > Hi James, > > On 14/06/06, James Britt wrote: > >> context.in = StringIO.new(req.body.to_s || "") > > > nil.to_s || "hi" #=> "" > > I think the to_s is enough Ah, indeed. Good catch. -- James Britt "The greatest obstacle to discovery is not ignorance, but the illusion of knowledge." - D. Boorstin From billk at cts.com Wed Jun 14 15:05:29 2006 From: billk at cts.com (Bill Kelly) Date: Wed, 14 Jun 2006 12:05:29 -0700 Subject: [Nitro] temporary database structures Message-ID: <012401c68fe5$80a7c840$6442a8c0@musicbox> Hi, I'm writing a fairly standard shopping app, with customers adding items to a cart, entering shipping and/or billing addresses, etc. Of course, someone browsing the store may add stuff to their cart, maybe fill in some forms, but ultimately never complete their order. These abandoned, partially-completed orders will remain in the database, unless I perform some periodic housekeeping sweep to clean out old incomplete orders. I'm wondering if anyone may have suggestions, experiences, or best practices to share for dealing with this kind of incomplete data. For now, I'll probably just let it accumulate, and write some housecleaning script when it becomes needed. But maybe there are better approaches? If it were easy to have two different database connections with Og, I might have one database holding temporary orders, and only store completed orders in the main database. Thanks for your thoughts, Regards, Bill From zimba.tm at gmail.com Wed Jun 14 15:57:34 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Wed, 14 Jun 2006 21:57:34 +0200 Subject: [Nitro] temporary database structures In-Reply-To: <012401c68fe5$80a7c840$6442a8c0@musicbox> References: <012401c68fe5$80a7c840$6442a8c0@musicbox> Message-ID: <3ff63f9b0606141257w3c7f6131ta77e2a38a3b4aa23@mail.gmail.com> Maybe you should store those datas in session since they're already garbage-collected. -- Cheers, zimbatm http://zimbatm.oree.ch From billk at cts.com Wed Jun 14 17:42:07 2006 From: billk at cts.com (Bill Kelly) Date: Wed, 14 Jun 2006 14:42:07 -0700 Subject: [Nitro] temporary database structures References: <012401c68fe5$80a7c840$6442a8c0@musicbox> <3ff63f9b0606141257w3c7f6131ta77e2a38a3b4aa23@mail.gmail.com> Message-ID: <01a601c68ffb$62c133f0$6442a8c0@musicbox> From: "Jonas Pfenniger" > > Maybe you should store those datas in session since they're already > garbage-collected. I guess I could. It seems this would require me to have two different methods of accessing my data. In my case, I have some nested has_many relationships: class Registration class Address class Product class LineItem has_many :registrations, Registration has_one :product, Product class Order has_one :billing_address, Address has_one :shipping_address, Address has_many line_items, LineItem What I'd like to avoid, is having two different ways of iterating through the Order to find the LineItems, etc. It seems if I were to store incomplete orders in session, I would need one set of code to render the cart for partial orders, vs. different code to render the cart for completed orders stored in the database. I think it would be nice to have a single way to access my data, whether the orders are incomplete or complete. Thus it seemed natural to me to want to store temporary data in the database. Does that make sense? Or am I making too big a deal of only wanting one way to access my data? Thanks, Bill From itsme213 at hotmail.com Wed Jun 14 20:00:56 2006 From: itsme213 at hotmail.com (itsme213) Date: Wed, 14 Jun 2006 19:00:56 -0500 Subject: [Nitro] temporary database structures References: <012401c68fe5$80a7c840$6442a8c0@musicbox><3ff63f9b0606141257w3c7f6131ta77e2a38a3b4aa23@mail.gmail.com> <01a601c68ffb$62c133f0$6442a8c0@musicbox> Message-ID: "Bill Kelly" wrote > Does that make sense? Or am I making too big a deal of > only wanting one way to access my data? I think it makes perfect sense. The logical relationships should be declared separately (generating the same access interfaces) from declarations that guide the storage choices (generating the access implementations). My 2c. From zimba.tm at gmail.com Thu Jun 15 05:36:37 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Thu, 15 Jun 2006 11:36:37 +0200 Subject: [Nitro] temporary database structures In-Reply-To: <01a601c68ffb$62c133f0$6442a8c0@musicbox> References: <012401c68fe5$80a7c840$6442a8c0@musicbox> <3ff63f9b0606141257w3c7f6131ta77e2a38a3b4aa23@mail.gmail.com> <01a601c68ffb$62c133f0$6442a8c0@musicbox> Message-ID: <3ff63f9b0606150236r479fc06bl28474b36c1517f30@mail.gmail.com> On 14/06/06, Bill Kelly wrote: > Does that make sense? Or am I making too big a deal of > only wanting one way to access my data? Definately not. The simplest solution is to run a cleaner script with cron. Especially if you control the host. -- Cheers, zimbatm http://zimbatm.oree.ch From george.moschovitis at gmail.com Thu Jun 15 11:34:19 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 15 Jun 2006 18:34:19 +0300 Subject: [Nitro] Bug in mongrel.rb? In-Reply-To: <44903E65.9020000@neurogami.com> References: <448FAC5B.3020508@neurogami.com> <3ff63f9b0606140028u2bd9a185k732de8d67b2b0230@mail.gmail.com> <44903E65.9020000@neurogami.com> Message-ID: Thanks for this ;-) -g. On 6/14/06, James Britt wrote: > Jonas Pfenniger wrote: > > Hi James, > > > > On 14/06/06, James Britt wrote: > > > >> context.in = StringIO.new(req.body.to_s || "") > > > > > > nil.to_s || "hi" #=> "" > > > > I think the to_s is enough > > Ah, indeed. Good catch. > > > > > -- > James Britt > > "The greatest obstacle to discovery is not ignorance, but the illusion > of knowledge." > - D. Boorstin > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Thu Jun 15 11:34:41 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 15 Jun 2006 18:34:41 +0300 Subject: [Nitro] Bug in mongrel.rb? In-Reply-To: References: <448FAC5B.3020508@neurogami.com> <3ff63f9b0606140028u2bd9a185k732de8d67b2b0230@mail.gmail.com> <44903E65.9020000@neurogami.com> Message-ID: If possible, please submit a patch (so you will be credited correctly) regards, George. On 6/15/06, George Moschovitis wrote: > Thanks for this ;-) > > -g. > > On 6/14/06, James Britt wrote: > > Jonas Pfenniger wrote: > > > Hi James, > > > > > > On 14/06/06, James Britt wrote: > > > > > >> context.in = StringIO.new(req.body.to_s || "") > > > > > > > > > nil.to_s || "hi" #=> "" > > > > > > I think the to_s is enough > > > > Ah, indeed. Good catch. > > > > > > > > > > -- > > James Britt > > > > "The greatest obstacle to discovery is not ignorance, but the illusion > > of knowledge." > > - D. Boorstin > > _______________________________________________ > > Nitro-general mailing list > > Nitro-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/nitro-general > > > > > -- > http://www.gmosx.com > http://www.nitroproject.org > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Thu Jun 15 11:37:44 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 15 Jun 2006 18:37:44 +0300 Subject: [Nitro] Facets Command suggestion. Message-ID: Tom, In 0.31.0 I am using the wonderfull Command feature of Facets. One think that is missing is some form of automatic usage creation (perhaps assisted by using annotations per command method). Could you please add somethink like this in the next version? thanks in advance, George. -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Thu Jun 15 11:38:48 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 15 Jun 2006 18:38:48 +0300 Subject: [Nitro] Facets version for repo.nitroproject.com ? In-Reply-To: <3ff63f9b0606131322mc933706x8bd9e0cd29eb02cc@mail.gmail.com> References: <3ff63f9b0606131103g7515e38ev772d0c510d2f00b@mail.gmail.com> <3ff63f9b0606131124p1598e9f1mbb9c7def8422012c@mail.gmail.com> <3ff63f9b0606131322mc933706x8bd9e0cd29eb02cc@mail.gmail.com> Message-ID: Yeah I know about Orderable, this is one of the pending issues with nitroproject.org so this will be fixed over the weekend. -g. On 6/13/06, Jonas Pfenniger wrote: > George, there seem to be a problem in Glue::Orderable too. It produces > weird queries : > > [SELECT * FROM ogrstreamer_stream ORDER BY position integer DESC LIMIT 1] > > I wanted to debug it but I don't understand some things : > * how `self.included_with_parameters` work. > * where you change the default select to add order attribute in that class > * why you use `alias_method` instead of the `alias` keyword > > Another weird behavior is that Og creates the `position` field but > then declares that it's not available. I think it has to do that you > changed how glue/attribute work, isn't it ? > > On 13/06/06, George Moschovitis wrote: > > Ok, will do... > > > > -g. > > > > On 6/13/06, Jonas Pfenniger wrote: > > > On 13/06/06, George Moschovitis wrote: > > > > Perhaps you are using multiple versions of nitro? > > > > > > No > > > > > > > Please also note that you need mysql to test my version of nitro. > > > > > > Yes, it's what I have :-) > > > > > > I found out what the problem was : Facets 1.4.1 now separate the > > > annotation attributes in another file. > > > > > > Just add "require '/facets/more/annattr'" in front of glue/attribute > > > > > > -- > > > Cheers, > > > zimbatm > > > > > > http://zimbatm.oree.ch > > > _______________________________________________ > > > Nitro-general mailing list > > > Nitro-general at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/nitro-general > > > > > > > > > -- > > http://www.gmosx.com > > http://www.nitroproject.org > > _______________________________________________ > > Nitro-general mailing list > > Nitro-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/nitro-general > > > > > -- > Cheers, > zimbatm > > http://zimbatm.oree.ch > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Thu Jun 15 11:49:09 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 15 Jun 2006 18:49:09 +0300 Subject: [Nitro] og.rb, thread_safe question ? In-Reply-To: <448F1957.6050904@gmx.de> References: <448F1957.6050904@gmx.de> Message-ID: Hm, I haved temporarily dissabled this some time ago, and forgot to bring this back. Thanks for mentioning this. regards, George. On 6/13/06, jfwittmann wrote: > why is this line "# @@manager and @@manager.class.managers.each { |m| > m.initialize_store }" > in the method thread_safe in 'og' out-commentated ? > > with this, the thread_safe method has no effect.. > > example: > Og.start > Og.thread_safe=false > > > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From transfire at gmail.com Thu Jun 15 13:24:30 2006 From: transfire at gmail.com (TRANS) Date: Thu, 15 Jun 2006 13:24:30 -0400 Subject: [Nitro] Facets Command suggestion. In-Reply-To: References: Message-ID: <4b6f054f0606151024g5a6d475em70180ad10c11cb8b@mail.gmail.com> On 6/15/06, George Moschovitis wrote: > Tom, > > In 0.31.0 I am using the wonderfull Command feature of Facets. One > think that is missing is some form of automatic usage creation > (perhaps assisted by using annotations per command method). Could you > please add somethink like this in the next version? Okay, I'll look into it. I didn't add orignially because I wasn;t please with the interface and it's one of those things that pretty easy just to use a HERE doc for. I also need to add chained flags support (eg. -xvf ). T. From george.moschovitis at gmail.com Thu Jun 15 13:32:34 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 15 Jun 2006 20:32:34 +0300 Subject: [Nitro] Facets Command suggestion. In-Reply-To: <4b6f054f0606151024g5a6d475em70180ad10c11cb8b@mail.gmail.com> References: <4b6f054f0606151024g5a6d475em70180ad10c11cb8b@mail.gmail.com> Message-ID: > easy just to use a HERE doc for. yeah, but it would be nice to have the doc automatically generated for you. -g; -- http://www.gmosx.com http://www.nitroproject.org From zimba.tm at gmail.com Thu Jun 15 14:54:08 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Thu, 15 Jun 2006 20:54:08 +0200 Subject: [Nitro] Facets Command suggestion. In-Reply-To: References: <4b6f054f0606151024g5a6d475em70180ad10c11cb8b@mail.gmail.com> Message-ID: <3ff63f9b0606151154i7dc87b2cy123c6469cc5cf94d@mail.gmail.com> What I would like to see is a parser that automatically adds RDoc into annotations. -- Cheers, zimbatm http://zimbatm.oree.ch From transfire at gmail.com Thu Jun 15 15:26:28 2006 From: transfire at gmail.com (TRANS) Date: Thu, 15 Jun 2006 15:26:28 -0400 Subject: [Nitro] Facets Command suggestion. In-Reply-To: <3ff63f9b0606151154i7dc87b2cy123c6469cc5cf94d@mail.gmail.com> References: <4b6f054f0606151024g5a6d475em70180ad10c11cb8b@mail.gmail.com> <3ff63f9b0606151154i7dc87b2cy123c6469cc5cf94d@mail.gmail.com> Message-ID: <4b6f054f0606151226v7dc186c8te006ce2311c6a25d@mail.gmail.com> On 6/15/06, Jonas Pfenniger wrote: > What I would like to see is a parser that automatically adds RDoc into > annotations. More details. Not sure what you mean. T. From zimba.tm at gmail.com Thu Jun 15 15:31:56 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Thu, 15 Jun 2006 21:31:56 +0200 Subject: [Nitro] Facets Command suggestion. In-Reply-To: <4b6f054f0606151226v7dc186c8te006ce2311c6a25d@mail.gmail.com> References: <4b6f054f0606151024g5a6d475em70180ad10c11cb8b@mail.gmail.com> <3ff63f9b0606151154i7dc87b2cy123c6469cc5cf94d@mail.gmail.com> <4b6f054f0606151226v7dc186c8te006ce2311c6a25d@mail.gmail.com> Message-ID: <3ff63f9b0606151231r3e8ac6achb98dad7f569b7518@mail.gmail.com> I'm better by explaining with examples : Take the following source code : --- code --- # This is a test class class Test # The super method def my_method end end --- end --- Then a method would be available to parse that file and put the comments as annotation to that : Test.ann.self.doc #=> "This is a test class" Test.ann.my_method.doc #=> "The super method" -- Cheers, zimbatm http://zimbatm.oree.ch From james_b at neurogami.com Thu Jun 15 21:00:46 2006 From: james_b at neurogami.com (James Britt) Date: Thu, 15 Jun 2006 18:00:46 -0700 Subject: [Nitro] Bug in mongrel.rb? In-Reply-To: References: <448FAC5B.3020508@neurogami.com> <3ff63f9b0606140028u2bd9a185k732de8d67b2b0230@mail.gmail.com> <44903E65.9020000@neurogami.com> Message-ID: <449202BE.8040307@neurogami.com> George Moschovitis wrote: > If possible, please submit a patch (so you will be credited correctly) What's the patch format? -- James Britt "Simplicity of the language is not what matters, but simplicity of use." - Richard A. O'Keefe in squeak-dev mailing list From james_b at neurogami.com Thu Jun 15 21:03:36 2006 From: james_b at neurogami.com (James Britt) Date: Thu, 15 Jun 2006 18:03:36 -0700 Subject: [Nitro] Bug in mongrel.rb? In-Reply-To: <449202BE.8040307@neurogami.com> References: <448FAC5B.3020508@neurogami.com> <3ff63f9b0606140028u2bd9a185k732de8d67b2b0230@mail.gmail.com> <44903E65.9020000@neurogami.com> <449202BE.8040307@neurogami.com> Message-ID: <44920368.9000909@neurogami.com> James Britt wrote: > George Moschovitis wrote: > >>If possible, please submit a patch (so you will be credited correctly) > > > What's the patch format? Would this http://oxyliquit.de/tip/18 be it? -- James Britt From william.full.moon at gmail.com Thu Jun 15 21:16:49 2006 From: william.full.moon at gmail.com (* William) Date: Fri, 16 Jun 2006 11:16:49 +1000 Subject: [Nitro] temporary database structures In-Reply-To: <012401c68fe5$80a7c840$6442a8c0@musicbox> Message-ID: <000001c690e2$94160ec0$d9e7dbcb@ghostgum> Hi Bill Yes, I think there are 'prosaic' solutions for your query. As usual it depends on your application's specific needs. My reading here is that you have a potential-customer who will enter data on more than one screen/page/dialogue/panel? At least two screens, and at least one is sent back to the host. No data to the host, nothing is going to be in the database. Right? >> I'm wondering if anyone may have suggestions, experiences, or best practices >> to share for dealing with this kind of incomplete data. There are different ways to view this scenario. The BUSINESS process case is that ALL your transactions should be on a journal and periodically posted to the general accounts. That is to say in this example even your completed screens posted and the user clicks the [BUY] button ought to be in a transaction journal, trading journal, day book, front counter receipts. Choose your jargon they all mean the trading data for the "day". That strange way of doing things is a basic for double-entry accounting. You WANT that in a cash business to ensure that the money in the till or the cash banked balances against what you think you sold. So if this is a live program for a paying customer, I'd be speaking with your financial accountant and asking them what their requirements are on this? What are the local regulations you need to comply with via a vie auditing, etc? * That is not a digression. It means that in the real world there's a good 70% to 80% chance you have to do end-of-day processing anyway and could legitimately dump incomplete data-entry from experimenting customers. :-D A common way is to save the intermediate data with the USER's browser as Cookie data. This is fine as long as it isn't huge. Order entry information is not usually big-big. So screen one you save the data in a cookie, and screen two append new data to the cookie. On the last page you send all the fields to the host with your GET or POST call. * Your host becomes really simple since all transactions are complete ones that only need verification and processing. It makes your user interface implementation independent from the back-end business processing too. (Also a good thing). Another way is to use something like AJAX or still use GET/PUT to send data to the host for a local in-memory "store". I saw something along this line in the [nitro] replies. Keep it/them in memory like the "cookie" idea -- this one works on a host. The cookie version works on the client. If the server breaks, or link falls over nothing is lost. I query garbage collection. If an object has an active reference, it should stay "live". You would still need to do server-side clean-up of in-memory resources (imho). Some server architectures (PSP, ASP,...) have client session concepts. If not you can implement something for yourself. A browser side script to say _still here_ can "ping" you with a GET or a AJAX packet. A so called "keep-alive" pulse. The big issue with server-side contexts like this is how busy is you site? One or my friend's first web based customer site froze the nice big Solaris server because the marketing people completely underestimated the demand. My lesson from his unlucky time is set a MAX-CLIENT const, and you can re-use the session data on a LEAST-RECENTLY-USED basis. Effectively "aging" the in memory server side processes. * Your main host processing remains simple since all transactions are (still) complete ones. In this scenario the 'cache' is on the server. There is a finite limit on memory needed. You have a "server capacity" concept (MAX USERS) that ensures reasonable server usage and your "neighbours" will like you because your application is not a HOG. User interface implementation independent from the back-end business processing also. Please note -- none of these options have save stuff to the tables, except the day-journal process. Actually my thought is you will need something that does the audit stuff as good as a day journal anyway. **** Sometimes you want the customer to come back and be "remembered" so if I was through a complex set of screens, the stuff I did three days ago is pre-filled. Here you want the data on the disk somewhere. Who says it needs to be in your db? It can be in a table that is wiped "Drop intermediate_table; Create intermediate_table;" Each time the server begins or on some regular basis, like once a week. IF that is attractive, I suggest using user-side cookies, since they data can be "secure" on the users PC and not on your server. One good hacker gets everyone on a server. On the user's workstation, on hacker gets one or two people (hopefully). >From here in we'd get variations on the above client - server - something in between -- Mix and match the implementation with the application requirements. If this is a project or assessment exercise -- use cookies and if you want "encrypt them" with some simple key. Add some design notes for the lecturer to explain why this is good for your specific solution and send cold-beer to me. Aloha, Will. -----Original Message----- From: nitro-general-bounces at rubyforge.org [mailto:nitro-general-bounces at rubyforge.org] On Behalf Of Bill Kelly Sent: Thursday, 15 June 2006 05:05 To: General discussion about Nitro Subject: [Nitro] temporary database structures Importance: Low Hi, I'm writing a fairly standard shopping app, with customers adding items to a cart, entering shipping and/or billing addresses, etc. Of course, someone browsing the store may add stuff to their cart, maybe fill in some forms, but ultimately never complete their order. These abandoned, partially-completed orders will remain in the database, unless I perform some periodic housekeeping sweep to clean out old incomplete orders. I'm wondering if anyone may have suggestions, experiences, or best practices to share for dealing with this kind of incomplete data. For now, I'll probably just let it accumulate, and write some housecleaning script when it becomes needed. But maybe there are better approaches? If it were easy to have two different database connections with Og, I might have one database holding temporary orders, and only store completed orders in the main database. Thanks for your thoughts, Regards, Bill _______________________________________________ Nitro-general mailing list Nitro-general at rubyforge.org http://rubyforge.org/mailman/listinfo/nitro-general -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 14-Jun-2006 From transfire at gmail.com Thu Jun 15 21:40:56 2006 From: transfire at gmail.com (TRANS) Date: Thu, 15 Jun 2006 21:40:56 -0400 Subject: [Nitro] Component System instead of ClassMethods hack? In-Reply-To: References: <4b6f054f0606120601t33744a9cg279befbba7729b7b@mail.gmail.com> Message-ID: <4b6f054f0606151840x4a5d8a69y2ff0f401aacaaf85@mail.gmail.com> On 6/12/06, itsme213 wrote: > > "TRANS" wrote in message > > Given what Matz is saying on the thread concerning ClassMethods, > > Could you share a pointer to the thread please? > > Do the proposals depend on 1.9.x, and if so does he suggest anything for > 1.8.x? > > Naming-wise I am not up to speed with the thinking behind your post, but > thought I would add this anyway. > > How about: > - Class for anything that defines methods, ivars, etc. for classes > - regardless of whether implemented as a class or module > - Object for anything that defined methods, ivars, etc. for non-class > objects > - regardless of whether implemented as a class or module > > In any DSL-ish approach, these two often go together e.g. > - Workflow > - WorkflowClass has activities, flows, initial_state, etc. > - WorkflowObject has current_state > > So we might name a pairing of Class and Object an Concept. Perhaps > an Concept might most naturally be implemented as a module. > > module WorkflowConcept > ... WorkflowClass ... > ... WorkflowObject ... > end Unfortunately I know nothing about "workflow" :( T. From transfire at gmail.com Thu Jun 15 21:49:01 2006 From: transfire at gmail.com (TRANS) Date: Thu, 15 Jun 2006 21:49:01 -0400 Subject: [Nitro] Deprecating class_inherit.rb In-Reply-To: <3ff63f9b0606110808i31295f71r5e7f77f473f4db1c@mail.gmail.com> References: <4b6f054f0606110733m3c7d09bao701a89bae39bbe95@mail.gmail.com> <4b6f054f0606110804n41e6bb38tc03d61e8e6c181d3@mail.gmail.com> <3ff63f9b0606110808i31295f71r5e7f77f473f4db1c@mail.gmail.com> Message-ID: <4b6f054f0606151849gc1159dgc2e67bf3ff473531@mail.gmail.com> Okay heads up before I make the final release of Facets 1.4 I'm going to deprecate classinherit.rb and classmethods.rb --but I will keep backward compatability for classmethods for the time being, but not classinherit. The new system, which has been worked out with Matz (yea!) and should eventually be a standard part of Ruby, is Module#class_extension. So this will be found in Facets core/module/ until it is standard Ruby. T. From webmaster at rjspotter.com Thu Jun 15 22:43:12 2006 From: webmaster at rjspotter.com (rjspotter) Date: Thu, 15 Jun 2006 22:43:12 -0400 Subject: [Nitro] Bug in mongrel.rb? In-Reply-To: <44920368.9000909@neurogami.com> References: <448FAC5B.3020508@neurogami.com> <3ff63f9b0606140028u2bd9a185k732de8d67b2b0230@mail.gmail.com> <44903E65.9020000@neurogami.com> <449202BE.8040307@neurogami.com> <44920368.9000909@neurogami.com> Message-ID: <44921AC0.80704@rjspotter.com> James Britt wrote: > James Britt wrote: >> George Moschovitis wrote: >> >>> If possible, please submit a patch (so you will be credited correctly) >> >> What's the patch format? > > > Would this > > http://oxyliquit.de/tip/18 > > > be it? > > If I'm understanding correctly the command to get your patch would be diff -Naur [vanilla-source] [altered-source] > your-patch-name R -- "If people keep creating new Java applications, the world is going to come to an end" --David Heinemeier Hansson From james_b at neurogami.com Thu Jun 15 22:22:39 2006 From: james_b at neurogami.com (James Britt) Date: Thu, 15 Jun 2006 19:22:39 -0700 Subject: [Nitro] Bug in mongrel.rb? In-Reply-To: <44921AC0.80704@rjspotter.com> References: <448FAC5B.3020508@neurogami.com> <3ff63f9b0606140028u2bd9a185k732de8d67b2b0230@mail.gmail.com> <44903E65.9020000@neurogami.com> <449202BE.8040307@neurogami.com> <44920368.9000909@neurogami.com> <44921AC0.80704@rjspotter.com> Message-ID: <449215EF.80604@neurogami.com> rjspotter wrote: >> > > If I'm understanding correctly the command to get your patch would be > > diff -Naur [vanilla-source] [altered-source] > your-patch-name I'll give that a shot. Thanks! -- James Britt "In Ruby, no one cares who your parents were, all they care about is if you know what you are talking about." - Logan Capaldo From zimba.tm at gmail.com Fri Jun 16 03:41:12 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Fri, 16 Jun 2006 09:41:12 +0200 Subject: [Nitro] Bug in mongrel.rb? In-Reply-To: <449215EF.80604@neurogami.com> References: <448FAC5B.3020508@neurogami.com> <3ff63f9b0606140028u2bd9a185k732de8d67b2b0230@mail.gmail.com> <44903E65.9020000@neurogami.com> <449202BE.8040307@neurogami.com> <44920368.9000909@neurogami.com> <44921AC0.80704@rjspotter.com> <449215EF.80604@neurogami.com> Message-ID: <3ff63f9b0606160041y6964ce4amc3bcb79bc41bb9f@mail.gmail.com> Short HOWTO send a patch : 1) Get the glycerin source darcs get repo.nitroproject.org 2) Modify the code ... 3) Record the changes darcs record -m "My changes" 4) Export the changes darcs send -o some_file 5) Mail the file -- Cheers, zimbatm http://zimbatm.oree.ch From george.moschovitis at gmail.com Fri Jun 16 08:23:36 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Fri, 16 Jun 2006 15:23:36 +0300 Subject: [Nitro] Bug in mongrel.rb? In-Reply-To: <3ff63f9b0606160041y6964ce4amc3bcb79bc41bb9f@mail.gmail.com> References: <448FAC5B.3020508@neurogami.com> <3ff63f9b0606140028u2bd9a185k732de8d67b2b0230@mail.gmail.com> <44903E65.9020000@neurogami.com> <449202BE.8040307@neurogami.com> <44920368.9000909@neurogami.com> <44921AC0.80704@rjspotter.com> <449215EF.80604@neurogami.com> <3ff63f9b0606160041y6964ce4amc3bcb79bc41bb9f@mail.gmail.com> Message-ID: this is it! On 6/16/06, Jonas Pfenniger wrote: > Short HOWTO send a patch : > > 1) Get the glycerin source > > darcs get repo.nitroproject.org > > 2) Modify the code > > ... > > 3) Record the changes > > darcs record -m "My changes" > > 4) Export the changes > > darcs send -o some_file > > 5) Mail the file > > -- > Cheers, > zimbatm > > http://zimbatm.oree.ch > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From james.britt at gmail.com Fri Jun 16 10:37:40 2006 From: james.britt at gmail.com (James Britt) Date: Fri, 16 Jun 2006 07:37:40 -0700 Subject: [Nitro] Bug in mongrel.rb? In-Reply-To: References: <448FAC5B.3020508@neurogami.com> <3ff63f9b0606140028u2bd9a185k732de8d67b2b0230@mail.gmail.com> <44903E65.9020000@neurogami.com> <449202BE.8040307@neurogami.com> <44920368.9000909@neurogami.com> <44921AC0.80704@rjspotter.com> <449215EF.80604@neurogami.com> <3ff63f9b0606160041y6964ce4amc3bcb79bc41bb9f@mail.gmail.com> Message-ID: <4492C234.5060400@gmail.com> George Moschovitis wrote: > this is it! > > On 6/16/06, Jonas Pfenniger wrote: > >>Short HOWTO send a patch : >> >>1) Get the glycerin source >> >>darcs get repo.nitroproject.org darcs get http://repo.nitroproject.org At least, for me, the protocol was required >> >>2) Modify the code >> OK >>... >> >>3) Record the changes >> >>darcs record -m "My changes" >> Easy. >>4) Export the changes >> >>darcs send -o some_file Also easy >> >>5) Mail the file Attached to this mail. Thanks, -- James Britt "Simplicity of the language is not what matters, but simplicity of use." - Richard A. O'Keefe in squeak-dev mailing list -------------- next part -------------- A non-text attachment was scrubbed... Name: mongrel_context_in.patch.tgz Type: application/x-gtar Size: 2614 bytes Desc: not available Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060616/12e7387f/attachment.gtar From m.fellinger at gmail.com Fri Jun 16 22:44:48 2006 From: m.fellinger at gmail.com (Michael Fellinger) Date: Sat, 17 Jun 2006 11:44:48 +0900 Subject: [Nitro] Some suggestions for 0.31.0 (gems) Message-ID: <9c00d3e00606161944r74d4e91em7b6d1db6f0c8886d@mail.gmail.com> Hey Nitroists :) This is not the usual - I-want-this-feature email I've had some encounters with newcomers to nitro on IRC and there were some things that annoyed almost everybody that would be easy to fix. This is talking about the distribution of nitro/og and the examples, hoping that it will give you some ideas of what will definitly help people to pick up nitro with less pain (yes, there still is some to go through until you can have your first hello-world) First: >> nitro/ProjectInfo: - [ RedCloth, '= 3.1.3' ] << Can we somehow get rid of that dependency? Lots of people use BlueCloth instead and as far as i've seen it's only used in Flare/Spark - which are not installed with the gems and in Glue, as a kind of convinience that is not really documented but i guess it's being used for {{...}} or {|...|} i've not heard about both until looking into that file to find out why i have to install redcloth over and over again with nitro. Nowadays the 0.30.0 nitro-gem is unusable for usual users since redcloth 3.1.4 is out and we have an explicit dependency on 3.1.3... i only thought wtf? So, there are two ways to resolve this issue, first: use of >= 3.1.4 or second (and more favored by me) dropping the dependency if we continue not having a specific example of how to use it. not even spark/flare use the markup-method, so why should we use them? and glue is being droppend anyway so what better time is there to get rid of it :) Second: >> specific-version-dependencies a la = 3.1.3 << this is especially for the ruby-breakpoint and daemons dependency, it certainly won't hurt to make this a bit more relaxed and allow newer versions - these gems are known to provide the same API over quite some time already and are less likely to change without notice since lots of programs build on them. my proposal is - use of >= here as well. for the reasons i mentioned earlier. Third: >> facets << I know the issues with facets, as their code is weaved closely with nitro/og, but i have to say that i'm using still the code of 0.29.0 with the current facets and have no broken functionality. This may serve as both an compliment and an reminder to both the community and especially to trans and george, since they work closely together. But it's a reminder that nitro _is_ becoming more mature and we should reflect that, if possible in the dependencies of the next gems to come Another thing is that the rdoc of facets doesn't seem to be on the latest level on facets.rubyforge.org - it would be nice to have an up2date documentation since i regulary search this page for functionality i need and maybe have close at hand without knowing it. All of these changes would make it much smoother for newbies to get up'n'running with nitro without too much effort from our side, but there is more - taking a bit more effort :) gemifying examples/spark/flare This is something i would _love_ to see and that would make a great point of entry for newcomers who just want to setup a wiki/blog within 5 minutes or check out what all the fuss is about. I have little to no experience with creating gems and i'm not sure if we should make examples to a gem - but at least providing a direct link from both the homepage and the starting-page of a new nitro-application would help in the long term. however, i would love to see flare/spark neatly packaged up, with some small tutorial on how to get up and running with them (which might take as little as a 2-page-tutorial on oxywtf) I know that george once had the plan to gemify them and to make them run nicely (as much as possible) with kirbybase so the users don't have to install any database and just can get work done. If we ever get that far, no doubt - we will be flooded with new users. There is a large-scale-curiosity out there about what nitro/og is and what it is capable of - almost everybody has heard about it (even pythonistas) but consider it as immature because of documentation. So, since we already love to let code speak for us, getting these two applications on the street would serve as a real beacon and might as well lead to more questions on oxywtf and great new minds to share their thoughts with. If you guys are happy with distributing flare/spark on this way, i will do my best to create gems for them ( though the help of anybody on that point would be greatly appreciated, since i currently have no experience with that stuff ) and also to clean up the code that is in there, which is in some parts incomplete or unneccesary or a bit hard to understand. Also we could bring in some new features from our latest developments like the feedgenerator or cleaning up of the model-code. as well as better use of elements. at the time when the new part/admin of hits the street and the other stores work with the new Og, i would be happy to have finished the work on these issues and hit the gas-pedal on our nitro-driven car a bit harder to reach further than ever a framework before. Ok, thanks for reading that far, as always i appreciate every feedback i can get. Hit your Reply-button: NOW ;) Also keep in mind, we can pick only one or two points from what i've said and already improve the whole community - if we would pick all points and work on them that would be too nice to be true :) ~~~~manveru From james.britt at gmail.com Fri Jun 16 23:36:58 2006 From: james.britt at gmail.com (James Britt) Date: Fri, 16 Jun 2006 20:36:58 -0700 Subject: [Nitro] Some suggestions for 0.31.0 (gems) In-Reply-To: <9c00d3e00606161944r74d4e91em7b6d1db6f0c8886d@mail.gmail.com> References: <9c00d3e00606161944r74d4e91em7b6d1db6f0c8886d@mail.gmail.com> Message-ID: <449378DA.4010509@gmail.com> Michael Fellinger wrote: > Hey Nitroists :) > > This is not the usual - I-want-this-feature email Oh, sure. :) > > gemifying examples/spark/flare > > This is something i would _love_ to see and that would make a great > point of entry for newcomers who just want to setup a wiki/blog within > 5 minutes or check out what all the fuss is about. Yes. It's annoying that the default Nitro page that appears when you run gen app foobar refers to examples that, surprise! are not installed by default; the page says nothing about where you can get them. Having a "gem install nitro-examples" would be sweet. On that note, the sample Nitro stuff one gets with gen app could be a bit nicer. I've wrote up a description of getting started with Nitro, and I found it awkward to first explain what you get with gen app, and then explaining how to go write a Nitro app that uses basically none of that. Yes, You *can* put your controller right in run.rb, and yes you *could* have all your HTML generate as a giant string from your controller methods, but I have a hard time believing anyone writes a Web app of any size doing that. Better if "gen app" creates template (or whatever George decides to cal it), model, and controller folders with simple, but architecturally correct, classes. It would go a long way in showing how one might use Nitro for typical development. > I have little to no experience with creating gems and i'm not sure if > we should make examples to a gem - but at least providing a direct > link from both the homepage and the starting-page of a new > nitro-application would help in the long term. Yes. > > however, i would love to see flare/spark neatly packaged up, with some > small tutorial on how to get up and running with them (which might > take as little as a 2-page-tutorial on oxywtf) > > I know that george once had the plan to gemify them and to make them > run nicely (as much as possible) with kirbybase so the users don't > have to install any database and just can get work done. That would be quite nice, too. > If we ever get that far, no doubt - we will be flooded with new users. > There is a large-scale-curiosity out there about what nitro/og is and > what it is capable of - almost everybody has heard about it (even > pythonistas) but consider it as immature because of documentation. I can understand that perception. A bit more slickness in the Web sites and docs might do wonders for attracting coders to Og/Nitro, people who (ideally) might then help make it better. > > So, since we already love to let code speak for us, getting these two > applications on the street would serve as a real beacon and might as > well lead to more questions on oxywtf and great new minds to share > their thoughts with. > More examples, showing a variety of Og/Nitro features, in a deliberately explicit style (i.e., they would not have the tightest/tersest code, but the code would serve as working demos and tutorials, not as production apps anyway) would be nice. > If you guys are happy with distributing flare/spark on this way, i > will do my best to create gems for them ( though the help of anybody > on that point would be greatly appreciated, since i currently have no > experience with that stuff ) and also to clean up the code that is in > there, which is in some parts incomplete or unneccesary or a bit hard > to understand. I have experience creating gems, though not very much free time. But give me a yell if you need help. > Also we could bring in some new features from our latest developments > like the feedgenerator or cleaning up of the model-code. as well as > better use of elements. More examples are good. -- James Britt "In physics the truth is rarely perfectly clear, and that is certainly universally the case in human affairs. Hence, what is not surrounded by uncertainty cannot be the truth." - R. Feynman From zimba.tm at gmail.com Sat Jun 17 03:35:15 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Sat, 17 Jun 2006 09:35:15 +0200 Subject: [Nitro] Some suggestions for 0.31.0 (gems) In-Reply-To: <9c00d3e00606161944r74d4e91em7b6d1db6f0c8886d@mail.gmail.com> References: <9c00d3e00606161944r74d4e91em7b6d1db6f0c8886d@mail.gmail.com> Message-ID: <3ff63f9b0606170035q7b22ff7fh9160ec9b09f3ab0b@mail.gmail.com> On 17/06/06, Michael Fellinger wrote: > First: >> nitro/ProjectInfo: - [ RedCloth, '= 3.1.3' ] << > Can we somehow get rid of that dependency? > Lots of people use BlueCloth instead and as far as i've seen it's only > used in Flare/Spark - which are not installed with the gems and in > Glue, as a kind of convinience that is not really documented but i > guess it's being used for {{...}} or {|...|} > i've not heard about both until looking into that file to find out why > i have to install redcloth over and over again with nitro. More insight : Glue::Markup depends on RedCloth. Also, last time I checked RedCloth 3.1.4 was considered as broken. This is why Nitro stays at 3.1.3. The best thing to do IMHO is to remove that dependency and make a clear message when you use glue/markup. (which is used by nitro/compiler/markup, which in turn is in the default compiler pipeline) > All of these changes would make it much smoother for newbies to get > up'n'running with nitro without too much effort from our side, but > there is more - taking a bit more effort :) Well, I don't really see how having fixed dependencies is a problem. Gem has versionning for that purpose isn't it ? The newbie might wonder why we have fixed versions but that's another case. The code will still work. Installing nitro is not more complicated than `gem install nitro -y`, fixed deps or not. Having fixed deps was a decision of George and I agree with him : with a release, we know which package work with which version of nitro and og. For example, latest facets (1.4.1) breaks george's version at repo.nitroproject.com. So maybe it's curious for newbies but there is a good reason behind it. > gemifying examples/spark/flare This is very simple but needs some love. First of all, install `reap`. It's a tool written by Trans to simplify your work. Make a ProjectInfo in flare/spark's root. You can find some examples in Og and Nitro's root. Then type : `reap package` . Et voil? ! :-) -- Cheers, zimbatm http://zimbatm.oree.ch From george.moschovitis at gmail.com Sat Jun 17 11:31:01 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Sat, 17 Jun 2006 18:31:01 +0300 Subject: [Nitro] nitroproject.org banner Message-ID: Dear devs, I need a 728x200 pixels 'welcome' banner for the new home page of nitroproject.org. If anyone of you feels artistic, please give it a try and send me a nice image. regards, George -- http://www.gmosx.com http://www.nitroproject.org From william.full.moon at gmail.com Sat Jun 17 11:35:15 2006 From: william.full.moon at gmail.com (* William) Date: Sun, 18 Jun 2006 01:35:15 +1000 Subject: [Nitro] Nitro evolution Rules ?? In-Reply-To: <448DA49C.8070309@lassoweb.nu> Message-ID: <001101c69223$a5bee6a0$03af07ca@ghostgum> Hello people!! I hope you are all well!! I am wondering about the rules for the Og::Manager's EVOLUTION facility? Is there a short description of what's suppose to occur, and in what sequence? Some comments or text in a read-me would do, I'd like at least a conceptual and functional understanding of what goes on. What I found more interesting is the mention of a "rules YAML" file that is read at load time. As far as I can tell, it is loading classes. I can see mention of transition rules in "evolution.rb" code. Is there syntax or rules to go in the YAML? I have been putting together some notes on Og and Nitro. It is a coverage of what is where, and when. Not the user manual I'd like to find as a "newbie". I don't know enough to do that. Comments can go to me, or on the list. http://platypus.stikipad.com/muse/show/rough+notes Cheers to all. ... Will -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.0/368 - Release Date: 16-Jun-2006 From george.moschovitis at gmail.com Sat Jun 17 11:39:19 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Sat, 17 Jun 2006 18:39:19 +0300 Subject: [Nitro] Some suggestions for 0.31.0 (gems) In-Reply-To: <9c00d3e00606161944r74d4e91em7b6d1db6f0c8886d@mail.gmail.com> References: <9c00d3e00606161944r74d4e91em7b6d1db6f0c8886d@mail.gmail.com> Message-ID: > First: >> nitro/ProjectInfo: - [ RedCloth, '= 3.1.3' ] << > Can we somehow get rid of that dependency? > not even spark/flare use the markup-method, so why should we use them? > and glue is being droppend anyway so what better time is there to get > rid of it :) Ok, for the moment I will add a >= dependecy for Redcloth ;-) And I will consider relaxing this dependency altogether in a future version. > Second: >> specific-version-dependencies a la = 3.1.3 << > this is especially for the ruby-breakpoint and daemons dependency, it > my proposal is - use of >= here as well. for the reasons i mentioned earlier. Ok, same here ;-) > Third: >> facets << > functionality i need and maybe have close at hand without knowing it. I really want to keep the = constaint with facets for the time beeing ;-) Even though both nitro and facets have matured a lot since the last time we discussed this, I strongly believe that a = dependecy on facets is still neccessary. > This is something i would _love_ to see and that would make a great I would love to see this too ;-) > If you guys are happy with distributing flare/spark on this way, i > will do my best to create gems for them ( though the help of anybody > on that point would be greatly appreciated, since i currently have no > experience with that stuff ) and also to clean up the code that is in > there, which is in some parts incomplete or unneccesary or a bit hard > to understand. this sounds great. Go for it ;-) And you get tons of love from all members of our community! best regards, George. -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Sat Jun 17 11:42:33 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Sat, 17 Jun 2006 18:42:33 +0300 Subject: [Nitro] Some suggestions for 0.31.0 (gems) In-Reply-To: <449378DA.4010509@gmail.com> References: <9c00d3e00606161944r74d4e91em7b6d1db6f0c8886d@mail.gmail.com> <449378DA.4010509@gmail.com> Message-ID: > More examples, showing a variety of Og/Nitro features, in a deliberately > explicit style (i.e., they would not have the tightest/tersest code, but > the code would serve as working demos and tutorials, not as production > apps anyway) would be nice. I will release the base source of nitroproject.org in the following days (mostly as a favour to Jonas ;-)). This will demonstrate some nice coding practices of using nitro and og. stay tuned, George. -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Sat Jun 17 11:44:19 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Sat, 17 Jun 2006 18:44:19 +0300 Subject: [Nitro] Facets version for repo.nitroproject.com ? In-Reply-To: <3ff63f9b0606131322mc933706x8bd9e0cd29eb02cc@mail.gmail.com> References: <3ff63f9b0606131103g7515e38ev772d0c510d2f00b@mail.gmail.com> <3ff63f9b0606131124p1598e9f1mbb9c7def8422012c@mail.gmail.com> <3ff63f9b0606131322mc933706x8bd9e0cd29eb02cc@mail.gmail.com> Message-ID: Fixed this! Check out the repo... If you have problems, please let me know and will fix them asap. Please use the repo version with your app, to help me kill the rest of the bugs. -g. On 6/13/06, Jonas Pfenniger wrote: > George, there seem to be a problem in Glue::Orderable too. It produces > weird queries : > > [SELECT * FROM ogrstreamer_stream ORDER BY position integer DESC LIMIT 1] > > I wanted to debug it but I don't understand some things : > * how `self.included_with_parameters` work. > * where you change the default select to add order attribute in that class > * why you use `alias_method` instead of the `alias` keyword > > Another weird behavior is that Og creates the `position` field but > then declares that it's not available. I think it has to do that you > changed how glue/attribute work, isn't it ? > > On 13/06/06, George Moschovitis wrote: > > Ok, will do... > > > > -g. > > > > On 6/13/06, Jonas Pfenniger wrote: > > > On 13/06/06, George Moschovitis wrote: > > > > Perhaps you are using multiple versions of nitro? > > > > > > No > > > > > > > Please also note that you need mysql to test my version of nitro. > > > > > > Yes, it's what I have :-) > > > > > > I found out what the problem was : Facets 1.4.1 now separate the > > > annotation attributes in another file. > > > > > > Just add "require '/facets/more/annattr'" in front of glue/attribute > > > > > > -- > > > Cheers, > > > zimbatm > > > > > > http://zimbatm.oree.ch > > > _______________________________________________ > > > Nitro-general mailing list > > > Nitro-general at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/nitro-general > > > > > > > > > -- > > http://www.gmosx.com > > http://www.nitroproject.org > > _______________________________________________ > > Nitro-general mailing list > > Nitro-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/nitro-general > > > > > -- > Cheers, > zimbatm > > http://zimbatm.oree.ch > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Sat Jun 17 12:22:06 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Sat, 17 Jun 2006 19:22:06 +0300 Subject: [Nitro] nitroproject.org banner In-Reply-To: References: Message-ID: To help you a bit, here is the current place holder... -g. On 6/17/06, George Moschovitis wrote: > Dear devs, > > I need a 728x200 pixels 'welcome' banner for the new home page of > nitroproject.org. If anyone of you feels artistic, please give it a > try and send me a nice image. > > regards, > George > > > -- > http://www.gmosx.com > http://www.nitroproject.org > -- http://www.gmosx.com http://www.nitroproject.org -------------- next part -------------- A non-text attachment was scrubbed... Name: banner.png Type: image/png Size: 61790 bytes Desc: not available Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060617/f22d0a28/attachment.png From mischa.kroon at gmail.com Sat Jun 17 15:36:50 2006 From: mischa.kroon at gmail.com (Mischa Kroon) Date: Sat, 17 Jun 2006 21:36:50 +0200 Subject: [Nitro] nitroproject.org banner References: Message-ID: <003a01c69245$61f988e0$0a01a8c0@mischabak> Looks good :) ----- Original Message ----- From: "George Moschovitis" To: "General discussion about Nitro" Sent: Saturday, June 17, 2006 6:22 PM Subject: Re: [Nitro] nitroproject.org banner > To help you a bit, here is the current place holder... > > -g. > > On 6/17/06, George Moschovitis wrote: >> Dear devs, >> >> I need a 728x200 pixels 'welcome' banner for the new home page of >> nitroproject.org. If anyone of you feels artistic, please give it a >> try and send me a nice image. >> >> regards, >> George >> >> >> -- >> http://www.gmosx.com >> http://www.nitroproject.org >> > > > -- > http://www.gmosx.com > http://www.nitroproject.org > -------------------------------------------------------------------------------- > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general From zimba.tm at gmail.com Sat Jun 17 16:30:51 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Sat, 17 Jun 2006 22:30:51 +0200 Subject: [Nitro] Facets version for repo.nitroproject.com ? In-Reply-To: References: <3ff63f9b0606131103g7515e38ev772d0c510d2f00b@mail.gmail.com> <3ff63f9b0606131124p1598e9f1mbb9c7def8422012c@mail.gmail.com> <3ff63f9b0606131322mc933706x8bd9e0cd29eb02cc@mail.gmail.com> Message-ID: <3ff63f9b0606171330i396e598h8650b3576eaf835f@mail.gmail.com> On 17/06/06, George Moschovitis wrote: > Fixed this! Check out the repo... If you have problems, please let me > know and will fix them asap. Please use the repo version with your > app, to help me kill the rest of the bugs. Cool ! Thanks George. I will let you know in the following days. I'm only using the Og part btw -- Cheers, zimbatm http://zimbatm.oree.ch From george.moschovitis at gmail.com Sat Jun 17 18:35:57 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Sun, 18 Jun 2006 01:35:57 +0300 Subject: [Nitro] Facets version for repo.nitroproject.com ? In-Reply-To: <3ff63f9b0606171330i396e598h8650b3576eaf835f@mail.gmail.com> References: <3ff63f9b0606131103g7515e38ev772d0c510d2f00b@mail.gmail.com> <3ff63f9b0606131124p1598e9f1mbb9c7def8422012c@mail.gmail.com> <3ff63f9b0606131322mc933706x8bd9e0cd29eb02cc@mail.gmail.com> <3ff63f9b0606171330i396e598h8650b3576eaf835f@mail.gmail.com> Message-ID: Ok, waiting for new bug reports... take care, George. On 6/17/06, Jonas Pfenniger wrote: > On 17/06/06, George Moschovitis wrote: > > Fixed this! Check out the repo... If you have problems, please let me > > know and will fix them asap. Please use the repo version with your > > app, to help me kill the rest of the bugs. > > Cool ! Thanks George. I will let you know in the following days. I'm > only using the Og part btw > > -- > Cheers, > zimbatm > > http://zimbatm.oree.ch > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From billk at cts.com Sat Jun 17 22:51:49 2006 From: billk at cts.com (Bill Kelly) Date: Sat, 17 Jun 2006 19:51:49 -0700 Subject: [Nitro] temporary database structures References: <000001c690e2$94160ec0$d9e7dbcb@ghostgum> Message-ID: <016c01c69282$254b6660$6442a8c0@musicbox> From: "* William" > > Yes, I think there are 'prosaic' solutions for your query. As usual it > depends on your application's specific needs. Hi Will, Thanks for your detailed reply. I'm still mulling it over... :) Regards, Bill From m.fellinger at gmail.com Sat Jun 17 23:47:15 2006 From: m.fellinger at gmail.com (Michael Fellinger) Date: Sun, 18 Jun 2006 12:47:15 +0900 Subject: [Nitro] nitroproject.org banner In-Reply-To: <003a01c69245$61f988e0$0a01a8c0@mischabak> References: <003a01c69245$61f988e0$0a01a8c0@mischabak> Message-ID: <9c00d3e00606172047u30de9639j2a7b11ff30f302ae@mail.gmail.com> anybody remembers zorro? where the train is full of nitroglycerin and makes a spectacular explosion in the end? ;D On 6/18/06, Mischa Kroon wrote: > Looks good :) > > ----- Original Message ----- > From: "George Moschovitis" > To: "General discussion about Nitro" > Sent: Saturday, June 17, 2006 6:22 PM > Subject: Re: [Nitro] nitroproject.org banner > > > > To help you a bit, here is the current place holder... > > > > -g. > > > > On 6/17/06, George Moschovitis wrote: > >> Dear devs, > >> > >> I need a 728x200 pixels 'welcome' banner for the new home page of > >> nitroproject.org. If anyone of you feels artistic, please give it a > >> try and send me a nice image. > >> > >> regards, > >> George > >> > >> > >> -- > >> http://www.gmosx.com > >> http://www.nitroproject.org > >> > > > > > > -- > > http://www.gmosx.com > > http://www.nitroproject.org > > > > > -------------------------------------------------------------------------------- > > > > _______________________________________________ > > Nitro-general mailing list > > Nitro-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/nitro-general > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > From neokolor at gmx.de Sun Jun 18 09:30:27 2006 From: neokolor at gmx.de (jfwittmann) Date: Sun, 18 Jun 2006 15:30:27 +0200 Subject: [Nitro] litte patch to og/relation.rb Message-ID: <44955573.8070503@gmx.de> do a modifications to symbol_to_class method in relation.rb to handle following entity classes module Gallery::Models class Image has_one :image_detail end class ImageDetail belongs_to :image end end cu, Felix -------------- next part -------------- A non-text attachment was scrubbed... Name: relation_rb.zip Type: application/x-zip-compressed Size: 3246 bytes Desc: not available Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060618/5a5aaaf9/attachment.bin From john at oxyliquit.de Sun Jun 18 10:28:09 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Sun, 18 Jun 2006 16:28:09 +0200 Subject: [Nitro] litte patch to og/relation.rb In-Reply-To: <44955573.8070503@gmx.de> References: <44955573.8070503@gmx.de> Message-ID: Hi, > do a modifications to symbol_to_class method in relation.rb to handle > following entity classes Cool, thanks for that patch :) Jo -- Feel the love http://pinkjuice.com/pics/ruby.png From john at oxyliquit.de Sun Jun 18 13:43:54 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Sun, 18 Jun 2006 19:43:54 +0200 Subject: [Nitro] Nitro evolution Rules ?? In-Reply-To: <001101c69223$a5bee6a0$03af07ca@ghostgum> References: <001101c69223$a5bee6a0$03af07ca@ghostgum> Message-ID: Hi, > http://platypus.stikipad.com/muse/show/rough+notes Thanks for opening that to the public! Jo -- Feel the love http://pinkjuice.com/pics/ruby.png From fabian at oggu.de Sun Jun 18 13:47:52 2006 From: fabian at oggu.de (Fabian Buch) Date: Sun, 18 Jun 2006 19:47:52 +0200 Subject: [Nitro] Gen Form not working without Og.setup Message-ID: <287d732edf715bbb048420aa22ef0da5@oggu.de> I just tested gen form which didn't work. After some debugging I had the feeling my model wasn't enchanted yet, so I put an Og.setup into FormGen.setup method, after the require of my model and it worked. Did anyone ever test form gen? I think this is a bug, but I have no solution, since running Og.setup creates a new database. As workaround I do an Og.setup with an sqlite-store with a database in /tmp. Any real solution? Or is there a way to enchant a model without creating a real database via Og.setup? Fabian From neokolor at gmx.de Sun Jun 18 18:13:31 2006 From: neokolor at gmx.de (jfwittmann) Date: Mon, 19 Jun 2006 00:13:31 +0200 Subject: [Nitro] fix problem in admin controller with plural names Message-ID: <4495D00B.5060901@gmx.de> This will now working with the fix: class AdminController; scaffold Genus, :plural_name => 'generis' scaffold Species, :plural_name => 'species'; end cu, Felix -------------- next part -------------- A non-text attachment was scrubbed... Name: fix_admin_controller.zip Type: application/x-zip-compressed Size: 3428 bytes Desc: not available Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060618/f7bb353d/attachment.bin From james.britt at gmail.com Sun Jun 18 18:33:42 2006 From: james.britt at gmail.com (James Britt) Date: Sun, 18 Jun 2006 15:33:42 -0700 Subject: [Nitro] Nitro evolution Rules ?? In-Reply-To: References: <001101c69223$a5bee6a0$03af07ca@ghostgum> Message-ID: <4495D4C6.7090105@gmail.com> Jonathan Buch wrote: > Hi, > > >> http://platypus.stikipad.com/muse/show/rough+notes > > > Thanks for opening that to the public! Neat-o. One gripe: The table of contents floating div thing renders poorly in Firefox on WinXP. The text from the first main paragraph in the center overlaps the TOC thing. But thanks, really, for the docs! -- James Britt "You harmonize; then you customize." - Wilson Pickett From transfire at gmail.com Sun Jun 18 20:50:05 2006 From: transfire at gmail.com (TRANS) Date: Sun, 18 Jun 2006 20:50:05 -0400 Subject: [Nitro] opinion on console command facet Message-ID: <4b6f054f0606181750t956c27fq484f698909cdda59@mail.gmail.com> another one of my opinion queries.... consoleapp.rb has to be renamed b/c what was Console::Application is now Console::Command. as of this upcoming release the Console::Applicaiton will no longer be available. so the question is what to rename the file: 1) slight change to 'consolecmd.rb'. 2) something more succinct 'command.rb' 3) or is it time to subdir: 'console/command.rb' by the way I've added run-on flag supprt (eg. -xvzf) as well some help support, ex- # bin/example class MyCmd << Console::Command help "This does something" def something puts "Something!" end help "This does another" def another puts "Another!" end end MyCmd.execute then at the CLI (command line interface) % example help example another This does another something This does something it's still a bit primitive obviously but we can improve it over time. thanks, T. From transfire at gmail.com Sun Jun 18 21:08:10 2006 From: transfire at gmail.com (TRANS) Date: Sun, 18 Jun 2006 21:08:10 -0400 Subject: [Nitro] Some suggestions for 0.31.0 (gems) In-Reply-To: <9c00d3e00606161944r74d4e91em7b6d1db6f0c8886d@mail.gmail.com> References: <9c00d3e00606161944r74d4e91em7b6d1db6f0c8886d@mail.gmail.com> Message-ID: <4b6f054f0606181808u6cb8e196ma868ec5960b9c382@mail.gmail.com> On 6/16/06, Michael Fellinger wrote: > Third: >> facets << > I know the issues with facets, as their code is weaved closely with > nitro/og, but i have to say that i'm using still the code of 0.29.0 > with the current facets and have no broken functionality. > This may serve as both an compliment and an reminder to both the > community and especially to trans and george, since they work closely > together. We work pretty close together on certain parts where functionality is crucial for Nitro/Og. That's true. Keep in mind though that I'm sworn to keeping Facets a general purpose library. And that's actually a boon for Nitro/Og as opposed to ActiveSupport and Rails. > But it's a reminder that nitro _is_ becoming more mature and we should > reflect that, if possible in the dependencies of the next gems to come I think we're getting to a point where it would be safe to reduce the dependeny resitrictions for Facets to a flexibley teenty: 1.3.x or 1.4.x, etc. > Another thing is that the rdoc of facets doesn't seem to be on the > latest level on facets.rubyforge.org - it would be nice to have an > up2date documentation since i regulary search this page for > functionality i need and maybe have close at hand without knowing it. Hmm... they should be up2date. Are there some partiuclar docs missing? Please let me know anything you come across. I've put a lot of work into the docs, but it's a huge task. Also I've noticed that Rdoc itself can be a little tricky. Sometimes it doesn't display what I had exepted. Help with docs is very much appreciated! > gemifying examples/spark/flare I concur with Jonas. Get familiar with Reap and this will pretty much become cake. Moreover the more people using Reap the better it'll get. T. From zimba.tm at gmail.com Mon Jun 19 02:41:38 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Mon, 19 Jun 2006 08:41:38 +0200 Subject: [Nitro] opinion on console command facet In-Reply-To: <4b6f054f0606181750t956c27fq484f698909cdda59@mail.gmail.com> References: <4b6f054f0606181750t956c27fq484f698909cdda59@mail.gmail.com> Message-ID: <3ff63f9b0606182341l7e798216s68a73d40ecf34c4b@mail.gmail.com> On 19/06/06, TRANS wrote: > another one of my opinion queries.... Console::Controller ? Console::Command doesn't fit quite since it can be multiple commands. > # bin/example > > class MyCmd < Console::Command > > help "This does something" > > def something > puts "Something!" > end > end Is it the same as : class MyCmd < Console::Command def something puts "Something!" end ann :something, :doc => "This does something" end -- Cheers, zimbatm http://zimbatm.oree.ch From transfire at gmail.com Mon Jun 19 05:01:52 2006 From: transfire at gmail.com (TRANS) Date: Mon, 19 Jun 2006 05:01:52 -0400 Subject: [Nitro] opinion on console command facet In-Reply-To: <3ff63f9b0606182341l7e798216s68a73d40ecf34c4b@mail.gmail.com> References: <4b6f054f0606181750t956c27fq484f698909cdda59@mail.gmail.com> <3ff63f9b0606182341l7e798216s68a73d40ecf34c4b@mail.gmail.com> Message-ID: <4b6f054f0606190201k1e03cf11g3b274b64564afc32@mail.gmail.com> On 6/19/06, Jonas Pfenniger wrote: > On 19/06/06, TRANS wrote: > > another one of my opinion queries.... > > Console::Controller ? Console::Command doesn't fit quite since it can > be multiple commands. ooeee... you're in too deep with the MVC ;-) It's a "command", man, as in "shell command" and "command line interface". > > # bin/example > > > > class MyCmd < Console::Command > > > > help "This does something" > > > > def something > > puts "Something!" > > end > > end > > Is it the same as : > > class MyCmd < Console::Command > def something > puts "Something!" > end > ann :something, :doc => "This does something" > end Hmm... that's a interesting though. I didn't do it that way. The implementation is rather simple by comparision. Is there's an advantage to using annotations here? T. From zimba.tm at gmail.com Mon Jun 19 05:20:15 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Mon, 19 Jun 2006 11:20:15 +0200 Subject: [Nitro] opinion on console command facet In-Reply-To: <4b6f054f0606190201k1e03cf11g3b274b64564afc32@mail.gmail.com> References: <4b6f054f0606181750t956c27fq484f698909cdda59@mail.gmail.com> <3ff63f9b0606182341l7e798216s68a73d40ecf34c4b@mail.gmail.com> <4b6f054f0606190201k1e03cf11g3b274b64564afc32@mail.gmail.com> Message-ID: <3ff63f9b0606190220t572b7870hd0d16689953b41dc@mail.gmail.com> On 19/06/06, TRANS wrote: > > Console::Controller ? Console::Command doesn't fit quite since it can > > be multiple commands. > > ooeee... you're in too deep with the MVC ;-) > > It's a "command", man, as in "shell command" and "command line interface". :-p maybe > > class MyCmd < Console::Command > > def something > > puts "Something!" > > end > > ann :something, :doc => "This does something" > > end > > Hmm... that's a interesting though. I didn't do it that way. The > implementation is rather simple by comparision. Is there's an > advantage to using annotations here? Not really, unless RDoc to annotation is implemented. Then you could have : class MyCmd < Console::Command # This does something def something puts "Something" end end -- Cheers, zimbatm http://zimbatm.oree.ch From william.full.moon at gmail.com Mon Jun 19 06:16:48 2006 From: william.full.moon at gmail.com (* William) Date: Mon, 19 Jun 2006 20:16:48 +1000 Subject: [Nitro] Nitro evolution Rules ?? In-Reply-To: Message-ID: <009f01c69389$7ffd57f0$03af07ca@ghostgum> De nada ... j> p> http://platypus.stikipad.com/muse/show/rough+notes j> j>Thanks for opening that to the public! The idea is that people will tell me the bits that need correction. And/or it could help people understand how it works. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.0/368 - Release Date: 16-Jun-2006 From william.full.moon at gmail.com Mon Jun 19 06:23:11 2006 From: william.full.moon at gmail.com (* William) Date: Mon, 19 Jun 2006 20:23:11 +1000 Subject: [Nitro] sorry about the formatting In-Reply-To: <4495D4C6.7090105@gmail.com> Message-ID: <00a001c6938a$621fa9d0$03af07ca@ghostgum> Hello James j> One gripe: The table of contents floating div thing renders j> poorly in Firefox on WinXP. The text from the first main j> paragraph in the center overlaps the TOC thing. Yes I know. The web site renders valid HTML. Oddly enough it work correctly in IE v6. As one mate commented, that could be a "first". I think my solution will be to put the toc at the bottom with a hyper-link. Any CSS/HTML gurus out there? Aloha, Will. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.0/368 - Release Date: 16-Jun-2006 From transfire at gmail.com Mon Jun 19 06:26:17 2006 From: transfire at gmail.com (TRANS) Date: Mon, 19 Jun 2006 06:26:17 -0400 Subject: [Nitro] opinion on console command facet In-Reply-To: <3ff63f9b0606190220t572b7870hd0d16689953b41dc@mail.gmail.com> References: <4b6f054f0606181750t956c27fq484f698909cdda59@mail.gmail.com> <3ff63f9b0606182341l7e798216s68a73d40ecf34c4b@mail.gmail.com> <4b6f054f0606190201k1e03cf11g3b274b64564afc32@mail.gmail.com> <3ff63f9b0606190220t572b7870hd0d16689953b41dc@mail.gmail.com> Message-ID: <4b6f054f0606190326q6c7cb2bcyc43c49f039da17f7@mail.gmail.com> s/that's a interesting though/ that's an interesting thought/ I'm so tired of misspelling "thought" as "though" (two terribly unphonetic words to begin with) that I'm just NOT going to spell it that way any more! From now on it' s "thot"!!! T. From m.fellinger at gmail.com Mon Jun 19 06:26:58 2006 From: m.fellinger at gmail.com (Michael Fellinger) Date: Mon, 19 Jun 2006 19:26:58 +0900 Subject: [Nitro] Nitro evolution Rules ?? In-Reply-To: <009f01c69389$7ffd57f0$03af07ca@ghostgum> References: <009f01c69389$7ffd57f0$03af07ca@ghostgum> Message-ID: <200606191926.58227.manveru@weez-int.com> Hey, that page is really helpful :) already using it to show others concepts of Og. However, there are some small things that bug me: the code-example at the beginning, how about using real code? most people who know ruby are confused about how this should work or display next thing is og_pre_insert_update ?. [?] what is an insert-update??? ?og_post_insert_update ? i think it works for insert AND update, saves a bit of typing :) also, an example of EZ would be nice Foo.find{|foo| foo.name == 'bar'} or similar... there's lots of them in announcements at explaining options: * destroy ? - false: remove any existing database ? - true: leave existing table alone if it?s there just invert that :) * evolve_schema => true, ? - false: ? - true: This is the trigger if Og should add new fields/tables to the database. * evolve_schema_cautious (true) ? - false: avoid destructive schema changes. ? - true: drop old fields not present (also, are unused tables dropped?) yes, this one is applying _all_changes - adding/dropping tables/rows don't have too much time, hope that helps a bit :) From zimba.tm at gmail.com Mon Jun 19 10:42:49 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Mon, 19 Jun 2006 16:42:49 +0200 Subject: [Nitro] opinion on console command facet In-Reply-To: <4b6f054f0606190326q6c7cb2bcyc43c49f039da17f7@mail.gmail.com> References: <4b6f054f0606181750t956c27fq484f698909cdda59@mail.gmail.com> <3ff63f9b0606182341l7e798216s68a73d40ecf34c4b@mail.gmail.com> <4b6f054f0606190201k1e03cf11g3b274b64564afc32@mail.gmail.com> <3ff63f9b0606190220t572b7870hd0d16689953b41dc@mail.gmail.com> <4b6f054f0606190326q6c7cb2bcyc43c49f039da17f7@mail.gmail.com> Message-ID: <3ff63f9b0606190742xa90a235jef79701ccf80b7ca@mail.gmail.com> On 19/06/06, TRANS wrote: > s/that's a interesting though/ that's an interesting thought/ > > I'm so tired of misspelling "thought" as "though" (two terribly > unphonetic words to begin with) that I'm just NOT going to spell it > that way any more! From now on it' s "thot"!!! :-p In general ann allows more flexibility isn't it ? -- Cheers, zimbatm http://zimbatm.oree.ch From transfire at gmail.com Mon Jun 19 11:14:03 2006 From: transfire at gmail.com (TRANS) Date: Mon, 19 Jun 2006 11:14:03 -0400 Subject: [Nitro] opinion on console command facet In-Reply-To: <3ff63f9b0606190742xa90a235jef79701ccf80b7ca@mail.gmail.com> References: <4b6f054f0606181750t956c27fq484f698909cdda59@mail.gmail.com> <3ff63f9b0606182341l7e798216s68a73d40ecf34c4b@mail.gmail.com> <4b6f054f0606190201k1e03cf11g3b274b64564afc32@mail.gmail.com> <3ff63f9b0606190220t572b7870hd0d16689953b41dc@mail.gmail.com> <4b6f054f0606190326q6c7cb2bcyc43c49f039da17f7@mail.gmail.com> <3ff63f9b0606190742xa90a235jef79701ccf80b7ca@mail.gmail.com> Message-ID: <4b6f054f0606190814v6c6a35e2p7161906b10cfb571@mail.gmail.com> On 6/19/06, Jonas Pfenniger wrote: > On 19/06/06, TRANS wrote: > > s/that's a interesting though/ that's an interesting thought/ > > > > I'm so tired of misspelling "thought" as "though" (two terribly > > unphonetic words to begin with) that I'm just NOT going to spell it > > that way any more! From now on it' s "thot"!!! > > :-p > > In general ann allows more flexibility isn't it ? Yes, but I'm thinking YAGNI in this case. But I'll consider it more. And also it would be easy enough to change later if the need arises. Still wondering about the file name. Hmm.... Guess I'll just rename it command.rb since that's the simplist option. T. From george.moschovitis at gmail.com Mon Jun 19 11:56:59 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Mon, 19 Jun 2006 18:56:59 +0300 Subject: [Nitro] opinion on console command facet In-Reply-To: <4b6f054f0606190201k1e03cf11g3b274b64564afc32@mail.gmail.com> References: <4b6f054f0606181750t956c27fq484f698909cdda59@mail.gmail.com> <3ff63f9b0606182341l7e798216s68a73d40ecf34c4b@mail.gmail.com> <4b6f054f0606190201k1e03cf11g3b274b64564afc32@mail.gmail.com> Message-ID: > > class MyCmd < Console::Command > > def something > > puts "Something!" > > end > > ann :something, :doc => "This does something" > > end I was thinking about using annotations too, to stay more unifor with the rest of facets (and nitro) -g. -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Mon Jun 19 11:58:23 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Mon, 19 Jun 2006 18:58:23 +0300 Subject: [Nitro] litte patch to og/relation.rb In-Reply-To: <44955573.8070503@gmx.de> References: <44955573.8070503@gmx.de> Message-ID: thanks! -g. On 6/18/06, jfwittmann wrote: > do a modifications to symbol_to_class method in relation.rb to handle > following entity classes > > module Gallery::Models > class Image > has_one :image_detail > end > > class ImageDetail > belongs_to :image > end > end > > cu, Felix > > > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > > > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Mon Jun 19 11:59:17 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Mon, 19 Jun 2006 18:59:17 +0300 Subject: [Nitro] fix problem in admin controller with plural names In-Reply-To: <4495D00B.5060901@gmx.de> References: <4495D00B.5060901@gmx.de> Message-ID: thanks! -g. On 6/19/06, jfwittmann wrote: > This will now working with the fix: > > class AdminController; > scaffold Genus, :plural_name => 'generis' > scaffold Species, :plural_name => 'species'; > end > > cu, Felix > > > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > > > -- http://www.gmosx.com http://www.nitroproject.org From surrender_it at yahoo.it Mon Jun 19 18:30:14 2006 From: surrender_it at yahoo.it (gabriele renzi) Date: Tue, 20 Jun 2006 00:30:14 +0200 Subject: [Nitro] Gen Form not working without Og.setup In-Reply-To: <287d732edf715bbb048420aa22ef0da5@oggu.de> References: <287d732edf715bbb048420aa22ef0da5@oggu.de> Message-ID: Fabian Buch ha scritto: > I just tested gen form which didn't work. After some debugging I had > the feeling my model wasn't enchanted yet, so I put an Og.setup into > FormGen.setup method, after the require of my model and it worked. > > Did anyone ever test form gen? in my rewrite of gen I did, and it works as expected, but it did even before my rewrite, are you using repo.nitroproject.org? (I'm on devlab ATM) -- blog en: http://www.riffraff.info blog it: http://riffraff.blogsome.com jabber : rff.rff at gmail dot com From bryan.a.soto at gmail.com Tue Jun 20 02:43:44 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Mon, 19 Jun 2006 23:43:44 -0700 Subject: [Nitro] fix problem in admin controller with plural names In-Reply-To: <4495D00B.5060901@gmx.de> References: <4495D00B.5060901@gmx.de> Message-ID: On 6/18/06, jfwittmann wrote: > This will now working with the fix: > > class AdminController; > scaffold Genus, :plural_name => 'generis' > scaffold Species, :plural_name => 'species'; > end > I'm not sure why, but the example you give seems very familiar... Anyway, thanks for the patch. It's been applied to devlab. > cu, Felix > From bryan.a.soto at gmail.com Tue Jun 20 02:47:06 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Mon, 19 Jun 2006 23:47:06 -0700 Subject: [Nitro] litte patch to og/relation.rb In-Reply-To: <44955573.8070503@gmx.de> References: <44955573.8070503@gmx.de> Message-ID: On 6/18/06, jfwittmann wrote: > do a modifications to symbol_to_class method in relation.rb to handle > following entity classes > > module Gallery::Models > class Image > has_one :image_detail > end > > class ImageDetail > belongs_to :image > end > end > Would it be possible for you to supply a testcase to go with this? I had a go with the example you gave, but had no luck making it work. Thanks, Bryan From james.britt at gmail.com Tue Jun 20 13:35:41 2006 From: james.britt at gmail.com (James Britt) Date: Tue, 20 Jun 2006 10:35:41 -0700 Subject: [Nitro] RDog ping Message-ID: <449831ED.1030908@gmail.com> I've been busy, but still interested in getting a better Ruby API search and comment tool up on ruby-doc.org. Both RDog and Rannotate take a similar approach: use rdoc to create a set of base files, then feed those files into some processor. Rannotate has rdoc generate SQL, and then the rest is basically a Rails app that allows for searching and commenting. RDoc goes for a yaml intermediate format, which I find more interesting, because it seems like it would lend itself to assorted data manipulation tools. But, last I checked, it was barfing on various files (or at least had issues when I tried running it over the Ruby core). However, there was another Make RDoc Better project, Rue, that included a YAML output formatter. (Rue created nice-looking rdoc pages that uses XMLHttpRequest for neat-o Web 2.0 goodness. Quite nice, really.) I took a look at the YAML it creates, and it appears, at first glance, complete. (I've spent time trying to get Rdoc to emit useful XML; the default XML is heavy with presentation markup and light on semantic metadata.) I also ran the rue template over the core Ruby source; it ran quite fast, and produce an 88K+ YAML file. (I've not inspected it for completeness.) So the rue template may solve at least one issue I've seen with RDog. If the YAML is complete (meaning it has both all the basic for all classes, modules, methods, etc, as well as data required to disambiguate when a method is part of the base class definition, and when it gets added when loading a module; Rannotate, for example, does not seem to manage this distinction) then the next step is using the corresponding Ruby objects to drive a viewing/searching/commenting system. Thoughts? The Rue project seems to have vanished, but I have the files if anyone is interested in playing around. (One thing I like about Og is that, once you have Ruby objects, you have automagical data persistence; that part Just Happens. And the YAML format gives us at least the basis for a set of Ruby objects that define API data.) -- James Britt http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - The Journal By & For Rubyists http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.30secondrule.com - Building Better Tools From transfire at gmail.com Tue Jun 20 12:50:44 2006 From: transfire at gmail.com (TRANS) Date: Tue, 20 Jun 2006 12:50:44 -0400 Subject: [Nitro] opinion on console command facet In-Reply-To: References: <4b6f054f0606181750t956c27fq484f698909cdda59@mail.gmail.com> <3ff63f9b0606182341l7e798216s68a73d40ecf34c4b@mail.gmail.com> <4b6f054f0606190201k1e03cf11g3b274b64564afc32@mail.gmail.com> Message-ID: <4b6f054f0606200950v3245befi5477efe7cb30d6c2@mail.gmail.com> In working on this Help feature of Console::Command I'm led right back to my original opinion -- it's more trouble then its worth. Doing it this way assumes all help cases fit the same mold. But there are many formating issues that can arise. So this simply will not satisfy anyone except for the crudest of cases. IMO when you factor in the lack of control over the output, it's actually more trouble to use these special help clauses then it is just to do: HELP <<-END what ever you want END def help puts HELP end I'm going to remark out the feature for now. It can be revisisted later if someone one else wants to have a look. T. From neokolor at gmx.de Tue Jun 20 13:01:32 2006 From: neokolor at gmx.de (jfwittmann) Date: Tue, 20 Jun 2006 19:01:32 +0200 Subject: [Nitro] litte patch to og/relation.rb In-Reply-To: References: <44955573.8070503@gmx.de> Message-ID: <449829EC.6000609@gmx.de> Without my patch og can't handle following module/class structure. The problem was a regex. With the old regex you can only handle og classes that are in one module but not in a sub-Module too. That does mean you could handle og classes like: Module->Class but with my changes you can handle classes like too: Module->Module*n->Class My intention for this was use og in camping like classes too. Ok ? example: require 'og' module Gallery def self.create Og.start Og.thread_safe=false end end module Gallery::Models class Image prop_accessor :filename, String has_one :image_details end class ImageDetail prop_accessor :comment, String belongs_to :image end end Gallery.create imgd = Gallery::Models::ImageDetail.new imgd.save img = Gallery::Models::Image.new img.save Bryan Soto wrote: > Would it be possible for you to supply a testcase to go with this? I > had a go with the example you gave, but had no luck making it work. > > Thanks, > > Bryan > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > > > From billk at cts.com Tue Jun 20 23:09:21 2006 From: billk at cts.com (Bill Kelly) Date: Tue, 20 Jun 2006 20:09:21 -0700 Subject: [Nitro] [BUG?] nitro/helper/xhtml.rb options Message-ID: <06aa01c694e0$17afcc20$6442a8c0@musicbox> Hi, I'm wondering if the "to_i" is intentional in the following code: nitro-0.30.0/lib/nitro/helper/xhtml.rb ------------------------------------------- def options(options = {}) if labels = options[:labels] || options[:labels_values] str = '' values = options[:values] || options[:labels_values] || (0...labels.size).to_a selected = (options[:selected] || -1).to_i # ^^^^ ------------------------------------------- It's forcing selected to be an integer, but my values are strings, so the conditional here was always false: ------------------------------------------- if value == selected str << %|| else str << %|| end ------------------------------------------- I've removed the to_i, and the method now behaves as expected. Regards, Bill From transfire at gmail.com Wed Jun 21 02:35:20 2006 From: transfire at gmail.com (TRANS) Date: Wed, 21 Jun 2006 02:35:20 -0400 Subject: [Nitro] RDog ping In-Reply-To: <449831ED.1030908@gmail.com> References: <449831ED.1030908@gmail.com> Message-ID: <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> I like the sound of this Rue project. Is it a complete RDoc replacement, or does it just mod Roc? T. From neokolor at gmx.de Tue Jun 20 13:12:19 2006 From: neokolor at gmx.de (jfwittmann) Date: Tue, 20 Jun 2006 19:12:19 +0200 Subject: [Nitro] fix problem in admin controller with plural names In-Reply-To: References: <4495D00B.5060901@gmx.de> Message-ID: <44982C73.10205@gmx.de> Ok, sorry not good example. not really explain the problem. Without my patch you get incorrect links to the list action in the AdminController class. Now you have correct plural links to entity classes like: http://localhost:9999/admin/generis/list http://localhost:9999/admin/species/list etc. Felix Bryan Soto wrote: > On 6/18/06, jfwittmann wrote: > >> This will now working with the fix: >> >> class AdminController; >> scaffold Genus, :plural_name => 'generis' >> scaffold Species, :plural_name => 'species'; >> end >> >> > > I'm not sure why, but the example you give seems very familiar... > > Anyway, thanks for the patch. It's been applied to devlab. > > >> cu, Felix >> >> > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060621/d24844b3/attachment.html From aglarond at gmail.com Wed Jun 21 07:05:41 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Wed, 21 Jun 2006 13:05:41 +0200 Subject: [Nitro] [BUG?] nitro/helper/xhtml.rb options In-Reply-To: <06aa01c694e0$17afcc20$6442a8c0@musicbox> References: <06aa01c694e0$17afcc20$6442a8c0@musicbox> Message-ID: <55c107bf0606210405p386b9ef7he0a8e470a219823e@mail.gmail.com> Hi Bill, On 6/21/06, Bill Kelly wrote: > I'm wondering if the "to_i" is intentional in the following code: > > selected = (options[:selected] || -1).to_i > # ^^^^ > ------------------------------------------- If this is changed, then the following ticket can be ignored: http://devlab.oree.ch/trac/glycerin/ticket/34 One or the other should happen, though, IMO. It would make the comparison as mentioned in the ticket consistent. - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060621/e9521abe/attachment.html From aglarond at gmail.com Wed Jun 21 07:09:09 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Wed, 21 Jun 2006 13:09:09 +0200 Subject: [Nitro] RDog ping In-Reply-To: <449831ED.1030908@gmail.com> References: <449831ED.1030908@gmail.com> Message-ID: <55c107bf0606210409t3f89a56aw5043f1774dd50bb0@mail.gmail.com> Hi James, On 6/20/06, James Britt wrote: > > > The Rue project seems to have vanished, but I have the files if anyone > is interested in playing around. > I'd be interested. My time is limited, but I'd still like to take a look. Can you make these files available publically somewhere? Maybe on ruby-doc.org? Thanks, - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060621/65981874/attachment.html From fabian at oggu.de Wed Jun 21 07:41:13 2006 From: fabian at oggu.de (Fabian Buch) Date: Wed, 21 Jun 2006 13:41:13 +0200 Subject: [Nitro] Gen Form not working without Og.setup In-Reply-To: References: <287d732edf715bbb048420aa22ef0da5@oggu.de> Message-ID: <4636e46f5853c32a32f9601148638cb3@oggu.de> Am 20.06.2006 um 00:30 schrieb gabriele renzi: > Fabian Buch ha scritto: >> Did anyone ever test form gen? > > in my rewrite of gen I did, and it works as expected, but it did even > before my rewrite, are you using repo.nitroproject.org? (I'm on devlab > ATM) devlab but as it is at the moment it's pretty useless for me anyway. Thought of rewriting it as well, but since exams are around the corner I shouldn't do anything in that direction, so I'm pretty curious on how your new gen will look like after my exams (in about 6 weeks). Fabian From billk at cts.com Wed Jun 21 11:43:25 2006 From: billk at cts.com (Bill Kelly) Date: Wed, 21 Jun 2006 08:43:25 -0700 Subject: [Nitro] [BUG?] nitro/helper/xhtml.rb options References: <06aa01c694e0$17afcc20$6442a8c0@musicbox> <55c107bf0606210405p386b9ef7he0a8e470a219823e@mail.gmail.com> Message-ID: <076701c69549$6fa01070$6442a8c0@musicbox> From: Dimitri Aivaliotis > > If this is changed, then the following ticket can be ignored: > > http://devlab.oree.ch/trac/glycerin/ticket/34 > > > One or the other should happen, though, IMO. It would make the > comparison as mentioned in the ticket consistent. Hi Dimitri, Thanks for the link. I've added a comment there. Regards, Bill From james.britt at gmail.com Wed Jun 21 10:55:09 2006 From: james.britt at gmail.com (James Britt) Date: Wed, 21 Jun 2006 07:55:09 -0700 Subject: [Nitro] RDog ping In-Reply-To: <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> References: <449831ED.1030908@gmail.com> <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> Message-ID: <44995DCD.1030102@gmail.com> TRANS wrote: > I like the sound of this Rue project. Is it a complete RDoc > replacement, or does it just mod Roc? It uses the built-in rdoc to drive the Rue template. Normally (I think) the output is a set of HTML pages that use AJAX to fetch and render the API content. Not sure where the YAML is created (perhaps it feeds the sever for delivering content; I've only poked around, not properly run it). But it does include an rdoc template that generates the YAML (again, driven by the built-in rdoc that Dave Thomas wrote). -- James Britt http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - The Journal By & For Rubyists http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://web2.0validator.com - We're the Dot in Web 2.0 From transfire at gmail.com Wed Jun 21 12:53:57 2006 From: transfire at gmail.com (TRANS) Date: Wed, 21 Jun 2006 12:53:57 -0400 Subject: [Nitro] Facets 1.4.2 Message-ID: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> Facets 1.4.2 has been released. With any luck this will be the official 1.4 release. Major changes: * consoleapp.rb is now called command.rb and Console::Command now supports multi-flags (eg. -xvzf). * classinherit.rb is gone. Use classmethods.rb or better module/class_extension. * Added kernel __method__ and __callee__. Appearently these will be standard in Ruby 2.0. They replace the old #method_name and #methname. * Added yet another alias for (class < Following Facets, Reap 6.0.2 is up. Same deal, this should be pretty close to final Reap 6 release. I fixed a bug in the gem packager and I added a backup task. Example ProjectInfo for Reap: backup: !!backup dir: ../BACKUPS Which will backup Reap in a the BACKUPS directy just above the project directory. It stores the backup in that directory under the name of the project folder and subdirectory of the date. Eg. BACKUPS/reap/2006_06_21/reap/. Since it is a brand new task, as a precautionary measure, please make a manual backup before tryin it out. T. From transfire at gmail.com Wed Jun 21 13:59:24 2006 From: transfire at gmail.com (TRANS) Date: Wed, 21 Jun 2006 13:59:24 -0400 Subject: [Nitro] Okay using Nitro as Front Line? Message-ID: <4b6f054f0606211059o5b37c95fibd9bec652193664a@mail.gmail.com> BTW, just to be sure. Is it okay with everyone that I'm using Nitro dev list as the front for Facets and Reap development? T. From vagabond at cataclysm-software.net Wed Jun 21 14:05:13 2006 From: vagabond at cataclysm-software.net (Andrew Thompson) Date: Wed, 21 Jun 2006 14:05:13 -0400 Subject: [Nitro] RDog ping In-Reply-To: <44995DCD.1030102@gmail.com> References: <449831ED.1030908@gmail.com> <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> <44995DCD.1030102@gmail.com> Message-ID: <20060621180513.GA12275@hijacked.us> On Wed, Jun 21, 2006 at 07:55:09AM -0700, James Britt wrote: > TRANS wrote: > > I like the sound of this Rue project. Is it a complete RDoc > > replacement, or does it just mod Roc? > > It uses the built-in rdoc to drive the Rue template. Normally (I think) > the output is a set of HTML pages that use AJAX to fetch and render the > API content. Not sure where the YAML is created (perhaps it feeds the > sever for delivering content; I've only poked around, not properly run it). > > But it does include an rdoc template that generates the YAML (again, > driven by the built-in rdoc that Dave Thomas wrote). > Rdoc allows you to write new 'generators', it ships with 3; the xml the html and the ri ones, anyone can develop more but it's a real pain in the ass to do so. Andrew From lasso at lassoweb.se Wed Jun 21 14:21:35 2006 From: lasso at lassoweb.se (Lars Olsson) Date: Wed, 21 Jun 2006 20:21:35 +0200 Subject: [Nitro] "magic" mapping of controllers possible? Message-ID: <44998E2F.2080007@lassoweb.se> Hi list! When mapping multiple controllers (via Nitro::Server.map) all Controller classes has to be loaded/required before I put them in the map. To my understanding this means that even if I only visit a particular url (/foo) Nitro still have to load both the DefaultController and the BarController. Is this correct? # sample run.rb require 'nitro' class DefaultController def index "DefaultController" end end class FooController def index "FooController" end end class BarController def index "BarController" end end Nitro::Server.map = { '/' => DefaultController, '/foo' => FooController, '/bar' => BarController } Nitro.run # end sample Is it in any way possible to create a "magic" map that maps the request name to a partical controller, i.e: "/" maps to controllers/DefaultController (special case) "/foo" maps to controllers/FooController "/bar" maps to controllers/BarController "/baz" maps to controllers/BazController # you get the idea... Kindly /Lasso -- ________________________________________ Lars Olsson lasso at lassoweb.se http://www.lassoweb.se/ From james.britt at gmail.com Wed Jun 21 14:52:21 2006 From: james.britt at gmail.com (James Britt) Date: Wed, 21 Jun 2006 11:52:21 -0700 Subject: [Nitro] RDog ping In-Reply-To: <20060621180513.GA12275@hijacked.us> References: <449831ED.1030908@gmail.com> <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> <44995DCD.1030102@gmail.com> <20060621180513.GA12275@hijacked.us> Message-ID: <44999565.8010105@gmail.com> Andrew Thompson wrote: > On Wed, Jun 21, 2006 at 07:55:09AM -0700, James Britt wrote: > >>TRANS wrote: >> >>>I like the sound of this Rue project. Is it a complete RDoc >>>replacement, or does it just mod Roc? >> >>It uses the built-in rdoc to drive the Rue template. Normally (I think) >>the output is a set of HTML pages that use AJAX to fetch and render the >>API content. Not sure where the YAML is created (perhaps it feeds the >>sever for delivering content; I've only poked around, not properly run it). >> >>But it does include an rdoc template that generates the YAML (again, >>driven by the built-in rdoc that Dave Thomas wrote). >> > > Rdoc allows you to write new 'generators', it ships with 3; the xml the > html and the ri ones, anyone can develop more but it's a real pain in > the ass to do so. Rue is a template; if I run rdoc --template 'rue' -1 I get (usually) a slew of data/*.txt files and an HTML page or so that will use Ajax to render those data files. If I run rdoc --template 'rue-yaml' -1 > my-data.yml I get a big YAML file. But Rue also includes rdoc-hacks.rb, which mods the default rdoc behavior (which may be a simpler approach than writing a generator from scratch). The YAML emitted by Rue looks much much nicer than the default ri/rdoc YAML, which embeds object types into the text. The Rue YAML is simply structure tagged text; you can play with a hash of arrays of hashes (r arrays ...) and reorganize it as you like. You can grab Rue here (an unofficial download spot; the actual Ruedoc project seems to have withered away): http://www.ruby-doc.org/download/code/ruedoc-0.1.2.tar.gz One thought was to load in the YAML and hold a custom API data-model in memory, unnormalized and optimized for searching and commenting. (Though I wonder if Madeleine might be a fit as well). And, as with Madeleine, have it back itself up with periodic snapshots, using Og + Kirbybase or Sqlite. If the memory footprint isn't too great, it might work as a standalone, desktop Ruby API server, faster than ri (which is parsing YAML off disk on every query), with options to add your own notes and comments. Bundle it up with Nitro+Mongrel, some nice AJAX calls, or whatever. -- James Britt "In Ruby, no one cares who your parents were, all they care about is if you know what you are talking about." - Logan Capaldo From james.britt at gmail.com Wed Jun 21 16:40:26 2006 From: james.britt at gmail.com (James Britt) Date: Wed, 21 Jun 2006 13:40:26 -0700 Subject: [Nitro] RDog ping In-Reply-To: <55c107bf0606210409t3f89a56aw5043f1774dd50bb0@mail.gmail.com> References: <449831ED.1030908@gmail.com> <55c107bf0606210409t3f89a56aw5043f1774dd50bb0@mail.gmail.com> Message-ID: <4499AEBA.3030105@gmail.com> Dimitri Aivaliotis wrote: > Hi James, > > On 6/20/06, James Britt wrote: > >> >> >> The Rue project seems to have vanished, but I have the files if anyone >> is interested in playing around. >> > > I'd be interested. My time is limited, but I'd still like to take a look. > Can you make these files available publically somewhere? Maybe on > ruby-doc.org? http://www.ruby-doc.org/download/code/ruedoc-0.1.2.tar.gz However, in doing some quick testing, it seems that Rue has the same affliction as general RDoc: It doesn't think that attribute accessor methods are methods. More precisely, methods defined using the various attr_* meta-code methods do not get yamlized by Rue. RDoc (by default) will find these, but does not document them as methods; they get a special section reserved for attributes, and methods defined this way do not appear in the list of defined methods. I'm guessing then that the Rue code is not seeking these out, and only process those methods rdoc considers to be methods. -- James Britt "In Ruby, no one cares who your parents were, all they care about is if you know what you are talking about." - Logan Capaldo From transfire at gmail.com Wed Jun 21 17:04:04 2006 From: transfire at gmail.com (TRANS) Date: Wed, 21 Jun 2006 17:04:04 -0400 Subject: [Nitro] RDog ping In-Reply-To: <44995DCD.1030102@gmail.com> References: <449831ED.1030908@gmail.com> <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> <44995DCD.1030102@gmail.com> Message-ID: <4b6f054f0606211404n72faa93an1d3ea69e4d0faefc@mail.gmail.com> On 6/21/06, James Britt wrote: > TRANS wrote: > > I like the sound of this Rue project. Is it a complete RDoc > > replacement, or does it just mod Roc? > > It uses the built-in rdoc to drive the Rue template. Normally (I think) > the output is a set of HTML pages that use AJAX to fetch and render the > API content. Not sure where the YAML is created (perhaps it feeds the > sever for delivering content; I've only poked around, not properly run it). > > But it does include an rdoc template that generates the YAML (again, > driven by the built-in rdoc that Dave Thomas wrote). Ah, okay. Well, that's sort of too bad in a way. I think a "Rdoc2" is sorely needed. I tried creating a template for RDoc once and about lost my wits. It was simply too hard. T. From james.britt at gmail.com Wed Jun 21 17:14:33 2006 From: james.britt at gmail.com (James Britt) Date: Wed, 21 Jun 2006 14:14:33 -0700 Subject: [Nitro] RDog ping In-Reply-To: <4499AEBA.3030105@gmail.com> References: <449831ED.1030908@gmail.com> <55c107bf0606210409t3f89a56aw5043f1774dd50bb0@mail.gmail.com> <4499AEBA.3030105@gmail.com> Message-ID: <4499B6B9.8080600@gmail.com> James Britt wrote: > Dimitri Aivaliotis wrote: > >>Hi James, >> >>On 6/20/06, James Britt wrote: >> >> >>> >>>The Rue project seems to have vanished, but I have the files if anyone >>>is interested in playing around. >>> >> >>I'd be interested. My time is limited, but I'd still like to take a look. >>Can you make these files available publically somewhere? Maybe on >>ruby-doc.org? > > > http://www.ruby-doc.org/download/code/ruedoc-0.1.2.tar.gz > > > However, in doing some quick testing, it seems that Rue has the same > affliction as general RDoc: It doesn't think that attribute accessor > methods are methods. Looking at rdoc-hacks, there is a method named 'normalize' that grabs a large data structure of rdoc details and does some basic reorganization. It was not looking for attributes; I changed my copy, so they now appear in the resulting YAML. But, other problem: No tracking of what file created what method when the same class is defined in multiple places. -- James Britt "Design depends largely on constraints." - Charles Eames From james.britt at gmail.com Wed Jun 21 17:20:54 2006 From: james.britt at gmail.com (James Britt) Date: Wed, 21 Jun 2006 14:20:54 -0700 Subject: [Nitro] RDog ping In-Reply-To: <4b6f054f0606211404n72faa93an1d3ea69e4d0faefc@mail.gmail.com> References: <449831ED.1030908@gmail.com> <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> <44995DCD.1030102@gmail.com> <4b6f054f0606211404n72faa93an1d3ea69e4d0faefc@mail.gmail.com> Message-ID: <4499B836.4020607@gmail.com> TRANS wrote: > On 6/21/06, James Britt wrote: > >>But it does include an rdoc template that generates the YAML (again, >>driven by the built-in rdoc that Dave Thomas wrote). > > > Ah, okay. Well, that's sort of too bad in a way. I think a "Rdoc2" is > sorely needed. I tried creating a template for RDoc once and about > lost my wits. It was simply too hard. > I've done OK modifying existing templates, fixing up bad XHTML and adding in some details, but determining just how template variables get set is tedious. On the bright side, looking at ruedoc and rdoc-hacks, one can get a fairly straight-forward data structure with the rdoc details, and them use that to drive a template. What I'm looking at now is how to track the name of the file where a method/const/attr is defined, so that, for example, one can look at Array and see that it can have a to_yaml method, but only if you include another file. One thought: ruedoc/yamlize each file, one-by-one, and then let rdog manage the interleaving of classes and methods. (This might make it easier to handle arbitrary rdoc data from gems and such; just parse and load, and let rdog do the rest.) -- James Britt http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - The Journal By & For Rubyists http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys http://www.30secondrule.com - Building Better Tools From lists at davidlangston.com Wed Jun 21 17:29:16 2006 From: lists at davidlangston.com (Dave Langston) Date: Wed, 21 Jun 2006 14:29:16 -0700 Subject: [Nitro] [PATCH] Fix Og revisable.rb to correctly number revisions Message-ID: <4499BA2C.8090701@davidlangston.com> Attached is a patch the modifies glue/revisable.rb in Og so that revisions are correctly numbered (particularly if you set the initial revision yourself)... before the patch, the revision number is incremented before saving the revision to the revisions table. Patch moves the increment of revision number to after the save. rgds, Dave Langston -------------- next part -------------- A non-text attachment was scrubbed... Name: revisable.rb.patch.gz Type: application/gzip Size: 2848 bytes Desc: not available Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060621/7de7d132/attachment.bin From bryan.a.soto at gmail.com Wed Jun 21 18:18:40 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Wed, 21 Jun 2006 15:18:40 -0700 Subject: [Nitro] Facets 1.4.2 In-Reply-To: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> References: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> Message-ID: On 6/21/06, TRANS wrote: > Facets 1.4.2 has been released. With any luck this will be the > official 1.4 release. Major changes: > Hi Trans, While looking for problems with Nitro/Og, I ran into this right off the bat. I'll let you know what I find out. $ RUBYOPT=rubygems ruby script/test.rb og Loading tests for 'og'. /usr/lib/ruby/gems/1.8/gems/facets-1.4.2/lib/facets/more/paramix.rb:120:in `define_method': empty symbol string (ArgumentError) from /usr/lib/ruby/gems/1.8/gems/facets-1.4.2/lib/facets/more/paramix.rb:120:in `extend' from /usr/lib/ruby/gems/1.8/gems/facets-1.4.2/lib/facets/more/paramix.rb:118:in `extend' from /usr/lib/ruby/gems/1.8/gems/facets-1.4.2/lib/facets/more/paramix.rb:117:in `extend' from /usr/lib/ruby/gems/1.8/gems/facets-1.4.2/lib/facets/core/module/class_extension.rb:76:in `append_features' from /usr/lib/ruby/gems/1.8/gems/facets-1.4.2/lib/facets/more/paramix.rb:104:in `include' from /usr/lib/ruby/1.8/yaml/syck.rb:15 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from /usr/lib/ruby/1.8/yaml.rb:11 ... 16 levels... from /usr/lib/ruby/gems/1.8/gems/facets-1.4.2/lib/facets/core/dir/self/ls_r.rb:11:in `recurse' from script/test.rb:18 from script/test.rb:17 from script/test.rb:15 From transfire at gmail.com Wed Jun 21 18:18:53 2006 From: transfire at gmail.com (TRANS) Date: Wed, 21 Jun 2006 18:18:53 -0400 Subject: [Nitro] hey Message-ID: <4b6f054f0606211518k25ae9194q576dac7aa47467f6@mail.gmail.com> George, T. From transfire at gmail.com Wed Jun 21 18:41:03 2006 From: transfire at gmail.com (TRANS) Date: Wed, 21 Jun 2006 18:41:03 -0400 Subject: [Nitro] Facets 1.4.2 In-Reply-To: References: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> Message-ID: <4b6f054f0606211541l3590d597u4a02d3685850ec4b@mail.gmail.com> I know what it is. It's trying to define a method with a name based on the module's name, but the module is anonymous, so it has no name. Now what to do about it? Either module#basname can return some special method name for anonymous modules (but what exactly?), or paramix can skip the definition of that method when it come across an anonymous module, or perhaps paramix should not be defining those methods at all, but it sure is convenient for accessing the module's include parameters. T. From bryan.a.soto at gmail.com Wed Jun 21 18:42:16 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Wed, 21 Jun 2006 15:42:16 -0700 Subject: [Nitro] Facets 1.4.2 In-Reply-To: References: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> Message-ID: lib/facets/core/module/basename.rb:20 def basename + if self.name and not self.name.empty? - if self.name It seems that mod.name is returning "" (empty string), not nil. Please make as elegant as you wish. :) Bryan From transfire at gmail.com Wed Jun 21 18:53:21 2006 From: transfire at gmail.com (TRANS) Date: Wed, 21 Jun 2006 18:53:21 -0400 Subject: [Nitro] Facets 1.4.2 In-Reply-To: References: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> Message-ID: <4b6f054f0606211553n58c9dff4l940d3b719559b0b4@mail.gmail.com> On 6/21/06, Bryan Soto wrote: > lib/facets/core/module/basename.rb:20 > > def basename > + if self.name and not self.name.empty? > - if self.name > > It seems that mod.name is returning "" (empty string), not nil. Please > make as elegant as you wish. :) Yea, but self.name returns "" too, so maybe basnema should do the same. If you look at waht it returns when fixed, like you show, then the basename is something like: Module_0xb7cd02cc And that's pretty useless. So I think I'll make paramix skip anonymous modules. Obviously if they don;t have a name, no one's planning to reference them manually either. Lets try this: def basename if name and not name.empty? name.gsub(/^.*::/, '') end end And in paramix.rb theres two places essentially the same/ Change to: mixin_parameters[mod] = params if mod.basename? define_method( mod.basename ) do |key| if params.key?(key) params[key] else super if defined?( super ) end end end See any problems with that. Could you test that? Thanks, T. From transfire at gmail.com Wed Jun 21 19:03:07 2006 From: transfire at gmail.com (TRANS) Date: Wed, 21 Jun 2006 19:03:07 -0400 Subject: [Nitro] Facets 1.4.2 In-Reply-To: <4b6f054f0606211553n58c9dff4l940d3b719559b0b4@mail.gmail.com> References: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> <4b6f054f0606211553n58c9dff4l940d3b719559b0b4@mail.gmail.com> Message-ID: <4b6f054f0606211603t1d203552x58366d2862838726@mail.gmail.com> s/mod.basename?/mod.basename/ T. From bryan.a.soto at gmail.com Wed Jun 21 19:40:34 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Wed, 21 Jun 2006 16:40:34 -0700 Subject: [Nitro] Facets 1.4.2 In-Reply-To: <4b6f054f0606211553n58c9dff4l940d3b719559b0b4@mail.gmail.com> References: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> <4b6f054f0606211553n58c9dff4l940d3b719559b0b4@mail.gmail.com> Message-ID: On 6/21/06, TRANS wrote: > On 6/21/06, Bryan Soto wrote: > > lib/facets/core/module/basename.rb:20 > > > > def basename > > + if self.name and not self.name.empty? > > - if self.name > > > > It seems that mod.name is returning "" (empty string), not nil. Please > > make as elegant as you wish. :) > > Yea, but self.name returns "" too, so maybe basnema should do the > same. If you look at waht it returns when fixed, like you show, then > the basename is something like: > Actually, that was a typo on my part from jumping back and forth between paramix.rb and basename.rb. I meant self.name rather than mod.name in the above. The error was due to '' (empty string) being converted to a symbol in the define_method call, so I think you have to return a string that can be converted to a symbol. That's probably why generated the string based off of inspect below. > Module_0xb7cd02cc > > See any problems with that. Could you test that? > First off, there's a missing method, basename?. I went with # paramix.rb mixin_parameters[mod] = params + unless mod.basename.to_s.empty? - if mod.basename? at the moment and am back to fixing requires as I'm activating an older version of facets. I'll let you know how it goes. Bryan From bryan.a.soto at gmail.com Wed Jun 21 19:42:47 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Wed, 21 Jun 2006 16:42:47 -0700 Subject: [Nitro] Facets 1.4.2 In-Reply-To: <4b6f054f0606211603t1d203552x58366d2862838726@mail.gmail.com> References: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> <4b6f054f0606211553n58c9dff4l940d3b719559b0b4@mail.gmail.com> <4b6f054f0606211603t1d203552x58366d2862838726@mail.gmail.com> Message-ID: On 6/21/06, TRANS wrote: > s/mod.basename?/mod.basename/ > Ah, I see. Okay, made your changes and am back to updating to Facets 1.4.2. From bryan.a.soto at gmail.com Wed Jun 21 20:13:46 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Wed, 21 Jun 2006 17:13:46 -0700 Subject: [Nitro] Facets 1.4.2 In-Reply-To: <4b6f054f0606211553n58c9dff4l940d3b719559b0b4@mail.gmail.com> References: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> <4b6f054f0606211553n58c9dff4l940d3b719559b0b4@mail.gmail.com> Message-ID: On 6/21/06, TRANS wrote: > See any problems with that. Could you test that? > Okay, I've updated the classinheirit requires appropriately and all tests pass with the changes you've specified. Hope that helps, Bryan From bryan.a.soto at gmail.com Wed Jun 21 20:45:28 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Wed, 21 Jun 2006 17:45:28 -0700 Subject: [Nitro] Devlab and Facets-1.4.2 Message-ID: I've updated devlab to Facets-1.4.2+ (the plus being the changes Trans specified in a different thread.) Please don't pull unless you make the changes Trans specified to paramix and basename or he releases an updated version of Facets. If you've already pulled this patch and don't meet the above criteria: $ darcs unpull --match "exact update-facets-1.4.2" and hit 'y' at the prompt. Bryan From transfire at gmail.com Wed Jun 21 21:28:21 2006 From: transfire at gmail.com (TRANS) Date: Wed, 21 Jun 2006 21:28:21 -0400 Subject: [Nitro] Devlab and Facets-1.4.2 In-Reply-To: References: Message-ID: <4b6f054f0606211828g1894a6a1q3e9b3b1c4f519dca@mail.gmail.com> Interesting. I didn't realize the devlab repo for Facets was already up and running. Well that's cool b/c I that was going to be my next task after offical release of 1.4. So what's the url for pulling it down? Also, Jonas said something about Trac not working with Darcs, and that maybe we should consider SVN instead? I really know very little about SVN, so I can't really judge. But it's too bad Trac doesn't work with Darcs. So why have most other Rubists gone with SVN? T. From james.britt at gmail.com Wed Jun 21 22:37:21 2006 From: james.britt at gmail.com (James Britt) Date: Wed, 21 Jun 2006 19:37:21 -0700 Subject: [Nitro] Devlab and Facets-1.4.2 In-Reply-To: <4b6f054f0606211828g1894a6a1q3e9b3b1c4f519dca@mail.gmail.com> References: <4b6f054f0606211828g1894a6a1q3e9b3b1c4f519dca@mail.gmail.com> Message-ID: <449A0261.9070006@gmail.com> TRANS wrote: > Interesting. I didn't realize the devlab repo for Facets was already > up and running. Well that's cool b/c I that was going to be my next > task after offical release of 1.4. So what's the url for pulling it > down? > > Also, Jonas said something about Trac not working with Darcs, and that > maybe we should consider SVN instead? I really know very little about > SVN, so I can't really judge. But it's too bad Trac doesn't work with > Darcs. So why have most other Rubists gone with SVN? Ah, a potential flame-filled religious war troll-fest! OK, here's my little story: Was on cvs for about forever. Like many, got fed up with the quirks. Also saw that an increasing number of Rubyists were using svn (though not ruby-lang itself; perhaps one day), and a sort of viral effect set it. To grab code for various projects I had to install and learn a little about svn. (Side note: That's how I learned about darcs, too, which I like, though I'm not sure how it compares to svn. I often suggest people consider darcs if they are shopping for source control, though.) So then I ended up on a project that had switched from cvs to svn, and after a mild learning period, I liked it. Certainly better than cvs, and there seem to be assorted tools and hooks and such that allow for a sort of ecosystem. Capistrano (AKA Switchtower, until a C&D on the name came along), for example, assumes svn. As does Trac. I've recently been giving myself a crash course in Trac. It's built for svn, and after a bit of snake rasslin' I had it up and running and working it's magic. It's hard to ignore the value of the network effect. Most developers I know or end up working with know something in the RCS/CVS/SVN gene pool. Moving from one to another is not an issue; typically, people have migrated one direction, ending up at SVN. Suggesting darcs to a team therefore can be an issue. But I know a few local people who are using Trac, so I have some resources if I need help. There are seem to be more tools and hacks that add value to svn than, say darcs. So when picking a code repo tool, one should consider both the immediate feature set and the extended value-added from 3rd-party apps and such. -- James Britt "You harmonize; then you customize." - Wilson Pickett From manveru at weez-int.com Wed Jun 21 22:51:11 2006 From: manveru at weez-int.com (Michael Fellinger) Date: Thu, 22 Jun 2006 11:51:11 +0900 Subject: [Nitro] "magic" mapping of controllers possible? In-Reply-To: <44998E2F.2080007@lassoweb.se> References: <44998E2F.2080007@lassoweb.se> Message-ID: <200606221151.11285.manveru@weez-int.com> Hey Lars, I am all for doing something like that, but the problem is that just about everybody has a different structure of the projects they work on. However, here is how i would do that stuff for my own project - possible problems that might need an additional variable or a convention in the community (imho not the worst thing, since one can override it): * the controller mapped to / is even in my own projects inconsistent, either BaseController, RootController, DefaultController, MainController, HomepageController and whatnot else... * the place where the controllers are is usually /src or /controllers - but there are endless possibilities and i have no idea where other people put their stuff into def try &block yield rescue Object false end def fetch_mount point if point == '/' file, controller = 'controller.rb', 'RootController' else base = point.gsub('/', '') file, controller = "controllers/#{base}", "#{base.capitalize}Controller" end # check if file is in $: Logger.debug 'missing #{file} for #{controller}' unless try{require file} if Module.const_defined? controller Module.const_get(controller) else raise NameError, "missing Controller #{controller} for #{point}" end end module Nitro class Server def self.automap *arr arr.flatten! Nitro::Server.map = Hash[*arr.map{|m| [m, fetch_mount(m)] }.flatten] end end end # i just worked out the one above, you can of course do it in a short and # dirty oneliner without meaningful errors :) # the directory-structure is the one i use by default %w{Root Foo Bar Baz}.each{|c| eval("class #{c}Controller; end")} # ["Root", "Foo", "Bar", "Baz"] Nitro::Server.auto_map = "/", "/foo", "/bar", "/baz" On Thursday 22 June 2006 03:21, Lars Olsson wrote: > Hi list! > > When mapping multiple controllers (via Nitro::Server.map) all Controller > classes has to be loaded/required before I put them in the map. To my > understanding this means that even if I only visit a particular url > (/foo) Nitro still have to load both the DefaultController and the > BarController. Is this correct? > > # sample run.rb > require 'nitro' > > class DefaultController > def index > "DefaultController" > end > end > > class FooController > def index > "FooController" > end > end > > class BarController > def index > "BarController" > end > end > > Nitro::Server.map = > { > '/' => DefaultController, > '/foo' => FooController, > '/bar' => BarController > } > > Nitro.run > # end sample > > Is it in any way possible to create a "magic" map that maps the request > name to a partical controller, i.e: > > "/" maps to controllers/DefaultController (special case) > "/foo" maps to controllers/FooController > "/bar" maps to controllers/BarController > "/baz" maps to controllers/BazController > # you get the idea... > > Kindly > > /Lasso From bryan.a.soto at gmail.com Thu Jun 22 01:00:12 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Wed, 21 Jun 2006 22:00:12 -0700 Subject: [Nitro] Devlab and Facets-1.4.2 In-Reply-To: <4b6f054f0606211828g1894a6a1q3e9b3b1c4f519dca@mail.gmail.com> References: <4b6f054f0606211828g1894a6a1q3e9b3b1c4f519dca@mail.gmail.com> Message-ID: On 6/21/06, TRANS wrote: > Interesting. I didn't realize the devlab repo for Facets was already > up and running. Well that's cool b/c I that was going to be my next > task after offical release of 1.4. So what's the url for pulling it > down? > I meant I updated the devlab repo for Nitro/Og to be compatible with Facets-1.4.2. Sorry for the confusion. > Also, Jonas said something about Trac not working with Darcs, and that > maybe we should consider SVN instead? I really know very little about > SVN, so I can't really judge. But it's too bad Trac doesn't work with > Darcs. So why have most other Rubists gone with SVN? You can use tailor as a bridge between subversion and darcs. That's our current plan. Unfortunately, there is a bug in darcs that affects one of our patches that's preventing us from using it. Somehow, we have a patch that both adds and removes the same set of files and the command tailor uses to sync the two repos doesn't list the adds. It doesn't appear to be a common problem though. I can't speak for Jonas, but if you plan to host on devlab, perhaps he'd be willing to use subversion? Bryan From bryan.a.soto at gmail.com Thu Jun 22 01:20:48 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Wed, 21 Jun 2006 22:20:48 -0700 Subject: [Nitro] Gen Form not working without Og.setup In-Reply-To: <4636e46f5853c32a32f9601148638cb3@oggu.de> References: <287d732edf715bbb048420aa22ef0da5@oggu.de> <4636e46f5853c32a32f9601148638cb3@oggu.de> Message-ID: On 6/21/06, Fabian Buch wrote: > > Am 20.06.2006 um 00:30 schrieb gabriele renzi: > > Fabian Buch ha scritto: > >> Did anyone ever test form gen? > > > > in my rewrite of gen I did, and it works as expected, but it did even > > before my rewrite, are you using repo.nitroproject.org? (I'm on devlab > > ATM) > > devlab Straight devlab works fine. > but as it is at the moment it's pretty useless for me anyway. Thought > of rewriting it as well, but since exams are around the corner I > shouldn't do anything in that direction, so I'm pretty curious on how > your new gen will look like after my exams (in about 6 weeks). You could always take a sneak peek at his blog. Gabrielle posts his patches there as well. :) From james.britt at gmail.com Thu Jun 22 02:10:46 2006 From: james.britt at gmail.com (James Britt) Date: Wed, 21 Jun 2006 23:10:46 -0700 Subject: [Nitro] RDog ping In-Reply-To: <20060621180513.GA12275@hijacked.us> References: <449831ED.1030908@gmail.com> <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> <44995DCD.1030102@gmail.com> <20060621180513.GA12275@hijacked.us> Message-ID: <449A3466.5010307@gmail.com> Andrew Thompson wrote: > > Rdoc allows you to write new 'generators', it ships with 3; the xml the > html and the ri ones, anyone can develop more but it's a real pain in > the ass to do so. One approach that has floated through my mind is writing an rdoc HTML template that emits Nitro XHTML, with each Nitro file representing a discrete Ruby source file. Then load up all the files to create the in-memory object representation of the API data. I'm not clear just how this would work, but I was struck by Nitro's bluring of XHTML files and Ruby source. Something along the lines of imaging what if the various rdoc HTML pages were active objects that could exchange messages with each other. Creating template to directly generate Ruby files might be useful, too. In the end, what I looking for is a way to think about the API data as a set of related objects, and not as a particular database schema. It's not that I'm so sure this is a good approach, more that it has an intrinsic, but ill-defined, appeal to me. I've munged ruedoc to emit a yaml file for each source file; then I wondered if I just recreated ri. Maybe, though the resulting yaml seems a bit easier to play with. A useful feature is that each yaml file knows where it came from, so any doc server that used it could pinpoint when a method was part of a mixin (such as yaml.rb) and not intrinsic to some core class. -- James Britt http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - The Journal By & For Rubyists http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.30secondrule.com - Building Better Tools From john at oxyliquit.de Thu Jun 22 08:55:01 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Thu, 22 Jun 2006 14:55:01 +0200 Subject: [Nitro] Okay using Nitro as Front Line? In-Reply-To: <4b6f054f0606211059o5b37c95fibd9bec652193664a@mail.gmail.com> References: <4b6f054f0606211059o5b37c95fibd9bec652193664a@mail.gmail.com> Message-ID: Hi, > BTW, just to be sure. Is it okay with everyone that I'm using Nitro > dev list as the front for Facets and Reap development? Totally ok by me, more interesting stuff to read :) argh, less reading/writing, more learning for exams ;/ Jo -- Feel the love http://pinkjuice.com/pics/ruby.png From george.moschovitis at gmail.com Thu Jun 22 11:11:43 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 22 Jun 2006 18:11:43 +0300 Subject: [Nitro] [PATCH] Fix Og revisable.rb to correctly number revisions In-Reply-To: <4499BA2C.8090701@davidlangston.com> References: <4499BA2C.8090701@davidlangston.com> Message-ID: Thanks for the patch! -g. On 6/22/06, Dave Langston wrote: > Attached is a patch the modifies glue/revisable.rb in Og so that > revisions are correctly numbered (particularly if you set the initial > revision yourself)... before the patch, the revision number is > incremented before saving the revision to the revisions table. Patch > moves the increment of revision number to after the save. > > rgds, > Dave Langston > > > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > > > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Thu Jun 22 11:13:57 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 22 Jun 2006 18:13:57 +0300 Subject: [Nitro] Okay using Nitro as Front Line? In-Reply-To: <4b6f054f0606211059o5b37c95fibd9bec652193664a@mail.gmail.com> References: <4b6f054f0606211059o5b37c95fibd9bec652193664a@mail.gmail.com> Message-ID: > BTW, just to be sure. Is it okay with everyone that I'm using Nitro > dev list as the front for Facets and Reap development? No problem at all ;-) I personaly love reading your posts... regards, George. -- http://www.gmosx.com http://www.nitroproject.org From james.britt at gmail.com Thu Jun 22 12:04:58 2006 From: james.britt at gmail.com (James Britt) Date: Thu, 22 Jun 2006 09:04:58 -0700 Subject: [Nitro] Integration testing in Nitro Message-ID: <449ABFAA.6000505@gmail.com> I've been digging into integration testing in Rails, and it's quite handy. http://jamis.jamisbuck.org/articles/2006/03/09/integration-testing-in-rails-1-1 Is there something like this Nitro? Thanks. -- James Britt "Programs must be written for people to read, and only incidentally for machines to execute." - H. Abelson and G. Sussman (in "The Structure and Interpretation of Computer Programs) From george.moschovitis at gmail.com Thu Jun 22 12:15:28 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 22 Jun 2006 19:15:28 +0300 Subject: [Nitro] Integration testing in Nitro In-Reply-To: <449ABFAA.6000505@gmail.com> References: <449ABFAA.6000505@gmail.com> Message-ID: Nitro 0.31.0 (in my repo) includes the new Script/ControlAdapter. This more or less provides equivalent functionality ;-) Just as in rails, this is integrated in the irb session when you run nitro console be patient for the final nitro 0.31.0 release. regards, George. On 6/22/06, James Britt wrote: > I've been digging into integration testing in Rails, and it's quite handy. > > http://jamis.jamisbuck.org/articles/2006/03/09/integration-testing-in-rails-1-1 > > Is there something like this Nitro? > > Thanks. > > -- > James Britt > > "Programs must be written for people to read, and only incidentally > for machines to execute." > - H. Abelson and G. Sussman > (in "The Structure and Interpretation of Computer Programs) > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Thu Jun 22 12:16:25 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 22 Jun 2006 19:16:25 +0300 Subject: [Nitro] Integration testing in Nitro In-Reply-To: References: <449ABFAA.6000505@gmail.com> Message-ID: > Nitro 0.31.0 (in my repo) includes the new Script/ControlAdapter. I mean ScriptAdapter / ConsoleAdapter. This a wbe adapter like webrick/fcgi etc but is driven by ruby scripts or the console (irb) instead... -g. -- http://www.gmosx.com http://www.nitroproject.org From aglarond at gmail.com Thu Jun 22 16:47:40 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Thu, 22 Jun 2006 22:47:40 +0200 Subject: [Nitro] "magic" mapping of controllers possible? In-Reply-To: <200606221151.11285.manveru@weez-int.com> References: <44998E2F.2080007@lassoweb.se> <200606221151.11285.manveru@weez-int.com> Message-ID: <55c107bf0606221347i60811d95q4f4e8927c5f50357@mail.gmail.com> Here's my version, modified (correcting a couple of small errors, including it within the main Nitro namespace, and fitting it to the way I like to lay out my sources) from what manveru wrote: module Nitro class Server class << self def try( &block ) yield rescue Object false end def fetch_mount( point ) if point == '/' return Nitro::Controller # because I like to craft my index page by hand else base = point.gsub('/', '') # now, this assumes the sources for the controllers are in # files named "app/_c.rb file, controller = "app/#{base}_c.rb", "#{base.capitalize }Controller" end # check if file is in $: Logger.debug "missing #{file} for #{controller}" unless try{require file} if ! Nitro.const_defined?( controller ) Nitro.const_get(controller) else raise NameError, "missing controller #{controller} for #{point}" end end end def self.auto_map=( *arr ) arr.flatten! Nitro::Server.map = Hash[*arr.map{|m| [m, fetch_mount(m)] }.flatten] end end end Then, your Nitro::Server.auto_map= goodness is ready to go! - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060622/587e8e1c/attachment.html From aglarond at gmail.com Thu Jun 22 17:12:20 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Thu, 22 Jun 2006 23:12:20 +0200 Subject: [Nitro] default js rendering Message-ID: <55c107bf0606221412r6fbc32c9tabf5b06bbee8d784@mail.gmail.com> Has anybody else noticed this? D, [2006-06-22T23:00:25.428061 #3634] DEBUG -- : Rendering '/news'. D, [2006-06-22T23:00:25.428820 #3634] DEBUG -- : Compiling action 'NewsController#index' D, [2006-06-22T23:00:25.430394 #3634] DEBUG -- : Compiling template 'NewsController: ./templates/news/index.xhtml' D, [2006-06-22T23:00:25.772553 #3634] DEBUG -- : Rendering '/js/prototype.js'. E, [2006-06-22T23:00:25.774243 #3634] ERROR -- : No action for path '/js/prototype.js' on 'Nitro::Controller' D, [2006-06-22T23:00:25.774729 #3634] DEBUG -- : Rendering '/error'. D, [2006-06-22T23:00:25.775546 #3634] DEBUG -- : Compiling action 'Nitro::Controller#error' D, [2006-06-22T23:00:25.776972 #3634] DEBUG -- : Compiling template 'Nitro::Controller: ~/Projects/nitro/repo/nitrohq/nitro/lib/../proto/public/error.xhtml' D, [2006-06-22T23:00:25.854314 #3634] DEBUG -- : Rendering '/js/effects.js'. E, [2006-06-22T23:00:25.855891 #3634] ERROR -- : No action for path '/js/effects.js' on 'Nitro::Controller' D, [2006-06-22T23:00:25.856354 #3634] DEBUG -- : Rendering '/error'. D, [2006-06-22T23:00:25.886745 #3634] DEBUG -- : Rendering '/js/dragdrop.js'. E, [2006-06-22T23:00:25.896419 #3634] ERROR -- : No action for path '/js/dragdrop.js' on 'Nitro::Controller' D, [2006-06-22T23:00:25.896990 #3634] DEBUG -- : Rendering '/error'. D, [2006-06-22T23:00:27.065704 #3634] DEBUG -- : File './templates/news/index.xhtml' changed all produced from one hit to /news, which is mapped to NewsController. '/' maps to Nitro::Controller. This behavior has changed from 0.29.0 to 0.30.0, and is still present in devlab. It happens with both Webrick and Mongrel. Note that when there is no 'templates/news/index.xhtml', the error does not occur. Could it have something to do with the following? from RELEASES: * More flexible Script generator, the developer can use most of its features without a Client subclass. I've not used 'gen' to setup my project, and I've got: Glue::Template.root = './templates' Yes, I can diff the sources and see what's changed. I was just curious if anybody else had noticed this behaviour, and could provide some immediate "aha!" feedback. - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060622/4bcab23d/attachment.html From bryan.a.soto at gmail.com Thu Jun 22 19:25:52 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Thu, 22 Jun 2006 16:25:52 -0700 Subject: [Nitro] default js rendering In-Reply-To: <55c107bf0606221412r6fbc32c9tabf5b06bbee8d784@mail.gmail.com> References: <55c107bf0606221412r6fbc32c9tabf5b06bbee8d784@mail.gmail.com> Message-ID: On 6/22/06, Dimitri Aivaliotis wrote: > Yes, I can diff the sources and see what's changed. I was just curious if > anybody else had noticed this behaviour, and could provide some immediate > "aha!" feedback. > Aha! ;) Beginning in 0.30.0, we removed a regex that prevented Nitro from handling query strings with a period in it. A sample use-case would be oxywtf that uses tags of '0.30.0' and passes the tag string via get. Ultimately, what is happening is that something is generating requests for /js/prototype.js and friends. Because you didn't use gen to generate the directory, those files aren't present and so the request is passed on to Nitro. So, I suppose the interesting question is, do you expect those files to be included in an html page? If so, you can just gen app a fake directory and copy the files over. If not, then we'd need to figure out where/why they're being included and check on the assumption that they'll be present. Hope that helps and feel free to ask for any clarification. Bryan From manveru at weez-int.com Thu Jun 22 21:32:36 2006 From: manveru at weez-int.com (Michael Fellinger) Date: Fri, 23 Jun 2006 10:32:36 +0900 Subject: [Nitro] "magic" mapping of controllers possible? In-Reply-To: <55c107bf0606221347i60811d95q4f4e8927c5f50357@mail.gmail.com> References: <44998E2F.2080007@lassoweb.se> <200606221151.11285.manveru@weez-int.com> <55c107bf0606221347i60811d95q4f4e8927c5f50357@mail.gmail.com> Message-ID: <200606231032.36346.manveru@weez-int.com> On Friday 23 June 2006 05:47, Dimitri Aivaliotis wrote: > Here's my version, modified (correcting a couple of small errors, including > it within the main Nitro namespace, and fitting it to the way I like to lay > out my sources) from what manveru wrote: Thanks, that looks much better (saner :) maybe i should have added that i didn't actually try the code i suggested... > > module Nitro > class Server > > class << self > > def try( &block ) > yield > rescue Object > false > end > > def fetch_mount( point ) > if point == '/' > return Nitro::Controller # because I like to craft my index page > by hand > else > base = point.gsub('/', '') > # now, this assumes the sources for the controllers are in > # files named "app/_c.rb > file, controller = "app/#{base}_c.rb", "#{base.capitalize > }Controller" > end > # check if file is in $: > Logger.debug "missing #{file} for #{controller}" unless try{require > file} > > if ! Nitro.const_defined?( controller ) one thing still disturbing me is if ! Nitro.const_defined?( controller ) could we make it into a pretty unless Nitro.const_defined? controller it just seems !good to me to use ! unless it's needed (task for today: discover the wordplay in the last sentence) > Nitro.const_get(controller) > else > raise NameError, "missing controller #{controller} for #{point}" > end > end > > end > > def self.auto_map=( *arr ) > arr.flatten! > Nitro::Server.map = Hash[*arr.map{|m| [m, fetch_mount(m)] }.flatten] > end and also, auto_map= implies that one can retrieve the map later by calling Nitro::Server.auto_map, which is not the case, but should be easy to provide an alias to Nitro::Server.map - right? :) > > end > end > > Then, your Nitro::Server.auto_map= goodness is ready to go! > > - Dimitri I think we should decide on a (very simple) default nitro-dir-structure and integrate that piece of code to make life easier... Maybe adding some Global variables for the default-locations? also, how about this snippet, since we are just at improving run.rb... module Kernel def aquire *dirs dirs.each do |dir| Dir["#{dir}/*.rb"].each do |file| require file end end end end aquire :helpers, :controllers, :models From manveru at weez-int.com Thu Jun 22 22:18:17 2006 From: manveru at weez-int.com (Michael Fellinger) Date: Fri, 23 Jun 2006 11:18:17 +0900 Subject: [Nitro] "magic" mapping of controllers possible? In-Reply-To: <200606231032.36346.manveru@weez-int.com> References: <44998E2F.2080007@lassoweb.se> <55c107bf0606221347i60811d95q4f4e8927c5f50357@mail.gmail.com> <200606231032.36346.manveru@weez-int.com> Message-ID: <200606231118.17109.manveru@weez-int.com> Sifting a bit through my codebase showed me a possible problem: '/xmlrpc' => XmlRpcController any ideas? From aglarond at gmail.com Fri Jun 23 03:11:36 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Fri, 23 Jun 2006 09:11:36 +0200 Subject: [Nitro] default js rendering In-Reply-To: References: <55c107bf0606221412r6fbc32c9tabf5b06bbee8d784@mail.gmail.com> Message-ID: <55c107bf0606230011i2462ecffm1f3c3995067873bc@mail.gmail.com> Hi Bryan, On 6/23/06, Bryan Soto wrote: > > > Beginning in 0.30.0, we removed a regex that prevented Nitro from > handling query strings with a period in it. A sample use-case would be > oxywtf that uses tags of '0.30.0' and passes the tag string via get. Ok. I find this a good change. Ultimately, what is happening is that something is generating requests > for /js/prototype.js and friends. Because you didn't use gen to > generate the directory, those files aren't present and so the request > is passed on to Nitro. That's my question, I guess. -> What's generating these requests? Is it now part of the default Nitro::Controller? Is it now part of the Rendering chain automatically? I don't include a link to any /js file anywhere. My only clue here is that it only happens with .xhtml files. When Nitro encounters these, it goes ahead and Renders them through its chain, and now expects these /js files to be present for some reason... > So, I suppose the interesting question is, do you expect those files > to be included in an html page? No, I don't. But Nitro now somehow does. - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060623/80d4f4c6/attachment.html From aglarond at gmail.com Fri Jun 23 03:30:10 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Fri, 23 Jun 2006 09:30:10 +0200 Subject: [Nitro] "magic" mapping of controllers possible? In-Reply-To: <200606231032.36346.manveru@weez-int.com> References: <44998E2F.2080007@lassoweb.se> <200606221151.11285.manveru@weez-int.com> <55c107bf0606221347i60811d95q4f4e8927c5f50357@mail.gmail.com> <200606231032.36346.manveru@weez-int.com> Message-ID: <55c107bf0606230030w6fcccf7ct3729e5210ffa2a39@mail.gmail.com> On 6/23/06, Michael Fellinger wrote: > > > one thing still disturbing me is > if ! Nitro.const_defined?( controller ) > could we make it into a pretty > unless Nitro.const_defined? controller > it just seems !good to me to use ! unless it's needed Ah, much better. > (task for today: discover the wordplay in the last sentence) > :) > > and also, auto_map= implies that one can retrieve the map later by calling > Nitro::Server.auto_map, which is not the case, but should be easy to > provide > an alias to Nitro::Server.map - right? :) Sounds good to me. > > I think we should decide on a (very simple) default nitro-dir-structure > and > integrate that piece of code to make life easier... > Maybe adding some Global variables for the default-locations? Or by using the Configuration system. That's something I've been wanting for awhile - so that I can more easily change the defaults. :) Right now, all we have is Glue::Template.root= > also, how about this snippet, since we are just at improving run.rb... > > module Kernel > def aquire *dirs > dirs.each do |dir| > Dir["#{dir}/*.rb"].each do |file| > require file > end > end > end > end > > aquire :helpers, :controllers, :models > I like it! Till now, I've been doing Dir.glob('app/*.rb').each { |r| require r } to get my controllers and extra files loaded. - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060623/e74c242a/attachment.html From aglarond at gmail.com Fri Jun 23 03:45:37 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Fri, 23 Jun 2006 09:45:37 +0200 Subject: [Nitro] "magic" mapping of controllers possible? In-Reply-To: <200606231118.17109.manveru@weez-int.com> References: <44998E2F.2080007@lassoweb.se> <55c107bf0606221347i60811d95q4f4e8927c5f50357@mail.gmail.com> <200606231032.36346.manveru@weez-int.com> <200606231118.17109.manveru@weez-int.com> Message-ID: <55c107bf0606230045g228f8bbfn8782880c9f814849@mail.gmail.com> On 6/23/06, Michael Fellinger wrote: > > Sifting a bit through my codebase showed me a possible problem: > > '/xmlrpc' => XmlRpcController > > any ideas? > Well, if you're ok with changing the path... require 'facets/core/string/camelcase' "xml-rpc".camelcase(true, '-') - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060623/a7c8c640/attachment.html From zimba.tm at gmail.com Fri Jun 23 06:37:53 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Fri, 23 Jun 2006 12:37:53 +0200 Subject: [Nitro] About the different repos Message-ID: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> Hi list, Actually there are two major repos out there : * http://devlab.oree.ch/darcs/glycerin * http://repo.nitroproject.org The first one's short name is "glycerin". It would be handy to also have a short name for george's repo. What about "navel", "tip", "edge" or simply "repo" ? George is best placed to choose a name for his repo but inputs are welcom. I would also like to know what will happen to all modifications in glycerin. I think that George will take his own repo to make the release and as the time passes, the differences between both repos grows. We all know that the changes will have to be merged one time because if we wait too long, some part of the work will be lost. We also know that George doesn't particularily like to merge other people's work ;-) This is why I propose to sync glycerin on "repo" as fast as possible. And this leads to the third point... Some people (like me) are developping on top of glycerin because 0.30 is unstable and the fixes are only in glycerin. The mistake was to not create a stable branch for 0.30. Now I think it's too late but for the next release, I'll create a new repo where we can backport fixes. Probably under the url http://devlab.oree.ch/nitroproject/0.31 Please post your thoughts :-) -- Cheers, zimbatm http://zimbatm.oree.ch From zimba.tm at gmail.com Fri Jun 23 06:56:58 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Fri, 23 Jun 2006 12:56:58 +0200 Subject: [Nitro] Devlab and Facets-1.4.2 In-Reply-To: References: <4b6f054f0606211828g1894a6a1q3e9b3b1c4f519dca@mail.gmail.com> Message-ID: <3ff63f9b0606230356v16e48f6ela085c3b357ce662c@mail.gmail.com> > You can use tailor as a bridge between subversion and darcs. That's > our current plan. Unfortunately, there is a bug in darcs that affects > one of our patches that's preventing us from using it. Somehow, we > have a patch that both adds and removes the same set of files and the > command tailor uses to sync the two repos doesn't list the adds. It > doesn't appear to be a common problem though. Almost correct. Tailor works only with Darcs 1.0.7, which is now masked in Gentoo (the distro on which devlab runs). Tailor has other bugs (related to how darcs and svn handle file moves because darcs is too smart :-) that prevent going further but I've seen that the project's bug tracker has moved quite a bit these times so I might give a try again. > I can't speak for Jonas, but if you plan to host on devlab, perhaps > he'd be willing to use subversion? Okay so my idea was to start with subversion until tailor works correctly. We know that Trac works with it nicely and ^ it is better supported. I would then like to provide a darcs mirror for the people who prefer darcs once tailor works perfectly. There is also another thing that doesn't work well with Trac+Darcs : branches. Since Trac is designed to have one install per repo it is not very nice. I don't know if it's feasible but I'm going to try to investigate on merging different darcs repos into sub folders of an svn-repo. That way we could have for example : glycerin -> /branches/glycerin george's repo -> /trunk 0.30 -> /releases/0.30 0.31 -> /releases/0.31 where / is the root of the svn repo. I don't know if all this is feasible but since there is no good alternative to Trac, I think it's better to start with SVN and see what we can do else in the future. -- Cheers, zimbatm http://zimbatm.oree.ch From george.moschovitis at gmail.com Fri Jun 23 12:59:39 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Fri, 23 Jun 2006 19:59:39 +0300 Subject: [Nitro] Gen Form not working without Og.setup In-Reply-To: References: <287d732edf715bbb048420aa22ef0da5@oggu.de> <4636e46f5853c32a32f9601148638cb3@oggu.de> Message-ID: > You could always take a sneak peek at his blog. hmm... interesting blog... -g. -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Fri Jun 23 13:38:08 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Fri, 23 Jun 2006 20:38:08 +0300 Subject: [Nitro] default js rendering In-Reply-To: References: <55c107bf0606221412r6fbc32c9tabf5b06bbee8d784@mail.gmail.com> Message-ID: > Beginning in 0.30.0, we removed a regex that prevented Nitro from > handling query strings with a period in it. A sample use-case would be Hmm this seems to generate some random problems with me too... Can you please remind me how exactly you changed the '.' handling? thanks, George -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Fri Jun 23 13:44:31 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Fri, 23 Jun 2006 20:44:31 +0300 Subject: [Nitro] "magic" mapping of controllers possible? In-Reply-To: <44998E2F.2080007@lassoweb.se> References: <44998E2F.2080007@lassoweb.se> Message-ID: > Is it in any way possible to create a "magic" map that maps the request > name to a partical controller, i.e: Yeah a lot of 'magic' functionality is planned (in Rails style). We are not exactly sure about the details at the moment though. Ideas/proposals appreciated. regards, George. -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Fri Jun 23 13:53:08 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Fri, 23 Jun 2006 20:53:08 +0300 Subject: [Nitro] "magic" mapping of controllers possible? In-Reply-To: <200606231032.36346.manveru@weez-int.com> References: <44998E2F.2080007@lassoweb.se> <200606221151.11285.manveru@weez-int.com> <55c107bf0606221347i60811d95q4f4e8927c5f50357@mail.gmail.com> <200606231032.36346.manveru@weez-int.com> Message-ID: Dimitri and Michael thanks for the provided code. -g. On 6/23/06, Michael Fellinger wrote: > On Friday 23 June 2006 05:47, Dimitri Aivaliotis wrote: > > Here's my version, modified (correcting a couple of small errors, including > > it within the main Nitro namespace, and fitting it to the way I like to lay > > out my sources) from what manveru wrote: > > Thanks, that looks much better (saner :) maybe i should have added that i > didn't actually try the code i suggested... > > > > > module Nitro > > class Server > > > > class << self > > > > def try( &block ) > > yield > > rescue Object > > false > > end > > > > def fetch_mount( point ) > > if point == '/' > > return Nitro::Controller # because I like to craft my index page > > by hand > > else > > base = point.gsub('/', '') > > # now, this assumes the sources for the controllers are in > > # files named "app/_c.rb > > file, controller = "app/#{base}_c.rb", "#{base.capitalize > > }Controller" > > end > > # check if file is in $: > > Logger.debug "missing #{file} for #{controller}" unless try{require > > file} > > > > if ! Nitro.const_defined?( controller ) > > one thing still disturbing me is > if ! Nitro.const_defined?( controller ) > could we make it into a pretty > unless Nitro.const_defined? controller > it just seems !good to me to use ! unless it's needed > (task for today: discover the wordplay in the last sentence) > > > Nitro.const_get(controller) > > else > > raise NameError, "missing controller #{controller} for #{point}" > > end > > end > > > > end > > > > def self.auto_map=( *arr ) > > arr.flatten! > > Nitro::Server.map = Hash[*arr.map{|m| [m, fetch_mount(m)] }.flatten] > > end > > and also, auto_map= implies that one can retrieve the map later by calling > Nitro::Server.auto_map, which is not the case, but should be easy to provide > an alias to Nitro::Server.map - right? :) > > > > > end > > end > > > > Then, your Nitro::Server.auto_map= goodness is ready to go! > > > > - Dimitri > > I think we should decide on a (very simple) default nitro-dir-structure and > integrate that piece of code to make life easier... > Maybe adding some Global variables for the default-locations? > > also, how about this snippet, since we are just at improving run.rb... > > module Kernel > def aquire *dirs > dirs.each do |dir| > Dir["#{dir}/*.rb"].each do |file| > require file > end > end > end > end > > aquire :helpers, :controllers, :models > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From vagabond at cataclysm-software.net Fri Jun 23 16:11:25 2006 From: vagabond at cataclysm-software.net (Andrew Thompson) Date: Fri, 23 Jun 2006 16:11:25 -0400 Subject: [Nitro] RDog ping In-Reply-To: <4499B836.4020607@gmail.com> References: <449831ED.1030908@gmail.com> <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> <44995DCD.1030102@gmail.com> <4b6f054f0606211404n72faa93an1d3ea69e4d0faefc@mail.gmail.com> <4499B836.4020607@gmail.com> Message-ID: <20060623201125.GA17744@hijacked.us> On Wed, Jun 21, 2006 at 02:20:54PM -0700, James Britt wrote: > What I'm looking at now is how to track the name of the file where a > method/const/attr is defined, so that, for example, one can look at > Array and see that it can have a to_yaml method, but only if you include > another file. > Rdog did this, however it required some changes to rdoc's output to allow this. Rdoc just puts everything from a particular class into one file with no origin information. I hacked it so that they'd remain seperate and I put all the pieces back together in the generator (which is why all the other generators fail when you run with the rdog-rdoc). > One thought: ruedoc/yamlize each file, one-by-one, and then let rdog > manage the interleaving of classes and methods. (This might make it > easier to handle arbitrary rdoc data from gems and such; just parse and > load, and let rdog do the rest.) > I'm not convinced we need YAML at all, why not pass the data to Og? Then we can cleanly only get the information we need, rather then sucking big YAML files into RAM. Anyway, I know I said I'd try to knock the rdog generator into shape, but I've been far too busy to have the energy to touch it. I apologise but I'm not sure when I will have a chance to attack it... Andrew From itsme213 at hotmail.com Fri Jun 23 16:30:15 2006 From: itsme213 at hotmail.com (itsme213) Date: Fri, 23 Jun 2006 15:30:15 -0500 Subject: [Nitro] class_extension etc. Message-ID: Hey Trans, would you mind posting a pointer to the discussion with Matz about this. I am very interested in knowing his recommendation, as well as the likely standard Ruby support in the future. Thanks! From vagabond at cataclysm-software.net Fri Jun 23 20:17:49 2006 From: vagabond at cataclysm-software.net (Andrew Thompson) Date: Fri, 23 Jun 2006 20:17:49 -0400 Subject: [Nitro] RDog ping In-Reply-To: <4499B836.4020607@gmail.com> References: <449831ED.1030908@gmail.com> <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> <44995DCD.1030102@gmail.com> <4b6f054f0606211404n72faa93an1d3ea69e4d0faefc@mail.gmail.com> <4499B836.4020607@gmail.com> Message-ID: <20060624001742.GA27767@hijacked.us> On Wed, Jun 21, 2006 at 02:20:54PM -0700, James Britt wrote: The ML ate my post, but I can re-reply again... > What I'm looking at now is how to track the name of the file where a > method/const/attr is defined, so that, for example, one can look at > Array and see that it can have a to_yaml method, but only if you include > another file. > RdOg does this, but I had to hack the internal(horribly ugly) format rdoc stores it's class/method/whatever info in. This breaks ALL other generators. > One thought: ruedoc/yamlize each file, one-by-one, and then let rdog > manage the interleaving of classes and methods. (This might make it > easier to handle arbitrary rdoc data from gems and such; just parse and > load, and let rdog do the rest.) > Why use YAML at all? Why not database back this information? The original plan for rdog was to use Og to store all the information. The YAML stuff was only a transitional thing because we couldn't get Og to work. That has been resolved, but we never finished porting it to use Og. I have actually just checked out the repository and installed nitro. I'm gonna try and get rdoc-devel (my hacked rdoc) to work with ruby 1.8.4 (there's probably rdoc changes again that are breaking things). I'm also gonna try and transition to a proper og generator and move away from the YAML one. I tried to kludge the Og one onto the existing YAML one which just added more issues than it solved. I think YAML is not really suited to this anyway, it's harder to generate a list of all classes/methods, you often have to load more into RAM than you need and it's a pain to search. I think Og would do an all round better job. If manveru, James or someone else was willing to help with the frontend and just persistantly nag me on generator issues I still think we can knock rdog into some kinda acceptable shape. I'm really gonna *try* and do something this weekend to make progress on this front. If someone else could assist with testing/frontend conversion that'd be great. I hope this stupid email works this time... Andrew From john at oxyliquit.de Sat Jun 24 07:17:50 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Sat, 24 Jun 2006 13:17:50 +0200 Subject: [Nitro] [TEST] send test Message-ID: My previous email didn't arrive here it seems, this is just a test. Jo -- Feel the love http://pinkjuice.com/pics/ruby.png From transfire at gmail.com Sat Jun 24 09:41:55 2006 From: transfire at gmail.com (TRANS) Date: Sat, 24 Jun 2006 09:41:55 -0400 Subject: [Nitro] Og 2 Message-ID: <4b6f054f0606240641m2226c6aje5f39b8e59b4726@mail.gmail.com> What's the word on the new Og. What's different about it from the previous version? T. From william.full.moon at gmail.com Sat Jun 24 09:52:13 2006 From: william.full.moon at gmail.com (* William) Date: Sat, 24 Jun 2006 23:52:13 +1000 Subject: [Nitro] Who knows aspects? In-Reply-To: Message-ID: <02cd01c69795$6a2ad0f0$03af07ca@ghostgum> Hi folk. I have more or less moved on from writing about Og stuff. Now is a good time for corrections and suggestions. Reviewers go to: http://platypus.stikipad.com/muse/show/rough+notes#og I am stuck on the notes for "callback" or trigger functions. I am unable to verify what I have written based on the sparse notes I've read. http://platypus.stikipad.com/muse/show/rough+notes#callback That is the stuff available from ... require ?facets/aspects.rb? I based a small program on an Aspects test app: test/glue/tc_aspects.rb. I do not see puts statements from the callback functions. I am unconvinced that the example on Og will work ads intended also (I began with a dumbed down version of that first). Does anyone have a really SIMPLE working example? Naturally, all comments on what's written are solicited. I'll be busy this week, so answers may be slow coming, Kiearr'wo, Will. ____________________________________________________________________________ ____ (2006) Information proprietary and confidential intended for direct recipient(s) and mutually agreed co-respondents. http://adroit-process.blogspot.com/ Kiearr'wo -- "Everything is beautiful, sweet, delicious, happy, good". The usual greeting & departure of the Ya-idt'midtung people. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.3/374 - Release Date: 23-Jun-2006 From george.moschovitis at gmail.com Sun Jun 25 06:23:26 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Sun, 25 Jun 2006 13:23:26 +0300 Subject: [Nitro] Facets 1.4.2 In-Reply-To: References: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> <4b6f054f0606211553n58c9dff4l940d3b719559b0b4@mail.gmail.com> Message-ID: Tom, can you update facets with this fix to make 1.4.2 usable with nitro? (as always please update to 1.4.3) thanks in advance, George. On 6/22/06, Bryan Soto wrote: > On 6/21/06, TRANS wrote: > > See any problems with that. Could you test that? > > > > Okay, I've updated the classinheirit requires appropriately and all > tests pass with the changes you've specified. > > Hope that helps, > > Bryan > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From john at oxyliquit.de Sun Jun 25 15:34:14 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Sun, 25 Jun 2006 21:34:14 +0200 Subject: [Nitro] [REQ] Og, typecheck at startup Message-ID: Hi, see: http://oxyliquit.de/question/62 George: is this possible? Jo -- Feel the love http://pinkjuice.com/pics/ruby.png From william.full.moon at gmail.com Mon Jun 26 10:32:08 2006 From: william.full.moon at gmail.com (* William) Date: Tue, 27 Jun 2006 00:32:08 +1000 Subject: [Nitro] Wither list? In-Reply-To: Message-ID: <036f01c6992d$51eb21e0$03af07ca@ghostgum> Hi ho all. In one respect this is a test to verify or diagnose if the Nitro list is currently working. I have sent a couple of messages out and not seen them delivered back. While/if I have your attention, I've move the Nitro/Og programming document I've been working on to a new URL: "Programming Nitro and Og" http://platypus.stikipad.com/muse/show/Programming+Nitro+and+Og Draft work on other unfinished documentation areas will continue in the "rough notes" area. Go the footy-roos!! Aloha, Will. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.4 - Release Date: 25-Jun-2006 From george.moschovitis at gmail.com Mon Jun 26 13:33:49 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Mon, 26 Jun 2006 20:33:49 +0300 Subject: [Nitro] Nice for facets Message-ID: Tom, this may be a worthwhile addition to facets (perhaps with a better name): http://weblog.rubyonrails.com/2006/04/26/new-in-rails-module-alias_method_chain/ regards, George. -- http://www.gmosx.com http://www.nitroproject.org From lists at davidlangston.com Mon Jun 26 14:38:24 2006 From: lists at davidlangston.com (Dave Langston) Date: Mon, 26 Jun 2006 11:38:24 -0700 Subject: [Nitro] Nitro.General mail list seems to be partially broken... Message-ID: <44A029A0.5070504@davidlangston.com> George, (also copying mail list in case others can see the message and have a solution) don't know if this is a problem for you, RubyForge, or who, but... it seems that the nitro.general mail list is not being dup'ed to comp.lang.ruby.nitro.general in the last 4-5 days and other mail archive services (such as gmane.org) is therefore not getting the list. I think you will see that the list activity is very low the last couple of days. Plus, I have not gotten a digest of the mail list since last Thursday (I am subscribed to get a digest rather than individual messages). Is this something you can correct?, or do I need to contact the RubyForge admins??? thx, Dave Langston lists at davidlangston.com From john at oxyliquit.de Sun Jun 25 15:55:50 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Sun, 25 Jun 2006 21:55:50 +0200 Subject: [Nitro] [PATCH] Feed helper backwards compatibility Message-ID: [repost] Hi, George, you made some change to the Feed helper, specifically to the author handling. This patch adds the capability to also let it handle Hashes. Hashes are easier to create than full classes, thats why my brother chose them to represent an author. The patch creates an OpenStruct if the o.author is a Hash, everything else stays as it was. Jo -- Feel the love http://pinkjuice.com/pics/ruby.png -------------- next part -------------- A non-text attachment was scrubbed... Name: feed_author.patch.tar.bz2 Type: application/bzip2 Size: 16424 bytes Desc: not available Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060626/f11644eb/attachment-0001.bin From john at oxyliquit.de Thu Jun 22 14:06:00 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Thu, 22 Jun 2006 20:06:00 +0200 Subject: [Nitro] [PATCH] Feed helper backwards compatibility Message-ID: Hi, George, you made some change to the Feed helper, specifically to the author handling. This patch adds the capability to also let it handle Hashes. Hashes are easier to create than full classes, thats why my bro chose them to represent an author. The patch creates an OpenStruct if the o.author is a Hash, everything else stays as it was. Jo -- Feel the love http://pinkjuice.com/pics/ruby.png -------------- next part -------------- A non-text attachment was scrubbed... Name: feed_author.patch.tar.bz2 Type: application/bzip2 Size: 16424 bytes Desc: not available Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060626/4e0f3f28/attachment.bin From george.moschovitis at gmail.com Mon Jun 26 15:29:37 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Mon, 26 Jun 2006 22:29:37 +0300 Subject: [Nitro] Test... Message-ID: lets see if this list works!! -g. -- http://www.gmosx.com http://www.nitroproject.org From james.britt at gmail.com Mon Jun 26 18:41:38 2006 From: james.britt at gmail.com (James Britt) Date: Mon, 26 Jun 2006 15:41:38 -0700 Subject: [Nitro] RDog ping In-Reply-To: <20060623201125.GA17744@hijacked.us> References: <449831ED.1030908@gmail.com> <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> <44995DCD.1030102@gmail.com> <4b6f054f0606211404n72faa93an1d3ea69e4d0faefc@mail.gmail.com> <4499B836.4020607@gmail.com> <20060623201125.GA17744@hijacked.us> Message-ID: <44A062A2.5070806@gmail.com> Andrew Thompson wrote: > ... > I'm not convinced we need YAML at all, why not pass the data to Og? Then > we can cleanly only get the information we need, rather then sucking big > YAML files into RAM. > > Anyway, I know I said I'd try to knock the rdog generator into shape, > but I've been far too busy to have the energy to touch it. I apologise > but I'm not sure when I will have a chance to attack it... > Well, so far, I've hacked up ruedoc to output a single yaml file for each source file. Each file nows what source it came from. I've mocked out og'ed classed for each fundamental object (file, class, module, method, constant, some others maybe) that map t the structure of the yaml. Then some simple code that reads in a yaml file and creates the object hierarchy (which in turn populates the database). There is no longer a single giant YAML file, and my thinking is that having a data file for each source file makes it easier to add in arbitrary code (e.g., from gems or other 3rd-party libs) without overwriting current data. Then you can always tell if a method is defined in a the original class or added by the inclusion of another file. (The next release of rubygems is, I think, to have an option to add data to ri. Curious to see this.) I did this in a series of steps as I became familiar with rdoc and a bit more familiar with Og. So this is not the results of some master plan, but the current state of some exploring. But what I like is that each part is simple, and adding/modifying content is also simple. The question that's in my head now is how to best represent the data for queries. Loading data happens rarely; querying is the whole point. Would some in-memory structure be faster than using MySql or Sqlite (or some other more or less conventional relational DB)? Am I getting into premature optimization? I'd really like to end up with something that can be easily installed on a desktop and used in place of ri while running faster and not consuming vast resources. Basically, ri as a local (Web) service with a CLI client as well. -- James Britt "Blanket statements are over-rated" From james.britt at gmail.com Mon Jun 26 18:49:26 2006 From: james.britt at gmail.com (James Britt) Date: Mon, 26 Jun 2006 15:49:26 -0700 Subject: [Nitro] RDog ping In-Reply-To: <20060624001742.GA27767@hijacked.us> References: <449831ED.1030908@gmail.com> <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> <44995DCD.1030102@gmail.com> <4b6f054f0606211404n72faa93an1d3ea69e4d0faefc@mail.gmail.com> <4499B836.4020607@gmail.com> <20060624001742.GA27767@hijacked.us> Message-ID: <44A06476.6060705@gmail.com> Andrew Thompson wrote: > Why use YAML at all? Why not database back this information? The > original plan for rdog was to use Og to store all the information. The > YAML stuff was only a transitional thing because we couldn't get Og to > work. That has been resolved, but we never finished porting it to use > Og. > In case my earlier posts were not clear, I see the YAML as an intermediate way to get the data into someplace for Og/Nitro to play with. Yes, I imagine now that the hacked ruedoc code I'm using could just poke stuff into a database, by-passing the saving to disk/loading into Og-based object step. > I have actually just checked out the repository and installed nitro. I'm > gonna try and get rdoc-devel (my hacked rdoc) to work with ruby 1.8.4 > (there's probably rdoc changes again that are breaking things). I'm also > gonna try and transition to a proper og generator and move away from the > YAML one. I tried to kludge the Og one onto the existing YAML one which > just added more issues than it solved. > > I think YAML is not really suited to this anyway, it's harder to > generate a list of all classes/methods, you often have to load more into > RAM than you need and it's a pain to search. I think Og would do an all > round better job. Well, here's the thing: is it feasible to just keep the entire API in memory, using some data structure suited for searching and lookups? E.g., using Madeleine. -- James Britt "The use of anthropomorphic terminology when dealing with computing systems is a symptom of professional immaturity." - Edsger W. Dijkstra From james.britt at gmail.com Mon Jun 26 19:12:21 2006 From: james.britt at gmail.com (James Britt) Date: Mon, 26 Jun 2006 16:12:21 -0700 Subject: [Nitro] Nitro.General mail list seems to be partially broken... In-Reply-To: <44A029A0.5070504@davidlangston.com> References: <44A029A0.5070504@davidlangston.com> Message-ID: <44A069D5.2050608@gmail.com> Dave Langston wrote: > ... > it seems that the nitro.general mail list is not being dup'ed to > comp.lang.ruby.nitro.general in the last 4-5 days and other mail archive > services (such as gmane.org) is therefore not getting the list. I think > you will see that the list activity is very low the last couple of > days. Indeed. But I just figured everyone had gone to RailsConf. -- James Britt "I must create a system, or be enslaved by another man's; I will not reason and compare; my business is to create." - William Blake From bryan.a.soto at gmail.com Mon Jun 26 19:27:47 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Mon, 26 Jun 2006 16:27:47 -0700 Subject: [Nitro] Mailing List Problems Message-ID: Hi all, Obviously the mailing list is working again. For those interested, the bug report is here: http://rubyforge.org/tracker/index.php?func=detail&aid=4853&group_id=5&atid=101 though the problem seems to have been permissions on /etc/hosts and mailman. Bryan From bryan.a.soto at gmail.com Mon Jun 26 20:01:47 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Mon, 26 Jun 2006 17:01:47 -0700 Subject: [Nitro] About the different repos In-Reply-To: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> References: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> Message-ID: On 6/23/06, Jonas Pfenniger wrote: > Hi list, > > Actually there are two major repos out there : > * http://devlab.oree.ch/darcs/glycerin > * http://repo.nitroproject.org > > The first one's short name is "glycerin". It would be handy to also > have a short name for george's repo. What about "navel", "tip", "edge" > or simply "repo" ? George is best placed to choose a name for his repo > but inputs are welcom. > Arguably, nitroproject is more glycerin than devlab. ;) > I would also like to know what will happen to all modifications in > glycerin. I think that George will take his own repo to make the > release and as the time passes, the differences between both repos > grows. We all know that the changes will have to be merged one time > because if we wait too long, some part of the work will be lost. We > also know that George doesn't particularily like to merge other > people's work ;-) This is why I propose to sync glycerin on "repo" as > fast as possible. And this leads to the third point... > Yes, I believe George is planning to release 0.31 from nitroproject. There will be no 0.30.1 bugfix release. > Some people (like me) are developping on top of glycerin because 0.30 > is unstable and the fixes are only in glycerin. The mistake was to not > create a stable branch for 0.30. Now I think it's too late but for the > next release, I'll create a new repo where we can backport fixes. > Probably under the url http://devlab.oree.ch/nitroproject/0.31 > If a stable branch is desired by the community, devlab has only bugfixes and minimal enhancements. It might still be useful as a stable branch. Whatever the users want. :) By the way, zimba: $ darcs pull http://devlab.oree.ch/darcs/nitrohq darcs failed: Not a repository: http://devlab.oree.ch/darcs/nitrohq (user error (Failed to download URL http://devlab.oree.ch/darcs/nitrohq/_darcs/inventory libcurl: HTTP error (404?))) Bryan From bryan.a.soto at gmail.com Mon Jun 26 20:06:38 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Mon, 26 Jun 2006 17:06:38 -0700 Subject: [Nitro] Devlab and Facets-1.4.2 In-Reply-To: <3ff63f9b0606230356v16e48f6ela085c3b357ce662c@mail.gmail.com> References: <4b6f054f0606211828g1894a6a1q3e9b3b1c4f519dca@mail.gmail.com> <3ff63f9b0606230356v16e48f6ela085c3b357ce662c@mail.gmail.com> Message-ID: On 6/23/06, Jonas Pfenniger wrote: > > You can use tailor as a bridge between subversion and darcs. That's > > our current plan. Unfortunately, there is a bug in darcs that affects > > one of our patches that's preventing us from using it. Somehow, we > > have a patch that both adds and removes the same set of files and the > > command tailor uses to sync the two repos doesn't list the adds. It > > doesn't appear to be a common problem though. > > Almost correct. Tailor works only with Darcs 1.0.7, which is now > masked in Gentoo (the distro on which devlab runs). Tailor has other > bugs (related to how darcs and svn handle file moves because darcs is > too smart :-) that prevent going further but I've seen that the > project's bug tracker has moved quite a bit these times so I might > give a try again. > As a reminder zimba, with the current nitro/og repo, if you begin with 0.30.0 rather than INITIAL, you sacrifice history but get a working tailor config. I don't know if people would be willing to make that sacrifice, but I'll throw it out. From bryan.a.soto at gmail.com Mon Jun 26 20:12:20 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Mon, 26 Jun 2006 17:12:20 -0700 Subject: [Nitro] default js rendering In-Reply-To: References: <55c107bf0606221412r6fbc32c9tabf5b06bbee8d784@mail.gmail.com> Message-ID: On 6/23/06, George Moschovitis wrote: > > Beginning in 0.30.0, we removed a regex that prevented Nitro from > > handling query strings with a period in it. A sample use-case would be > > Hmm this seems to generate some random problems with me too... Can you > please remind me how exactly you changed the '.' handling? > There was a test in cgi, webrick and mongrel. Something along the lines of: =begin unless request.url =~ /\./ # unless request contains a period # nitro handles request end # no else clause, so nothing was rendered. =end I removed the unless test and the end. Bryan From bryan.a.soto at gmail.com Mon Jun 26 20:24:07 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Mon, 26 Jun 2006 17:24:07 -0700 Subject: [Nitro] "magic" mapping of controllers possible? In-Reply-To: <55c107bf0606230030w6fcccf7ct3729e5210ffa2a39@mail.gmail.com> References: <44998E2F.2080007@lassoweb.se> <200606221151.11285.manveru@weez-int.com> <55c107bf0606221347i60811d95q4f4e8927c5f50357@mail.gmail.com> <200606231032.36346.manveru@weez-int.com> <55c107bf0606230030w6fcccf7ct3729e5210ffa2a39@mail.gmail.com> Message-ID: > > module Kernel > > def aquire *dirs > > dirs.each do |dir| > > Dir["#{dir}/*.rb"].each do |file| > > require file > > end > > end > > end > > end > > > > aquire :helpers, :controllers, :models > > > > I like it! Till now, I've been doing > > Dir.glob('app/*.rb').each { |r| require r } > > to get my controllers and extra files loaded. > Trans like it too. :) require 'facet/kernel/require_all require_all 'app/*.rb' From transfire at gmail.com Mon Jun 26 20:27:38 2006 From: transfire at gmail.com (TRANS) Date: Mon, 26 Jun 2006 20:27:38 -0400 Subject: [Nitro] class_extension etc. In-Reply-To: References: Message-ID: <4b6f054f0606261727y14531696oe91e1ef486418b6a@mail.gmail.com> ruby-talk: 196402 http://groups.google.com/group/ruby-talk-google/browse_thread/thread/4e08a07aa0ff6d2b/bda97af172cf5555?q=class_extension& T. From transfire at gmail.com Mon Jun 26 21:06:07 2006 From: transfire at gmail.com (TRANS) Date: Mon, 26 Jun 2006 21:06:07 -0400 Subject: [Nitro] Facets 1.4.2 In-Reply-To: References: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> <4b6f054f0606211553n58c9dff4l940d3b719559b0b4@mail.gmail.com> Message-ID: <4b6f054f0606261806w59ab931la853b8303604f719@mail.gmail.com> On 6/25/06, George Moschovitis wrote: > Tom, can you update facets with this fix to make 1.4.2 usable with > nitro? (as always please update to 1.4.3) Will do! We just got upload/commits back at Rubyforge, so I'll do it some time this evening. T. From transfire at gmail.com Mon Jun 26 21:10:07 2006 From: transfire at gmail.com (TRANS) Date: Mon, 26 Jun 2006 21:10:07 -0400 Subject: [Nitro] Nitro.General mail list seems to be partially broken... In-Reply-To: <44A029A0.5070504@davidlangston.com> References: <44A029A0.5070504@davidlangston.com> Message-ID: <4b6f054f0606261810p3c947568u92c696c80d86e7ff@mail.gmail.com> On 6/26/06, Dave Langston wrote: > George, > (also copying mail list in case others can see the message and have a > solution) > > don't know if this is a problem for you, RubyForge, or who, but... > > it seems that the nitro.general mail list is not being dup'ed to > comp.lang.ruby.nitro.general in the last 4-5 days and other mail archive > services (such as gmane.org) is therefore not getting the list. I think > you will see that the list activity is very low the last couple of > days. Plus, I have not gotten a digest of the mail list since last > Thursday (I am subscribed to get a digest rather than individual > messages). Is this something you can correct?, or do I need to contact > the RubyForge admins??? RubyForge swithced servers, so there's lots of problems right now. Not sure how that effects newsgroups and gmane, but anything you can think of to help.... T. From manveru at weez-int.com Tue Jun 27 00:00:41 2006 From: manveru at weez-int.com (Michael Fellinger) Date: Tue, 27 Jun 2006 13:00:41 +0900 Subject: [Nitro] Facets 1.4.2 In-Reply-To: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> References: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> Message-ID: <200606271300.42102.manveru@weez-int.com> Hey trans, One thing that really makes me wonder is that there's facets and there's calibre, but what exactly distinguishes one from the other - i've seen lots of duplication between them... This is not nitro-specific, so please excuse me - but me and some others are quite interested in that :) ~~~~manveru On Thursday 22 June 2006 01:53, TRANS wrote: > Facets 1.4.2 has been released. With any luck this will be the > official 1.4 release. Major changes: > > * consoleapp.rb is now called command.rb and Console::Command now > supports multi-flags (eg. -xvzf). > > * classinherit.rb is gone. Use classmethods.rb or better > module/class_extension. > > * Added kernel __method__ and __callee__. Appearently these will be > standard in Ruby 2.0. They replace the old #method_name and #methname. > > * Added yet another alias for (class < kernel/quaclass and deprecated #singleton and #adhoc. Currently the > (independently) available methods for this are: > > - eigenclass > - metaclass > - own > - quaclass > - singleton_class > > Note #eigenclass has been fun, but it seems support for it is starting > to wane --I guess b/c matz didn't go for it. "eigen", btw, essentially > means "own", hence the #own method, which was provided as a concise > alternative (instead of #meta). BTW, Both #own and #quaclass have a > nice extra feature, they can take a block and module_eval it against > the "qua class". > > T. > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general From transfire at gmail.com Tue Jun 27 00:34:22 2006 From: transfire at gmail.com (TRANS) Date: Tue, 27 Jun 2006 00:34:22 -0400 Subject: [Nitro] Facets 1.4.2 In-Reply-To: <200606271300.42102.manveru@weez-int.com> References: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> <200606271300.42102.manveru@weez-int.com> Message-ID: <4b6f054f0606262134t20200428qfeec2d4f1b322c51@mail.gmail.com> On 6/27/06, Michael Fellinger wrote: > Hey trans, > > One thing that really makes me wonder is that there's facets and there's > calibre, but what exactly distinguishes one from the other - i've seen lots > of duplication between them... > This is not nitro-specific, so please excuse me - but me and some others are > quite interested in that :) Eeek, did you have to ask? ;-) Well, Calibre was Facets/More when Facets was just Facets/Core. They were two separate libs for a while. It took me a long time to figure out how to make them one harmonious package. The other thing about Calibre is that each lib was being offered as a separate download b/c some complain about the whole lib being too "big". That seemed reasonable at the time but on further reflection compared to C and Java libs Facets is small LOC --thanks to the brevity of Ruby! So I'm not so sure about that. But I haven't killed Calibre project yet just in case, though maybe it's time to do so. Thoughts? T. From vagabond at cataclysm-software.net Tue Jun 27 01:12:39 2006 From: vagabond at cataclysm-software.net (Andrew Thompson) Date: Tue, 27 Jun 2006 01:12:39 -0400 Subject: [Nitro] RDog Pong Message-ID: <20060627051239.GA19531@hijacked.us> Hey all, This is a continuation of the 'Rdog ping' thread a few threads up, I decided to start over again as the mailing list breaking kinda scewed stuff up. Over the weekend I have been hammering on the rdog-generators with the result that I have fixed 4 major (as in htf did this code ever work) bugs, added some more features and completely gutted and re-written the Og generator. I've also been poking manveru to work on the frontend again. Apparently with no longer having to deal with YAML files and with his improved nitro experience he also has improved the code. I'm working on getting the development site hosted on a machine at work as neither manveru or I have boxes that can easily host or run the rdoc generator runs (500mhz thinkpad with 192 megs of ram here). I've committed my fixes to the ruby forge SVn (now that it's finally back up) and manveru will probably do the same shortly. I hope to continue to work on it so we can show that anything railers can do, we can do better :P. Andrew From william.full.moon at gmail.com Tue Jun 27 02:49:18 2006 From: william.full.moon at gmail.com (* William) Date: Tue, 27 Jun 2006 16:49:18 +1000 Subject: [Nitro] Wither list? Message-ID: <001b01c699b5$de05a500$85af07ca@ghostgum> Hi ho all. In one respect this is a test to verify and to re-send some minor information. Now the Nitro list is working again. I have sent a couple of messages out and not seen them delivered back. While/if I have your attention, I've move the Nitro/Og programming document I've been working on to a new URL: "Programming Nitro and Og" http://platypus.stikipad.com/muse/show/Programming+Nitro+and+Og Draft work on other unfinished documentation areas will continue in the "rough notes" area. Aloha, Will. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.5 - Release Date: 26-Jun-2006 From manveru at weez-int.com Tue Jun 27 02:54:10 2006 From: manveru at weez-int.com (Michael Fellinger) Date: Tue, 27 Jun 2006 15:54:10 +0900 Subject: [Nitro] Wither list? In-Reply-To: <001b01c699b5$de05a500$85af07ca@ghostgum> References: <001b01c699b5$de05a500$85af07ca@ghostgum> Message-ID: <200606271554.10391.manveru@weez-int.com> On Tuesday 27 June 2006 15:49, * William wrote: > Hi ho all. > > In one respect this is a test to verify and to re-send some minor > information. Now the Nitro list is working again. I have sent a couple of > messages out and not seen them delivered back. > > While/if I have your attention, I've move the Nitro/Og programming document > I've been working on to a new URL: > > "Programming Nitro and Og" > http://platypus.stikipad.com/muse/show/Programming+Nitro+and+Og Thank you for that incredible summary of Og, i just couldn't resist and immediatly pressed the 'print' button - will read it later today as i have some other stuff to do (and continue work on rdog), but it looks sweet :D Thanks again > > Draft work on other unfinished documentation areas will continue in the > "rough notes" area. > > > Aloha, > Will. From alexandru at globalterrasoft.ro Tue Jun 27 03:07:35 2006 From: alexandru at globalterrasoft.ro (Alexandru E. Ungur) Date: Tue, 27 Jun 2006 10:07:35 +0300 Subject: [Nitro] Problem getting started with Nitro Message-ID: <20060627070735.GA16968@globalterrasoft.ro> Hi all, I just discovered Nitro, and I would really like to try it out. I started with the video tutorials, Part I: http://www.nitroproject.org/videos/nitro.html but I encountered a problem which forbids me to complete it... I'd really appreciate if you could give me an ideea of what's wrong and what can I do to be able to continue with the tutorial. Here it goes: I followed the tutorial until around the minute 12:30 where I got to define the init_db function. When I try to actually run it, like this: http://localhost:9999/init_db this is what I get: Error Path: /init_db wrong number of arguments (1 for 0) This is the output from "ruby demo.rb": D, [2006-06-27T09:49:57.300160 #20952] DEBUG -- : Using Memory sessions. I, [2006-06-27T09:49:58.577305 #20952] INFO -- : Og uses the Sqlite store. ==> Setup for debug mode ==> Listening at 0.0.0.0:9999. [WEBRICK] ==> Press Ctrl-C to shutdown; Run with --help for options. [2006-06-27 09:49:59] INFO WEBrick 1.3.1 [2006-06-27 09:49:59] INFO ruby 1.8.4 (2005-12-24) [i686-linux] [2006-06-27 09:49:59] INFO WEBrick::HTTPServer#start: pid=20952 port=9999 D, [2006-06-27T09:50:32.849900 #20952] DEBUG -- : Rendering '/'. D, [2006-06-27T09:50:32.850710 #20952] DEBUG -- : Compiling action 'Hello#index' D, [2006-06-27T09:50:43.952656 #20952] DEBUG -- : Rendering '/init_db'. D, [2006-06-27T09:50:43.953424 #20952] DEBUG -- : Compiling action 'Hello#init_db' E, [2006-06-27T09:50:43.994309 #20952] ERROR -- : Error while handling '/init_db'. E, [2006-06-27T09:50:43.994817 #20952] ERROR -- : wrong number of arguments (1 for 0) /usr/local/lib/ruby/gems/1.8/gems/og-0.28.0/lib/og/entity.rb:123:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/og-0.28.0/lib/og/entity.rb:123:in `create' ./controller.rb:27:in `init_db' (eval):6:in `init_db_action' /usr/local/lib/ruby/gems/1.8/gems/nitro-0.28.0/lib/nitro/controller.rb:88:in `method_missing' /usr/local/lib/ruby/gems/1.8/gems/nitro-0.28.0/lib/nitro/render.rb:127:in `render' /usr/local/lib/ruby/gems/1.8/gems/nitro-0.28.0/lib/nitro/adapter/webrick.rb:151:in `do_GET' /usr/local/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start' /usr/local/lib/ruby/gems/1.8/gems/nitro-0.28.0/lib/nitro/adapter/webrick.rb:55:in `start' /usr/local/lib/ruby/gems/1.8/gems/nitro-0.28.0/lib/nitro/server/runner.rb:321:in `invoke_server' /usr/local/lib/ruby/gems/1.8/gems/nitro-0.28.0/lib/nitro/server/runner.rb:287:in `invoke' /usr/local/lib/ruby/gems/1.8/gems/nitro-0.28.0/lib/nitro/server.rb:123:in `run' /usr/local/lib/ruby/gems/1.8/gems/nitro-0.28.0/lib/nitro.rb:73:in `start' demo.rb:9 LOGGED FROM: /usr/local/lib/ruby/gems/1.8/gems/nitro-0.28.0/lib/nitro/render.rb:205:in `log_error' D, [2006-06-27T09:50:43.996436 #20952] DEBUG -- : Rendering '/error'. D, [2006-06-27T09:50:43.997384 #20952] DEBUG -- : Compiling action 'Hello#error' D, [2006-06-27T09:50:43.998540 #20952] DEBUG -- : Compiling template 'Hello: /usr/local/lib/ruby/gems/1.8/gems/nitro-0.28.0/lib/../proto/public/error.xhtml' D, [2006-06-27T09:50:44.365414 #20952] DEBUG -- : Rendering '/error'. I got sqlite3 installed ok, the DB and table were installed OK (I think): # sqlite3 data.db SQLite version 3.2.2 Enter ".help" for instructions sqlite> .schema CREATE TABLE oguser (name text, description text, age integer, oid integer PRIMARY KEY); sqlite> I walked through the entire video all over again, and I noticed no differences at all between the tutorial and what I did, I will attach the files as well. Thank you in advance, Alex -------------- next part -------------- class Hello def index %{ Hello World
test
list } end def test(name, password) %{ The time is now #{Time.now}

The name is #{name}
The password is #{password} } end def another @hello = 'hello from controller' end def init_db User.create 'alex' User.create 'ioana' User.create 'gigi' redirect_to_referer end end -------------- next part -------------- require 'rubygems' require 'nitro' require 'og' require 'model' require 'controller' Og.start Nitro.start Hello -------------- next part -------------- class User property :name, String property :description, String property :age, Fixnum def inititialize(name) @name = name end end From william.full.moon at gmail.com Tue Jun 27 03:31:15 2006 From: william.full.moon at gmail.com (* William) Date: Tue, 27 Jun 2006 17:31:15 +1000 Subject: [Nitro] [REQ] Og, typecheck at startup In-Reply-To: Message-ID: <002b01c699bb$b0b4c990$85af07ca@ghostgum> Howdy ... I found this question VERY interesting. In the first instance, it is something I've had to implement a couple of four times. It is also a very common thing in most databases, for instance something like "ZIPCODE" changes from Numeric to String (and back again) *lol* The second harkens back to my proposition for a Database Entity. This is one really common and good example of _why_ people need that kind of 'integrity' in the database. It is good because it is simple. It is good because it happens a lot more than people write about or let on. Remembering my previous question, it was how to migrate one database to a second database (http://oxyliquit.de/question/58). To read from mysql to sqlite? To do this effectively we need an ability to open two distinct Og::Manager instances; one in each database. See: http://platypus.stikipad.com/muse/show/Programming+Nitro+and+Og#manager as background. My reading of the Og::Manager is that it is ostensibly built around a 'single database' paradigm. It is a bigger thing to consider applications that need a 'data store' based on a 'multiple database' paradigm. (Which I admit is only one person's notion of how I'd do it this time out of the box). Emilio15's question: http://oxyliquit.de/question/62, is more sophisticated example imho. Personally, I would want to open two different versions of the SAME database to do this. Others may choose a different option, of course. I thoroughly endorse the Data Dictionary concept!! One implementation model for that could use 'dictionary-type' to be used for example. My choice is largely based on work with commercial products that implement(-ed) the suggested: "an evolve_schema modify field properties on DB?" http://oxyliquit.de/question/62 ... Functionality and observation of other tools and databases. Og maintains its own relationship tables. This is one extra level of object-management that needs to be sustained by Og during data migration. Maintaining distinct database entities and distinct database generations (versions) keeps things tidy and neat. That means my life is easier. It would be interesting to hear other ideas to do what Emillio15 is asking. Cheers, Will. -----Original Message----- From: nitro-general-bounces at rubyforge.org [mailto:nitro-general-bounces at rubyforge.org] On Behalf Of Jonathan Buch Sent: Monday, 26 June 2006 05:34 Subject: [Nitro] [REQ] Og, typecheck at startup see: http://oxyliquit.de/question/62 George: is this possible? -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.5 - Release Date: 26-Jun-2006 From james.britt at gmail.com Tue Jun 27 02:04:28 2006 From: james.britt at gmail.com (James Britt) Date: Mon, 26 Jun 2006 23:04:28 -0700 Subject: [Nitro] RDog Pong In-Reply-To: <20060627051239.GA19531@hijacked.us> References: <20060627051239.GA19531@hijacked.us> Message-ID: <44A0CA6C.2040005@gmail.com> Andrew Thompson wrote: > Hey all, > > This is a continuation of the 'Rdog ping' thread a few threads up, I > decided to start over again as the mailing list breaking kinda scewed > stuff up. > > Over the weekend I have been hammering on the rdog-generators with the > result that I have fixed 4 major (as in htf did this code ever work) > bugs, added some more features and completely gutted and re-written the > Og generator. > > I've also been poking manveru to work on the frontend again. Apparently > with no longer having to deal with YAML files and with his improved > nitro experience he also has improved the code. > > I'm working on getting the development site hosted on a machine at work > as neither manveru or I have boxes that can easily host or run the rdoc > generator runs (500mhz thinkpad with 192 megs of ram here). > > I've committed my fixes to the ruby forge SVn (now that it's finally > back up) and manveru will probably do the same shortly. I hope to > continue to work on it so we can show that anything railers can do, we > can do better :P. Oh, nice, thanks. (svn? I've been asleep. When did rubyforge.org move from cvs? Anyways, I like it. But shows how often I touch my own rubyforge projects.) I see I'll something extra: require '/home/manveru/darcs/devlab/glycerin' -- James Britt "In physics the truth is rarely perfectly clear, and that is certainly universally the case in human affairs. Hence, what is not surrounded by uncertainty cannot be the truth." - R. Feynman From william.full.moon at gmail.com Tue Jun 27 03:56:57 2006 From: william.full.moon at gmail.com (* William) Date: Tue, 27 Jun 2006 17:56:57 +1000 Subject: [Nitro] Wither list? In-Reply-To: <200606271554.10391.manveru@weez-int.com> Message-ID: <002c01c699bf$4816e0e0$85af07ca@ghostgum> That's fine Michael Please flag errors and corrections. What do you do while the news group is down? Try Google's trends... http://www.google.com/trends?q=object+store%2C+nitro%2C+rails&ctab=0&geo=all &date=all At first I thought this makes Nitro look pretty cool compared to rails. Hmmm, it turns out to be a "Dodge Nitro", probably a kind of utility vehicle (or 'truck' as they say in America). *lol* Aloha, w. -----Original Message----- From: Michael Fellinger [mailto:manveru at weez-int.com] Sent: Tuesday, 27 June 2006 16:54 To: william.full.moon at gmail.com; General discussion about Nitro Subject: Re: [Nitro] Wither list? Importance: Low On Tuesday 27 June 2006 15:49, * William wrote: > > While/if I have your attention, I've move the Nitro/Og programming > document I've been working on to a new URL: > > "Programming Nitro and Og" > http://platypus.stikipad.com/muse/show/Programming+Nitro+and+Og Thank you for that incredible summary of Og, i just couldn't resist and immediatly pressed the 'print' button - will read it later today as i have some other stuff to do (and continue work on rdog), but it looks sweet :D -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.5 - Release Date: 26-Jun-2006 From thoraval.yvon at free.fr Tue Jun 27 04:29:10 2006 From: thoraval.yvon at free.fr (Yvon Thoraval) Date: Tue, 27 Jun 2006 10:29:10 +0200 Subject: [Nitro] unable to unsubscribe Message-ID: Hey all ! i went to http://rubyforge.org/mailman/options/nitro-general in order to unsubscribe having the message "The confirmation email has been sent." and never receive this confirmation email. i've reproduced this process for the three email addresses i'm using... how to unsubscribe ? best, Yvon From zimba.tm at gmail.com Tue Jun 27 06:28:40 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 27 Jun 2006 12:28:40 +0200 Subject: [Nitro] unable to unsubscribe In-Reply-To: References: Message-ID: <3ff63f9b0606270328s354b1f17q2a36d5c5de9957a9@mail.gmail.com> Hi Yvon, you'll have to ask the rubyforge maintainer -- Cheers, zimbatm http://zimbatm.oree.ch From zimba.tm at gmail.com Tue Jun 27 06:39:03 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 27 Jun 2006 12:39:03 +0200 Subject: [Nitro] About the different repos In-Reply-To: References: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> Message-ID: <3ff63f9b0606270339y11d19a87pc4ab219ce2e2d801@mail.gmail.com> On 27/06/06, Bryan Soto wrote: > Arguably, nitroproject is more glycerin than devlab. ;) Yes > If a stable branch is desired by the community, devlab has only > bugfixes and minimal enhancements. It might still be useful as a > stable branch. Whatever the users want. :) I'm going to create a stable 0.31.0 repo once released. > By the way, zimba: > > $ darcs pull http://devlab.oree.ch/darcs/nitrohq > darcs failed: Not a repository: http://devlab.oree.ch/darcs/nitrohq > (user error (Failed to download URL > http://devlab.oree.ch/darcs/nitrohq/_darcs/inventory > libcurl: HTTP error (404?))) Ooops, fixed. Btw it is an alias for http://devlab.oree.ch/darcs/glycerin -- Cheers, zimbatm http://zimbatm.oree.ch From zimba.tm at gmail.com Tue Jun 27 06:40:31 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 27 Jun 2006 12:40:31 +0200 Subject: [Nitro] Devlab and Facets-1.4.2 In-Reply-To: References: <4b6f054f0606211828g1894a6a1q3e9b3b1c4f519dca@mail.gmail.com> <3ff63f9b0606230356v16e48f6ela085c3b357ce662c@mail.gmail.com> Message-ID: <3ff63f9b0606270340k5d36d829na9119bc6ada5dd4@mail.gmail.com> > As a reminder zimba, with the current nitro/og repo, if you begin with > 0.30.0 rather than INITIAL, you sacrifice history but get a working > tailor config. I don't know if people would be willing to make that > sacrifice, but I'll throw it out. Yeah, I'm going to do it that way. At least there are some files.. -- Cheers, zimbatm http://zimbatm.oree.ch From zimba.tm at gmail.com Tue Jun 27 06:47:51 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 27 Jun 2006 12:47:51 +0200 Subject: [Nitro] Who knows aspects? In-Reply-To: <02cd01c69795$6a2ad0f0$03af07ca@ghostgum> References: <02cd01c69795$6a2ad0f0$03af07ca@ghostgum> Message-ID: <3ff63f9b0606270347s408c4620ge8c531a2651acfb@mail.gmail.com> Hi, Glue::Aspects is not a real AOP Aspect. Instead, the class has to define interceptable methods. og/store/sql.rb defines pre and post methods for og_insert, og_update, og_read and og_delete you can use it like that : class User before :check_something, :on => [:og_read, :og_insert] private def check_something #... end end -- Cheers, zimbatm http://zimbatm.oree.ch From thoraval.yvon at free.fr Tue Jun 27 07:25:38 2006 From: thoraval.yvon at free.fr (Yvon Thoraval) Date: Tue, 27 Jun 2006 13:25:38 +0200 Subject: [Nitro] unable to unsubscribe In-Reply-To: <3ff63f9b0606270328s354b1f17q2a36d5c5de9957a9@mail.gmail.com> References: <3ff63f9b0606270328s354b1f17q2a36d5c5de9957a9@mail.gmail.com> Message-ID: Le 27 juin 06 ? 12:28, Jonas Pfenniger a ?crit : > you'll have to ask the rubyforge maintainer ok, thanks )) Yvon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060627/4cb81291/attachment.html From m.fellinger at gmail.com Tue Jun 27 07:30:01 2006 From: m.fellinger at gmail.com (Michael Fellinger) Date: Tue, 27 Jun 2006 20:30:01 +0900 Subject: [Nitro] RDog Pong In-Reply-To: <44A0CA6C.2040005@gmail.com> References: <20060627051239.GA19531@hijacked.us> <44A0CA6C.2040005@gmail.com> Message-ID: <9c00d3e00606270430m247b3910i71efd0443034d7f0@mail.gmail.com> Ok, it's been a while since i wrote about the progress of rdog, good vagabond kept you guys up to date :) However, the version runs now - with about 90% of the featureset on vagabonds server. I'm not sure if i can post the address here, so i'll just wait for an OK from vag - also because webrick eats quite some ressources and i'm not sure what this server is supposed to do... anyway, the svn is a bit messy at the moment... apologies for that, but i just checked in the version that worked for me at that time. some issues i have encountered: facets needs to be patched - waiting for version 1.4.3 - using our own version for now... the patch was posted here a while ago in the facets 1.4.2-thread we have found a bug in the schema_inheritance of all stores except for postgres. but i cannot create a bundle to patch it as long as devlab-repo gives me a 404 :( apart from that, most stuff runs smooth, reduced the code of rdog-frontend to about 1/3 of the old svn and there's still room for improvment. one thing we currently don't do is handling of the categories and showing where which method originates - i have to bring the frontend up2date on that, but that might take a bit... anyway - with a little bit more effort we have rdog finished and can work on extending functionality even more - the approach of embedding it in spark is not the worst - but i still believe it can be made better, with a wiki/comments mix so that designated editors can integrate content of comments into the wiki which joins the documentation.. ok, back to work :) On 6/27/06, James Britt wrote: > Andrew Thompson wrote: > > Hey all, > > > > This is a continuation of the 'Rdog ping' thread a few threads up, I > > decided to start over again as the mailing list breaking kinda scewed > > stuff up. > > > > Over the weekend I have been hammering on the rdog-generators with the > > result that I have fixed 4 major (as in htf did this code ever work) > > bugs, added some more features and completely gutted and re-written the > > Og generator. > > > > I've also been poking manveru to work on the frontend again. Apparently > > with no longer having to deal with YAML files and with his improved > > nitro experience he also has improved the code. > > > > I'm working on getting the development site hosted on a machine at work > > as neither manveru or I have boxes that can easily host or run the rdoc > > generator runs (500mhz thinkpad with 192 megs of ram here). > > > > I've committed my fixes to the ruby forge SVn (now that it's finally > > back up) and manveru will probably do the same shortly. I hope to > > continue to work on it so we can show that anything railers can do, we > > can do better :P. > > > Oh, nice, thanks. > > (svn? I've been asleep. When did rubyforge.org move from cvs? > Anyways, I like it. But shows how often I touch my own rubyforge projects.) > > > I see I'll something extra: > > require '/home/manveru/darcs/devlab/glycerin' > > > -- > James Britt > > "In physics the truth is rarely perfectly clear, and that is certainly > universally the case in human affairs. Hence, what is not surrounded by > uncertainty cannot be the truth." > - R. Feynman > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > From m.fellinger at gmail.com Tue Jun 27 08:30:18 2006 From: m.fellinger at gmail.com (Michael Fellinger) Date: Tue, 27 Jun 2006 21:30:18 +0900 Subject: [Nitro] [PATCH] schema_inheritance flaw Message-ID: <9c00d3e00606270530p2c99be86v8031aa011c7e8093@mail.gmail.com> make following work: class Foo propert :name, String schema_inheritance end class FooBar < Foo end class BarFoo References: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> Message-ID: <4b6f054f0606270647s2e40e1b3p4b14045f98780418@mail.gmail.com> On 6/23/06, Jonas Pfenniger wrote: > Hi list, > > Actually there are two major repos out there : > * http://devlab.oree.ch/darcs/glycerin > * http://repo.nitroproject.org > > The first one's short name is "glycerin". It would be handy to also > have a short name for george's repo. What about "navel", "tip", "edge" > or simply "repo" ? George is best placed to choose a name for his repo > but inputs are welcom. > > I would also like to know what will happen to all modifications in > glycerin. I think that George will take his own repo to make the > release and as the time passes, the differences between both repos > grows. We all know that the changes will have to be merged one time > because if we wait too long, some part of the work will be lost. We > also know that George doesn't particularily like to merge other > people's work ;-) This is why I propose to sync glycerin on "repo" as > fast as possible. And this leads to the third point... > > Some people (like me) are developping on top of glycerin because 0.30 > is unstable and the fixes are only in glycerin. The mistake was to not > create a stable branch for 0.30. Now I think it's too late but for the > next release, I'll create a new repo where we can backport fixes. > Probably under the url http://devlab.oree.ch/nitroproject/0.31 > > Please post your thoughts :-) Personally I think have two repos like this is too problematic. There needs to be one main repo. People can of course pull down there own and work on it with the goal of applying their patches back to main. But what's going to happen with two main repos is that a whole lot of work is going to end up useless. This is also another reason why SOC is so important. When parts of a system are clearly separated it becomes easier for a community to work on those parts separately. T. From transfire at gmail.com Tue Jun 27 09:55:25 2006 From: transfire at gmail.com (TRANS) Date: Tue, 27 Jun 2006 09:55:25 -0400 Subject: [Nitro] Facets 1.4.2 In-Reply-To: References: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> <4b6f054f0606211553n58c9dff4l940d3b719559b0b4@mail.gmail.com> Message-ID: <4b6f054f0606270655r5479bd1ct7f37c390c0615fb6@mail.gmail.com> Release 1.4.3. Please give it a try --make sure I didn't miss anything. Thanks, T. From transfire at gmail.com Tue Jun 27 10:06:46 2006 From: transfire at gmail.com (TRANS) Date: Tue, 27 Jun 2006 10:06:46 -0400 Subject: [Nitro] Devlab and Facets-1.4.2 In-Reply-To: <3ff63f9b0606270340k5d36d829na9119bc6ada5dd4@mail.gmail.com> References: <4b6f054f0606211828g1894a6a1q3e9b3b1c4f519dca@mail.gmail.com> <3ff63f9b0606230356v16e48f6ela085c3b357ce662c@mail.gmail.com> <3ff63f9b0606270340k5d36d829na9119bc6ada5dd4@mail.gmail.com> Message-ID: <4b6f054f0606270706l692574fdmba34260846573a21@mail.gmail.com> Is it possible to use Darcs and SVN in parrallel? I imagine using an intermediary like Reap to issue the pulls, adds, remove, commits, etc. and translating that into a pair of commands one for each repo type. Obviously that leads to an LCD situation but if the functional overlap is enough... T. From zimba.tm at gmail.com Tue Jun 27 10:08:53 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 27 Jun 2006 16:08:53 +0200 Subject: [Nitro] About the different repos In-Reply-To: <4b6f054f0606270647s2e40e1b3p4b14045f98780418@mail.gmail.com> References: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> <4b6f054f0606270647s2e40e1b3p4b14045f98780418@mail.gmail.com> Message-ID: <3ff63f9b0606270708m6aabd9f1ub3dc7eb62adb56c0@mail.gmail.com> On 27/06/06, TRANS wrote: > Personally I think have two repos like this is too problematic. There > needs to be one main repo. People can of course pull down there own > and work on it with the goal of applying their patches back to main. > But what's going to happen with two main repos is that a whole lot of > work is going to end up useless. This is also another reason why SOC > is so important. When parts of a system are clearly separated it > becomes easier for a community to work on those parts separately. This is why I propose to restore the old way at next release. The main repo would be nitroproject. Glycerin would sync on nitroproject. Glycerin is the kind of test lab (devlab) where george can pull to get new patches from users. Thing also go faster there. But at every release, we need to create a backup repo for stable patches. We can't continue living on edge.. -- Cheers, zimbatm http://zimbatm.oree.ch From zimba.tm at gmail.com Tue Jun 27 10:13:52 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 27 Jun 2006 16:13:52 +0200 Subject: [Nitro] Devlab and Facets-1.4.2 In-Reply-To: <4b6f054f0606270706l692574fdmba34260846573a21@mail.gmail.com> References: <4b6f054f0606211828g1894a6a1q3e9b3b1c4f519dca@mail.gmail.com> <3ff63f9b0606230356v16e48f6ela085c3b357ce662c@mail.gmail.com> <3ff63f9b0606270340k5d36d829na9119bc6ada5dd4@mail.gmail.com> <4b6f054f0606270706l692574fdmba34260846573a21@mail.gmail.com> Message-ID: <3ff63f9b0606270713u7fe9e41ma7746d4b9af3c8fb@mail.gmail.com> On 27/06/06, TRANS wrote: > Is it possible to use Darcs and SVN in parrallel? I imagine using an > intermediary like Reap to issue the pulls, adds, remove, commits, etc. > and translating that into a pair of commands one for each repo type. > Obviously that leads to an LCD situation but if the functional overlap > is enough... Theoritically yes. Theortically tailor is able to sync between both. In the first times, SVN could be used to work with Trac or to pull the source. We can envisage to push in the future however so that SVN people can also work with us. Right now I thinkt it would require too much hand work to have a two way sync because of all the bugs. -- Cheers, zimbatm http://zimbatm.oree.ch From zimba.tm at gmail.com Tue Jun 27 10:21:28 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 27 Jun 2006 16:21:28 +0200 Subject: [Nitro] [PATCH][nitroproject] Some small fixes to Og and Glue Message-ID: <3ff63f9b0606270721s1891de30k70053913522bd1f@mail.gmail.com> * Removed Glue::Flexob testcase since it does't exist anymore * Added String to Car's property in tc_inheritance.rb However STI talbe creation is still broken * Added handle_sql_exception for MysqlAdapter#create_table Provides a better output -- Cheers, zimbatm http://zimbatm.oree.ch -------------- next part -------------- A non-text attachment was scrubbed... Name: og_bundle.tgz Type: application/x-gzip Size: 3446 bytes Desc: not available Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060627/d11940f5/attachment.tgz From zimba.tm at gmail.com Tue Jun 27 10:34:45 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 27 Jun 2006 16:34:45 +0200 Subject: [Nitro] [BUG][nitroproject][og] STI table creation broken Message-ID: <3ff63f9b0606270734h52225511o389b81b9f19e06ec@mail.gmail.com> This is a bug in the repo.nitroproject.org repo. Just run the og/test/og/tc_inheritance.rb test. There is a weird generated SQL : "CREATE TABLE ogtc_oginheritance_user (ogtype VARCHAR(30), login text, oid integer AUTO_INCREMENT PRIMARY KEY, login text, oid integer AUTO_INCREMENT PRIMARY KEY, password );" (appears if you apply my previous patch and set debug to true in og/test/og/CONFIG.rb= I've looked a bit in the code but couldn't sort that out. There seems to be three problems : 1) The Og::SqlStore#serializable_attributes_for_class doesn't return unique fields. Thus the two AUTO_INCREMENT fields 2) The password field has no type set. In the test case it's a String. 3) The order of the defined fields is not good, password should be defined before the primary key. NOTE : in SqlStore#fields_for_class there is a FIXME not about the new serializable attributes. Hope this helps -- Cheers, zimbatm http://zimbatm.oree.ch From transfire at gmail.com Tue Jun 27 10:34:52 2006 From: transfire at gmail.com (TRANS) Date: Tue, 27 Jun 2006 10:34:52 -0400 Subject: [Nitro] Devlab and Facets-1.4.2 In-Reply-To: <3ff63f9b0606270713u7fe9e41ma7746d4b9af3c8fb@mail.gmail.com> References: <4b6f054f0606211828g1894a6a1q3e9b3b1c4f519dca@mail.gmail.com> <3ff63f9b0606230356v16e48f6ela085c3b357ce662c@mail.gmail.com> <3ff63f9b0606270340k5d36d829na9119bc6ada5dd4@mail.gmail.com> <4b6f054f0606270706l692574fdmba34260846573a21@mail.gmail.com> <3ff63f9b0606270713u7fe9e41ma7746d4b9af3c8fb@mail.gmail.com> Message-ID: <4b6f054f0606270734q33cc43c2h78b9818edf8df95e@mail.gmail.com> On 6/27/06, Jonas Pfenniger wrote: > Theoritically yes. Theortically tailor is able to sync between both. > In the first times, SVN could be used to work with Trac or to pull the > source. We can envisage to push in the future however so that SVN > people can also work with us. Right now I thinkt it would require too > much hand work to have a two way sync because of all the bugs. bugs? From james.britt at gmail.com Tue Jun 27 09:10:14 2006 From: james.britt at gmail.com (James Britt) Date: Tue, 27 Jun 2006 06:10:14 -0700 Subject: [Nitro] unable to unsubscribe In-Reply-To: References: <3ff63f9b0606270328s354b1f17q2a36d5c5de9957a9@mail.gmail.com> Message-ID: <44A12E36.9020602@gmail.com> Yvon Thoraval wrote: > > Le 27 juin 06 ? 12:28, Jonas Pfenniger a ?crit : > >> you'll have to ask the rubyforge maintainer > > > ok, thanks )) Just to be sure, did you mail the request to nitro-general-request at rubyforge.org with a subject line of unsubscribe using the address that has the current subscription? -- James Britt http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - The Journal By & For Rubyists http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://yourelevatorpitch.com - Finding Business Focus From transfire at gmail.com Tue Jun 27 11:44:30 2006 From: transfire at gmail.com (TRANS) Date: Tue, 27 Jun 2006 11:44:30 -0400 Subject: [Nitro] [OT] Roll n' Rain Message-ID: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> Hi NCT, I want to tell you about two project I've been working on that are starting to come to fruition. One is called RubyRoll,or just Roll(s), and the other Rain. Rolls adds object-oriented library management with versioning to Ruby w/o being tied to a package manager (as opposed to Gems). It essentially works like this. When distributing your project, organize the lib/, ext/ and/or data/ directories with a version tier. Eg. myapp/ lib/ 1.0.0/ ... Keep in mind you don't have to develop with the project in this layout (though you could) you can leave the versioin tier out and only add it in upon distribution. (Another alternative is to leave it in but label it '0' and just rename it upon distribution.) With that addition of RUBYOPT="-roll" you can then do things like: library('myapp', '>1' ) #=> # library('myapp').require('somefile') Of course it also works like normal: require 'myapp/somefile' Rolls will insert the version tier as needed. Rolls also has the ability to add meta information, like author, summary, etc. to the Library object. One piece of info that is esspecially useful is 'scope'. By setting the scope you can tell Rolls to search multiple subdirs. For example: myapp/ lib/ 1.0.0/ foo/ ... bar/ here.rb library('myapp').scope( '.', 'foo', 'bar' ) require 'myapp/here' Finally you can add an index.rb file to your project which will be loaded automatically when a library is activated (perfect for setting the scope and other meta-info). I just released version 0.7.0, it still needs a little work (I know of two issue I need to fix) but 's good enough to try out. The current code is actually a complete rewrite of the precisou version --I shrunk the code base in half! Much more elegant now. The second project is Rain and it is a very unique package manager. It actually takes a compressed source package called a "drop file" (.drp right now, but maybe .drop or .rdr better?) Inside the package is also a drop/ directory that holds a metainfo file and may have other suplemental scripts if needed. Using this the rain command line application can build and install a native OS package on the fly. Let me repeat that: Rain generates and installs native OS packages on the fly! Just ot be clear, let me give an examnple. Let's say you're using Debian or Ubunutu. Typing 'rain install myapp' will create a .deb package and install it. If you're using Arch, it will build a pacman package and install it. If Fedora or Redhat, and .rpm. And so on. Rain is quite as developed ad Roll, but it's coming along well --it already works on my Ubuntu system. Of course the real trick will be the Windows .msi adapter ;-) While Rain can download drop packages from the internet (on the fly too). I haven't added dependency handling. I'm not sure about that yet. I sometimes think it would be nice to revive RPA to handle this side of things. Ansyway, So those are the two project that are almost ready for initial releases. I wonder if I should merge them into one project? While I don't want to tie Rolls to any package manager --Rain isn't really any package manager, it's more like a meta-package manager. Also I would like to teach Rolls to recognize a drop file and be able to use it much like Java can use jar files. In other words you would be able to do: require 'myapp.drp' And Ruby/Rolls would uncompress the myapp drop package in a special cache location and then load it from there. Not sure what I would call this combined project if I did so though. So anyway, just wanted to get NCT's take. Thanks, T. P.S. Sorry for the long post. And yes, this is my legendary Gems killer ;-) From zimba.tm at gmail.com Tue Jun 27 12:10:53 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 27 Jun 2006 18:10:53 +0200 Subject: [Nitro] [PATCH][nitroproject] Startup time of Og speeded up by avoiding browsing ObjectSpace Message-ID: <3ff63f9b0606270910s7bcfe7dfk3dc475a45af89f97@mail.gmail.com> What I did is storing all Og::EntityMixin'ss childrens in Og::EntityMixin.children. >From my small test case, I got from 2 secs to 1.13 secs -- Cheers, zimbatm http://zimbatm.oree.ch -------------- next part -------------- A non-text attachment was scrubbed... Name: bundle.tgz Type: application/x-gzip Size: 3271 bytes Desc: not available Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060627/f4023dd5/attachment.tgz From zimba.tm at gmail.com Tue Jun 27 12:15:42 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Tue, 27 Jun 2006 18:15:42 +0200 Subject: [Nitro] Devlab and Facets-1.4.2 In-Reply-To: <4b6f054f0606270734q33cc43c2h78b9818edf8df95e@mail.gmail.com> References: <4b6f054f0606211828g1894a6a1q3e9b3b1c4f519dca@mail.gmail.com> <3ff63f9b0606230356v16e48f6ela085c3b357ce662c@mail.gmail.com> <3ff63f9b0606270340k5d36d829na9119bc6ada5dd4@mail.gmail.com> <4b6f054f0606270706l692574fdmba34260846573a21@mail.gmail.com> <3ff63f9b0606270713u7fe9e41ma7746d4b9af3c8fb@mail.gmail.com> <4b6f054f0606270734q33cc43c2h78b9818edf8df95e@mail.gmail.com> Message-ID: <3ff63f9b0606270915p13d1708do28d956a2c752f760@mail.gmail.com> On 27/06/06, TRANS wrote: > On 6/27/06, Jonas Pfenniger wrote: > > Theoritically yes. Theortically tailor is able to sync between both. > > In the first times, SVN could be used to work with Trac or to pull the > > source. We can envisage to push in the future however so that SVN > > people can also work with us. Right now I thinkt it would require too > > much hand work to have a two way sync because of all the bugs. > > bugs? lots. that task is not simple since every RCS has different features (which is what differenciate them) -- Cheers, zimbatm http://zimbatm.oree.ch From george.moschovitis at gmail.com Tue Jun 27 13:34:12 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Tue, 27 Jun 2006 19:34:12 +0200 Subject: [Nitro] [PATCH][nitroproject] Startup time of Og speeded up by avoiding browsing ObjectSpace In-Reply-To: <3ff63f9b0606270910s7bcfe7dfk3dc475a45af89f97@mail.gmail.com> References: <3ff63f9b0606270910s7bcfe7dfk3dc475a45af89f97@mail.gmail.com> Message-ID: Hmm I havent seen your patch, but I remember submitting a similar patch and then removing it because it was problematic (the problem has to do with the dynamic nature of Og, ie when classes where added/changed but i do not remember at the moment). Anyway, I will review the patch. thanks, George. On 6/27/06, Jonas Pfenniger wrote: > What I did is storing all Og::EntityMixin'ss childrens in > Og::EntityMixin.children. > > >From my small test case, I got from 2 secs to 1.13 secs > > -- > Cheers, > zimbatm > > http://zimbatm.oree.ch > > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > > > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Tue Jun 27 13:36:32 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Tue, 27 Jun 2006 19:36:32 +0200 Subject: [Nitro] Og 2 In-Reply-To: <4b6f054f0606240641m2226c6aje5f39b8e59b4726@mail.gmail.com> References: <4b6f054f0606240641m2226c6aje5f39b8e59b4726@mail.gmail.com> Message-ID: Not much, uses the standard attr_accessor instead of property (property still works for backwards compatibility) so among other things it works with the gtk lib and the driver model is somehow cleaned up and refactored. Some other features like (the long requested) collections build up mode are added too.. regards, George. On 6/24/06, TRANS wrote: > What's the word on the new Og. What's different about it from the > previous version? > > T. > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From thoraval.yvon at free.fr Tue Jun 27 13:44:13 2006 From: thoraval.yvon at free.fr (Yvon Thoraval) Date: Tue, 27 Jun 2006 19:44:13 +0200 Subject: [Nitro] unable to unsubscribe In-Reply-To: <44A12E36.9020602@gmail.com> References: <3ff63f9b0606270328s354b1f17q2a36d5c5de9957a9@mail.gmail.com> <44A12E36.9020602@gmail.com> Message-ID: <7BC4B06D-98AF-4A9B-9675-DE6F84B7F52F@free.fr> Le 27 juin 06 ? 15:10, James Britt a ?crit : > Just to be sure, did you mail the request to > > nitro-general-request at rubyforge.org > > with a subject line of > > unsubscribe no i didn't do that that way. i've used a web interface i'll try that asap, thanks ;-) Yvon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060627/9ebb27b5/attachment.html From george.moschovitis at gmail.com Tue Jun 27 13:45:31 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Tue, 27 Jun 2006 20:45:31 +0300 Subject: [Nitro] [PATCH] Feed helper backwards compatibility In-Reply-To: References: Message-ID: ok, thanx... -g. On 6/25/06, Jonathan Buch wrote: > [repost] > Hi, > > George, you made some change to the Feed helper, specifically > to the author handling. > This patch adds the capability to also let it handle Hashes. > > Hashes are easier to create than full classes, thats why my > brother chose them to represent an author. > > The patch creates an OpenStruct if the o.author is a Hash, > everything else stays as it was. > > Jo > > -- > Feel the love > http://pinkjuice.com/pics/ruby.png > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > > > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Tue Jun 27 13:47:04 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Tue, 27 Jun 2006 20:47:04 +0300 Subject: [Nitro] Facets 1.4.2 In-Reply-To: <4b6f054f0606270655r5479bd1ct7f37c390c0615fb6@mail.gmail.com> References: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> <4b6f054f0606211553n58c9dff4l940d3b719559b0b4@mail.gmail.com> <4b6f054f0606270655r5479bd1ct7f37c390c0615fb6@mail.gmail.com> Message-ID: Ok, will check it ;-) thanks, George. On 6/27/06, TRANS wrote: > Release 1.4.3. Please give it a try --make sure I didn't miss anything. > > Thanks, > T. > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Tue Jun 27 14:24:34 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Tue, 27 Jun 2006 21:24:34 +0300 Subject: [Nitro] Wither list? In-Reply-To: <002c01c699bf$4816e0e0$85af07ca@ghostgum> References: <200606271554.10391.manveru@weez-int.com> <002c01c699bf$4816e0e0$85af07ca@ghostgum> Message-ID: Thanks for this document. -g. On 6/27/06, * William wrote: > That's fine Michael > > Please flag errors and corrections. > > What do you do while the news group is down? Try Google's trends... > > > http://www.google.com/trends?q=object+store%2C+nitro%2C+rails&ctab=0&geo=all > &date=all > > > At first I thought this makes Nitro look pretty cool compared to rails. > Hmmm, it turns out to be a "Dodge Nitro", probably a kind of utility vehicle > (or 'truck' as they say in America). *lol* > > Aloha, > w. > > -----Original Message----- > From: Michael Fellinger [mailto:manveru at weez-int.com] > Sent: Tuesday, 27 June 2006 16:54 > To: william.full.moon at gmail.com; General discussion about Nitro > Subject: Re: [Nitro] Wither list? > Importance: Low > > On Tuesday 27 June 2006 15:49, * William wrote: > > > > While/if I have your attention, I've move the Nitro/Og programming > > document I've been working on to a new URL: > > > > "Programming Nitro and Og" > > http://platypus.stikipad.com/muse/show/Programming+Nitro+and+Og > > Thank you for that incredible summary of Og, i just couldn't resist and > immediatly pressed the 'print' button - will read it later today as i have > some other stuff to do (and continue work on rdog), but it looks sweet :D > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.9.5 - Release Date: 26-Jun-2006 > > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Tue Jun 27 14:27:18 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Tue, 27 Jun 2006 21:27:18 +0300 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> Message-ID: As always they both sound quite cool! ;-) On 6/27/06, TRANS wrote: > Hi NCT, > > I want to tell you about two project I've been working on that are > starting to come to fruition. One is called RubyRoll,or just Roll(s), > and the other Rain. > > Rolls adds object-oriented library management with versioning to Ruby > w/o being tied to a package manager (as opposed to Gems). It > essentially works like this. When distributing your project, organize > the lib/, ext/ and/or data/ directories with a version tier. Eg. > > myapp/ > lib/ > 1.0.0/ > ... > > Keep in mind you don't have to develop with the project in this layout > (though you could) you can leave the versioin tier out and only add it > in upon distribution. (Another alternative is to leave it in but label > it '0' and just rename it upon distribution.) With that addition of > RUBYOPT="-roll" you can then do things like: > > library('myapp', '>1' ) #=> # > library('myapp').require('somefile') > > Of course it also works like normal: > > require 'myapp/somefile' > > Rolls will insert the version tier as needed. Rolls also has the > ability to add meta information, like author, summary, etc. to the > Library object. One piece of info that is esspecially useful is > 'scope'. By setting the scope you can tell Rolls to search multiple > subdirs. For example: > > myapp/ > lib/ > 1.0.0/ > foo/ > ... > bar/ > here.rb > > library('myapp').scope( '.', 'foo', 'bar' ) > > require 'myapp/here' > > Finally you can add an index.rb file to your project which will be > loaded automatically when a library is activated (perfect for setting > the scope and other meta-info). > > I just released version 0.7.0, it still needs a little work (I know of > two issue I need to fix) but 's good enough to try out. The current > code is actually a complete rewrite of the precisou version --I shrunk > the code base in half! Much more elegant now. > > The second project is Rain and it is a very unique package manager. It > actually takes a compressed source package called a "drop file" (.drp > right now, but maybe .drop or .rdr better?) Inside the package is also > a drop/ directory that holds a metainfo file and may have other > suplemental scripts if needed. Using this the rain command line > application can build and install a native OS package on the fly. Let > me repeat that: Rain generates and installs native OS packages on the > fly! Just ot be clear, let me give an examnple. Let's say you're using > Debian or Ubunutu. Typing 'rain install myapp' will create a .deb > package and install it. If you're using Arch, it will build a pacman > package and install it. If Fedora or Redhat, and .rpm. And so on. > > Rain is quite as developed ad Roll, but it's coming along well --it > already works on my Ubuntu system. Of course the real trick will be > the Windows .msi adapter ;-) > > While Rain can download drop packages from the internet (on the fly > too). I haven't added dependency handling. I'm not sure about that > yet. I sometimes think it would be nice to revive RPA to handle this > side of things. > > Ansyway, So those are the two project that are almost ready for > initial releases. I wonder if I should merge them into one project? > While I don't want to tie Rolls to any package manager --Rain isn't > really any package manager, it's more like a meta-package manager. > Also I would like to teach Rolls to recognize a drop file and be able > to use it much like Java can use jar files. In other words you would > be able to do: > > require 'myapp.drp' > > And Ruby/Rolls would uncompress the myapp drop package in a special > cache location and then load it from there. Not sure what I would > call this combined project if I did so though. > > So anyway, just wanted to get NCT's take. > > Thanks, > T. > > P.S. Sorry for the long post. And yes, this is my legendary Gems killer ;-) > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Tue Jun 27 14:36:15 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Tue, 27 Jun 2006 21:36:15 +0300 Subject: [Nitro] About the different repos In-Reply-To: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> References: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> Message-ID: > also know that George doesn't particularily like to merge other > people's work ;-) This is why I propose to sync glycerin on "repo" as ouch ;-) > Some people (like me) are developping on top of glycerin because 0.30 > is unstable and the fixes are only in glycerin. The mistake was to not > create a stable branch for 0.30. Now I think it's too late but for the > next release, I'll create a new repo where we can backport fixes. Releasing 0.30.1 is a good idea ;-) regards, George. -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Tue Jun 27 14:37:39 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Tue, 27 Jun 2006 21:37:39 +0300 Subject: [Nitro] About the different repos In-Reply-To: References: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> Message-ID: > Yes, I believe George is planning to release 0.31 from nitroproject. > There will be no 0.30.1 bugfix release. I would like to release 0.31.0 some time around 15 July. Perhaps we could release the current devlab repo as 0.30.1. What do you think? regards, George. -- http://www.gmosx.com http://www.nitroproject.org From james.britt at gmail.com Tue Jun 27 12:54:59 2006 From: james.britt at gmail.com (James Britt) Date: Tue, 27 Jun 2006 09:54:59 -0700 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> Message-ID: <44A162E3.3060201@gmail.com> TRANS wrote: > Hi NCT, > > I want to tell you about two project I've been working on that are > starting to come to fruition. One is called RubyRoll,or just Roll(s), > and the other Rain. > > Rolls adds object-oriented library management with versioning to Ruby > w/o being tied to a package manager (as opposed to Gems). It > essentially works like this. When distributing your project, organize > the lib/, ext/ and/or data/ directories with a version tier. Eg. > > myapp/ > lib/ > 1.0.0/ > ... > > Keep in mind you don't have to develop with the project in this layout > (though you could) you can leave the versioin tier out and only add it > in upon distribution. (Another alternative is to leave it in but label > it '0' and just rename it upon distribution.) With that addition of > RUBYOPT="-roll" you can then do things like: > > library('myapp', '>1' ) #=> # > library('myapp').require('somefile') > > Of course it also works like normal: > > require 'myapp/somefile' Just so I'm clear, code that knows nothing about Roll can use other code that has been installed using Roll? > > The second project is Rain Not Rock? :) > ... > While Rain can download drop packages from the internet (on the fly > too). I haven't added dependency handling. I'm not sure about that > yet. I sometimes think it would be nice to revive RPA to handle this > side of things. Have you thought about authentication and code signing? > > Ansyway, So those are the two project that are almost ready for > initial releases. I wonder if I should merge them into one project? > While I don't want to tie Rolls to any package manager --Rain isn't > really any package manager, it's more like a meta-package manager. > Also I would like to teach Rolls to recognize a drop file and be able > to use it much like Java can use jar files. In other words you would > be able to do: > > require 'myapp.drp' > > And Ruby/Rolls would uncompress the myapp drop package in a special > cache location and then load it from there. Not sure what I would > call this combined project if I did so though. Jelly? Umbrella? > > So anyway, just wanted to get NCT's take. > > Thanks, > T. > > P.S. Sorry for the long post. And yes, this is my legendary Gems killer ;-) Mighty contentious claim there. Does it play well with gems? For example, is it plausible that Roll could create and install a gem package as it might a .rpm or .deb bundle? -- James Britt "Blanket statements are over-rated" From transfire at gmail.com Tue Jun 27 15:05:50 2006 From: transfire at gmail.com (TRANS) Date: Tue, 27 Jun 2006 15:05:50 -0400 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <44A162E3.3060201@gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> Message-ID: <4b6f054f0606271205y7ebe9101h65ee7c084082abbf@mail.gmail.com> On 6/27/06, James Britt wrote: > Just so I'm clear, code that knows nothing about Roll can use other code > that has been installed using Roll? Yes. > > The second project is Rain > > > Not Rock? > > :) :D > > ... > > While Rain can download drop packages from the internet (on the fly > > too). I haven't added dependency handling. I'm not sure about that > > yet. I sometimes think it would be nice to revive RPA to handle this > > side of things. > > Have you thought about authentication and code signing? I'd like to work that in eventually, yes. Want to do? > Mighty contentious claim there. Well, I've been talking about it for awhile and Austin's been giving me a hard time about for just as long. So I've had incentive ;) > Does it play well with gems? For example, is it plausible that Roll > could create and install a gem package as it might a .rpm or .deb bundle? The previous version worked with Gems w/o issue. I have't tested this version yet, but by design it should work fine. I even have a little trick in store -- the #library call will try #gem if a library isn't found. T. From vagabond at cataclysm-software.net Tue Jun 27 15:12:54 2006 From: vagabond at cataclysm-software.net (Andrew Thompson) Date: Tue, 27 Jun 2006 15:12:54 -0400 Subject: [Nitro] RDog Pong In-Reply-To: <9c00d3e00606270430m247b3910i71efd0443034d7f0@mail.gmail.com> References: <20060627051239.GA19531@hijacked.us> <44A0CA6C.2040005@gmail.com> <9c00d3e00606270430m247b3910i71efd0443034d7f0@mail.gmail.com> Message-ID: <20060627191254.GA26408@hijacked.us> Yeah, the URL can be made public. If it eats too much resources we can always kill it... http://ppx.slic.com:9999 And yeah, manveru has to finish using all the data we scrape from rdoc (original files, categories, methods added by the stdlib, method redefinitions, singleton methods (eg Class.new vs Class#new), etc). There's also more fun work to do on the backend :| Anyway, we progress... Andrew From george.moschovitis at gmail.com Tue Jun 27 15:25:45 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Tue, 27 Jun 2006 22:25:45 +0300 Subject: [Nitro] [REQ] Og, typecheck at startup In-Reply-To: References: Message-ID: > see: http://oxyliquit.de/question/62 > George: is this possible? I think this is possible. Will add this to my (saddly big) todo list. regards, George. -- http://www.gmosx.com http://www.nitroproject.org From bryan.a.soto at gmail.com Tue Jun 27 15:32:58 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Tue, 27 Jun 2006 12:32:58 -0700 Subject: [Nitro] RDog Pong In-Reply-To: <20060627191254.GA26408@hijacked.us> References: <20060627051239.GA19531@hijacked.us> <44A0CA6C.2040005@gmail.com> <9c00d3e00606270430m247b3910i71efd0443034d7f0@mail.gmail.com> <20060627191254.GA26408@hijacked.us> Message-ID: On 6/27/06, Andrew Thompson wrote: > Anyway, we progress... > I was interested in the code so I tried to check it out from Rubyforge: $ svn co svn://rubyforge.org//var/svn/rdog A rdog/log A rdog/rdoc-devel A rdog/rdoc-devel/parsers A rdog/rdoc-devel/parsers/parse_c.rb A rdog/rdoc-devel/rdoc-devel A rdog/rdoc-devel/code_objects.rb A rdog/rdoc-devel/rdoc A rdog/rdoc-devel/generators A rdog/rdoc-devel/generators/yaml_generator.rb A rdog/rdoc-devel/generators/og_generator.rb A rdog/rdoc-devel/README svn: In directory 'rdog/rdoc-devel' svn: Can't open 'rdog/rdoc-devel/rdoc.tmp': Operation not permitted Not sure if this should go to you or to Rubyforge. Bryan From vagabond at cataclysm-software.net Tue Jun 27 16:53:46 2006 From: vagabond at cataclysm-software.net (Andrew Thompson) Date: Tue, 27 Jun 2006 16:53:46 -0400 Subject: [Nitro] RDog Pong In-Reply-To: References: <20060627051239.GA19531@hijacked.us> <44A0CA6C.2040005@gmail.com> <9c00d3e00606270430m247b3910i71efd0443034d7f0@mail.gmail.com> <20060627191254.GA26408@hijacked.us> Message-ID: <20060627205346.GB26408@hijacked.us> On Tue, Jun 27, 2006 at 12:32:58PM -0700, Bryan Soto wrote: > svn: In directory 'rdog/rdoc-devel' > svn: Can't open 'rdog/rdoc-devel/rdoc.tmp': Operation not permitted > > Not sure if this should go to you or to Rubyforge. > > Bryan I can't reproduce this... Is it maybe an issue on your machine? Or maybe you hit rubyforge at a bad moment... Andrew From james.britt at gmail.com Tue Jun 27 15:35:48 2006 From: james.britt at gmail.com (James Britt) Date: Tue, 27 Jun 2006 12:35:48 -0700 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <4b6f054f0606271205y7ebe9101h65ee7c084082abbf@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> <4b6f054f0606271205y7ebe9101h65ee7c084082abbf@mail.gmail.com> Message-ID: <44A18894.3090007@gmail.com> TRANS wrote: >>>... >>>While Rain can download drop packages from the internet (on the fly >>>too). I haven't added dependency handling. I'm not sure about that >>>yet. I sometimes think it would be nice to revive RPA to handle this >>>side of things. >> >>Have you thought about authentication and code signing? > > > I'd like to work that in eventually, yes. Want to do? Ha ha ha! :) Actually, it's an interesting problem, but I've no time lately. What do other, similar tools do? Is an MD5 signature enough? It's not a critical issue for me; I see a real value in having a central server in a known subnet serving up code to distributed apps, where trust is already established. > > >>Mighty contentious claim there. > > > Well, I've been talking about it for awhile and Austin's been giving > me a hard time about for just as long. So I've had incentive ;) But you know the matter is only partly technical. There is an installed gems user base, a growing popularity (or at least familiarity) with gems, and an expectation that gems will get rolled into Ruby code at some point. -- James Britt "A language that doesn't affect the way you think about programming is not worth knowing." - A. Perlis From james.britt at gmail.com Tue Jun 27 15:38:09 2006 From: james.britt at gmail.com (James Britt) Date: Tue, 27 Jun 2006 12:38:09 -0700 Subject: [Nitro] RDog Pong In-Reply-To: <20060627191254.GA26408@hijacked.us> References: <20060627051239.GA19531@hijacked.us> <44A0CA6C.2040005@gmail.com> <9c00d3e00606270430m247b3910i71efd0443034d7f0@mail.gmail.com> <20060627191254.GA26408@hijacked.us> Message-ID: <44A18921.6090000@gmail.com> Andrew Thompson wrote: > Yeah, the URL can be made public. If it eats too much resources we can > always kill it... > > http://ppx.slic.com:9999 > > And yeah, manveru has to finish using all the data we scrape from rdoc > (original files, categories, methods added by the stdlib, method > redefinitions, singleton methods (eg Class.new vs Class#new), etc). > There's also more fun work to do on the backend :| Sweet. What do I need to do to get the data files? (I have the svn ode running at home) -- James Britt "A language that doesn't affect the way you think about programming is not worth knowing." - A. Perlis From george.moschovitis at gmail.com Tue Jun 27 17:10:45 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Wed, 28 Jun 2006 00:10:45 +0300 Subject: [Nitro] Facets 1.4.2 In-Reply-To: References: <4b6f054f0606210953s4e8a5de3r60c2a89afcac2d7@mail.gmail.com> <4b6f054f0606211553n58c9dff4l940d3b719559b0b4@mail.gmail.com> <4b6f054f0606270655r5479bd1ct7f37c390c0615fb6@mail.gmail.com> Message-ID: 1.4.3 works great ;-) thanks, -g. On 6/27/06, George Moschovitis wrote: > Ok, will check it ;-) > > thanks, > George. > > On 6/27/06, TRANS wrote: > > Release 1.4.3. Please give it a try --make sure I didn't miss anything. > > > > Thanks, > > T. > > _______________________________________________ > > Nitro-general mailing list > > Nitro-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/nitro-general > > > > > -- > http://www.gmosx.com > http://www.nitroproject.org > -- http://www.gmosx.com http://www.nitroproject.org From james.britt at gmail.com Tue Jun 27 15:42:33 2006 From: james.britt at gmail.com (James Britt) Date: Tue, 27 Jun 2006 12:42:33 -0700 Subject: [Nitro] RDog Pong In-Reply-To: References: <20060627051239.GA19531@hijacked.us> <44A0CA6C.2040005@gmail.com> <9c00d3e00606270430m247b3910i71efd0443034d7f0@mail.gmail.com> <20060627191254.GA26408@hijacked.us> Message-ID: <44A18A29.2050901@gmail.com> Bryan Soto wrote: ... > A rdog/rdoc-devel/README > svn: In directory 'rdog/rdoc-devel' > svn: Can't open 'rdog/rdoc-devel/rdoc.tmp': Operation not permitted > > Not sure if this should go to you or to Rubyforge. > Odd. I just ran checkout and it worked fine for me. I have no rdoc.tmp file, so perhaps you caught the repo at a bad time? -- James Britt "A language that doesn't affect the way you think about programming is not worth knowing." - A. Perlis From george.moschovitis at gmail.com Tue Jun 27 17:12:37 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Wed, 28 Jun 2006 00:12:37 +0300 Subject: [Nitro] Problem with OpenObject Message-ID: Tom, there is a nasty problem with OpenObject. If you try to use eval inside an object that extends OpenObject you are in for nasty problems :( Switching to OpenStruct solves this. Saddly i dont have the time to look into the OpenObject implementation, but I wanted to report this. thanks, George. -- http://www.gmosx.com http://www.nitroproject.org From bryan.a.soto at gmail.com Tue Jun 27 17:28:14 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Tue, 27 Jun 2006 14:28:14 -0700 Subject: [Nitro] RDog Pong In-Reply-To: <20060627205346.GB26408@hijacked.us> References: <20060627051239.GA19531@hijacked.us> <44A0CA6C.2040005@gmail.com> <9c00d3e00606270430m247b3910i71efd0443034d7f0@mail.gmail.com> <20060627191254.GA26408@hijacked.us> <20060627205346.GB26408@hijacked.us> Message-ID: On 6/27/06, Andrew Thompson wrote: > On Tue, Jun 27, 2006 at 12:32:58PM -0700, Bryan Soto wrote: > > svn: In directory 'rdog/rdoc-devel' > > svn: Can't open 'rdog/rdoc-devel/rdoc.tmp': Operation not permitted > > > > Not sure if this should go to you or to Rubyforge. > > > > Bryan > > I can't reproduce this... Is it maybe an issue on your machine? Or maybe > you hit rubyforge at a bad moment... > Are you trying anonomously? That's about the only difference I can think of. I've attempted checking out from rubyforge at various times, trying to spread it out, with that same error message. Subversion check out seems to work for other things, camping for example. I don't know enough about subversion to rule out my maching though. :/ From bryan.a.soto at gmail.com Tue Jun 27 17:31:42 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Tue, 27 Jun 2006 14:31:42 -0700 Subject: [Nitro] RDog Pong In-Reply-To: <44A18A29.2050901@gmail.com> References: <20060627051239.GA19531@hijacked.us> <44A0CA6C.2040005@gmail.com> <9c00d3e00606270430m247b3910i71efd0443034d7f0@mail.gmail.com> <20060627191254.GA26408@hijacked.us> <44A18A29.2050901@gmail.com> Message-ID: On 6/27/06, James Britt wrote: > Bryan Soto wrote: > ... > > A rdog/rdoc-devel/README > > svn: In directory 'rdog/rdoc-devel' > > svn: Can't open 'rdog/rdoc-devel/rdoc.tmp': Operation not permitted > > > > Not sure if this should go to you or to Rubyforge. > > > > Odd. I just ran checkout and it worked fine for me. > > I have no rdoc.tmp file, so perhaps you caught the repo at a bad time? > Odd. If I check out to my reiser partition, all works fine. If I check out to my 6gig portable (vfat), it dies with that error message. Okay, maybe it is just me then. Bryan From itsme213 at hotmail.com Tue Jun 27 18:58:04 2006 From: itsme213 at hotmail.com (itsme213) Date: Tue, 27 Jun 2006 17:58:04 -0500 Subject: [Nitro] class_extension etc. References: <4b6f054f0606261727y14531696oe91e1ef486418b6a@mail.gmail.com> Message-ID: "TRANS" wrote in message > ruby-talk: 196402 > > http://groups.google.com/group/ruby-talk-google/browse_thread/thread/4e08a07aa0ff6d2b/bda97af172cf5555?q=class_extension& > > T. Wow, what a terrific thread. I was not clear if/how the initialization issues was solved. Anyone know? From lists at davidlangston.com Tue Jun 27 21:11:54 2006 From: lists at davidlangston.com (Dave Langston) Date: Tue, 27 Jun 2006 18:11:54 -0700 Subject: [Nitro] Revisable -- is it the correct semantics?? Message-ID: <44A1D75A.3020007@davidlangston.com> All, I hate semantic "wars... uh I mean discussions", and hopefully this one is trivial, but before I submit patches I would like to get a sense of the community re: 'revisions' which I am currenly using in a project I am implementing in Og/Nitro. In Og glue/revisable.rb, currently (in 0.30.0 and George's repos) you "create" an 'item' and then you can "revise" an 'item' and by default the first version of the 'item' is assigned a "revision" of 1 (presently, the initial 'revision' value of the item is 'nil' and is then assigned a 'revision' value of 1 only after executing a "revise", at which time the newly created "revised" item is also assigned "revision" 1). Interestingly, currently if you ask for item.revision_count after the first 'revise', it will respond with '1' and item.last_revision will respond with the initial 'item' number 1.... but if you ask for item.get_revision(1) you get the revised 'item' number 1... from my view, we have inconsistent semantics of "revisions" here as well as possible bugs (also, I submitted a patch for what I thought was "the" revisioning bug last week which assigns the 'revised' item a revision number of 2, but the more I use it the more I see it is a larger issue)... So, let's quickly assume we are talking about a Document... I create a document (a), I then revise the document (b), and I then revise the document again (c). What are our semantic options: A) From one perspective I have an original document with "2" revisions, so the revision count is 2, the first revision is (b), the last revision is (c) and the initial doc (a) HAS NO REVISION number as it is the original (possibly revision "0"???). B) From another perspective I could say I have 3 revisions (a) is revision 1, (b) is revision 2, and (c) is revision 3 and the revision count is 3 Frankly, from my standpoint, perspective (B) is preferable from the way I see myself typically using the feature, but it is slightly confusing semantically. It is clearer if one calls the process "versioning" and you have 3 versions of the document, but now not only does this require some patches, but requires renaming the feature as well or worse case, requires fixing 'revisioning' and creating a new feature, 'versioning'.... AHHHHH!!! thoughts from George as to his initial intent and the community at large?? rgds, Dave Langston From transfire at gmail.com Tue Jun 27 21:46:40 2006 From: transfire at gmail.com (TRANS) Date: Tue, 27 Jun 2006 21:46:40 -0400 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <44A162E3.3060201@gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> Message-ID: <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> On 6/27/06, James Britt wrote: > Does it play well with gems? For example, is it plausible that Roll > could create and install a gem package as it might a .rpm or .deb bundle? Oops. I forgot to mention. Yes, it already can create Gems too. The code actually came right out of Reap's package task. T. From transfire at gmail.com Tue Jun 27 22:06:52 2006 From: transfire at gmail.com (TRANS) Date: Tue, 27 Jun 2006 22:06:52 -0400 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <44A18894.3090007@gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> <4b6f054f0606271205y7ebe9101h65ee7c084082abbf@mail.gmail.com> <44A18894.3090007@gmail.com> Message-ID: <4b6f054f0606271906u170978fdp9a6ab0d77a0e519c@mail.gmail.com> On 6/27/06, James Britt wrote: > > But you know the matter is only partly technical. There is an installed > gems user base, a growing popularity (or at least familiarity) with > gems, and an expectation that gems will get rolled into Ruby code at > some point. That would be terrbile. Coupling Ruby, a programming language, to a package management system in order to support versioning is poor design. Would you lock Ruby into one GUI? Would you lock it into one database? Or one operating system? B/c that's what Gems is doing to Ruby. If you want lib versioing you have to use a Gems package. Not anymore! While much work remains to be done, Rolls and Rain offer greater advantages over the long haul. T. From transfire at gmail.com Tue Jun 27 22:18:19 2006 From: transfire at gmail.com (TRANS) Date: Tue, 27 Jun 2006 22:18:19 -0400 Subject: [Nitro] Problem with OpenObject In-Reply-To: References: Message-ID: <4b6f054f0606271918w61e146dodeb7c73deb1d11fa@mail.gmail.com> On 6/27/06, George Moschovitis wrote: > Tom, > > there is a nasty problem with OpenObject. If you try to use eval > inside an object that extends OpenObject you are in for nasty problems > :( Switching to OpenStruct solves this. Saddly i dont have the time to > look into the OpenObject implementation, but I wanted to report this. Yea. That's an easy one. There are no methods in OpenObject! (Of course there are some essential and non-clashing methods, but the theory there are none.) Why are your extending OpenObject anyway? That's seems dangerous in and of itself. I actually need to see an example to know exactly what you mean but there may be a work around by running calls through the "self" role. This is still a kind of new, so naming is still going through ironing out, but right now your can do: o = OpenObject.new o.__self__.instance_eval { ... } T. From transfire at gmail.com Tue Jun 27 22:24:17 2006 From: transfire at gmail.com (TRANS) Date: Tue, 27 Jun 2006 22:24:17 -0400 Subject: [Nitro] class_extension etc. In-Reply-To: References: <4b6f054f0606261727y14531696oe91e1ef486418b6a@mail.gmail.com> Message-ID: <4b6f054f0606271924q62ccb09by7337f73483d44c3a@mail.gmail.com> On 6/27/06, itsme213 wrote: > > "TRANS" wrote in message > > > ruby-talk: 196402 > > > > http://groups.google.com/group/ruby-talk-google/browse_thread/thread/4e08a07aa0ff6d2b/bda97af172cf5555?q=class_extension& > > > > T. > > Wow, what a terrific thread. > > I was not clear if/how the initialization issues was solved. Anyone know? You mean module instance variable initialization? If so I don;t think it was resolved. That's still a remaining issue. T. From manveru at weez-int.com Tue Jun 27 22:34:45 2006 From: manveru at weez-int.com (Michael Fellinger) Date: Wed, 28 Jun 2006 11:34:45 +0900 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <44A18894.3090007@gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <4b6f054f0606271205y7ebe9101h65ee7c084082abbf@mail.gmail.com> <44A18894.3090007@gmail.com> Message-ID: <200606281134.45188.manveru@weez-int.com> On Wednesday 28 June 2006 04:35, James Britt wrote: > TRANS wrote: > >>>... > >>>While Rain can download drop packages from the internet (on the fly > >>>too). I haven't added dependency handling. I'm not sure about that > >>>yet. I sometimes think it would be nice to revive RPA to handle this > >>>side of things. > >> > >>Have you thought about authentication and code signing? > > > > I'd like to work that in eventually, yes. Want to do? > > Ha ha ha! > > :) > > Actually, it's an interesting problem, but I've no time lately. > > What do other, similar tools do? Is an MD5 signature enough? > > It's not a critical issue for me; I see a real value in having a central > server in a known subnet serving up code to distributed apps, where > trust is already established. Ok, wait, you want to tell me that i finally can have _one_ base-install of nitro that i could patch and all my machines can just pick it up on the fly? that would be _so_ sweeet, totally what that net-require would have done (i remember a total hype about it some months ago on the ruby-lang ML), but in a large scale... the on-demand-loading should cache though - and only check for timeout/updates... I think a usual MD5 or SHA1 should be enough... however, one could include some host-signature as well, kind of like ssh does with its trusted-hosts > > >>Mighty contentious claim there. > > > > Well, I've been talking about it for awhile and Austin's been giving > > me a hard time about for just as long. So I've had incentive ;) > > But you know the matter is only partly technical. There is an installed > gems user base, a growing popularity (or at least familiarity) with > gems, and an expectation that gems will get rolled into Ruby code at > some point. Once that stuff uses gems as well i won't be using something else anymore... also, if you want a mirror for any future repository - i already reserved some space for you. ;D The thing with the social context is very true... the problem being - rubygems is widely accepted now - mainly through excellent projects using it, but well, given some years and effort, who knows if we not might have a rainy-season? From manveru at weez-int.com Tue Jun 27 22:35:23 2006 From: manveru at weez-int.com (Michael Fellinger) Date: Wed, 28 Jun 2006 11:35:23 +0900 Subject: [Nitro] Revisable -- is it the correct semantics?? In-Reply-To: <44A1D75A.3020007@davidlangston.com> References: <44A1D75A.3020007@davidlangston.com> Message-ID: <200606281135.23848.manveru@weez-int.com> On Wednesday 28 June 2006 10:11, Dave Langston wrote: > All, > > I hate semantic "wars... uh I mean discussions", and hopefully this one > is trivial, but before I submit patches I would like to get a sense of > the community re: 'revisions' which I am currenly using in a project I > am implementing in Og/Nitro. So to say, the nitro-community is totally open to discussions about 'semantics', we may try to outsmart each other once in a while, but when it comes to syntax everybody using ruby wants to save typing and thinking ;) Anyway, the only rule here seems to be - 'make it optional/configurable' - no matter what your patch or feature is for, some people just don't want it or need total control over it... > > In Og glue/revisable.rb, currently (in 0.30.0 and George's repos) you > "create" an 'item' and then you can "revise" an 'item' and by default > the first version of the 'item' is assigned a "revision" of 1 > (presently, the initial 'revision' value of the item is 'nil' and is > then assigned a 'revision' value of 1 only after executing a "revise", > at which time the newly created "revised" item is also assigned > "revision" 1). Interestingly, currently if you ask for > item.revision_count after the first 'revise', it will respond with '1' > and item.last_revision will respond with the initial 'item' number 1.... > but if you ask for item.get_revision(1) you get the revised 'item' > number 1... from my view, we have inconsistent semantics of > "revisions" here as well as possible bugs (also, I submitted a patch for > what I thought was "the" revisioning bug last week which assigns the > 'revised' item a revision number of 2, but the more I use it the more I > see it is a larger issue)... > > So, let's quickly assume we are talking about a Document... I create a > document (a), I then revise the document (b), and I then revise the > document again (c). What are our semantic options: > > A) From one perspective I have an original document with "2" revisions, > so the revision count is 2, the first revision is (b), the last revision > is (c) and the initial doc (a) HAS NO REVISION number as it is the > original (possibly revision "0"???). I am all for this solution, would make it easy to use stuff like class Page is Reviseable property :title, String property :text, String end page = Page.create_with :title => 'hello world' :text => 'puts "Hello World!"' page.save # this should be revision 0 page.save # revision 1 - yes, i want automagic revising... page = Page.first # revision 1 - automagic call of last_revision? page.revision 0 # revision 0 > > B) From another perspective I could say I have 3 revisions (a) is > revision 1, (b) is revision 2, and (c) is revision 3 and the revision > count is 3 > > Frankly, from my standpoint, perspective (B) is preferable from the way > I see myself typically using the feature, but it is slightly confusing > semantically. It is clearer if one calls the process "versioning" and > you have 3 versions of the document, but now not only does this require > some patches, but requires renaming the feature as well or worse case, > requires fixing 'revisioning' and creating a new feature, > 'versioning'.... AHHHHH!!! > > thoughts from George as to his initial intent and the community at large?? > > rgds, > Dave Langston > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general From james.britt at gmail.com Tue Jun 27 23:18:56 2006 From: james.britt at gmail.com (James Britt) Date: Tue, 27 Jun 2006 20:18:56 -0700 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <200606281134.45188.manveru@weez-int.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <4b6f054f0606271205y7ebe9101h65ee7c084082abbf@mail.gmail.com> <44A18894.3090007@gmail.com> <200606281134.45188.manveru@weez-int.com> Message-ID: <44A1F520.7070000@gmail.com> Michael Fellinger wrote: > On Wednesday 28 June 2006 04:35, James Britt wrote: >> >>It's not a critical issue for me; I see a real value in having a central >>server in a known subnet serving up code to distributed apps, where >>trust is already established. > > > Ok, wait, you want to tell me that i finally can have _one_ base-install of > nitro that i could patch and all my machines can just pick it up on the fly? > Pretty much. An "app" could be a single line of code that just bootstraps itself by fetching code across the wire. Zero installation. > that would be _so_ sweeet, totally what that net-require would have done (i > remember a total hype about it some months ago on the ruby-lang ML), but in a > large scale... A few people cooked up assorted versions of this (I called mine HyperActive Require). http://www.oreillynet.com/ruby/blog/2006/01/the_year_of_living_dangerously.html > > the on-demand-loading should cache though - and only check for > timeout/updates... Yeah, there were interesting ideas kicked around on this. -- James Britt From james.britt at gmail.com Tue Jun 27 23:25:45 2006 From: james.britt at gmail.com (James Britt) Date: Tue, 27 Jun 2006 20:25:45 -0700 Subject: [Nitro] Revisable -- is it the correct semantics?? In-Reply-To: <200606281135.23848.manveru@weez-int.com> References: <44A1D75A.3020007@davidlangston.com> <200606281135.23848.manveru@weez-int.com> Message-ID: <44A1F6B9.7000706@gmail.com> Michael Fellinger wrote: > > ... > I am all for this solution, would make it easy to use stuff like > > class Page > is Reviseable > property :title, String > property :text, String > end > > page = Page.create_with :title => 'hello world' :text => 'puts "Hello World!"' > page.save > # this should be revision 0 > page.save > # revision 1 - yes, i want automagic revising... What was revised? You want the revision number to get upped on every save, even if the item has not changed? Hmmm. On the other hand, to do otherwise may introduce assorted questions about determining when something has changed in a meaningful way (i.e., some concept of a 'dirty' flag) -- James Britt http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - The Journal By & For Rubyists http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys http://www.30secondrule.com - Building Better Tools From manveru at weez-int.com Tue Jun 27 23:54:35 2006 From: manveru at weez-int.com (Michael Fellinger) Date: Wed, 28 Jun 2006 12:54:35 +0900 Subject: [Nitro] Revisable -- is it the correct semantics?? In-Reply-To: <44A1F6B9.7000706@gmail.com> References: <44A1D75A.3020007@davidlangston.com> <200606281135.23848.manveru@weez-int.com> <44A1F6B9.7000706@gmail.com> Message-ID: <200606281254.35353.manveru@weez-int.com> On Wednesday 28 June 2006 12:25, James Britt wrote: > Michael Fellinger wrote: > > ... > > I am all for this solution, would make it easy to use stuff like > > > > class Page > > is Reviseable > > property :title, String > > property :text, String > > end > > > > page = Page.create_with :title => 'hello world' :text => 'puts "Hello > > World!"' page.save > > # this should be revision 0 > > page.save > > # revision 1 - yes, i want automagic revising... > > What was revised? You want the revision number to get upped on every > save, even if the item has not changed? Hmmm. > > On the other hand, to do otherwise may introduce assorted questions > about determining when something has changed in a meaningful way (i.e., > some concept of a 'dirty' flag) Which also raises the question of partial updates - depending on what changed... That is what i forgot - i think there's no problem with rising the revision on save... is there? From transfire at gmail.com Wed Jun 28 00:35:10 2006 From: transfire at gmail.com (TRANS) Date: Wed, 28 Jun 2006 00:35:10 -0400 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <44A1F520.7070000@gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <4b6f054f0606271205y7ebe9101h65ee7c084082abbf@mail.gmail.com> <44A18894.3090007@gmail.com> <200606281134.45188.manveru@weez-int.com> <44A1F520.7070000@gmail.com> Message-ID: <4b6f054f0606272135pfb43591md6058123c338dc77@mail.gmail.com> On 6/27/06, James Britt wrote: > Pretty much. An "app" could be a single line of code that just > bootstraps itself by fetching code across the wire. Zero installation. > A few people cooked up assorted versions of this (I called mine > HyperActive Require). > > http://www.oreillynet.com/ruby/blog/2006/01/the_year_of_living_dangerously.html > > Yeah, there were interesting ideas kicked around on this. I've expiremented with this too. Would it really be so great? I think I'd rather add signed .drp (like .jar) support to require then let require take url to a .drp file. In any case here's my original stab at it w/ example at bottom: require 'open-uri' require 'digest/md5' require 'fileutils' REMOTE_CACHE = File.expand_path( '~/.config/site_ruby/1.8/' ) FileUtils.mkdir_p REMOTE_CACHE unless File.directory? REMOTE_CACHE $:.unshift REMOTE_CACHE $current_source = nil $current_source_stack = [] $remote_source = nil $remote_dependency = {} module Kernel class ChecksumError < LoadError ; end def remote_source( ref, uri ) $remote_source = { :ref=>ref.chomp('/'), :uri=>uri.chomp('/') } end def remote_dependency( md5sum, file ) raise "dependency without source" unless $remote_source $remote_dependency[ File.join( $remote_source[:ref], file ) ] = { :ref => $remote_source[:ref], :file => file, :uri => $remote_source[:uri], :md5 => md5sum } end req = method(:require) define_method :require do |fname| if r = $remote_dependency[fname] $current_source_stack << $current_source $current_source = r end begin req.call fname rescue LoadError => e # Bit of a shortcoming here since it's not very efficient to # be searching an remote location for multiple matches. # .so suffix must be specified explicity on the remote end. fname = fname + '.rb' unless fname =~ /\.rb$/ or fname =~ /\.so$/ raise e unless $current_source s = $current_source url = fname.sub( /^#{s[:ref]}/, s[:uri] ) $stderr << "remote require -- " + url if $DEBUG rf = URI.parse( url ).read if r unless Digest::MD5.new( rf ).hexdigest == s[:md5] # TODD checksum raise ChecksumError.new(e) end end newfile = File.join( REMOTE_CACHE, fname ) newdir = File.dirname( newfile ) FileUtils.mkdir_p newdir File.open( newfile, 'w+' ) do |f| f << rf end retry ensure $current_source = $current_source_stack.pop if r end end end # Example remote_source 'fruitapp', 'http://roll.rubyforge.org/source/fruitapp/lib/fruitapp/1.0.0/' remote_dependency '9de3cd6daece5f07aa3ddb0319a21415', 'tryme.rb' require 'fruitapp/tryme.rb' From james.britt at gmail.com Wed Jun 28 01:16:13 2006 From: james.britt at gmail.com (James Britt) Date: Tue, 27 Jun 2006 22:16:13 -0700 Subject: [Nitro] Revisable -- is it the correct semantics?? In-Reply-To: <200606281254.35353.manveru@weez-int.com> References: <44A1D75A.3020007@davidlangston.com> <200606281135.23848.manveru@weez-int.com> <44A1F6B9.7000706@gmail.com> <200606281254.35353.manveru@weez-int.com> Message-ID: <44A2109D.4010407@gmail.com> Michael Fellinger wrote: > On Wednesday 28 June 2006 12:25, James Britt wrote: >>What was revised? You want the revision number to get upped on every >>save, even if the item has not changed? Hmmm. >> >>On the other hand, to do otherwise may introduce assorted questions >>about determining when something has changed in a meaningful way (i.e., >>some concept of a 'dirty' flag) > > > Which also raises the question of partial updates - depending on what > changed... > That is what i forgot - i think there's no problem with rising the revision on > save... is there? Well, the simplest thing may be to just assume that a call to 'save' means there was a change (else why save it?), and the business logic just has to take that into account. Then if someone doesn't want these gratuitous revisions, they can implement some has_changed? behavior and skip the save (perhaps intercept the call to save and do an update, instead) if by whatever logic the object is not to be considered revised. -- James Britt "I often work by avoidance." - Brian Eno From transfire at gmail.com Wed Jun 28 01:47:46 2006 From: transfire at gmail.com (TRANS) Date: Wed, 28 Jun 2006 01:47:46 -0400 Subject: [Nitro] Problem with OpenObject In-Reply-To: <4b6f054f0606271918w61e146dodeb7c73deb1d11fa@mail.gmail.com> References: <4b6f054f0606271918w61e146dodeb7c73deb1d11fa@mail.gmail.com> Message-ID: <4b6f054f0606272247n8946467jbfec740f5c435753@mail.gmail.com> > o.__self__.instance_eval { ... } Oops. Actually instance_eval is reserved. So that should work without the __self__. You must be specifically using #eval (avoid if possible!). Hmm.... I could do this: class BasicObject # If the method isn't defined try sending it as(Object). def method_missing( sym, *args, &blk ) __as__(Object).__send__( sym, *args, &blk ) end end But I don't think it's really a good idea b/c if someone does say: o = OpenObject.new o.eval = "whatever" Then #eval will not no longer do what you'd expect. Assuming it is in fact #eval, I could add a reserved __eval__ alias if that would help. T. From transfire at gmail.com Wed Jun 28 02:02:13 2006 From: transfire at gmail.com (TRANS) Date: Wed, 28 Jun 2006 02:02:13 -0400 Subject: [Nitro] Problem with OpenObject In-Reply-To: <4b6f054f0606272247n8946467jbfec740f5c435753@mail.gmail.com> References: <4b6f054f0606271918w61e146dodeb7c73deb1d11fa@mail.gmail.com> <4b6f054f0606272247n8946467jbfec740f5c435753@mail.gmail.com> Message-ID: <4b6f054f0606272302ub22d3ccq8b38bda73db6f1d9@mail.gmail.com> BTW I found a bug with #__self__ and __as__. I've fixed it, and will of course go out with 1.4.4. Also I think this is the "real deal" for BasicObject: # If the method isn't defined and has the form '__method__' # then try sending 'method' to self-as-Object. def method_missing( sym, *args, &blk ) if md = /^__(.+)__$/.match( sym.to_s ) __as__(Object).__send__( md[1], *args, &blk ) else super end end This will of course allow you to use #__eval__. T. From zimba.tm at gmail.com Wed Jun 28 02:24:05 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Wed, 28 Jun 2006 08:24:05 +0200 Subject: [Nitro] [devlab] New design Message-ID: <3ff63f9b0606272324o1c0e9317ne742bd1b5c9b45ec@mail.gmail.com> Hi list, Trans generously gave some time to make a new design for devlab. I hope you like it ! http://devlab.oree.ch -- Cheers, zimbatm http://zimbatm.oree.ch From transfire at gmail.com Wed Jun 28 02:25:31 2006 From: transfire at gmail.com (TRANS) Date: Wed, 28 Jun 2006 02:25:31 -0400 Subject: [Nitro] Cool things to see Message-ID: <4b6f054f0606272325if0e4600h8416de584838f9de@mail.gmail.com> Just for the fun of it: trans at upixie:~/file/code/ruby/facets$ reap count FILES: 1113, LINES: 43665 (CODE: 15059, DOC: 14108, TEST: 6658, SPACE: 7840) Also I have Rolls activated... trans at upixie:~/file/code/ruby$ irb irb(main):001:0> Library.list => ["soap", "optparse", "roll", "uri", "rake", "rinda", "raindance", "rain", "irb", "xmlrpc", "date", "digest", "runit", "cgi", "facet", "io", "bigdecimal", "fruitapp", "reap", "yaml", "test", "rss", "net", "dl", "wsdl", "webrick", "rexml", "racc", "rubygems", "fly", "xsd", "shell", "drb", "norma", "rdoc", "facets"] T. From zimba.tm at gmail.com Wed Jun 28 02:32:33 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Wed, 28 Jun 2006 08:32:33 +0200 Subject: [Nitro] [PATCH][nitroproject] Startup time of Og speeded up by avoiding browsing ObjectSpace In-Reply-To: References: <3ff63f9b0606270910s7bcfe7dfk3dc475a45af89f97@mail.gmail.com> Message-ID: <3ff63f9b0606272332n499dd66obcced8df848f9789@mail.gmail.com> On 27/06/06, George Moschovitis wrote: > Hmm I havent seen your patch, but I remember submitting a similar > patch and then removing it because it was problematic (the problem has > to do with the dynamic nature of Og, ie when classes where > added/changed but i do not remember at the moment). > > Anyway, I will review the patch. Yes it's true that the array in EntityMixin.childs can be not up to date. For example if you use Module#remove_const then the class should not exist anymore. Since each entry is checked against Manager#manageable?(klass) that should filter unvalid values. I hope. :-p -- Cheers, zimbatm http://zimbatm.oree.ch From zimba.tm at gmail.com Wed Jun 28 02:35:23 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Wed, 28 Jun 2006 08:35:23 +0200 Subject: [Nitro] About the different repos In-Reply-To: References: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> Message-ID: <3ff63f9b0606272335x753d4382t3e2dca1c5ee5c0f4@mail.gmail.com> > I would like to release 0.31.0 some time around 15 July. Perhaps we > could release the current devlab repo as 0.30.1. What do you think? I don't have much more time than for building the gems. Is anything else needed ? -- Cheers, zimbatm http://zimbatm.oree.ch From itsme213 at hotmail.com Wed Jun 28 03:18:33 2006 From: itsme213 at hotmail.com (itsme213) Date: Wed, 28 Jun 2006 02:18:33 -0500 Subject: [Nitro] [OT] Roll n' Rain References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com><44A162E3.3060201@gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> Message-ID: Wow. Sounds too good to be true. Any downside at all you can think of? May be good to put up a web page with stuff like rationale, architecture, advantages, smooth co-existence and transition, examples, some examples, etc. before announcing to other ruby lists. Take 'em by surprise :-) "TRANS" wrote in message news:4b6f054f0606271846u3e6829b5me68679593cf4de30 at mail.gmail.com... > On 6/27/06, James Britt wrote: > >> Does it play well with gems? For example, is it plausible that Roll >> could create and install a gem package as it might a .rpm or .deb bundle? > > Oops. I forgot to mention. Yes, it already can create Gems too. The > code actually came right out of Reap's package task. > > T. From thoraval.yvon at free.fr Wed Jun 28 03:58:03 2006 From: thoraval.yvon at free.fr (Yvon Thoraval) Date: Wed, 28 Jun 2006 09:58:03 +0200 Subject: [Nitro] unable to unsubscribe In-Reply-To: <44A12E36.9020602@gmail.com> References: <3ff63f9b0606270328s354b1f17q2a36d5c5de9957a9@mail.gmail.com> <44A12E36.9020602@gmail.com> Message-ID: <350480A5-75BC-419C-8415-FF777276FA54@free.fr> Le 27 juin 06 ? 15:10, James Britt a ?crit : > Just to be sure, did you mail the request to > > nitro-general-request at rubyforge.org > > with a subject line of > > unsubscribe > > using the address that has the current subscription? i did that yesterday without succes )) yvon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060628/3ccff201/attachment.html From aglarond at gmail.com Wed Jun 28 07:18:07 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Wed, 28 Jun 2006 13:18:07 +0200 Subject: [Nitro] Revisable -- is it the correct semantics?? In-Reply-To: <44A1F6B9.7000706@gmail.com> References: <44A1D75A.3020007@davidlangston.com> <200606281135.23848.manveru@weez-int.com> <44A1F6B9.7000706@gmail.com> Message-ID: <55c107bf0606280418v524875b0pf23567dc14b12949@mail.gmail.com> On 6/28/06, James Britt wrote: > > Michael Fellinger wrote: > > > > > > ... > > I am all for this solution, would make it easy to use stuff like > > > > class Page > > is Reviseable > > property :title, String > > property :text, String > > end > > > > page = Page.create_with :title => 'hello world' :text => 'puts "Hello > World!"' > > page.save > > # this should be revision 0 > > page.save > > # revision 1 - yes, i want automagic revising... > > What was revised? You want the revision number to get upped on every > save, even if the item has not changed? Hmmm. I like the way Pimki handled this with the concept of 'continuous edit': The default behaviour when revising a page is of a 'Continuous Edit'. This means that if the previous edit was done by the same author and less than 30 minutes ago, this edit is minor and only the latest version will be kept as the revision. Otherwise (different author and/or more than 30 minutes ago) this edit will create a new revision of the page. This default behaviour can be overriden by specifying a major/minor edit. Maybe this is something Nitro/Og could implement. It wouldn't necessarily have to be tied to Madeleine (Pimki's storage engine). - Dimitri On the other hand, to do otherwise may introduce assorted questions > about determining when something has changed in a meaningful way (i.e., > some concept of a 'dirty' flag) > > > -- > James Britt > > http://www.ruby-doc.org - Ruby Help & Documentation > http://www.artima.com/rubycs/ - The Journal By & For Rubyists > http://www.rubystuff.com - The Ruby Store for Ruby Stuff > http://www.jamesbritt.com - Playing with Better Toys > http://www.30secondrule.com - Building Better Tools > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060628/21e1fa6c/attachment.html From william.full.moon at gmail.com Wed Jun 28 07:21:51 2006 From: william.full.moon at gmail.com (* William) Date: Wed, 28 Jun 2006 21:21:51 +1000 Subject: [Nitro] Who knows aspects? In-Reply-To: <3ff63f9b0606270347s408c4620ge8c531a2651acfb@mail.gmail.com> Message-ID: <00a201c69aa5$11674620$85af07ca@ghostgum> Hi zimbatm Thanks for your reply. At least I know the mails are getting some place -- For some reason it my mail isn't coming to me :-o I wasn't really expecting an "AOP" there is an example on the wtf about pre- and post- trigger code. When I wrote a small dumb example it didn't work. I made it even dumber. Then a really really dumb example. I have not managed to get a puts to print something from a call-back. That includes the tc_aspects.rb I added two puts commands to the pre_, post_ methods. Neither print happens. I am most interested in some instructions or guide that tells me the semantics for the hashes. Because what I thought was happening, just does not do it for me. So as you see I haven't' really got onto any expectancy of aop so far. One point for clarity, I'm happy if the test does what the test is supposed to do. At this point, I want to 'get' the semantics and possibly the syntax for doing "this it". (It is not doing a thing I could reasonably expect given the comments in the code.) Cheers, Will. _____ viz. $/ruby\lib\ruby\gems\1.8\gems\glue-0.30.0-\test\glue\tc_aspects.rb def pre_advice puts "pre_advice" @b = 1 @a += 1 end def post_advice puts "put_advice" @c = 1 end -----Original Message----- From: Jonas Pfenniger [mailto:zimba.tm at gmail.com] Sent: Tuesday, 27 June 2006 20:48 To: william.full.moon at gmail.com; General discussion about Nitro Subject: Re: [Nitro] Who knows aspects? Importance: Low Hi, Glue::Aspects is not a real AOP Aspect. Instead, the class has to define interceptable methods. og/store/sql.rb defines pre and post methods for og_insert, og_update, og_read and og_delete you can use it like that : class User before :check_something, :on => [:og_read, :og_insert] private def check_something #... end end -- Cheers, zimbatm http://zimbatm.oree.ch -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.5/377 - Release Date: 27-Jun-2006 From william.full.moon at gmail.com Wed Jun 28 07:44:26 2006 From: william.full.moon at gmail.com (* William) Date: Wed, 28 Jun 2006 21:44:26 +1000 Subject: [Nitro] Revisable -- is it the correct semantics?? In-Reply-To: <44A2109D.4010407@gmail.com> Message-ID: <00aa01c69aa8$38a553a0$85af07ca@ghostgum> G'day ... This idea makes lots of sense really. Several wiki-s have the idea of "minor change". You might want to store revision as a minor-number. One other thing in a object-graph context, IF object "B" is contained-in or aggregate-of object "A" -->> Is it not also the case that owner item "A" has also been revised in strict UML process parlance? Nominally, "A" is different as a container class. Cheers, Will. -----Original Message----- From: nitro-general-bounces at rubyforge.org [mailto:nitro-general-bounces at rubyforge.org] On Behalf Of James Britt Sent: Wednesday, 28 June 2006 15:16 To: General discussion about Nitro Subject: Re: [Nitro] Revisable -- is it the correct semantics?? Importance: Low Michael Fellinger wrote: > On Wednesday 28 June 2006 12:25, James Britt wrote: >>What was revised? You want the revision number to get upped on every >>save, even if the item has not changed? Hmmm. >> >>On the other hand, to do otherwise may introduce assorted questions >>about determining when something has changed in a meaningful way >>(i.e., some concept of a 'dirty' flag) > > > Which also raises the question of partial updates - depending on what > changed... > That is what i forgot - i think there's no problem with rising the > revision on save... is there? Well, the simplest thing may be to just assume that a call to 'save' means there was a change (else why save it?), and the business logic just has to take that into account. Then if someone doesn't want these gratuitous revisions, they can implement some has_changed? behavior and skip the save (perhaps intercept the call to save and do an update, instead) if by whatever logic the object is not to be considered revised. -- James Britt "I often work by avoidance." - Brian Eno _______________________________________________ Nitro-general mailing list Nitro-general at rubyforge.org http://rubyforge.org/mailman/listinfo/nitro-general -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.5/377 - Release Date: 27-Jun-2006 From george.moschovitis at gmail.com Wed Jun 28 08:34:06 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Wed, 28 Jun 2006 14:34:06 +0200 Subject: [Nitro] Cool things to see In-Reply-To: <4b6f054f0606272325if0e4600h8416de584838f9de@mail.gmail.com> References: <4b6f054f0606272325if0e4600h8416de584838f9de@mail.gmail.com> Message-ID: > trans at upixie:~/file/code/ruby/facets$ reap count > FILES: 1113, LINES: 43665 (CODE: 15059, DOC: 14108, TEST: 6658, SPACE: 7840) nice!! -g. -- http://www.gmosx.com http://www.nitroproject.org From vagabond at cataclysm-software.net Wed Jun 28 10:28:40 2006 From: vagabond at cataclysm-software.net (Andrew Thompson) Date: Wed, 28 Jun 2006 10:28:40 -0400 Subject: [Nitro] RDog ping In-Reply-To: <44A06476.6060705@gmail.com> References: <449831ED.1030908@gmail.com> <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> <44995DCD.1030102@gmail.com> <4b6f054f0606211404n72faa93an1d3ea69e4d0faefc@mail.gmail.com> <4499B836.4020607@gmail.com> <20060624001742.GA27767@hijacked.us> <44A06476.6060705@gmail.com> Message-ID: <20060628142840.GA22643@hijacked.us> On Mon, Jun 26, 2006 at 03:49:26PM -0700, James Britt wrote: > Yes, I imagine now that the hacked ruedoc code I'm using could just poke > stuff into a database, by-passing the saving to disk/loading into > Og-based object step. > We actually do something very similar to this, I just dump the objects from the YAML generator into Og objects instead of saving them out as YAML. I still don't see the need for an intermediate step though, the objects from the generator don't have any special reason to be either - it's just eaasier to to the YAL dump (Og needs a bit of a bridge). > Well, here's the thing: is it feasible to just keep the entire API in > memory, using some data structure suited for searching and lookups? > > E.g., using Madeleine. > No idea, I'm not sure I see the advantage though. I;ve never really bothered to read up on madeleine enough to understand the point. BTW, more progress on the code - we now have categories again and methods are classed as builtin/external/redefined. There's still some issues with redefined and class method names clashing with ordinary method names though... Andrew From aidan at yoyo.org Wed Jun 28 10:33:23 2006 From: aidan at yoyo.org (Aidan Rogers) Date: Wed, 28 Jun 2006 15:33:23 +0100 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com><44A162E3.3060201@gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> Message-ID: I really think you need to rename Rain to Rock. Having a package management duo called Rock and Roll is too good and opportunity to miss :-) I'm sorry I didn't get time to help you with this - I know we talked about it a bit. I think you implemented something very different to what I had in mind, but still it's cool to see something to challenge (the frankly awful) gems. My favourite package management system is the ports system used by FreeBSD. This allows a combination of binary packages and source file compilations to be used interchangeably. I wanted to create something similar to that, which would handle arbitrarily installation of ruby stuff (as long as the package defined a way to 'make' itself and a way to define dependencies). I'll probably still have a go at doing this (should it be called Rorts? (http:// www.allwords.com/word-rort.html) :-) ). Anyway, cool stuff T. I've not had a chance to actually play with the code (t - 3 days to beta for SyncBridge) but will soon. Aidan On 28/06/2006, at 8:18 AM, itsme213 wrote: > Wow. Sounds too good to be true. Any downside at all you can think of? > > May be good to put up a web page with stuff like rationale, > architecture, > advantages, smooth co-existence and transition, examples, some > examples, > etc. before announcing to other ruby lists. > > Take 'em by surprise :-) > > > "TRANS" wrote in message > news:4b6f054f0606271846u3e6829b5me68679593cf4de30 at mail.gmail.com... >> On 6/27/06, James Britt wrote: >> >>> Does it play well with gems? For example, is it plausible that Roll >>> could create and install a gem package as it might a .rpm or .deb >>> bundle? >> >> Oops. I forgot to mention. Yes, it already can create Gems too. The >> code actually came right out of Reap's package task. >> >> T. > > > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > From george.moschovitis at gmail.com Wed Jun 28 10:54:09 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Wed, 28 Jun 2006 17:54:09 +0300 Subject: [Nitro] About the different repos In-Reply-To: <3ff63f9b0606272335x753d4382t3e2dca1c5ee5c0f4@mail.gmail.com> References: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> <3ff63f9b0606272335x753d4382t3e2dca1c5ee5c0f4@mail.gmail.com> Message-ID: > I don't have much more time than for building the gems. Is anything > else needed ? I can build the gems. If Bryan can create an entry in the doc/RELEASES file I could make a quick 0.31.1 release. Bryan, what do you think? -g. -- http://www.gmosx.com http://www.nitroproject.org From james.britt at gmail.com Wed Jun 28 12:07:40 2006 From: james.britt at gmail.com (James Britt) Date: Wed, 28 Jun 2006 09:07:40 -0700 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com><44A162E3.3060201@gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> Message-ID: <44A2A94C.3050509@gmail.com> Aidan Rogers wrote: > I really think you need to rename Rain to Rock. Having a package > management duo called Rock and Roll is too good and opportunity to > miss :-) There ya go! That's *two* votes. And call the packages "pebbles." -- James Britt "Simplicity of the language is not what matters, but simplicity of use." - Richard A. O'Keefe in squeak-dev mailing list From transfire at gmail.com Wed Jun 28 13:10:50 2006 From: transfire at gmail.com (TRANS) Date: Wed, 28 Jun 2006 13:10:50 -0400 Subject: [Nitro] Nice for facets In-Reply-To: References: Message-ID: <4b6f054f0606281010l5be4e474md925b07c90d6de10@mail.gmail.com> On 6/26/06, George Moschovitis wrote: > Tom, > > this may be a worthwhile addition to facets (perhaps with a better name): > > http://weblog.rubyonrails.com/2006/04/26/new-in-rails-module-alias_method_chain/ Okay, so: alias_method :render_without_layout, :render alias_method :render, :render_with_layout can be written: alias_method_chain :render, :layout Quite interesting. So you use could use it like so: class Base include Layout alias_method_chain :render, :layout end Which assumes Base has a method called #render and that Layout has a method called #render_with_layout which calls #render_without_layout. But of course you don't really want to do this alias manually, it should be automatic on #include, which means the only way for this to work is via the #included callback. Is that right? Okay, I feel two ways about this. 1) I lik eit becuase it's clever and simple, but 2) I hate it because it's tricky and chincy --chincy AOP that is. Yet it gives me an idea. If we want AOP like this maybe we can do something a little more versitle.... let me work on it.... Okay, I worked out a soluton but the interface can be done in a few ways. The first way allows advice to be mixed in with other module features. This is patterned after #class_extension. Here's an example: module A # ... normal stuff ... advice do def render( target ) ... do stuff ... target.super ... do stuff ... end end end class Base include Layout end The second way doesn't allow mixing of feature types. I.e. a module is *declared* an aspect. But maybe that's more approriate for aspects b/c they are all about SOC. module Layout is Aspect def render( target ) ... do stuff ... target.super ... do stuff ... end end class Base include Layout end Alternately, the 'is Aspect' could be left out and 'prepend Layout' could be used instead of 'include Layout'. Either of these would satisfy the need more generally since the implementation I devised is true AOP around advice interception. General thoughts? Whether we should still offer #alias_method_chain or not I will include this aspect feature in a future version of Facets. So which interface is better? T. From james.britt at gmail.com Wed Jun 28 12:26:51 2006 From: james.britt at gmail.com (James Britt) Date: Wed, 28 Jun 2006 09:26:51 -0700 Subject: [Nitro] RDog ping In-Reply-To: <20060628142840.GA22643@hijacked.us> References: <449831ED.1030908@gmail.com> <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> <44995DCD.1030102@gmail.com> <4b6f054f0606211404n72faa93an1d3ea69e4d0faefc@mail.gmail.com> <4499B836.4020607@gmail.com> <20060624001742.GA27767@hijacked.us> <44A06476.6060705@gmail.com> <20060628142840.GA22643@hijacked.us> Message-ID: <44A2ADCB.2030701@gmail.com> Andrew Thompson wrote: > On Mon, Jun 26, 2006 at 03:49:26PM -0700, James Britt wrote: > >>Yes, I imagine now that the hacked ruedoc code I'm using could just poke >>stuff into a database, by-passing the saving to disk/loading into >>Og-based object step. >> > > We actually do something very similar to this, I just dump the objects > from the YAML generator into Og objects instead of saving them out as > YAML. I still don't see the need for an intermediate step though, the > objects from the generator don't have any special reason to be either - > it's just eaasier to to the YAL dump (Og needs a bit of a bridge). Can you remind me what I have to do to generate the rdoc data? I looked at the current RDog code, and seem to recall that it involved replacing the default rdoc file with rdoc-devel, but I can't get anything useful to happen. -- James Britt "Simplicity of the language is not what matters, but simplicity of use." - Richard A. O'Keefe in squeak-dev mailing list From george.moschovitis at gmail.com Wed Jun 28 13:45:52 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Wed, 28 Jun 2006 20:45:52 +0300 Subject: [Nitro] Nice for facets In-Reply-To: <4b6f054f0606281010l5be4e474md925b07c90d6de10@mail.gmail.com> References: <4b6f054f0606281010l5be4e474md925b07c90d6de10@mail.gmail.com> Message-ID: > Whether we should still offer #alias_method_chain or not I will > include this aspect feature in a future version of Facets. So which > interface is better? How about adding both? is Aspect is cleaner, but advise do is more fleixble/powerul. I would like both. Btw, I would really like to have a cool aspects implementation in facets to get rid, of the relatively lame glue/aspects code. regards, George. -- http://www.gmosx.com http://www.nitroproject.org From vagabond at cataclysm-software.net Wed Jun 28 14:20:31 2006 From: vagabond at cataclysm-software.net (Andrew Thompson) Date: Wed, 28 Jun 2006 14:20:31 -0400 Subject: [Nitro] Comments on the new nitroproject.com site Message-ID: <20060628182031.GA29128@hijacked.us> Hmm, well George asked me to comment on any issues I found on the new nitroproject.com site (check it out if you haven't already..): BUGS: Click the 'help' link in the top-right (nitroproject.com/faq) The backtracking link for 'faq' points to 'http://faq/' If you browse to a blog category (nitroproject.com/blog/categories/5) and click on 'blog' in the backtracking link (which points to /blog/categories) it gives you an 'Error' page. The 'Authors' link at the bottom of /wiki/index points to a blank page (/wiki/authors). COMMENTS: There's no textual link to the rubyforge project page (for some reason it's the banner of the main page...?) There's no link to devlab? There's no formatting guide for the wiki. ---------------- I'm guessing there's more stuff to come. It's nice so far, the design is nice and clean and fast. I hope that more of the page becomes community driven though (maybe things like the frontpage could have some kind of 'restricted' editing mode on them so that only users that are trusted could edit..). Adding features like that to spark would be no bad thing in any case... Andrew From vagabond at cataclysm-software.net Wed Jun 28 14:27:15 2006 From: vagabond at cataclysm-software.net (Andrew Thompson) Date: Wed, 28 Jun 2006 14:27:15 -0400 Subject: [Nitro] RDog ping In-Reply-To: <44A2ADCB.2030701@gmail.com> References: <449831ED.1030908@gmail.com> <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> <44995DCD.1030102@gmail.com> <4b6f054f0606211404n72faa93an1d3ea69e4d0faefc@mail.gmail.com> <4499B836.4020607@gmail.com> <20060624001742.GA27767@hijacked.us> <44A06476.6060705@gmail.com> <20060628142840.GA22643@hijacked.us> <44A2ADCB.2030701@gmail.com> Message-ID: <20060628182715.GB29128@hijacked.us> On Wed, Jun 28, 2006 at 09:26:51AM -0700, James Britt wrote: > Can you remind me what I have to do to generate the rdoc data? I looked > at the current RDog code, and seem to recall that it involved replacing > the default rdoc file with rdoc-devel, but I can't get anything useful > to happen. > There should be a README in the rdoc-devel folder... It's viewable on rubyforge's browse SVN at least... It's a bit out of date, but just use the og generator instead of the YAML one. You'll also need to edit conf/og.conf.example to og.conf so that the generator knows how to initialize og. Rdoc-devel should never have been used to override the system install of rdoc - manveru had that in the docs but its a BAD thing to do... It should run out of it's subdirectory in the rdog folder just fine... Andrew From george.moschovitis at gmail.com Wed Jun 28 14:34:10 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Wed, 28 Jun 2006 21:34:10 +0300 Subject: [Nitro] Comments on the new nitroproject.com site In-Reply-To: <20060628182031.GA29128@hijacked.us> References: <20060628182031.GA29128@hijacked.us> Message-ID: Thanks for the feedback Andrew... Will fix the issues you mentioned for the next update (in the Weekend). regards, George. On 6/28/06, Andrew Thompson wrote: > Hmm, well George asked me to comment on any issues I found on the new > nitroproject.com site (check it out if you haven't already..): > > BUGS: > > Click the 'help' link in the top-right (nitroproject.com/faq) > The backtracking link for 'faq' points to 'http://faq/' > > If you browse to a blog category (nitroproject.com/blog/categories/5) > and click on 'blog' in the backtracking link (which points to > /blog/categories) it gives you an 'Error' page. > > The 'Authors' link at the bottom of /wiki/index points to a blank page > (/wiki/authors). > > COMMENTS: > > There's no textual link to the rubyforge project page (for some reason > it's the banner of the main page...?) > > There's no link to devlab? > > There's no formatting guide for the wiki. > > ---------------- > > I'm guessing there's more stuff to come. It's nice so far, the design is > nice and clean and fast. I hope that more of the page becomes community > driven though (maybe things like the frontpage could have some kind of > 'restricted' editing mode on them so that only users that are trusted > could edit..). Adding features like that to spark would be no bad thing > in any case... > > Andrew > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From transfire at gmail.com Wed Jun 28 14:59:05 2006 From: transfire at gmail.com (TRANS) Date: Wed, 28 Jun 2006 14:59:05 -0400 Subject: [Nitro] Comments on the new nitroproject.com site In-Reply-To: References: <20060628182031.GA29128@hijacked.us> Message-ID: <4b6f054f0606281159y52e80f62gb9d9033754cfb8dc@mail.gmail.com> Use text-align:justify for paragraphs. Maybe use sans-serif font. T. From george.moschovitis at gmail.com Wed Jun 28 15:04:33 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Wed, 28 Jun 2006 22:04:33 +0300 Subject: [Nitro] Comments on the new nitroproject.com site In-Reply-To: <4b6f054f0606281159y52e80f62gb9d9033754cfb8dc@mail.gmail.com> References: <20060628182031.GA29128@hijacked.us> <4b6f054f0606281159y52e80f62gb9d9033754cfb8dc@mail.gmail.com> Message-ID: On 6/28/06, TRANS wrote: > Use text-align:justify oh no, no no... -g. -- http://www.gmosx.com http://www.nitroproject.org From transfire at gmail.com Wed Jun 28 16:05:35 2006 From: transfire at gmail.com (TRANS) Date: Wed, 28 Jun 2006 16:05:35 -0400 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <44A2A94C.3050509@gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> <44A2A94C.3050509@gmail.com> Message-ID: <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> On 6/28/06, James Britt wrote: > Aidan Rogers wrote: > > I really think you need to rename Rain to Rock. Having a package > > management duo called Rock and Roll is too good and opportunity to > > miss :-) > > > There ya go! That's *two* votes. And call the packages "pebbles." Rock it is then. But "pebbles"? Hmm... would tht make the extension '.rbb'? ;-) T. From bryan.a.soto at gmail.com Wed Jun 28 17:39:24 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Wed, 28 Jun 2006 14:39:24 -0700 Subject: [Nitro] About the different repos In-Reply-To: References: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> <3ff63f9b0606272335x753d4382t3e2dca1c5ee5c0f4@mail.gmail.com> Message-ID: On 6/28/06, George Moschovitis wrote: > > I don't have much more time than for building the gems. Is anything > > else needed ? > > I can build the gems. If Bryan can create an entry in the doc/RELEASES > file I could make a quick 0.31.1 release. > > Bryan, what do you think? > We still need a fix for the compile_action bug I emailed you about; the params.concat(context.params.values) line that results in ArgumentError: wrong number of arguments. I emailed it on Jun 15, subject line compile_action bug in Nitro 0.30.0. Let me know if you need me to resend. Any other bugs in 0.30.0 that should be addressed? Bryan From james.britt at gmail.com Wed Jun 28 18:01:56 2006 From: james.britt at gmail.com (James Britt) Date: Wed, 28 Jun 2006 15:01:56 -0700 Subject: [Nitro] RDog ping In-Reply-To: <20060628182715.GB29128@hijacked.us> References: <449831ED.1030908@gmail.com> <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> <44995DCD.1030102@gmail.com> <4b6f054f0606211404n72faa93an1d3ea69e4d0faefc@mail.gmail.com> <4499B836.4020607@gmail.com> <20060624001742.GA27767@hijacked.us> <44A06476.6060705@gmail.com> <20060628142840.GA22643@hijacked.us> <44A2ADCB.2030701@gmail.com> <20060628182715.GB29128@hijacked.us> Message-ID: <44A2FC54.1020905@gmail.com> Andrew Thompson wrote: > On Wed, Jun 28, 2006 at 09:26:51AM -0700, James Britt wrote: > > >>Can you remind me what I have to do to generate the rdoc data? I looked >>at the current RDog code, and seem to recall that it involved replacing >>the default rdoc file with rdoc-devel, but I can't get anything useful >>to happen. >> > > There should be a README in the rdoc-devel folder... It's viewable on > rubyforge's browse SVN at least... It's a bit out of date, but just use > the og generator instead of the YAML one. You'll also need to edit > conf/og.conf.example to og.conf so that the generator knows how to > initialize og. Thanks. I'll give this a shot. -- James Britt "In Ruby, no one cares who your parents were, all they care about is if you know what you are talking about." - Logan Capaldo From james.britt at gmail.com Wed Jun 28 19:41:59 2006 From: james.britt at gmail.com (James Britt) Date: Wed, 28 Jun 2006 16:41:59 -0700 Subject: [Nitro] RDog ping In-Reply-To: <20060628182715.GB29128@hijacked.us> References: <449831ED.1030908@gmail.com> <4b6f054f0606202335u295ed32bw7e998df1b3426149@mail.gmail.com> <44995DCD.1030102@gmail.com> <4b6f054f0606211404n72faa93an1d3ea69e4d0faefc@mail.gmail.com> <4499B836.4020607@gmail.com> <20060624001742.GA27767@hijacked.us> <44A06476.6060705@gmail.com> <20060628142840.GA22643@hijacked.us> <44A2ADCB.2030701@gmail.com> <20060628182715.GB29128@hijacked.us> Message-ID: <44A313C7.5020600@gmail.com> Andrew Thompson wrote: > On Wed, Jun 28, 2006 at 09:26:51AM -0700, James Britt wrote: > > >>Can you remind me what I have to do to generate the rdoc data? I looked >>at the current RDog code, and seem to recall that it involved replacing >>the default rdoc file with rdoc-devel, but I can't get anything useful >>to happen. >> > > There should be a README in the rdoc-devel folder... It's viewable on > rubyforge's browse SVN at least... It's a bit out of date, but just use > the og generator instead of the YAML one. You'll also need to edit > conf/og.conf.example to og.conf so that the generator knows how to > initialize og. The files I pulled from svn do not have any og.conf or og.conf.example. I managed to get the rdoc database populated, and the Spark wiki running, but no docs appear in the sidebar. And I cannot figure out how the wiki app knows where to look for the rdoc objects, since they are in different database. -- James Britt From bryan.a.soto at gmail.com Wed Jun 28 20:36:15 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Wed, 28 Jun 2006 17:36:15 -0700 Subject: [Nitro] Who knows aspects? In-Reply-To: <02cd01c69795$6a2ad0f0$03af07ca@ghostgum> References: <02cd01c69795$6a2ad0f0$03af07ca@ghostgum> Message-ID: On 6/24/06, * William wrote: > Does anyone have a really SIMPLE working example? > I'm not sure if you're looking for an example with or without Og. Here's a simple example with no Og though. == #! /usr/bin/env ruby require 'rubygems' require 'facets/more/aspects' class TT include Aspects pre :initialize do $stderr.puts "Got called!" end end Aspects.wrap(TT, :initialize) TT.new == From manveru at weez-int.com Wed Jun 28 20:44:58 2006 From: manveru at weez-int.com (Michael Fellinger) Date: Thu, 29 Jun 2006 09:44:58 +0900 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> Message-ID: <200606290944.58595.manveru@weez-int.com> On Thursday 29 June 2006 05:05, TRANS wrote: > On 6/28/06, James Britt wrote: > > Aidan Rogers wrote: > > > I really think you need to rename Rain to Rock. Having a package > > > management duo called Rock and Roll is too good and opportunity to > > > miss :-) > > > > There ya go! That's *two* votes. And call the packages "pebbles." > > Rock it is then. But "pebbles"? Hmm... would tht make the extension '.rbb'? > ;-) well, in that case BamBam would do as well ;) (and yeah, i'm for rock'n'roll as well - not sure what the 'n' part would be though... > > T. > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general From manveru at weez-int.com Wed Jun 28 20:45:55 2006 From: manveru at weez-int.com (Michael Fellinger) Date: Thu, 29 Jun 2006 09:45:55 +0900 Subject: [Nitro] Who knows aspects? In-Reply-To: <00a201c69aa5$11674620$85af07ca@ghostgum> References: <00a201c69aa5$11674620$85af07ca@ghostgum> Message-ID: <200606290945.55801.manveru@weez-int.com> Well, it is known that you cannot get usual output from the model with puts/print you'd have to use Logger.debug "yourmessage" On Wednesday 28 June 2006 20:21, * William wrote: > Hi zimbatm > > Thanks for your reply. At least I know the mails are getting some place -- > For some reason it my mail isn't coming to me :-o > > I wasn't really expecting an "AOP" there is an example on the wtf about > pre- and post- trigger code. When I wrote a small dumb example it didn't > work. I made it even dumber. Then a really really dumb example. > > I have not managed to get a puts to print something from a call-back. That > includes the tc_aspects.rb > > I added two puts commands to the pre_, post_ methods. Neither print > happens. > > I am most interested in some instructions or guide that tells me the > semantics for the hashes. Because what I thought was happening, just does > not do it for me. So as you see I haven't' really got onto any expectancy > of aop so far. > > One point for clarity, I'm happy if the test does what the test is supposed > to do. At this point, I want to 'get' the semantics and possibly the > syntax for doing "this it". (It is not doing a thing I could reasonably > expect given the comments in the code.) > > Cheers, > Will. > _____ > viz. > > $/ruby\lib\ruby\gems\1.8\gems\glue-0.30.0-\test\glue\tc_aspects.rb > > def pre_advice > puts "pre_advice" > @b = 1 > @a += 1 > end > > def post_advice > puts "put_advice" > @c = 1 > end > > -----Original Message----- > From: Jonas Pfenniger [mailto:zimba.tm at gmail.com] > Sent: Tuesday, 27 June 2006 20:48 > To: william.full.moon at gmail.com; General discussion about Nitro > Subject: Re: [Nitro] Who knows aspects? > Importance: Low > > Hi, > > Glue::Aspects is not a real AOP Aspect. Instead, the class has to define > interceptable methods. > > og/store/sql.rb defines pre and post methods for og_insert, og_update, > og_read and og_delete > > you can use it like that : > > class User > before :check_something, :on => [:og_read, :og_insert] > > private > def check_something > #... > end > end > > -- > Cheers, > zimbatm > > http://zimbatm.oree.ch From manveru at weez-int.com Wed Jun 28 20:52:34 2006 From: manveru at weez-int.com (Michael Fellinger) Date: Thu, 29 Jun 2006 09:52:34 +0900 Subject: [Nitro] RDog ping In-Reply-To: <44A313C7.5020600@gmail.com> References: <449831ED.1030908@gmail.com> <20060628182715.GB29128@hijacked.us> <44A313C7.5020600@gmail.com> Message-ID: <200606290952.34742.manveru@weez-int.com> On Thursday 29 June 2006 08:41, James Britt wrote: > Andrew Thompson wrote: > > On Wed, Jun 28, 2006 at 09:26:51AM -0700, James Britt wrote: > >>Can you remind me what I have to do to generate the rdoc data? I looked > >>at the current RDog code, and seem to recall that it involved replacing > >>the default rdoc file with rdoc-devel, but I can't get anything useful > >>to happen. > > > > There should be a README in the rdoc-devel folder... It's viewable on > > rubyforge's browse SVN at least... It's a bit out of date, but just use > > the og generator instead of the YAML one. You'll also need to edit > > conf/og.conf.example to og.conf so that the generator knows how to > > initialize og. > > The files I pulled from svn do not have any og.conf or og.conf.example. > > I managed to get the rdoc database populated, and the Spark wiki > running, but no docs appear in the sidebar. And I cannot figure out how > the wiki app knows where to look for the rdoc objects, since they are in > different database. This is what the og.conf is for - here is how the file looks: ( and yes, evil global variables... i'd rather have one global hash ) remember that the stuff is used _both_ by og_generator.rb and run.rb you might have to check out again to get the new stuff anyway #require "#{ENV['HOME']}/darcs/devlab/glycerin" #$:.unshift "#{ENV['HOME']}/rdog/facets/lib" $og_user = 'rdog' $og_pass = 'pass' $og_db = 'rdog' $og_adapter = :mysql From bryan.a.soto at gmail.com Wed Jun 28 23:24:36 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Wed, 28 Jun 2006 20:24:36 -0700 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> Message-ID: On 6/28/06, TRANS wrote: > On 6/28/06, James Britt wrote: > > Aidan Rogers wrote: > > > I really think you need to rename Rain to Rock. Having a package > > > management duo called Rock and Roll is too good and opportunity to > > > miss :-) > > > > > > There ya go! That's *two* votes. And call the packages "pebbles." > > Rock it is then. But "pebbles"? Hmm... would tht make the extension '.rbb'? ;-) > How about riffs? :) From james.britt at gmail.com Wed Jun 28 23:32:01 2006 From: james.britt at gmail.com (James Britt) Date: Wed, 28 Jun 2006 20:32:01 -0700 Subject: [Nitro] add_route missing in Nitro 0.30? Message-ID: <44A349B1.4080409@gmail.com> Has anyone had problems with dispatcher.rb and add_route with Nitro 0.30? I searched the list but didn't see any mention. For whatever reasons, noticed that I was running Nitro 0.29, not 0.30. I did a gem install of og and Nitro, but was still getting errors in the rdog code (which is what got me looking at the version numbers in the first place). Thinking that perhaps rdog should be using the glycerin code, I tried running one of my other Nitro apps to see that it was still good when running against the current Nitro release. (And still thinking that I had been developing against 0.30, and somehow lost it.) But it borked right off the bat, complaining that the dispatcher did not define add_route. This seemed odd, so I poked around the 0.30 source, and it appears that there is now an add_rule method, but no add_route. 0.29 has add_route (but not add_rule; the comments in 0.30 for add_rule refer to routes, though). But the code in dispatcher in 0.30 still calls add_route inside of update_routes. At first I thought this was a simple name change, so I aliased add_route to add_rule, but that fails because the call to add_route is passing too many args. So I pasted in the add_route code from 0.29, and my app now launches, but is not quite right; my little hack does nothing more that enable the dispatcher to run without an error. I looked at the darcs repo code, and it appears the same: dispatcher.rb calls add_route, but the method is not defined anywhere. Thanks, james From william.full.moon at gmail.com Wed Jun 28 23:40:34 2006 From: william.full.moon at gmail.com (* William) Date: Thu, 29 Jun 2006 13:40:34 +1000 Subject: [Nitro] Who knows aspects? In-Reply-To: <3ff63f9b0606280731m11fcb908u10757442045e1003@mail.gmail.com> Message-ID: <00ce01c69b2d$caf957d0$85af07ca@ghostgum> Thanks I'll look at that The more-complete-view of Aspects might be a side-issue if Og is only using gen_advice_code() Looking at that method, it is still supposed (one imagines) to fit into the 'before' and 'after' and 'wrap' method infrastructure ... For me it is like this; if the basics don't work it is really difficult to write about it and let people know what it does. Or, there might be a bug. Or, the test code in tc_Aspects.rb could have scatological problems. Aloha, William (supporting under-employed words every now and again). -----Original Message----- From: Jonas Pfenniger [mailto:zimba.tm at gmail.com] Sent: Thursday, 29 June 2006 00:32 To: william.full.moon at gmail.com Subject: Re: [Nitro] Who knows aspects? Importance: Low I don't know much more about it. Only that Og uses Aspect.gen_advice_code, which is not used in the tests. ./og/lib/og/store.rb:193: Aspects.gen_advice_code(target, klass.send(advices), where) if klass.respond_to?(advices) -- Cheers, zimbatm http://zimbatm.oree.ch -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date: 28-Jun-2006 From aidan at infurious.com Thu Jun 29 03:44:02 2006 From: aidan at infurious.com (Aidan Rogers) Date: Thu, 29 Jun 2006 08:44:02 +0100 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> Message-ID: <4984EA1A-5F8E-4950-BDC1-C80C0EEFBD3B@infurious.com> On 29/06/2006, at 4:24 AM, Bryan Soto wrote: > On 6/28/06, TRANS wrote: >> On 6/28/06, James Britt wrote: >>> Aidan Rogers wrote: >>>> I really think you need to rename Rain to Rock. Having a package >>>> management duo called Rock and Roll is too good and opportunity to >>>> miss :-) >>> >>> >>> There ya go! That's *two* votes. And call the packages "pebbles." >> >> Rock it is then. But "pebbles"? Hmm... would tht make the >> extension '.rbb'? ;-) >> > > How about riffs? :) Riffs is a great name :-) +1 from me. Aidan From aidan at infurious.com Thu Jun 29 03:56:00 2006 From: aidan at infurious.com (Aidan Rogers) Date: Thu, 29 Jun 2006 08:56:00 +0100 Subject: [Nitro] About the different repos In-Reply-To: References: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> <3ff63f9b0606272335x753d4382t3e2dca1c5ee5c0f4@mail.gmail.com> Message-ID: <64D807DF-041C-4451-B3EF-B35258B9BBB2@infurious.com> I have some comments about ongoing repository maintenance. In an ideal environment, there should be one branch and one trunk. The branch is made at the time of release, and *only* bug-fixes are applied to it. The trunk is where new features are added, and bug- fixes that are applied to the branch are merged in. It seems to me that George should be in charge of the trunk, and that Jonas and Brian in charge of the branch. This is kind of the way it works right now, if you look at devlab as being the branch and nitroproject.org as the trunk. However, the issue we run into is that George is too busy to regularly merge changes from the branch into the trunk. If Brian and Jonas also had access to the trunk and the responsibility to merge changes (i.e. bug-fixes) in from the branch, this would solve the problem. I get the impression that it's not easy/possible to allow someone other than George access to nitroproject.org. Is this the case? Is there some way around this? Granting Jonas and Brian access to nitroproject.org would mean that they would be able to approve bug- fixes from the community at large to go into the branch, helping to keep Nitro stable. Ideally, this would lead to all three of you being able to approve enhancements and features to go into the trunk. And it would make much easier for the rest of the world to be able to get involved in contributing. Comments, thoughts? Aidan From aglarond at gmail.com Thu Jun 29 04:06:38 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Thu, 29 Jun 2006 10:06:38 +0200 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> Message-ID: <55c107bf0606290106r25768290ve3de48a438304300@mail.gmail.com> On 6/28/06, Aidan Rogers wrote: > My favourite package management system is the ports system used by > FreeBSD. This allows a combination of binary packages and source > file compilations to be used interchangeably. I wanted to create > something similar to that, which would handle arbitrarily > installation of ruby stuff (as long as the package defined a way to > 'make' itself and a way to define dependencies). I'll probably still > have a go at doing this (should it be called Rorts? (http:// > www.allwords.com/word-rort.html) :-) ). Why not go one step further, and have no package definition, per se? What I'm talking about here is a dream of mine that I've had for years: an intelligent package management system. Take the versioning that Roll does already, add the package management capability of Rock (it is Rock now, isn't it?), extend that to read the INSTALL and/or README of the source bundle itself, and expand that to cover ALL software on the system (not just Ruby), and you've got that dream of mine realized. The really hard part, of course, is the parsing of the INSTALL/README file to get the dependencies and figure out how to install the software... Some sane defaults could be assumed (./configure;make;make install for a lot of things); intelligent error-handling would be needed. A peer-to-peer caching mechanism for working/already-parsed packages could be implemented so that the packager wouldn't have to start from scratch each time... Then, you could just give the packager the URL for the source bundle to be installed, it will download it, unpack it, compile it (if necessary), and install it onto the system, keeping track of dependencies and versions all the while. :) Anyways, just quickly jotting-down some stuff I've been thinking about for awhile. Anyway, cool stuff T. I've not had a chance to actually play with it Same here, but look forward to it. :) - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060629/edad0b40/attachment.html From aidan at infurious.com Thu Jun 29 04:12:00 2006 From: aidan at infurious.com (Aidan Rogers) Date: Thu, 29 Jun 2006 09:12:00 +0100 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <55c107bf0606290106r25768290ve3de48a438304300@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> <55c107bf0606290106r25768290ve3de48a438304300@mail.gmail.com> Message-ID: <6F615012-B254-4C47-BB35-021832F69FF4@infurious.com> > > Why not go one step further, and have no package definition, per > se? What I'm talking about here is a dream of mine that I've had > for years: an intelligent package management system. Take the > versioning that Roll does already, add the package management > capability of Rock (it is Rock now, isn't it?), extend that to read > the INSTALL and/or README of the source bundle itself, and expand > that to cover ALL software on the system (not just Ruby), and > you've got that dream of mine realized. The really hard part, of > course, is the parsing of the INSTALL/README file to get the > dependencies and figure out how to install the software... Some > sane defaults could be assumed (./configure;make;make install for a > lot of things); intelligent error-handling would be needed. A peer- > to-peer caching mechanism for working/already-parsed packages could > be implemented so that the packager wouldn't have to start from > scratch each time... Then, you could just give the packager the > URL for the source bundle to be installed, it will download it, > unpack it, compile it (if necessary), and install it onto the > system, keeping track of dependencies and versions all the while. :) > How does this differ from FreeBSD's ports system? Aidan From aglarond at gmail.com Thu Jun 29 04:16:11 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Thu, 29 Jun 2006 10:16:11 +0200 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <6F615012-B254-4C47-BB35-021832F69FF4@infurious.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> <55c107bf0606290106r25768290ve3de48a438304300@mail.gmail.com> <6F615012-B254-4C47-BB35-021832F69FF4@infurious.com> Message-ID: <55c107bf0606290116o177c676fi7fe7a612c78e1a92@mail.gmail.com> On 6/29/06, Aidan Rogers wrote: > > > How does this differ from FreeBSD's ports system? > A human has to write the port in order for ports to know about it. I'd like to have that step removed, so that if I'd like a new piece of software installed, I just point the packager to the source bundle (or, even conceivably cvs/svn/darcs/whatever repository with tag name), and have that software installed on my system. No in-between step necessary. - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060629/416c7990/attachment.html From aglarond at gmail.com Thu Jun 29 04:17:15 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Thu, 29 Jun 2006 10:17:15 +0200 Subject: [Nitro] About the different repos In-Reply-To: References: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> <3ff63f9b0606272335x753d4382t3e2dca1c5ee5c0f4@mail.gmail.com> Message-ID: <55c107bf0606290117r51c27339k205731f245add07f@mail.gmail.com> Hi Bryan, On 6/28/06, Bryan Soto wrote: > > > Any other bugs in 0.30.0 that should be addressed? > See http://devlab.oree.ch/trac/glycerin/ticket/34, that one's been a thorn in my side for awhile. - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060629/fdfbafb8/attachment.html From transfire at gmail.com Thu Jun 29 07:19:22 2006 From: transfire at gmail.com (TRANS) Date: Thu, 29 Jun 2006 07:19:22 -0400 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <55c107bf0606290106r25768290ve3de48a438304300@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> <55c107bf0606290106r25768290ve3de48a438304300@mail.gmail.com> Message-ID: <4b6f054f0606290419j27048b98qd6685d601759ed7a@mail.gmail.com> On 6/29/06, Dimitri Aivaliotis wrote: > Rock (it is Rock now, isn't it?), extend that to read the > INSTALL and/or README of the source Cool idea. If you can write an INSTALL+README -> Rock metainfo translator that would be awesome. But I suspect it's might not really be feasible until operating systems include AI subsystems. T. From transfire at gmail.com Thu Jun 29 07:28:14 2006 From: transfire at gmail.com (TRANS) Date: Thu, 29 Jun 2006 07:28:14 -0400 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> Message-ID: <4b6f054f0606290428w7a8ec2c5pcd5295511eeaa159@mail.gmail.com> On 6/28/06, Aidan Rogers wrote: > My favourite package management system is the ports system used by > FreeBSD. This allows a combination of binary packages and source > file compilations to be used interchangeably. I wanted to create > something similar to that, which would handle arbitrarily > installation of ruby stuff (as long as the package defined a way to > 'make' itself and a way to define dependencies). I'll probably still > have a go at doing this (should it be called Rorts? (http:// > www.allwords.com/word-rort.html) :-) ). Sounds alot like the old raa-install that was popular before Gems came along. I'm actually all for Gems qua package manager I just want it to decouple version management from the system (ROLL can handle it instead). Even now it's possible to trick Gems by telling it the version was alwasy 0.0.0, but have Rolls know better. Anyway, I digress. Would you be interesting in writing a Ports adater for Rock? T. From transfire at gmail.com Thu Jun 29 07:37:03 2006 From: transfire at gmail.com (TRANS) Date: Thu, 29 Jun 2006 07:37:03 -0400 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> Message-ID: <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> On 6/28/06, Bryan Soto wrote: > On 6/28/06, TRANS wrote: > > On 6/28/06, James Britt wrote: > > > Aidan Rogers wrote: > > > > I really think you need to rename Rain to Rock. Having a package > > > > management duo called Rock and Roll is too good and opportunity to > > > > miss :-) > > > > > > > > > There ya go! That's *two* votes. And call the packages "pebbles." > > > > Rock it is then. But "pebbles"? Hmm... would tht make the extension '.rbb'? ;-) > > > > How about riffs? :) :D Very cool! Hmm... I liked .rbb becuase it's like .rb with an extra b. And of course "pebbles" and "BamBam", Plus there's B.B.King ;-) But then .riff is even better for it's direct analogy. What would it be on Windows though, .rff? Also, it's not really an iff format. But hey maybe it could be? http://www-128.ibm.com/developerworks/power/library/pa-spec16/. T. From aglarond at gmail.com Thu Jun 29 07:39:52 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Thu, 29 Jun 2006 13:39:52 +0200 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <4b6f054f0606290419j27048b98qd6685d601759ed7a@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> <55c107bf0606290106r25768290ve3de48a438304300@mail.gmail.com> <4b6f054f0606290419j27048b98qd6685d601759ed7a@mail.gmail.com> Message-ID: <55c107bf0606290439o718dba9ekd2a8ad820b47cc9@mail.gmail.com> On 6/29/06, TRANS wrote: > > > Cool idea. If you can write an INSTALL+README -> Rock metainfo > translator that would be awesome. But I suspect it's might not really > be feasible until operating systems include AI subsystems. > :) It shouldn't really require true AI, just an expert system with a reasonably-tuned database. Natural language processing has produced some neat ideas in recent years that could be applied here. By using the right algorithms, it might even be possible to do without consuming too many system resources. - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060629/7349eb95/attachment.html From george.moschovitis at gmail.com Thu Jun 29 08:50:23 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 29 Jun 2006 15:50:23 +0300 Subject: [Nitro] add_route missing in Nitro 0.30? In-Reply-To: <44A349B1.4080409@gmail.com> References: <44A349B1.4080409@gmail.com> Message-ID: > I looked at the darcs repo code, and it appears the same: dispatcher.rb > calls add_route, but the method is not defined anywhere. strange, the router works for me I will have to look this up. Thanks for mentioning. regards, George. -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Thu Jun 29 08:56:11 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 29 Jun 2006 15:56:11 +0300 Subject: [Nitro] About the different repos In-Reply-To: <64D807DF-041C-4451-B3EF-B35258B9BBB2@infurious.com> References: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> <3ff63f9b0606272335x753d4382t3e2dca1c5ee5c0f4@mail.gmail.com> <64D807DF-041C-4451-B3EF-B35258B9BBB2@infurious.com> Message-ID: > However, the issue we run into is that George is too busy to > regularly merge changes from the branch into the trunk. If Brian and > Jonas also had access to the trunk and the responsibility to merge > changes (i.e. bug-fixes) in from the branch, this would solve the > problem. I thought, this wasn't a big issue. Because people would get the bug fix patches from the devlab repo and i could merge most patches to my repo just before release. At the moment is quite difficult to give access to more people to my repo. regards, George. -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Thu Jun 29 11:10:25 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 29 Jun 2006 18:10:25 +0300 Subject: [Nitro] add_route missing in Nitro 0.30? In-Reply-To: References: <44A349B1.4080409@gmail.com> Message-ID: James, please change line 135 in dispatcher.rb and let me know if it works for you: add_rule(:match => route.first, :controller => c, :action => m, :params => route.last) regards, George. On 6/29/06, George Moschovitis wrote: > > I looked at the darcs repo code, and it appears the same: dispatcher.rb > > calls add_route, but the method is not defined anywhere. > > strange, the router works for me I will have to look this up. Thanks > for mentioning. > > regards, > George. > > -- > http://www.gmosx.com > http://www.nitroproject.org > -- http://www.gmosx.com http://www.nitroproject.org From james.britt at gmail.com Thu Jun 29 12:12:26 2006 From: james.britt at gmail.com (James Britt) Date: Thu, 29 Jun 2006 09:12:26 -0700 Subject: [Nitro] add_route missing in Nitro 0.30? In-Reply-To: References: <44A349B1.4080409@gmail.com> Message-ID: <44A3FBEA.4030800@gmail.com> George Moschovitis wrote: > James, > > please change line 135 in dispatcher.rb and let me know if it works for you: > > add_rule(:match => route.first, :controller => c, :action => > m, :params => route.last) This works. Thanks! -- James Britt From george.moschovitis at gmail.com Thu Jun 29 12:19:35 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 29 Jun 2006 19:19:35 +0300 Subject: [Nitro] add_route missing in Nitro 0.30? In-Reply-To: <44A3FBEA.4030800@gmail.com> References: <44A349B1.4080409@gmail.com> <44A3FBEA.4030800@gmail.com> Message-ID: > This works. good... -g. -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Thu Jun 29 12:59:22 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 29 Jun 2006 19:59:22 +0300 Subject: [Nitro] Comments on the new nitroproject.com site In-Reply-To: <20060628182031.GA29128@hijacked.us> References: <20060628182031.GA29128@hijacked.us> Message-ID: Ok, fixed more or less what you suggested... If you have more tips let me know... thanks, -g. On 6/28/06, Andrew Thompson wrote: > Hmm, well George asked me to comment on any issues I found on the new > nitroproject.com site (check it out if you haven't already..): > > BUGS: > > Click the 'help' link in the top-right (nitroproject.com/faq) > The backtracking link for 'faq' points to 'http://faq/' > > If you browse to a blog category (nitroproject.com/blog/categories/5) > and click on 'blog' in the backtracking link (which points to > /blog/categories) it gives you an 'Error' page. > > The 'Authors' link at the bottom of /wiki/index points to a blank page > (/wiki/authors). > > COMMENTS: > > There's no textual link to the rubyforge project page (for some reason > it's the banner of the main page...?) > > There's no link to devlab? > > There's no formatting guide for the wiki. > > ---------------- > > I'm guessing there's more stuff to come. It's nice so far, the design is > nice and clean and fast. I hope that more of the page becomes community > driven though (maybe things like the frontpage could have some kind of > 'restricted' editing mode on them so that only users that are trusted > could edit..). Adding features like that to spark would be no bad thing > in any case... > > Andrew > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Thu Jun 29 13:50:44 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 29 Jun 2006 20:50:44 +0300 Subject: [Nitro] NitroProject.org Message-ID: Dear devs, even though nitroproject.org is still under construction, you can start adding content to the wiki. The database is backed up regularly, plus I will soon move over some good content from the old wiki (I have a bacup), so dont worry that you will loose your changes. Moreover, if anyone would like to write an article for the blog, just mail me the text and I will add it. In the near future you will be able to add articles yourself (if you have permissions). Oh, one other thing, how about adding icons to your user profile (to make the site more colorful) regards, George. -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Thu Jun 29 13:51:20 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Thu, 29 Jun 2006 20:51:20 +0300 Subject: [Nitro] About the different repos In-Reply-To: References: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> <3ff63f9b0606272335x753d4382t3e2dca1c5ee5c0f4@mail.gmail.com> <64D807DF-041C-4451-B3EF-B35258B9BBB2@infurious.com> Message-ID: Btw, over the next days I will go and add most missing patches from devlab to my repo. regards, George. On 6/29/06, George Moschovitis wrote: > > However, the issue we run into is that George is too busy to > > regularly merge changes from the branch into the trunk. If Brian and > > Jonas also had access to the trunk and the responsibility to merge > > changes (i.e. bug-fixes) in from the branch, this would solve the > > problem. > > I thought, this wasn't a big issue. Because people would get the bug > fix patches from the devlab repo and i could merge most patches to my > repo just before release. At the moment is quite difficult to give > access to more people to my repo. > > regards, > George. > > -- > http://www.gmosx.com > http://www.nitroproject.org > -- http://www.gmosx.com http://www.nitroproject.org From bryan.a.soto at gmail.com Thu Jun 29 14:08:54 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Thu, 29 Jun 2006 11:08:54 -0700 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> Message-ID: On 6/29/06, TRANS wrote: > > How about riffs? :) > > :D Very cool! > > Hmm... I liked .rbb becuase it's like .rb with an extra b. And of > course "pebbles" and "BamBam", Plus there's B.B.King ;-) > > But then .riff is even better for it's direct analogy. What would it > be on Windows though, .rff? Also, it's not really an iff format. But > hey maybe it could be? > http://www-128.ibm.com/developerworks/power/library/pa-spec16/. > Unless you're concerned with people running Ruby on Win3.1 or MS-DOS, you don't have that restriction of 8.3 characters anymore. Heck, browsing my registered extensions on WinXP, Microsft has registered DVR-MS (Microsoft Recorded TV Show) as an extension. Case insensitivity for filenames still applies though. :) Bryan From bryan.a.soto at gmail.com Thu Jun 29 15:51:13 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Thu, 29 Jun 2006 12:51:13 -0700 Subject: [Nitro] About the different repos In-Reply-To: <55c107bf0606290117r51c27339k205731f245add07f@mail.gmail.com> References: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> <3ff63f9b0606272335x753d4382t3e2dca1c5ee5c0f4@mail.gmail.com> <55c107bf0606290117r51c27339k205731f245add07f@mail.gmail.com> Message-ID: On 6/29/06, Dimitri Aivaliotis wrote: > Hi Bryan, > > > On 6/28/06, Bryan Soto wrote: > > > > Any other bugs in 0.30.0 that should be addressed? > > > > See http://devlab.oree.ch/trac/glycerin/ticket/34, that > one's been a thorn in my side for awhile. > Okay, thanks. Any opinions? Should we go with Dimitri's recommendation or Bill's? Bryan From bryan.a.soto at gmail.com Thu Jun 29 16:39:10 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Thu, 29 Jun 2006 13:39:10 -0700 Subject: [Nitro] [PATCH] schema_inheritance flaw In-Reply-To: <9c00d3e00606270530p2c99be86v8031aa011c7e8093@mail.gmail.com> References: <9c00d3e00606270530p2c99be86v8031aa011c7e8093@mail.gmail.com> Message-ID: Ah, yes. The lovely postgres adapter returning a PGResult rather than an array like all the other stores do. I forgot my patch to change that was rejected. I think this also breaks some other things and is one of the reasons the Og test suite dies with Postgres. From bryan.a.soto at gmail.com Thu Jun 29 19:36:15 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Thu, 29 Jun 2006 16:36:15 -0700 Subject: [Nitro] [PATCH] schema_inheritance flaw In-Reply-To: <9c00d3e00606270530p2c99be86v8031aa011c7e8093@mail.gmail.com> References: <9c00d3e00606270530p2c99be86v8031aa011c7e8093@mail.gmail.com> Message-ID: Okay, applied to devlab, added your example as a test case and fixed the definition of Og::Entity::entity_from_string to accomodate multiple managers. Let me know of any problems. From bryan.a.soto at gmail.com Thu Jun 29 20:49:07 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Thu, 29 Jun 2006 17:49:07 -0700 Subject: [Nitro] Beta Nitro gems available Message-ID: If you have 0.30 installed: # gem update -y --no-rdoc --no-ri --source=http://devlab.oree.ch/~bryan/gems If you don't have them installed, there's some weirdness with -y and --source, so: # gem install nitro og glue facets gen RedCloth ruby-breakpoint daemons --no-rdoc --no-ri --source=http://devlab.oree.ch/~bryan/gems or # gem install -y nitro then follow the gem update command line at the beginning and finish it off with a # gem cleanup The --no-rdoc and --no-ri flags are optional. It just goes faster when specified that way. Please let the list know of any bugs. Thanks, Bryan From itsme213 at hotmail.com Fri Jun 30 01:43:07 2006 From: itsme213 at hotmail.com (itsme213) Date: Fri, 30 Jun 2006 00:43:07 -0500 Subject: [Nitro] A uniform structure for components in Nitro -- long post Message-ID: Here is something that may have been obvious to others all along. Any and all comments or flames welcome ... The context for this ... I was wondering what it would take to give Nitro a full-fledged component model, where views (and controllers) can be composed from generic parts either automatically for the default case, or with a DSL that only specified the delta for the non-default customized case. All view and controllers do is view and operate on domain objects, and the structure & metadata of those domain objects is enough to construct the views and controllers. Like Nitro does for persistence, only for views and controllers. Like Wee without continuations. Mostly like Nemo or Mewa http://www.adrian-lienhard.ch/files/mewa.pdf, but extended further. I have attached 2 of the key figures from the latter. What is "A Component Model"? ============================ A component model is a server-side tree of components. The root component might correspond to a presented web page, its children to
s within that page, and on down. Each component in that tree is connected to domain objects via a meta-layer. That meta-layer provides a uniform reflective interface to all domain objects, their attribute values, and their operations, and enables totally generic view and editor components to operate through them. What is this meta-layer? ======================== The basic idea is that for Nitro to have a uniform component structure, components in successive levels of the component tree are (STRICTLY) attached to either - (meta)objects or - (meta)attributes of those object, or - (meta)operations on those objects A meta-object (in this discussion) is NOT a class; rather, it is an object carrying meta-information for a specific domain object (instance). (The "meta" terminology comes from Mewa). A meta-attribute is an object carrying meta-information for the value of a specific attribute of a specific object. A meta-operation is an object carrying meta-information for a specific operation that might be invoked on a specific object. In combination these three carry all the information needed to construct views and controllers. None of these meta-things need db-level persistance. They can all be created on-demand, possibly with session-level persistence. Below I use og-ish macros for information only. # these do NOT need to persist # but their :obj part is typically persistent via Og class MetaObject has_one :obj, Object has_many :attributes, MetaAttribute def class obj.class end end class MetaAttribute has_one :attribute, Symbol has_one :type, Class # or duck has_one :multiplicity, Symbol # :attribute, :type, :mult could be shared via class level Attribute # just easier to understand this way has_one :owner, Object # domain obj or a MetaOperation (below) def value owner.instance_variable_get attribute # or #send... end def replace (replacement_obj) owner.send "#{attribute.to_s}=", replacement_obj end def add (added_obj) # illustrative; only defined if attr is a collection owner.send "add_to_#{attribute.to_s}", added_obj end end class MetaOperation has_one :operation, Symbol has_many :params, MetaAttribute # tracks param name, type, multiplicity, etc. # Used to populate (d)html accordingly # including using the smarts below # :operation and :params could be shared via class level Operation has_one :owner, Object has_many :current_values, Hash # current param values, hashed by param_symbol # for [Ajax-based] populating of parameter candidates # e.g. drop-down list def candidates_for (param) owner.candidates_for operation, param, curr_values end # for [Ajax-based] (dis/en)abling of operations including args # e.g. menu or button enabling def invocable? owner.invocable? (operation, current_values) end def invoke owner.send operations, current_values end end Example meta-layer instance =========================== Assume there is a component tree consisting of nested viewers and editors. On demand, build metadata about domain objects that these viewers and editors connect to, including the attributes and relations of these domain objects. Make that metadata structure uniformly as follows: m_obj m_attr m_obj m_obj m_attr... m_op1 m_attr... m_attr... m_op2 So if I have objects joe=Person.new joe.name = "Joe" home=House.new(:address=>"123 hometown") joe.add_house home vacation_home = House.new joe.add_house vacation_home room1 = Room.new room2 = Room.new home.add_room room1 home.add_room room2 bob=Person.new joe.add_friend bob Then a view or editor *on joe* will create and use this metadata structure: joe -- meta-object joe#name -- meta-attribute joe#name= -- meta-operation joe#houses -- meta-attribute home -- meta-object home#address -- meta-attribute "123 hometown" -- metaobject, optimized away home#rooms -- meta-attribute room1 -- meta-object room2 vacation_home joe#friends bob Example Component Model ======================= CLAIM: The component tree should exactly parallel this metaobject and metaattribute structure (by default). So here are the components in that tree, and the (meta)-things they connect to: person_viewer --> joe #houses_viewer --> joe#houses house_viewer --> home #address_viewer --> home#address address_viewer --> "123 hometown" #rooms_viewer --> home#rooms room_viewer --> room1 room_editor --> room2#modify new_size --> room2#modify.new_size house_viewer --> vacation_home #friends_viewer --> joe#friends person_viewer --> bob Some of the elements in the above tree might change dynamically with Ajax e.g. a viewer might be replaced by an editor when the little "edit" link is clicked; but the editor would still be attached to the same meta-instance. All the components in this tree could be generic, all the meta-objects constructed automatically. These generic Components (viewers and editors) have the exact context to execute generic actions. Components can be set up with proper Ruby objects (e.g. stuff Persons into a generic ListComponent, rather than pulling out their string names for a selection box) and with proper Ruby callbacks. A lot of the application-specific code can becomes generic once this is in place, needing less in the application model. And customization could be done on any part of this tree with a DSL. Overhead ======== This structure, and its overhead, is only needed for those objects that are needed in views/editors. It can be dynamically built to construct the view. It would be kept around while Ajax operations removed and added components. We might use some event machinery between the tree and domain objects so an (Ajax) operation that replaced one component might also update parts of related components in the tree. Ajax-induced updates propagate up to the tree root before going back to the client. Components can "call" other components and "reply", causing part of the tree to be swapped out and then swapped back in. A new page load would be like a root "call-never-return", and replace the entire component tree. Thoughts? Am I talking nonsense? begin 666 mewa2.png MB5!.1PT*&@H````-24A$4@```?T```&'" (````U%QQX````"7!(67,```[$ M```.Q &5*PX;````!W1)344'U at 8>!"H=/%&(LP````=T15AT075T:&]R`*FN MS$@````,=$58=$1EW_GX255U375/3W=5 M?YZ/PU)3?S__^M75GZZ9=:(H4@``:_S/M L``)@HFXS at +"PN]7F_:!0$PFYCG`0"[D/L`8!=R'P#L0NX#@%W(?0"P"[D/ M`'8A]P' +C.>I[(=`0```0!)1$%4^X[C5'8XCK.^OC[V\^^Z!@`*9<9S7RFU MN:/5:CWVV&/[?;D@"'+NN;JZNJ\E`8!43ME_NS7&<=Y3H^P?QWZYL1SK.,[\ M_#R_KPM at G\S^_;[6;#9=UU5*M=MMF?]Q'$??=*^OK\N:9K.IE.KW^RLK*[$U MR\O+,F6TO+S<[_?E0-FM4JG(&IGG23V\6JW*GNUV>V5E12E5J52FT! `+!?- MEEB-E%+N#J54I].)HB@(@C ,8_O+0JO5JM5JLD\0!+)&*=7K]7S?ES6RU?=] M.4I.5:_7]9I!A]?K=;TF652SS//S\^-M%@#09C_W]7*OUW-=5Y;#,)3LUCNX MKNMY7J/1T%#G7)\```$`241!5#_*FX0LAV$H\:U/E3^P#V MCXWS^]5J52EUZM2I3W_ZTW?==9?>H=ELAF'XAS_\87-STW$<^8@@GGONN<]\ MYC.]7F]^?EXIU>_W%Q86HB at RSR_+^M_DX>:%CAX]ROP^@.F8SMO-OE&#[_?- M"1:Y<]=K>KV>YWGF(9[GR02.;#(G:J(<\SP9AS//`V"Z9C_WS?E]F7-O-!I* M*<_S:K6:_!M%4:U6DS="F>KI=#J>Y\E1LD:R6T[E^[Z\<\AY9(Y(KQETN%[3 M:K5TV5*K0.X#V#\S/L]3Q@(PSP- at 7UGT'.<$Z(<[`:"PR/UQ.G[\>+U>GW8I M`" +\SPV3>WC```!`$E$052%PSP/@'TU at _^O.G\9#0`RS%KN1U&TL+ P at 0O) M5+X\S@\`)5+Z69&IT!\I:#T`IOMM]_^S#// M+"XN)O=YY957CAT[II0Z<.# XX\_/O$R`B at T[O=+YIEGGGGXX8/>I[G^_ZA0X?P_X"/QG&FTW252F5]?7UQ<;'?[R\L M+ PJ@\SPS,_/3[9T`$J W!_1M'+?O.ZTR@"@U)CG`0"[D/LEX[INM]M5.S,Y M`#"L6NDEI=3Y\^=]WY>5S693W@;TPB3M7SM,V(3; M#9B669L@=LH_Y>TXSOS\?*_72]W:[_>/'S\NR[_\Y2_EFUO'<<(P/'KTJ%Z8 M7. A[/T```$`241!5'%GHLW5;LT.S!*>WR^9^?GYS0WRS/[SN.L[R\;*Y97EX>UZ_G),^S3[_X([]2%$511JS+UN+_\E&_WW<< M9V5E)>?^NCH%KQ=0+K.<^TJI<^?.9?P8L[JZNI=K!4&0?^<\U\J3^*;BI__% MBQ>54F?/GM5KS'9(MLG8FQ2 FNW?UW4.R>^O-IO-, S/G3LWJ,I# M_=[I'G])->/PO7]M._GH_@"-GD$/43MHFSRPKJ]6J MWEE?:U"QQ_)W\Z-)R5F>?K]__OSY1QYYQ/.\%U]\41EM;B[+1)"L--_ =&M+ M^YN;]-R1'*5;VW$MWW?=DD:\(P]#S//#QY9M_W]\KN=YM5HMBJ).IZ.4:K5:4;Z&S;E;ZLZNZ\J% M\M2"W(_&7-H`&;_?E]_4V=. MYNAYFUZOYWF>N4GO:S%,&^99% M_ZBG>I+]E5P3#9CGD;;5TT=Z9WV/;W9!GEIPOP]+3#\UQBLU-3S/DZ .S]4` M``$`241!5$D>O;+3Z7B>Y[JN4JK1:.A-KNM*CLBDA)Z::+5:KNNZKFN^2<@9 M8F\;J6?6*W4DR;4&56'7`"I(XHL\)?%]7[[V$/)F+!,^NAUD>5#NQUI;'O&4 M#M*Y+Z>2.3TYE?ZJ)D\MR'U88I:?XRSII4OW0"'_[PI0+C/^'">P3XK\^W% MMMG_7G$)HP,^ZG6Q)@[V8P M][D+V[ODS6QVWLUPFV<\/LM[`$IJUG(_BJ*%A85IEV(6Q$(M^Z\&S4:SRY\+ MC8S?EE#/,^#H>FG@/7TZ*,)```! M`$E$052:&9[G`68/N8^]^K_?!"EY] _U7QT`I4;N(\4,Y/A>[%I])GE0:N0^ M1A1[T*74;Q5FCDM%2ET=(!NYCW39P6?##>^N+<"O[**DR'T,3=\.QZ*_I/?( M&17)J-%__\05;P`HFUE[?A_C,BC(!H5^2>U:D5TKJS?Q>\XH"^[W$2=WKZE/ MZ>1,R7TNX"28%8E5:E C^3;3?RS/_!'(0.Z7&XD/ MP?P/\B/WRXK$1RK>`+ K,R@[G@$M+W)_TDA\S!+F?\JHN/,,>AC-GM0VG\GZ M%F1TS63;3E=&S]+:J0KR6A"%OM\O5$OM49ZI_%FJKRK8ZW_&VG:ZLGO6_ 1 MLXM"O1:44O\S[0)89&%A8=I%F#0+JVP)>G98A6HQ7G97+.\O)Q1L-BF_'O&E+?%)B$J*K-L(Y0S" +P.)I;```!`$E$052] MW&@T8I756\W=8EMS7C3U#$E*J?GY^>P=8 at M1%+FN&X;A:)?.J'7JL7I-GHKG MJ?6N59Z8U+8-P]!UW>S]D[)'S at A%2IXY51'&L):S9Y7QN[NQ]1D%DTUYVCF[ M=F5LL8F9V=PW#_$\KUZO*Z5:K59LZZ[C;Z at +9>\V0NZ'8>AYWFB7SJAU]K%Y M:I1SGX*,]4'=/:@6>Q\5^8N44Q'&L+G_4+GO^[Z^?0G#T/?]7MU"<=6JZ64DAV44G(WU^OUE%*=3L?SO%JM%D61 MWFKNII22TT;&R N"P/,\UW4]S^OU>E%BZ,0N)#N;I+JQ:P```0!)1$%40\VL MP at BYKW^4JLG)Y5Y#7SK9(-FU-I>3M3:;0DZ>[(NTVPE24/=FU':J/-]7TY8D#%LMMM0N=]H M-'S?EY6^[TMK1(EQI1=2VUG62_',B at P[_HO<8A-3OMP/@D!>*CKEHYWY$'-6 M1!^B!YF\^<>VF at OU>MU<:;XF:[6:#-R,,_B^+V>0 at B6KLY?<#X(@636]*=D@ MV;4VZQBKM2SH-]18K93T2QB&>CZAU6J9U\H8=049PV9[#I7[L6HF&_Z<"CT```$`241!5#-9F-1" MI@[+$<9_85ML8LJ7^Z[K=CH=O2Q#H=/IF!UF'J+?\&4??;<5VRTUVF0,19DO M^]0SN*X[[,UO=NY'.Y%A?D:6A=0&R:ZU64.>H*,H;-DP^5^]'.NV.KU9*/YJ/E?NJ91QC_ MA6VQB2GTWV%.M;6UM;2TI'^\[;;;E%+_^,<_E%*OO/)*;.=^OW_^_'G7=2N5 MBJQIM]N'#AW:I[+IJXQ+L]F4Z8)JM:J4.G7JU,F3)\^=.V?NDVR0LM=Z7VUN M;LI"L]D\=NQ8%$6I(THR\/^_C```!`$E$051#.7/FS*./ M/MINM\^<.;.YN7GFS)G\Q\Y&;U:K56EY& 92:?<"D?&Q6F;6 M] 1>\6&1_Z5+YW_M1/?+U>S_Q,IQ?TN[U9,/.<>WF>1^W.*5F Y ?JV,?G/+7>M &3.ZOFSVY*76>)W8)/26]ZRUD M2WJ2GOY+MD*Q=:CN/,/X+VV(34[[ E<^?2J/\/*GLD&V;76YP\G?@```0!)1$%4^MA!N1_[7DO7 M6N8K.M2BI89I#BO!5'HW]<%`(P=N0\4 MB,Q-(XF6&2-R'RB0HT>/3KL(!47+C%&AG^.TY6\D[;"MOI-$VTX%S5Y,Q0[JP2OP5^;C(+0GM at +TK M_E at J?@DQ`;;/[Y?ZX3 44!1%A9W<8$76V2H```$`241!5+1#V)[[HLBO591% M65*5T0ZK<[\L+U242S&#E=$.S>K<-Q7SM8JR*%>J,MHM9V_N)U^HO!@P+D4; M2^5Z6\)^LS?W at 7$I>*JF%J]H[TR8)$MS?] +E1<#AE7>L53\$F*?V)C[!;\[ MP\PH0K RVI%D8^YG*\)K%651]E1EM-O)NMPO^PL5Y3+=8&6T(Y5UN9\'-T'( M8S92E=%N(;MR/_\+E1<#LA5_+!6_A)B6XOX]SGW"^,:X##66)OSA0,K&:$>J M6?B at ND>S\6D=!5'PX53PXF$R[)KG`0"0^P!@%W(?`.Q"[@. 7CIQ)DTW=952[YONY54!FJ" Y-6^L+#0 MZ_7V6$8RIIZO>YYWJY7 M3SW/KINR.RYC4T:3YI=Z_HP3#MNY>F7.P3ER79129K_KRRFE7-?5ZUW7S=/: MN[9M=G5B_6L6(.=)QM*YJ9?(/F&R?XO0N2+6Q5-1N-Q/_CAA^NJ>Y]7K=:54 MJ]5*;ATMXW+N,\;<5TKU>CV]LEZOCW:>/)M&:Y.Q=/>P)]G7SAVA/.:!@W+? M[,KLF[8\%_.'>$\R?XM0N?JP\G]@;G?:K7D'DH.YV.YWFU6DVN7JO5Y')ZP3R/.;!DC>NZ4AZS at K)5 M'][K]?3A^L9\O/?[2JE&HV&FOUG4( CT/E(>:0HII+ESK]?S/$^W]J".R]@S MV:>QEI1CI3M%R7]ZEHRC2HSQ*-'VKU9+NU'= M\DH0D7$W% 2!W.'JZ8Y-9W3E```!`$E$051ZO>[[ONPCFWS?UR]^_7*2D6>6 M)[4DLJ"C)[8F#$-Y^QGTRI0K2IDE$\VA-I;<[_5Z4BFEE.=YL1>J&?>RTO=] MW5"QHOJ^+RTF18W5J]%H2&4S]LSH4[W@^[[YD5QW5AB&9DXE1X)<,;F/WJ2[ M8ZC.U9^0!ITMXPRIG9LM(_=U96NUFCFKEC&ZDDVAV[96JTF2RH_)+HN=6;]P M,H:!%"PR>B%GY\8&8>QUK:N?VKFQ&D4#^C=GYR;/EG&&U$;;%;G_W^9V=^AL MBG9ZW1R=LH.,DFCGO5>GB=S4MUHMN:?H=#H9-V5F+^H7I!Y8^DZAT^FHS$^+ M&0O):R772#GULOD6M7GO:0```0!)1$%4,I;J!' ```$`241!5#^PU)WK>5ZSV;S]]MOW>)Y4J5VFV[;9 M;!X[=DS&4NJ>2JGCQX\?.7*D4JGLL7^3K^O\QTZR?]7 at IBBZZ;[MJ,0;OKE) MWGOU#87,IID'RA1J]-YI"J54J]62#\+R22T:,,\CF\QY'OE@&'LT9==/B\D% M_?6#OI:44W\"U3OK at DGMQC[/X[JN_C";_&"N$K<\9D/%=C;GQZ6HL8[;=<]D MGR8+HS\[1^^="C#W28Z$9$7,3>;,S&B=.^AL9J62UWGK]&@_LW9N:GS/+U>+W7$ MIC;:KE0![O5\YNSD)'Q-5&T\\DWMF#6119B7PW)#'OLRU(Y7+Y]2ITG&4ONMUHM M^<;,G$/+&/K24*G?Z\JI!GWD-QM\T)ZI?:KR??47*W!L)&3GOODU^VB=:YY- M%\],6ZF.N_.DHYPAM7-W[;6,W)>)"UU:V606()EQ.;_73799:O^V6JV,82 A M*RVLWOO\0I[.C=X[3E(OD9K[9HT&]6_.SM5?VNOBZ1=OK','-=JP73P5T___ MMJ9;@&*29MGC?\XP6MNNKZ]_X0M?F)^?[W:[2TM+0TVA%%.YQICC.//S\[K? MQUOX3!=^SK/@R(HPCS/])_CM.AO(4T<;3L#Z$2,W91S7^YJIUN&8MI[ ML\QDV_;[_?GY^6F78G+D9G_V^A'3Q:=(E GS'L#>\;TN2H9Y#V"/R'V4!C?[ MP%B0^R@''?I1%''+#^P%N0\`=B'W40*Q&1YN^8&](/=12D0_,#)R'T7'U[G M>)'[*+2,T.>6'Q at -N0\`=B'W45R[SO!PRP^, at -Q'N1']P+#(?1047^<"^X3< M1^EQR^F104$```$`241!5 \,9?I_?Q](DAPGS8']P$=IE F3/\#>,<\#`'8A M]P' +N0^`-B%W <`NY#[`& 7!=$>3'/`XQH86%A MVD4`1D'N`X!=R'T`L NY#P!V(?<[LD^>Y]+!UF9^?[_5ZN_W8VLTO_'%%Y52,N%3J53T at AR[LK*BE_5U966E4NGW^RHQ M!62>(5E"8*9$0#YJY^^RN3N44IU.)XHBS_/",(RB* Q#S_.B*/)]OUZOFVOT M&?2F5JLE:X(@D,/-J\@^:F2J7RW'//'3ITJ-EL;F]OO_;::^?.G1MT>+5:_<0G/G'FS)ENMWO777?) M5$]RGB?CTJDES#Z#+F&R-9CG04GQ=Y at QNL7%Q:VMK1$.E.D4K5JM*J5.G3IU M\N3)<^?.I1XBDSRNZ^ICV^UV,H[')59"8*9,\L,%2DWMS,#H-7H:9*AY'M=U M6ZU6%$6]7L_S/+EE[O5ZY at G-J\AR&(;F2CW5HP9/UT2[S?/T>CUS)D>W]*\X at M- M```!`$E$051R'P#L0NX#@%W(?0"P"[D/`'8A]P' +N0^`-B%W <`NY#[`& 7 M7\Y=P8V-C=775<9SEY>74Z\JF M9K,Y8M%WT^UVI0"#=IA*@V?;M^^]=XS1KUMCJ#*,W?Y=/?O,\O(<^T4S M"B,O_XE=L="BF5:OUV-U['0ZON_+2%C&-LEOV+ at D%G#L,PM3'WU7XK[\=+:[X#(4^8@" ;U5[)X(Q1XA'8;8[-,/O>GHE"%F:)9GN>) MV=C8D(5;;[UUUYV[W>X^%>/TZ=-Z^<"!`X-VNW;MVLB76%E9>>RQQ\PU?_SC M'P\>/+CK@=UN]\DGGQSYNOND.*4Z=NR82LSR)XLWF0(7IUE0.N^;=@$FY]JU M:P\^^*!2ZNC1HTJIU=75)Y]\,HHBV7KUZM7?__[W'_WH1Z]=NR9QO+FY6:E4 M?O[SG\MNW6XWN=SI=%Y__?7/?>YSG4YG<7%Q?7U=WE2N7[_^Y2]_^99;;HF5 MX8DGGGCBB2?TCYU.Q_.\9%%UJ6+[5"J5KWWM:X\__GAV38]'5QFE```!`$E$ M050<.:*4VMC8D/JFNGGSYD]^\I,[[KA#E[;7Z[WTTDM**9ET?N211Q87%V_> MO/F;W_QF;F[NVK5KG_WL9_6;Q\V;-R]__O7X MXX]WN]UDJ9)U^/*C[:'M[^[777IN;F[M\^?*==]ZI MRZ,[*X]FLWGOO?=*]<,PU.V0+)Y2*KDF.5KT6(I=Q6PW<\C%&C"U608U:;(N MV]O;TLBWWGJKO!Q,^@[IY9=?EL942EV]>E6:\=___O>9ADKQG0```0!)1$%4 M,V3:P:UGISPQHT;TJ?2;F;54D=CO5Z_=NW:J5.GE%)R_M31V.UVDWNJ MQ$#2A;EZ]>H;;[PA+_.EI:6UM;73IT_[OO^M;WUK<7%Q>7GYW+ESERY=RGCM MS(*I?=*8")DDJ=?KJ;,EYAJEE$RI=SH=UW4S=C.793JET6B\\\X[81C6:C79 M9"X/(A,OV]O;&?O(=P!ZGSSSXS*/5*O5S,)(U90QS^/[OCZ56=I8*S4:#5DC M)='K?=_7I[ITZ9+^RB0R6E**$2NP/DEJ`8(@T#-4NGF3I8K1A8P2W:>4TE9Y>UF>(G5;.8S:FV<52D>2:5.:H&U27025W75=&KVZZU-&8W#-C($EAS#/4 M:C4]^QJ&X7Y_F50$5N2^+)O#5&0$>L[=] LUVAEYLKQKE+SSSCN>YV6'?I26 MF[N2$2Q?0DKQS 210=_I=,SBF:6-%5O>SV*;8H?+)OUJ,3>%89CZ)II:`/VO M/M;\=HS.A34VR4IKZ[ MI+9\$ 2>YS4:C>WM;=F:7)-JV.X8=C0F?\PYD/2R]*DL3_'+OTFR:)Y')F<' M"8)@?7U]:6EI?7U=[H/R,#]';VUMO?WVV_HSLB2!9JHL```!`$E$051OJILW M;W[UJU_]SG>^DSWGWFPV*Y5*\F-X'O(I]<*%"Y5*96YN+K;U]==?5\;'^>S2 M7K]^/?;HIQR>/&=R!F9N;FYK:RMUYV0!+E^^K(PFS5_Q6VZYY>VWWUY;6[OC MCCN2E1UT]?RD^N83J.943WZILRZI!K5;AIQ]NK6UI9OHEEMN26WD(T>.R*R+ MV9A?__K7#QPX\.RSSTK!MK>WDVM&:)/\)1?)T9 at T[$ Z>/"@YWG-9O/3G_YT M_JF_WM2Y8S=N9CFH-N MYR]=NF1^\AUTJM23RT*CT8 at 52;WW0ZYYCY:\%*@])@```0!)1$%46]?S1;$[ MK$ZGD_]^7U[ L3T'%4!.:ZY,WJ:E/M):J]7,VS1=SBC?#69RMYC819-3/U6 at TS)D9O29YN4$%-G_, M,QI%ZFA,[IEG(,669?IKPD]U3Y%%S_-DNWSY\L&#!Q]\\,'D3:N6?:.QLK+R M_///ZQ\'?6-C8V-CX_KUZWJ]/O_5JU7L<^N M3IPX,>B>\99;;@F"X"<_^?,3G_B$4NKLV;-RNW3SYDW9]-)++RTN M+ at 9!H$O2;#:#(##;3>]\^?)E>>O-4X#%Q65^^&D```$`241!5$7?]R],V6VOMRE5W[5,1&Z84+%Y(5/'_^O'Q>-!O3/&II:>G#'_YPO3H^?/G1RA\2?V_;W_[V],NPWY96UM[^>67M[>WY^;FWGSS MS7ONN4=OZG:[/_O9S\(PG)N;DU\:_/&/?WS\^/&GGGKJJ:>>NG+ERGWWW;>P ML" ['SY\^-577[UQX\;'/O:Q[WWO>W-S>:<^_,J5*X<.'5)*W7///1_\ MX )VEC8^.))Y[X[G>_>_OMMQ\Z M=.C][W__&V^\X7G>AS[TH6:S>>'"A8L7+W[@`Q]P'.>>>^ZI5"KM'69I#Q\^ M_,(++[SUUELR+7;X\.$+%RZ\^^Z[?_[SGQ]XX(%FL_G)3WY2#I>:MMOMM]]^ M^QO?^(8NQNVWW][O]V_.BAAW[]ZU]O M;FYVN]UKUZX]^NBCN at O,4L4/CP81D_\B#*Q8L77W_]]?_\YS_2%\GB MF6O,P2:C)3G\,MKM\.'#O_WM;_O]?J?3^=___=\?_>A'NJBQZP[J4Y.,TA=> M>.&UUUY[]=57[[___G???5<71DY[\.#!S. !:F8US9?,G7?>^<]__O,'/_C!Q8L79:PF M2W[CQ at W90;KOXQ__^*#1^($/?""Y9W(@=;M=?<6/?.0C^A#=Z7-SO7I5?AG%$MQ\*;7S:R-Z*O;&C1OWWW__: \G(-7J MZNJ]]]Y[_?IU\W,5,'5K:VORPK?J;H_!"H*OX(-= ````=T15AT075T:&]R`*FN MS$@````,=$58=$1E#ZA)0SDJE;21%14:"9!!40DJ41$Y=?<4(T&%@X.K8MRD M+2#L- ]&Y5Q7C7+XFJJ&(">X&&&;JC8V"@34A',3LH>NU?Q?3#S_96]]OH>] MV]F][^>%=1[OSLRN;W\[.SL[JS#&" `@Q2U.5P``)(7H``#6$!T`P!JB`P!8 M0W0``&N(#@!@#=$!`*PA.@" -40'`+"&Z ``UA =`, :H@,`6$-T``!KB X` M8 W1`0"L(3H`@#5$!P"PAN@``-80'0# 6EF!\E441575`F6>1C@GJP]@OT*-E72CG(=1(3J )Z'M``#6$!T` MP!JB`P!8DZ+?(<_K=CQV!5 (4K0=5%5EN7*Z[@">)45T```)(3J U"8F)M+\ M-9%(\ ^:IFF:5HP*R4?L!-LA.H"\>GM[Y\V;EV:![W__^_Q#.!P.A\-%J91< MFIJ:=NW:5:#,I>B5]+9 (! (!')8$;/@O?766QDN4+([:MNV;06S*N7#_G6P1D:JJ'1T=1-31T:'KND@?&QM;OWX]_S4: MC38T-/A\OCX&;+L```$`241!5&@TRE-&1D8:&AJ(*!0*]??WBPRCT6A-34TP M&!1+\J\X/]IW[- at A\A??TLN7+^_9LX>(@L%@1T>'\:_B\.!K#0P,!(-!G\_' M%Q-97;ER9<6*%<%@<&!@('4;=5WOZ.CP^7P-#0W#P\,BG2<:U^(%U=?7!X/! MH:$AO at S?,\8%UJQ98]I=J5E9;C6W;]\^(MJY]5 M(FIO;T_[_\P4HH/]=; K9ZFB0WU]O?@BBB\?/^S7K%G#&(M&H\8O*S_LC6L1 MTZN[NO7KUZ\>)%5563R:18,IE, MZKHNEN2.'CW*&-NR90L_;/A/<6 ,#0U=N'"AL[.3B-YXXPTV&4"-_9$M+2UW MW'&'J"IO;G ;-FQ()I,C(R.Q6"QU`W__^]\?.W8LF4P.# RHJOJ?__R'B/;L MV=/9V:GK>CP>O^...UI:6L3R/*O6UM8E2Y;HNO[QQQ_S6O&_CHV-\;7$[DJ3 ME6FKY"JYO0```0!)1$%4WW___<;&QG/GSC'&SIT[U]C8.#@XR)=\^.&'15D] M/3ULLEG'&.,-D%.G3NFZ_L<__O&SSS[+\C]L)?\`8RFKG-%VR"';8J*;QZ2( MBAEK:/G5XI<5QFN-J984@<#XV9AH:G'P^AAK0I-Q)).J&JMARLJTX>*S,519 M+C!55JEK66Z@*=%R8\6FI29>OGR9+QP,!GD;+7_HE82,W+AQ at W_XZ*./*BLK M4Q>HJ*A8NW;MK%FSC(G[]^]75;6KJ^O at P8.;-FUJ:FI:M6J5Y9+3VK1I4R02 M>>"!!VZ]]=;Y\^=/M5A-38VQJA45%5,M*0Y"WF=<45%Q_?KU.7/FF#9J8F)B M[C6CC>4```$`241!5-RY1*3K.K^JSX182^RNS+/B=7[^^>?+RLJ,-4SO]MMO M9XP-#@ZVM;6M7[_>Y_/MW[\_P]I.!5<6D)'>WM[Q\?&)B8GFYN;:VMK4!;[S MG>^4E95MWKQ9TS2_WW_BQ DB6KQX\84+%]:O7__""R^_W-S<;/RK:4#$[MV[IZTJITWBQ]ZWOO6M7;MV)1*) M5U]]55&4KJXN7M4]>_9,3$R,CX^?/'GR%[_X169[B\1:H at Z99U575T=$W_C& M-S1-6[=N73@#3LZNI2%.6VVV[;NW?OU[_^]=;6U at RKF@:B`V3H MN&FS```!`$E$051DX<*%&S9LJ*JJ&A\?MQQWI&G:X.#@][[W/451FIN;^>B# MK5NW_OSG/U<4Y<<__G%]??W&C1O%DCZ?S[BDI<<>>ZRFIN:11QXAHN;FYNKJ MZGOOO3<>CS??GK>O'EOOOFF6&79LF4K5ZZLJZNKJJH:'!S< MN7-GAAOX_///_^,?_Y@]>_;^_?N?>>89'C)X5:NJJNKJZE:N7"GZ-:>U=.G2 MAQ]^N*ZN3NRNS+.Z^^Z[H]'H2R^]I"C*=[_[W=_\YC=I&AHOOOCBH4.'GGKJ M*;_?W]#0\.BCCRJ*\L]__I,'XCPA.@# %&SIO4B55<[HER`_4!+"$Z?"Y]:$C_\EZ$%? D1(=,E?+; MO4MVPW/CF=V%7LGI:9K&+\/01H"2 at N@``-:DB [AXH-'N M[)7%5*67\@L4H$2 at 5Q(`K,D>'?@H9J=K80%C'\#S9(\.SHK%8FE>)9)5[P. MZR ZI!.+Q=)T+FB:AN@`'H;H``#6$!WR at MX'\#!$AWPQQA @P),0'1W,5C(` M``$`241!5 # &J*##1@>W 0O0G0``&N(#@!@S05/<#LEJ^<[^,T+.8=U`N0& M;0?;H/G*M142OI?\]DT@/Q)?:)3 MG#L/YS/U$Z:-`F^0M]]!VGE?`$J$O-'!O?#@)G@#HD-!X,%-\ !$!P"PANA0 M*!@Z"6Z'Z ``UA =+(A!!'D*! )H/H![(3H44" 0"(?#3M<"($>(#H6%W@=P M+T0'`+"&Z&!F^QA-]#Z 2R$Z%!QZ'\"E)(T.=MTUD 1Z'\"-)(UK9#SP```! M`$E$050.`. X1 <`L(;H4"1X-#[`.XB8W2(Q6*JJCI="X!2)^., M];E-]VH+!^>J`Y"-1 >#B BQ6"P0"*2F%ZYX]; M?KD4" 1PYP+<0J*V`UDU'XI3O:*5Z]0&`N1 HK8#`$A%WNA@>]L^#5-!A2NW M"!=*`':1*SH8#\M8+.9('0HZU"(0".!2`MQ"KNA DP=G\4=#B7*+,-2",89& M!,A/NM%0_.!T9#14,<_JO!&!^Q<@,UGN64P5#@*!@'%DE#?*[_T4'@```0!) M1$%4=6IC`;(B1=LAS?AE/D; ,^7RD5>.;"Q MF8X_M1@^D<;Q/ AVP\;1\KE M`ZB+7"A ;AR^L@@$`IGPL%R(>3T2&K!R+Y2=66VFJ: MEOFQ9]=3FXX4"I /Q^YH9GL`,,;X["EYCH/(=CY;6Z9L<:10&;S\\LO9KC+5 MOLKV_L[%BQ>W;MV:;>E at Y$QTR/F=$7E&!]O?52%MH9+8L&KEENP]?>>65 MYN9FNTHO3=*-A@()\: \/#S=O3#0V*+-EC"(```$`241! M5$9'1]O:VCHZ.JY=N\93$HG$V;-G6UI:NKJZ/OOL,YH<:RO6>O?==S5-^]WO M?O?AAQ_:L$=*!'."JJKN6C>?'>5(H?8BHOKZ>O&=:6]O%Y\[.CKX,GZ_7R2& M0B%F.-6KJGKLV#'CMTZL%0J%4M=:L6*%2&QH:!!U2%W%[_?SQ& P:%K%^ TW ME3XR,E*\?>=F:#M IG1=__CCCXGH3W_ZDZ[KC+$M6[;PJ/'**Z_<====//'< MN7.-C8V#@X-L\I#6-.V]]]Y3575T='1H:.C))Y_D:[6TM#0V-IX^?9HQ=OKT MZ<;&QG???9>(9LR8$8_'>6)K:RM/Y-Y___W&QL;N[NXN#;DL```!`$E$051D M,JGK^EUWW77TZ-$3)TY$(I%CQXXED\F!@8&''GJ()H?&\SILV[;MJ:>>&AD9 M^>BCCU1532:3#NP^%T)T@(SX?+[R\O(O?O&+1'3//?>4EY<3T;QY\_A?UZ]? M?^3(D=FS9RN*LFC1(B+ZPQ_^8%Q=T[3__>]_=]]]][WWWBO^]-.?_I2('GSP M0?'SSW_^,Q$]\L at C<^?.-25RO!6P+%-. KM6K5T7O_PE7ZNOKR^12)27E_/. at HJ*"B*Z<>,&7XLG5E96BGSX`MNW;Y\U:Y8I M\?KUZW/FS+&LW@,///#))Y^<.7/FT*%#U=7534U-JU:MLF7#O0UMA^DY,C;) M70.B=N_>?O%G3M'7KUH7#X9DS9_(_34Q,$%$D$B&B>^ZY9_;LV2=/ MGA1KT633@)__:VMKB:BWMW=\?)R(#ATZ1#<'FKJZ.B(J*RM[[KGG-$T;'1V] M[;;;EBQ90D2[=NU*)!*OOOKJXL6+Q?*)1(*(-FW:].RSSRY9LF3W[MWGSY_O MZ^LK] [Q"*(I>;3S^H at X7:R,*WD6X```$`241!5+C;C9][ M>GI$/:]N7*%555/_C@ M`[[,VV^_K:KJVV^_;L;5 MJU<7+%B ?5)D3K8=&&,9/HRH:9JJJC;VTF5XH/)R75VH!_3W]R]8L&#'CAU. M5Z3D.'^.FO8\6: 3J2/E3MN"0*L!Y.'\'4UF>.+(>.2(SP4Z6API-Q (I!9J MG/0!H0'D(=>9RJE7R#E2KBBT.%/=`F1+KGNR!\W9```!`$E$0506_#X*OTE6 MY'+%G;GB%XK0`')R_LI"!KC:!TB%Z.#8F&6$))"<7%<6CG!DS'(I3PD#;E'J MT0&3Q -,I=2C0S@<1G0`L%32_0Y.->_1XP"N4.IMA^)#: "W*-VV`XY2@/1* MM.W at U)-.N%4!+E*B;82N+)SJ MC$2/`[A.:;4=<(@"9*ZTHH-3T.,`;H3H4 SH<0`W*I5^!SX[FR/SK.!R!ERJ M5-H.[GJU%( ,2B4Z`$"V2N+*PL%.03S-`>[E_>B0U4NH;"\:H0'<"U<6`& - MT0$`K'G\RL+!RW[T.(#;>;GM at - `D _/$\87!0```0!)1$%41@<'>P2=>D$& M at +T\&QT>$)C 8W!E`0#6O!,= MG)W9%0]K at _=X)SI at 9E<`>WDD.CA[S8\)Z<&3O! ='&_5H]D"GN2%Z. LW*H` MKW+]'4W'KRD0&L"KW-UVP',-`(7C^NB D+B*PO'[Q2 at QP&\S<5M!V?O M%*#'`3S/K=$!!R= H;DU.@! H;FRWY+?A44```$`241!5,'Q"W['*P!0!%)$ M!]/4LL8[$7Q*5;$`GYJU^'#5FF2J@"0[#:"@G&\[\#=?\5X0T7P0/7_&=\!Q_*3M M8'=)3T^/4T4#%)-T`P?X6=HR,36]:'@%BMQ@`7"6DVT'3=-2S\.,L=1$9T_7 MQL$7#E8#H,A<]C;:(@]2-#5DQ*WP%0Y1```!`$E$0503]#M *7"F[9#S<,.B M]3 at 8>T.,B3PE_[>$`\C/F9'4,L_:PAL(Z5L'O/)XV@*\S?E[%A+*\)AW]M8) M0*$A.MS$\?FF`.2!Z'"3;.>;LARI!> -B [_#_T(`$:(#@!@#='A)(ST0&7ZP#R,E1N9'G>EU&$;9=F'B^4L`09;HP.5P6"J*DF;*IL)U-&;R M**=7%>)B*L\\IVIIYI#M^/CXA;[B)@```0!)1$%45[_ZU9QKXB5R18>L9-); M*1ZCS.K6J6@^6*[%FRJI$UY"/@KT>K%LLSU\^/#:M6M+,^A;R/U%.4[+JO*Y MO<#*M(OX5PWOPI+P:V/7EYG_B_//QQO<.I*Z.-V!?!^)UD0@$&"E.J=#8V-C M=77UHD6+>GM[1>+HZ. at 33SPQ?_[\ZNKJW;MW\T1%48:'A^^___[JZNJ#!P\> M/WY\T:)%BJ(\\<035Z]>):*#!P\^]MACBJ)45U>+1'YIP ?1;MVZE?_U5[_Z M56I-CA\_GEHHU]34I"B*W^_OZNH2E1%57;=NW9UWWEE=7;UW[UZ>>/KT:9[5 MXL6+7W_]=9I\Z9FB*)JF#4R4]7<```$`241!5 \/KURY4E&4A0L7;MJTZ=JU M:W;N4%=P,C3E(8<3N'LWUG'1:-3O]X^-C<7C\5 H)/;DVK5K0Z%0/!X?&QOS M^_W1:)0Q1D2A4$C7]6 at T:OK,_VM$=.+$"<;8V-B8,9%-GKJ[N[MYH3Z?SU23 MD9$1GF=JH42T?_]^QEAG9R<1C8R,,,,_G5=5U_5X/.[W^_O[^QEC]?7U/+&C MHZ.FIH;=W'8 at HF>??98Q=O'B12**1"(%W,52CZ]>N,,5W7B>C M at 0/,\$^OK*S,#B^^^&)55=7:M6N/'S]NTXYT M&1?W2D+1O//..TN7+N6?O_2E+XGT2Y-6M67U\?_SQGSARQ3'EY MN2FW+5NVW'GGG1LW;JRJJEJP8$%J<3-GSC3^*EZAJFG:I4N7B,BR4"*Z]=9; M18E\26%L;&S7KEVF at BY=NF2LJLG6K5OKZ^N/'#FR;-FR8##8UM9V^^VW3[6P M)[FOWR&?1ZU+L\L@?R^__/*I4Z/7NV MK:U-+)Q()(BHJZOKU*E3/_O9ST9'1R.12&MK:R:U]12G&BTYR^>603YW+JBT M[U;PJP`BXD<13^2]"9S?[^>)=//Q;/S,=^":-6N,W\!GGGF&W7QE8;FZP#L^ M4 at LEHF PR#^$0B%3#L:J^GR^*U>N,,;:V]M%8D-#@S$E$HF<.''"6,^^OCX; M]J.KX,K"FG'\)9O\\ADGVB^U9LCKK[\>C49GS)CQHQ_]Z(,//N")RY8M&Q at 8 MZ.GIF3]__O+ER^U,]UL```$`241!5'FB<8B!Z3.?LW/?OGWWW7=?967EZM6K MD\DD?]$97](TJ:?E:(477GCAR2>?M"QT\^;-O_[UK[_][6^+=(%7M;>W]]*E M2T\__?17OO(5(OKA#W_H\_DBD8C?[__F-[])1,%@,!*)]/7U5596WG___6?. MG'GSS3NBA'3MV.%T1%W-?KR0`%(.T at Q&SG3ER*NB5!#"2]YN=;4= M_DR6=??T<'T,Q;7^'79T=`-*2M.T``(Z3L>V0,_[40Y[M#MYJ MT#1MZ=*EEEF5\CORH*3(V-\NS[!%RVI at QA`O%M.0```())1$%4P"XR1H="S.P"`-F2-#J(EZ,!@%-DC Z4T[RR M_*WJ!:D-0$F2-#IP&3[U8,LP!P`PD?V at 2C]@.?.GO $@6[)'!TXT(HP3O83# M8 References: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> <3ff63f9b0606272335x753d4382t3e2dca1c5ee5c0f4@mail.gmail.com> <55c107bf0606290117r51c27339k205731f245add07f@mail.gmail.com> Message-ID: <55c107bf0606292313l38ce0f52y35025ce5ec1f4487@mail.gmail.com> On 6/29/06, Bryan Soto wrote: > > On 6/29/06, Dimitri Aivaliotis wrote: > > > See http://devlab.oree.ch/trac/glycerin/ticket/34, that > > one's been a thorn in my side for awhile. > > > > Okay, thanks. Any opinions? Should we go with Dimitri's recommendation > or Bill's? > I actually prefer Bill's recommendation. It fits the general case better. - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060630/7b43ee3e/attachment.html From zimba.tm at gmail.com Fri Jun 30 06:06:55 2006 From: zimba.tm at gmail.com (Jonas Pfenniger) Date: Fri, 30 Jun 2006 12:06:55 +0200 Subject: [Nitro] A uniform structure for components in Nitro -- long post In-Reply-To: References: Message-ID: <3ff63f9b0606300306k2fcc3f1fy4cb123d7ea2d7fc3@mail.gmail.com> Hi, in general I've found that component based web frameworks don't fit my needs. I've tried Wee for example. The component reusability is a myth I wasn't able to dispell. Also, I've spent lots of time taking care of building components, how they work together... instead of coding for real. I don't think the web fits that approach. Things must be more loosely coupled like REST. -- Cheers, zimbatm http://zimbatm.oree.ch From john at oxyliquit.de Fri Jun 30 06:23:15 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Fri, 30 Jun 2006 12:23:15 +0200 Subject: [Nitro] Beta Nitro gems available In-Reply-To: References: Message-ID: Hi, thank you for providing gems, way cool ^_^ > # gem cleanup good command, thank you :D Jo -- Feel the love http://pinkjuice.com/pics/ruby.png From aglarond at gmail.com Fri Jun 30 09:43:55 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Fri, 30 Jun 2006 15:43:55 +0200 Subject: [Nitro] Comments on the new nitroproject.com site In-Reply-To: References: <20060628182031.GA29128@hijacked.us> Message-ID: <55c107bf0606300643vd4965fbv1d93aae2223fbb69@mail.gmail.com> On 6/29/06, George Moschovitis wrote: > > Ok, fixed more or less what you suggested... > If you have more tips let me know... > Just a short comment: the links on the homepage to the two repos point to the opposite repo ( glycerin -> http://repo.nitroproject.org/ stable -> http://devlab.oree.ch/darcs/glycerin/). Or, was this intentional? (the nitroproject repo is down atm...) - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060630/09794cc2/attachment.html From william.full.moon at gmail.com Fri Jun 30 09:44:53 2006 From: william.full.moon at gmail.com (* William) Date: Fri, 30 Jun 2006 23:44:53 +1000 Subject: [Nitro] A uniform structure for components in Nitro -- long post In-Reply-To: Message-ID: <006d01c69c4b$62f8ca70$c0af07ca@ghostgum> Hi Itsme I too am interested in some form of meta-system specification. I've been investing time in Og because it does most of the right things needed for a base-level meta-programming. (You didn't sign your mail so I hope I got your name right enough). Anyway my email is below for a direct reply . I would be happy to get into discussion off-list. I don't know if it is of general (enough) interest. Homo sapiens do not always like "difference" or "change". I think Nitro is an allied technology, it is not a basis for a component model that I can see myself. My perception is that Nitro is not a meta-programming model, it is a MVC (or more likely V-C-M): http://en.wikipedia.org/wiki/Model-view-controller Before the topic changes, smalltalk people might be interested to see that IBM has released a beta evaluation for their latest modelling VisualAge toy. It uses their very long acronym language (kind of UML in a half-shell). Returning to your mail. There is a lot of specific implementation assumed in your email. I grasp that this is necessary, to establish a firm grasp on the subject -- However, it is better to be open to some wholistic model, or systems model of the universe imho. >> A component model is a server-side tree of components. The >> root component might correspond to a presented web page, its >> children to
s within that page, and For example; anything in a "
" tag is client side. I can 'assume' that you mean there is a server-side 'dictionary' or 'model' of components that will somehow map to the "
" tag. So you have something-k that ultimately resembles the PHP PEAR library. Is that the meaning here? http://pear.php.net/ My short response to the big proposition is to enquire about the "vision" a component structure gives you? I can see that I might assemble a Lego set of reusable chunks. The effort involved seems beyond the pay-back return. You will end up with something that looks like TWIKI http://www.twiki.org/ -- So in fact we have a bunch of reusable WEB pages and building blocks (e.g. calendar control, grid control, tabbed-control, etc, etc.) There is merit in that, however as Zimbatm says, how does it help to do what many many many others have done many many times -- Microsoft is now on it's fourth or fifth version of components. The meant-time-to-code a simple address book program takes more or less the same number of days with WebForms .net v2 as it did in 1990 with one of the third-party components libraries or with the Borland C++ gui builder (which I preferred actually). ~sigh~ I want a quantum gain. Components don't even deliver on a linear gain. Which means all sober, serious mathematicians should skip them because the software development model is an N-dimensional geometric domain. WHY? The fictional computer scientist *should* require a geometric improvement in geometric systems (q.e.d.). All linear improvements will eventually be overcome with complexity and real-life. I trust these points are intuitive as well as mathematically robust? Alternatively, one could look at the same MVC paradigm and suggest that components need to come in a {M-V-C} sets. So that components are layered like the I-Ching, as C1.model, C1.view, C1.controller. I imagine this messes with your class diagrams. Class diagrams are 2-Dimensional. An actual component framework is going to have depth and breadth. It is basically 3-Dimensional, because the epitome of the exercise is replicable-units, viz.: components. I think there ways to get geometric or quantum improvements in development. The mechanism is non-linear. So far, I think of "components" as linear systems, and now there is at least 20 years of example data to back-up that perception. Email if you want to discuss non-linear approaches to solution development. Kiearr'wo Will. William.full.moon at gmail.com ____________________________________________________________________________ ____ (2006) Information proprietary and confidential intended for direct recipient(s) and mutually agreed co-respondents. http://adroit-process.blogspot.com/ Kiearr'wo -- "Everything is beautiful, sweet, delicious, happy, good". The usual greeting & departure of the Ya-idt'midtung people. -----Original Message----- From: nitro-general-bounces at rubyforge.org [mailto:nitro-general-bounces at rubyforge.org] On Behalf Of itsme213 Sent: Friday, 30 June 2006 15:43 To: nitro-general at rubyforge.org Subject: [Nitro] A uniform structure for components in Nitro -- long post Importance: Low Here is something that may have been obvious to others all along. Any and all comments or flames welcome ... The context for this ... I was wondering what it would take to give Nitro a full-fledged component model, where views (and controllers) can be composed from generic parts either automatically for the default case, or with a DSL that only specified the delta for the non-default customized case. All view and controllers do is view and operate on domain objects, and the structure & metadata of those domain objects is enough to construct the views and controllers. Like Nitro does for persistence, only for views and controllers. Like Wee without continuations. Mostly like Nemo or Mewa http://www.adrian-lienhard.ch/files/mewa.pdf, but extended further. I have attached 2 of the key figures from the latter. What is "A Component Model"? ============================ A component model is a server-side tree of components. The root component might correspond to a presented web page, its children to
s within that page, and on down. Each component in that tree is connected to domain objects via a meta-layer. That meta-layer provides a uniform reflective interface to all domain objects, their attribute values, and their operations, and enables totally generic view and editor components to operate through them. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.7/379 - Release Date: 29-Jun-2006 From itsme213 at hotmail.com Fri Jun 30 09:53:38 2006 From: itsme213 at hotmail.com (itsme213) Date: Fri, 30 Jun 2006 08:53:38 -0500 Subject: [Nitro] A uniform structure for components in Nitro -- long post References: <3ff63f9b0606300306k2fcc3f1fy4cb123d7ea2d7fc3@mail.gmail.com> Message-ID: > I've tried Wee for example. Imho Wee had components, but did not use generic components to build component trees from meta-data. > I don't think the web fits that approach. Things must be more > loosely coupled like REST. That would be nice. But since web apps span the entire spectrum of conversational state (from entirely stateless to long-lived state), a server-side component model might cover a broader part of that spectrum. I was wondering if any of the specifics in the post touched on any of the causes of the "myths" you encountered previously. Cheers. From john at oxyliquit.de Fri Jun 30 10:32:04 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Fri, 30 Jun 2006 16:32:04 +0200 Subject: [Nitro] [REQ] Og, typecheck at startup In-Reply-To: References: Message-ID: Hi, http://oxyliquit.de/question/62 There is more to read now, Emilio wrote some new stuff, very nice. > I think this is possible. Will add this to my (sadly big) todo list. I (we?) will be waiting patiently :) Jo -- Feel the love http://pinkjuice.com/pics/ruby.png From itsme213 at hotmail.com Fri Jun 30 10:40:21 2006 From: itsme213 at hotmail.com (itsme213) Date: Fri, 30 Jun 2006 09:40:21 -0500 Subject: [Nitro] A uniform structure for components in Nitro -- long post References: <006d01c69c4b$62f8ca70$c0af07ca@ghostgum> Message-ID: Hi *William, > For example; anything in a "
" tag is client side. I can 'assume' > that > you mean there is a server-side 'dictionary' or 'model' of components that > will somehow map to the "
" tag. I used "components" for the tree of VC-like objects that exist on the server side. They have _corresponding_ elements in the client e.g. page, div, ... > There is merit in that, however as Zimbatm says, how does it help to do > what > many many many others have done many many times This is meta-data based. It requires a little additional meta-data above what Og requires already. And it is Ruby, for meta-data DSL and dynamic change. > Alternatively, one could look at the same MVC paradigm and suggest that > components need to come in a {M-V-C} sets. So that components are layered > like the I-Ching, as C1.model, C1.view, C1.controller. (1) The meta-data is the base. The V-vs-C distinction is not as critical. (2) Customizable at any granularity due to component tree structure. (3) Tree mutates (e.g. Ajax) and propagates changes through the tree (4) The DSL would give the syntax for (1) and (2). Cheers. From transfire at gmail.com Fri Jun 30 12:04:16 2006 From: transfire at gmail.com (TRANS) Date: Fri, 30 Jun 2006 12:04:16 -0400 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> Message-ID: <4b6f054f0606300904rbdf8eb8y6414aea34ba7295d@mail.gmail.com> On 6/29/06, Bryan Soto wrote: > > Unless you're concerned with people running Ruby on Win3.1 or MS-DOS, > you don't have that restriction of 8.3 characters anymore. Heck, > browsing my registered extensions on WinXP, Microsft has registered > DVR-MS (Microsoft Recorded TV Show) as an extension. Case > insensitivity for filenames still applies though. :) Boy, I've been away from Windows for a long time ;-) Turns out that it wont matter though. There will be no need for a special file format after all. Rock can just take any old source package (tar.gz, tar.bz2 or zip) and use that. Plus I just taught it accept gems too. Which means you can take a gem and automatcally repackage it in another package format or even install as another format transparently! There still details in the conversion to take care of, but all the basics are working. Looks like Rock will have effects on Reap too. I've already converted Reap's package task to use Rock. So the next version of Reap will have a dependency on it. But Rock is also pushing Reap to go beyond the single ProjectInfo file solution, actually this is also an influence of GoboLinux resources too which prove to be a rather elegant solution. No worries though, I'll keep compatiability with PrjectInfo for some time to come. But I looking at moving toward a dedicated subdir where certain pieces of data can be more appropriately split up, rather than having one monolithic file. The dir, which Rock already uses, is called meta/. In it one will be able to put not only project info, but project tasks, pre and post install scripts --even scripts to a distribution, crypotgraphic signitures, etc. Thought you all would like to know. T. From george.moschovitis at gmail.com Fri Jun 30 12:14:52 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Fri, 30 Jun 2006 19:14:52 +0300 Subject: [Nitro] Comments on the new nitroproject.com site In-Reply-To: <55c107bf0606300643vd4965fbv1d93aae2223fbb69@mail.gmail.com> References: <20060628182031.GA29128@hijacked.us> <55c107bf0606300643vd4965fbv1d93aae2223fbb69@mail.gmail.com> Message-ID: > Or, was this intentional? (the nitroproject repo is down atm...) This was kind of intenttional. As my repo is kindof of more experimental and brian's/jonas repo is more stable. I know that my repo is down, will be fixed (hopefully) over the weekend, when I upgrade the site. regards, George. -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Fri Jun 30 12:16:44 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Fri, 30 Jun 2006 19:16:44 +0300 Subject: [Nitro] [OT] Roll n' Rain In-Reply-To: <4b6f054f0606300904rbdf8eb8y6414aea34ba7295d@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> <4b6f054f0606300904rbdf8eb8y6414aea34ba7295d@mail.gmail.com> Message-ID: > Looks like Rock will have effects on Reap too. I've already converted > Reap's package task to use Rock. So the next version of Reap will have > ... > already uses, is called meta/. In it one will be able to put not only > project info, but project tasks, pre and post install scripts --even > scripts to a distribution, crypotgraphic signitures, etc. Very interesting stuff ;-) -g. -- http://www.gmosx.com http://www.nitroproject.org From james.britt at gmail.com Fri Jun 30 12:44:31 2006 From: james.britt at gmail.com (James Britt) Date: Fri, 30 Jun 2006 09:44:31 -0700 Subject: [Nitro] A uniform structure for components in Nitro -- long post In-Reply-To: <006d01c69c4b$62f8ca70$c0af07ca@ghostgum> References: <006d01c69c4b$62f8ca70$c0af07ca@ghostgum> Message-ID: <44A554EF.3080000@gmail.com> * William wrote: > ... > Alternatively, one could look at the same MVC paradigm and suggest that > components need to come in a {M-V-C} sets. So that components are layered > like the I-Ching, as C1.model, C1.view, C1.controller. > I believe that is the case with Wee, that each component manages its own state and business logic. I've only been looking into Wee for about a week or so, but the idea of truly self-contained components is appealing. -- James Britt http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - The Journal By & For Rubyists From george.moschovitis at gmail.com Fri Jun 30 12:55:12 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Fri, 30 Jun 2006 19:55:12 +0300 Subject: [Nitro] [PATCH][nitroproject] Some small fixes to Og and Glue In-Reply-To: <3ff63f9b0606270721s1891de30k70053913522bd1f@mail.gmail.com> References: <3ff63f9b0606270721s1891de30k70053913522bd1f@mail.gmail.com> Message-ID: applied to my repo. On 6/27/06, Jonas Pfenniger wrote: > * Removed Glue::Flexob testcase since it does't exist anymore > * Added String to Car's property in tc_inheritance.rb > However STI talbe creation is still broken > * Added handle_sql_exception for MysqlAdapter#create_table > Provides a better output > > -- > Cheers, > zimbatm > > http://zimbatm.oree.ch > > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > > > -- http://www.gmosx.com http://www.nitroproject.org From george.moschovitis at gmail.com Fri Jun 30 13:11:37 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Fri, 30 Jun 2006 20:11:37 +0300 Subject: [Nitro] [PATCH] Feed helper backwards compatibility In-Reply-To: References: Message-ID: applied to my repo. -g. On 6/22/06, Jonathan Buch wrote: > Hi, > > George, you made some change to the Feed helper, specifically > to the author handling. > This patch adds the capability to also let it handle Hashes. > > Hashes are easier to create than full classes, thats why my > bro chose them to represent an author. > > The patch creates an OpenStruct if the o.author is a Hash, > everything else stays as it was. > > Jo > > -- > Feel the love > http://pinkjuice.com/pics/ruby.png > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > > > -- http://www.gmosx.com http://www.nitroproject.org From itsme213 at hotmail.com Fri Jun 30 13:30:35 2006 From: itsme213 at hotmail.com (itsme213) Date: Fri, 30 Jun 2006 12:30:35 -0500 Subject: [Nitro] help - stuck on basics again Message-ID: I am getting errors with very basic usage. A simple model: =============== class T property :name, String has_many :attributes, A def to_s @name end end class A property :name, String belongs_to :owner, T end class I property :name, String belongs_to :type, T def to_s @name end end class S property :name, String property :value, String belongs_to :owner, T end A simple run: ============= #!/usr/bin/env ruby require 'nitro' require 'og' require 'src/domains.rb' require 'part/admin' include Nitro Og.setup( :store => :sqlite, :base_dir => 'dashboard' ) Nitro.run I go to /admin and try to create a new T, and I get: ========= In file 'c:/ruby/lib/ruby/gems/1.8/gems/og-0.30.0.1/lib/og/store/sql.rb' : 954: # :section: Misc methods. 955: 956: def handle_sql_exception(ex, sql = nil) 957: Logger.error "DB error #{ex}, [#{sql}]" 958: Logger.error ex.backtrace.join("\n") 959: raise StoreException.new(ex, sql) if Og.raise_store_exceptions 960: 961: # FIXME: should return :error or something. 962: return nil 963: end 964: I'm using the 0.30.0.1 from ~bryan. Many thanks. From transfire at gmail.com Fri Jun 30 13:33:37 2006 From: transfire at gmail.com (TRANS) Date: Fri, 30 Jun 2006 13:33:37 -0400 Subject: [Nitro] [PATCH][nitroproject] Some small fixes to Og and Glue In-Reply-To: References: <3ff63f9b0606270721s1891de30k70053913522bd1f@mail.gmail.com> Message-ID: <4b6f054f0606301033n2bc9987dled56a73a8e6d0c88@mail.gmail.com> FYI Why isn't Glue gone yet? I've worked on that twice and it's still there. What the hold up --it's not liek it needs to be prefect right off the bat. Just move the files and change the requires. Reorganizing them better can come later. Glue seems like a loose flap of skin. T. From itsme213 at hotmail.com Fri Jun 30 13:40:39 2006 From: itsme213 at hotmail.com (itsme213) Date: Fri, 30 Jun 2006 12:40:39 -0500 Subject: [Nitro] A uniform structure for components in Nitro -- long post References: <006d01c69c4b$62f8ca70$c0af07ca@ghostgum> <44A554EF.3080000@gmail.com> Message-ID: James, > I've only been looking into Wee for about a > week or so, but the idea of truly self-contained components is appealing. You might want to take a look at Nemo (a Wee extension with generic meta-data driven components) and Mewa as well. I think Nitro with Og could be a good base for a meta-data/dsl driven naked-objects web-apps. http://www.nakedobjects.org/static.php?content=no-approach.html#no-approach Things like urls, paths, etc. could all map to operations and navigations on objects. Cheers. From lasso at lassoweb.se Fri Jun 30 13:42:00 2006 From: lasso at lassoweb.se (Lars Olsson) Date: Fri, 30 Jun 2006 19:42:00 +0200 Subject: [Nitro] Lastest nitro + mongrel on WIn XP doesn't work Message-ID: <44A56268.9010608@lassoweb.se> Hi list! The latest mongrel on Win XP doesn't seem to like Nitro very much. Firefox just gets a blank page and debug is giving me the following error on every page access: --- Fri Jun 30 19:35:35 V?steuropa, normaltid 2006: ERROR: can't convert StringIO into String --- Any ideas? /Lasso -- System info --- mongrel (0.3.13.2) nitro (0.30.0) Windows XP Service Pack 2 Build 2600 ________________________________________ Lars Olsson lasso at lassoweb.se http://www.lassoweb.se/ From itsme213 at hotmail.com Fri Jun 30 13:43:49 2006 From: itsme213 at hotmail.com (itsme213) Date: Fri, 30 Jun 2006 12:43:49 -0500 Subject: [Nitro] help - stuck on basics again - more info References: Message-ID: I would have no clue what to do with the stack trace, but here it is ... Thanks for any clues! c:/ruby/lib/ruby/gems/1.8/gems/og-0.30.0.1/lib/og/store/sql.rb:959:in `handle_sql_exception' 954: # :section: Misc methods. 955: 956: def handle_sql_exception(ex, sql = nil) 957: Logger.error "DB error #{ex}, [#{sql}]" 958: Logger.error ex.backtrace.join("\n") 959: raise StoreException.new(ex, sql) if Og.raise_store_exceptions 960: 961: # FIXME: should return :error or something. 962: return nil 963: end 964: c:/ruby/lib/ruby/gems/1.8/gems/og-0.30.0.1/lib/og/store/sqlite.rb:87:in `query' 82: 83: def query(sql) 84: Logger.debug sql if $DBG 85: return @conn.query(sql) 86: rescue Exception => ex 87: handle_sql_exception(ex, sql) 88: end 89: 90: def exec(sql) 91: Logger.debug sql if $DBG 92: @conn.query(sql).close c:/ruby/lib/ruby/gems/1.8/gems/og-0.30.0.1/lib/og/store/sql.rb:467:in `find' 462: # Comment.find(:include => :entry) 463: 464: def find(options) 465: klass = options[:class] 466: sql = resolve_options(klass, options) 467: read_all(query(sql), klass, options) 468: end 469: 470: # Find one object. 471: 472: def find_one(options) c:/ruby/lib/ruby/gems/1.8/gems/og-0.30.0.1/lib/og/entity.rb:215:in `find' 210: end 211: 212: options[:class] = self 213: options[:type] = self if self.schema_inheritance_child? 214: 215: ogmanager.store.find(options) 216: end 217: alias_method :all, :find 218: 219: # Find a single instance of this class. 220: (eval):45:in `find_attributes' c:/ruby/lib/ruby/gems/1.8/gems/og-0.30.0.1/lib/og/collection.rb:73:in `send' 68: 69: # Load the members of the collection. 70: 71: def load_members 72: unless @loaded or @owner.unsaved? 73: @members = @owner.send(@find_proc, @find_options) 74: @loaded = true 75: end 76: @members 77: end 78: c:/ruby/lib/ruby/gems/1.8/gems/og-0.30.0.1/lib/og/collection.rb:73:in `load_members' 68: 69: # Load the members of the collection. 70: 71: def load_members 72: unless @loaded or @owner.unsaved? 73: @members = @owner.send(@find_proc, @find_options) 74: @loaded = true 75: end 76: @members 77: end 78: c:/ruby/lib/ruby/gems/1.8/gems/og-0.30.0.1/lib/og/collection.rb:104:in `each' 99: end 100: 101: # Defined to avoid the method missing overhead. 102: 103: def each(&block) 104: load_members 105: @members.each(&block) 106: end 107: 108: # Defined to avoid the method missing overhead. 109: c:/ruby/lib/ruby/gems/1.8/gems/og-0.30.0.1/lib/og/collection.rb:189:in `remove_all' 184: 185: # Remove all members from the collection. 186: 187: def remove_all 188: @owner.transaction do 189: self.each { |obj| @owner.send(@remove_proc, obj) } 190: end 191: @members.clear 192: @loaded = false # gmosx: IS this needed? 193: end 194: alias_method :clear, :remove_all c:/ruby/lib/ruby/gems/1.8/gems/og-0.30.0.1/lib/og/collection.rb:188:in `transaction' 183: end 184: 185: # Remove all members from the collection. 186: 187: def remove_all 188: @owner.transaction do 189: self.each { |obj| @owner.send(@remove_proc, obj) } 190: end 191: @members.clear 192: @loaded = false # gmosx: IS this needed? 193: end c:/ruby/lib/ruby/gems/1.8/gems/og-0.30.0.1/lib/og/entity.rb:86:in `transaction' 81: self.class.ogmanager.store.delete(self, self.class, cascade) 82: end 83: alias_method :delete!, :delete 84: 85: def transaction(&block) 86: self.class.ogmanager.store.transaction(&block) 87: end 88: 89: # Is this object saved in the store? 90: 91: def saved? c:/ruby/lib/ruby/gems/1.8/gems/og-0.30.0.1/lib/og/collection.rb:188:in `remove_all' 183: end 184: 185: # Remove all members from the collection. 186: 187: def remove_all 188: @owner.transaction do 189: self.each { |obj| @owner.send(@remove_proc, obj) } 190: end 191: @members.clear 192: @loaded = false # gmosx: IS this needed? 193: end c:/ruby/lib/ruby/gems/1.8/gems/glue-0.30.0.1/lib/glue/property.rb:125:in `populate_object' 120: foreign_oid = preprocess_value(obj, rel, foreign_oid) if options[:preprocess] 121: end 122: obj.send("__force_#{rel.foreign_key}", foreign_oid) 123: elsif rel.kind_of?(Og::JoinsMany) || rel.kind_of?(Og::HasMany) 124: collection = obj.send(rel_name) 125: collection.remove_all 126: if values.has_key?(rel_name) 127: primary_keys = values[rel_name] 128: 129: # if custom preprocessing is active then try and preprocess 130: primary_keys = preprocess_value(obj, rel, primary_keys) if options[:preprocess] c:/ruby/lib/ruby/gems/1.8/gems/glue-0.30.0.1/lib/glue/property.rb:105:in `each' 100: obj.send("__force_#{prop_name}", 0) 101: end 102: end 103: 104: if options[:assign_relations] 105: for rel in obj.class.relations 106: 107: unless options[:all] 108: next if rel.options[:control] == :none or rel.options[:disable_control] 109: end 110: c:/ruby/lib/ruby/gems/1.8/gems/glue-0.30.0.1/lib/glue/property.rb:105:in `populate_object' 100: obj.send("__force_#{prop_name}", 0) 101: end 102: end 103: 104: if options[:assign_relations] 105: for rel in obj.class.relations 106: 107: unless options[:all] 108: next if rel.options[:control] == :none or rel.options[:disable_control] 109: end 110: c:/ruby/lib/ruby/gems/1.8/gems/nitro-0.30.0.1/lib/nitro/context.rb:156:in `fill' 151: # Prefer to use the following form: 152: # 153: # User.new.assign_with(request) 154: 155: def fill(obj, options = {}) 156: Property.populate_object(obj, @params, options) 157: end 158: alias_method :populate, :fill 159: alias_method :assign, :fill 160: 161: # Is the current action the top level action? The level (eval):9:in `ts__save' (eval):6:in `ts__save_action' c:/ruby/lib/ruby/gems/1.8/gems/nitro-0.30.0.1/lib/nitro/controller.rb:109:in `send' 104: # for this controller. 105: 106: base.module_eval do 107: def method_missing(action, *args) 108: if Compiler.new(self.class).compile(action) 109: send(action, *args) 110: else 111: super 112: end 113: end 114: end c:/ruby/lib/ruby/gems/1.8/gems/nitro-0.30.0.1/lib/nitro/controller.rb:109:in `method_missing' 104: # for this controller. 105: 106: base.module_eval do 107: def method_missing(action, *args) 108: if Compiler.new(self.class).compile(action) 109: send(action, *args) 110: else 111: super 112: end 113: end 114: end c:/ruby/lib/ruby/gems/1.8/gems/nitro-0.30.0.1/lib/nitro/render.rb:133:in `send' 128: old_controller = Controller.replace_current(@controller) 129: 130: if self.class == @controller 131: self.send(action) 132: else 133: @controller.new(@context, base).send(action) 134: end 135: 136: Controller.replace_current(old_controller) 137: @context.level -= 1 138: c:/ruby/lib/ruby/gems/1.8/gems/nitro-0.30.0.1/lib/nitro/render.rb:133:in `render' 128: old_controller = Controller.replace_current(@controller) 129: 130: if self.class == @controller 131: self.send(action) 132: else 133: @controller.new(@context, base).send(action) 134: end 135: 136: Controller.replace_current(old_controller) 137: @context.level -= 1 138: c:/ruby/lib/ruby/gems/1.8/gems/nitro-0.30.0.1/lib/nitro/adapter/webrick.rb:221:in `do_POST' 216: context.headers['REQUEST_URI'] = '/' + context.headers['REQUEST_URI'] 217: 218: Cgi.parse_params(context) 219: Cgi.parse_cookies(context) 220: 221: context.render(path) 222: 223: res.status = context.status 224: res.instance_variable_set(:@header, context.response_headers || {}) 225: res.instance_variable_set(:@cookies, context.response_cookies || {}) 226: res.body = context.out c:/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__' 30: end 31: 32: def service(req, res) 33: method_name = "do_" + req.request_method.gsub(/-/, "_") 34: if respond_to?(method_name) 35: __send__(method_name, req, res) 36: else 37: raise HTTPStatus::MethodNotAllowed, 38: "unsupported method `#{req.request_method}'." 39: end 40: end c:/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service' 30: end 31: 32: def service(req, res) 33: method_name = "do_" + req.request_method.gsub(/-/, "_") 34: if respond_to?(method_name) 35: __send__(method_name, req, res) 36: else 37: raise HTTPStatus::MethodNotAllowed, 38: "unsupported method `#{req.request_method}'." 39: end 40: end c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' 99: raise HTTPStatus::NotFound, "`#{req.path}' not found." unless servlet 100: req.script_name = script_name 101: req.path_info = path_info 102: si = servlet.get_instance(self, *options) 103: @logger.debug(format("%s is invoked.", si.class.name)) 104: si.service(req, res) 105: end 106: 107: def do_OPTIONS(req, res) 108: res["allow"] = "GET,HEAD,POST,OPTIONS" 109: end c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' 60: res.keep_alive = req.keep_alive? 61: server = lookup_server(req) || self 62: if callback = server[:RequestCallback] || server[:RequestHandler] 63: callback.call(req, res) 64: end 65: server.service(req, res) 66: rescue HTTPStatus::EOFError, HTTPStatus::RequestTimeout => ex 67: res.set_error(ex) 68: rescue HTTPStatus::Error => ex 69: @logger.error(ex.message) 70: res.set_error(ex) c:/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread' 150: rescue SocketError 151: @logger.debug "accept:
" 152: raise 153: end 154: call_callback(:AcceptCallback, sock) 155: block ? block.call(sock) : run(sock) 156: rescue Errno::ENOTCONN 157: @logger.debug "Errno::ENOTCONN raised" 158: rescue ServerError => ex 159: msg = "#{ex.class}: #{ex.message}\n\t#{ex.backtrace[0]}" 160: @logger.error msg c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start' 139: end 140: 141: private 142: 143: def start_thread(sock, &block) 144: Thread.start{ 145: begin 146: Thread.current[:WEBrickSocket] = sock 147: begin 148: addr = sock.peeraddr 149: @logger.debug "accept: #{addr[3]}:#{addr[1]}" c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread' 139: end 140: 141: private 142: 143: def start_thread(sock, &block) 144: Thread.start{ 145: begin 146: Thread.current[:WEBrickSocket] = sock 147: begin 148: addr = sock.peeraddr 149: @logger.debug "accept: #{addr[3]}:#{addr[1]}" c:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start' 89: svrs[0].each{|svr| 90: @tokens.pop # blocks while no token is there. 91: sock = svr.accept 92: sock.sync = true 93: Utils::set_close_on_exec(sock) 94: th = start_thread(sock, &block) 95: th[:WEBrickThread] = true 96: thgroup.add(th) 97: } 98: end 99: rescue Errno::ECONNRESET, Errno::ECONNABORTED, Errno::EPROTO => ex c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each' 84: thgroup = ThreadGroup.new 85: @status = :Running 86: while @status == :Running 87: begin 88: if svrs = IO.select(@listeners, nil, nil, 2.0) 89: svrs[0].each{|svr| 90: @tokens.pop # blocks while no token is there. 91: sock = svr.accept 92: sock.sync = true 93: Utils::set_close_on_exec(sock) 94: th = start_thread(sock, &block) c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start' 84: thgroup = ThreadGroup.new 85: @status = :Running 86: while @status == :Running 87: begin 88: if svrs = IO.select(@listeners, nil, nil, 2.0) 89: svrs[0].each{|svr| 90: @tokens.pop # blocks while no token is there. 91: sock = svr.accept 92: sock.sync = true 93: Utils::set_close_on_exec(sock) 94: th = start_thread(sock, &block) c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start' 74: 75: def start(&block) 76: raise ServerError, "already started." if @status != :Stop 77: server_type = @config[:ServerType] || SimpleServer 78: 79: server_type.start{ 80: @logger.info \ 81: "#{self.class}#start: pid=#{$$} port=#{@config[:Port]}" 82: call_callback(:StartCallback) 83: 84: thgroup = ThreadGroup.new c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start' 74: 75: def start(&block) 76: raise ServerError, "already started." if @status != :Stop 77: server_type = @config[:ServerType] || SimpleServer 78: 79: server_type.start{ 80: @logger.info \ 81: "#{self.class}#start: pid=#{$$} port=#{@config[:Port]}" 82: call_callback(:StartCallback) 83: 84: thgroup = ThreadGroup.new c:/ruby/lib/ruby/gems/1.8/gems/nitro-0.30.0.1/lib/nitro/adapter/webrick.rb:59:in `start' 54: 55: @webrick.mount('/', WebrickAdapter, server) 56: 57: initialize_webrick(server) 58: 59: @webrick.start 60: end 61: 62: # Stop the Webrick adapter. 63: 64: def stop c:/ruby/lib/ruby/gems/1.8/gems/nitro-0.30.0.1/lib/nitro/server/runner.rb:341:in `invoke_server' 336: case @server 337: when :webrick 338: require 'nitro/adapter/webrick' 339: puts "==> Listening at #{server.address}:#{server.port}. [WEBRICK]" 340: puts "==> Press Ctrl-C to shutdown; Run with --help for options.\n\n" 341: Webrick.start(server) 342: 343: when :mongrel 344: require 'nitro/adapter/mongrel' 345: puts "==> Listening at #{server.address}:#{server.port}. [MONGREL]" 346: puts "==> Press Ctrl-C to shutdown; Run with --help for options.\n\n" c:/ruby/lib/ruby/gems/1.8/gems/nitro-0.30.0.1/lib/nitro/server/runner.rb:303:in `invoke' 298: require 'nitro/adapter/console' 299: $server = server 300: $app = ConsoleAdapter.new(server) 301: 302: else 303: invoke_server(server) 304: end 305: end 306: 307: # ... 308: c:/ruby/lib/ruby/gems/1.8/gems/nitro-0.30.0.1/lib/nitro/server.rb:128:in `run' 123: end 124: 125: server = Server.new 126: server.start(options) 127: 128: runner.invoke(server) unless $NITRO_NO_INVOKE 129: 130: return server 131: end 132: 133: # A Helper class used for CherryPy-style publishing. c:/ruby/lib/ruby/gems/1.8/gems/nitro-0.30.0.1/lib/nitro.rb:78:in `run' 73: class << self 74: 75: # A helper method to start a Nitro application. 76: 77: def run(controller = nil) 78: Server.run(controller) 79: end 80: alias_method :start, :run 81: 82: # A helper to get the current execution mode. 83: run.rb:17 From bryan.a.soto at gmail.com Fri Jun 30 14:33:16 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Fri, 30 Jun 2006 11:33:16 -0700 Subject: [Nitro] Lastest nitro + mongrel on WIn XP doesn't work In-Reply-To: <44A56268.9010608@lassoweb.se> References: <44A56268.9010608@lassoweb.se> Message-ID: On 6/30/06, Lars Olsson wrote: > The latest mongrel on Win XP doesn't seem to like Nitro very much. > Firefox just gets a blank page and debug is giving me the following > error on every page access: > Yeah, Mongrel made a modification to its interface. :/ Two options: Beta gems which fix this and other bugs. See here: http://rubyforge.org/pipermail/nitro-general/2006-June/005121.html Or modify the file c:\ruby\lib\ruby\gems\1.8\gems\nitro-0.30.0\lib\nitro\adapter\mongrel.rb as follows: == def handle(req, res) unless handle_file(req, res) path = req.path_info begin context = Context.new(@server) - context.in = StringIO.new(req.body || "") + context.in = StringIO.new(req.body.to_s) == The paths are from memory, so hopefully they're correct. Good luck, Bryan From aidan at infurious.com Fri Jun 30 14:46:03 2006 From: aidan at infurious.com (Aidan Rogers) Date: Fri, 30 Jun 2006 19:46:03 +0100 Subject: [Nitro] Rock 'n' Roll (was Roll n' Rain) In-Reply-To: <4b6f054f0606300904rbdf8eb8y6414aea34ba7295d@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A162E3.3060201@gmail.com> <4b6f054f0606271846u3e6829b5me68679593cf4de30@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> <4b6f054f0606300904rbdf8eb8y6414aea34ba7295d@mail.gmail.com> Message-ID: How do I get a hold of Rock 'n' Roll? I'd like to try it out and contribute. Aidan From james.britt at gmail.com Fri Jun 30 14:49:08 2006 From: james.britt at gmail.com (James Britt) Date: Fri, 30 Jun 2006 11:49:08 -0700 Subject: [Nitro] Lastest nitro + mongrel on WIn XP doesn't work In-Reply-To: References: <44A56268.9010608@lassoweb.se> Message-ID: <44A57224.4040903@gmail.com> Bryan Soto wrote: > > Or modify the file > c:\ruby\lib\ruby\gems\1.8\gems\nitro-0.30.0\lib\nitro\adapter\mongrel.rb > as follows: > > == > def handle(req, res) > unless handle_file(req, res) > path = req.path_info > > begin > context = Context.new(@server) > > - context.in = StringIO.new(req.body || "") > + context.in = StringIO.new(req.body.to_s) > == > > The paths are from memory, so hopefully they're correct. That error sounded familiar; it was happening even with, I think the older Mongrel or SCGI. That's the patch I submitted about a week ago. -- James Britt "Judge a man by his questions, rather than his answers." - Voltaire From george.moschovitis at gmail.com Fri Jun 30 14:49:23 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Fri, 30 Jun 2006 21:49:23 +0300 Subject: [Nitro] [PATCH][nitroproject] Some small fixes to Og and Glue In-Reply-To: <4b6f054f0606301033n2bc9987dled56a73a8e6d0c88@mail.gmail.com> References: <3ff63f9b0606270721s1891de30k70053913522bd1f@mail.gmail.com> <4b6f054f0606301033n2bc9987dled56a73a8e6d0c88@mail.gmail.com> Message-ID: You have not provided an acceptable full solution. In fact I am not sure which is the best way to get rid of glue. I have removed all duplicate files. But there is some code needed by both Nitro and Og. I dont like to duplicate this code (for example the logger). And as long as you dont include all such code in facets I cannot 100% remove glue. regards, George. On 6/30/06, TRANS wrote: > FYI Why isn't Glue gone yet? I've worked on that twice and it's still > there. What the hold up --it's not liek it needs to be prefect right > off the bat. Just move the files and change the requires. Reorganizing > them better can come later. Glue seems like a loose flap of skin. > > T. > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > -- http://www.gmosx.com http://www.nitroproject.org From aglarond at gmail.com Fri Jun 30 14:52:26 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Fri, 30 Jun 2006 20:52:26 +0200 Subject: [Nitro] Rock 'n' Roll (was Roll n' Rain) In-Reply-To: References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> <4b6f054f0606300904rbdf8eb8y6414aea34ba7295d@mail.gmail.com> Message-ID: <55c107bf0606301152v55478e15q3b61ab8b2268bc0f@mail.gmail.com> On 6/30/06, Aidan Rogers wrote: > > How do I get a hold of Rock 'n' Roll? I'd like to try it out and > contribute. http://roll.rubyforge.org/ http://devlab.oree.ch/trac/rolls - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060630/0c3506cf/attachment.html From george.moschovitis at gmail.com Fri Jun 30 15:08:12 2006 From: george.moschovitis at gmail.com (George Moschovitis) Date: Fri, 30 Jun 2006 22:08:12 +0300 Subject: [Nitro] Bug in mongrel.rb? In-Reply-To: <4492C234.5060400@gmail.com> References: <448FAC5B.3020508@neurogami.com> <449202BE.8040307@neurogami.com> <44920368.9000909@neurogami.com> <44921AC0.80704@rjspotter.com> <449215EF.80604@neurogami.com> <3ff63f9b0606160041y6964ce4amc3bcb79bc41bb9f@mail.gmail.com> <4492C234.5060400@gmail.com> Message-ID: manually applied to my repo. btw I got the following error while trying to apply your patch: darcs failed: Patch bundle failed hash! This probably means that the patch has been corrupted by a mailer. The most likely culprit is CRLF newlines. perhaps this is a windows thing? -g. On 6/16/06, James Britt wrote: > George Moschovitis wrote: > > this is it! > > > > On 6/16/06, Jonas Pfenniger wrote: > > > >>Short HOWTO send a patch : > >> > >>1) Get the glycerin source > >> > >>darcs get repo.nitroproject.org > > darcs get http://repo.nitroproject.org > > At least, for me, the protocol was required > > >> > >>2) Modify the code > >> > > OK > > >>... > >> > >>3) Record the changes > >> > >>darcs record -m "My changes" > >> > > Easy. > > > >>4) Export the changes > >> > >>darcs send -o some_file > > Also easy > > >> > >>5) Mail the file > > > Attached to this mail. > > > Thanks, > > -- > James Britt > > "Simplicity of the language is not what matters, but > simplicity of use." > - Richard A. O'Keefe in squeak-dev mailing list > > > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > > > -- http://www.gmosx.com http://www.nitroproject.org From transfire at gmail.com Fri Jun 30 15:09:29 2006 From: transfire at gmail.com (TRANS) Date: Fri, 30 Jun 2006 15:09:29 -0400 Subject: [Nitro] Rock 'n' Roll (was Roll n' Rain) In-Reply-To: <55c107bf0606301152v55478e15q3b61ab8b2268bc0f@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> <4b6f054f0606300904rbdf8eb8y6414aea34ba7295d@mail.gmail.com> <55c107bf0606301152v55478e15q3b61ab8b2268bc0f@mail.gmail.com> Message-ID: <4b6f054f0606301209w2fc9a7e3kb93d98401eec9382@mail.gmail.com> Rocks up too. But that still in an earlier stage of coding. rock.rubyforge.org Also I am not sure about "Rock" name yet. Yes, it does seem cool to do Rock'n'Roll but in many ways Rock has more to do with Reap then it does Roll. Rock relates to Roll b/c it has support for transformaing a package into a Roll compatible format, unlike Gems. But Reap actually depends on Rock to provide it's packing task. So the naming theme isn't quite "whole". I mean who ever hear of "Reap'n'Rock"? ;-) While I liked Rain, I guess that is sort of depressing. I was also thinking about "Sow". I'm not sure. Themed naming can be difficult! T. From john at oxyliquit.de Fri Jun 30 15:21:03 2006 From: john at oxyliquit.de (Jonathan Buch) Date: Fri, 30 Jun 2006 21:21:03 +0200 Subject: [Nitro] Rock 'n' Roll (was Roll n' Rain) In-Reply-To: <4b6f054f0606301209w2fc9a7e3kb93d98401eec9382@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> <4b6f054f0606300904rbdf8eb8y6414aea34ba7295d@mail.gmail.com> <55c107bf0606301152v55478e15q3b61ab8b2268bc0f@mail.gmail.com> <4b6f054f0606301209w2fc9a7e3kb93d98401eec9382@mail.gmail.com> Message-ID: Hi, > I liked Rain, I liked Rain better as well... Jo -- Feel the love http://pinkjuice.com/pics/ruby.png From lasso at lassoweb.se Fri Jun 30 15:56:27 2006 From: lasso at lassoweb.se (Lars Olsson) Date: Fri, 30 Jun 2006 21:56:27 +0200 Subject: [Nitro] Lastest nitro + mongrel on WIn XP doesn't work In-Reply-To: References: <44A56268.9010608@lassoweb.se> Message-ID: <44A581EB.8030700@lassoweb.se> Works great. Thanks! One thought though...upgrading from devlab doesn't give me the \bin\gen.bat I get when installing from rubyforge. A bug? Kindly /lasso ________________________________________ Lars Olsson lasso at lassoweb.nu http://www.lassoweb.nu/ Bryan Soto skrev: > On 6/30/06, Lars Olsson wrote: >> The latest mongrel on Win XP doesn't seem to like Nitro very much. >> Firefox just gets a blank page and debug is giving me the following >> error on every page access: >> > > Yeah, Mongrel made a modification to its interface. :/ > > Two options: > > Beta gems which fix this and other bugs. See here: > http://rubyforge.org/pipermail/nitro-general/2006-June/005121.html > > Or modify the file > c:\ruby\lib\ruby\gems\1.8\gems\nitro-0.30.0\lib\nitro\adapter\mongrel.rb > as follows: > > == > def handle(req, res) > unless handle_file(req, res) > path = req.path_info > > begin > context = Context.new(@server) > > - context.in = StringIO.new(req.body || "") > + context.in = StringIO.new(req.body.to_s) > == > > The paths are from memory, so hopefully they're correct. > > Good luck, > > Bryan > _______________________________________________ > Nitro-general mailing list > Nitro-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/nitro-general > From bryan.a.soto at gmail.com Fri Jun 30 15:57:01 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Fri, 30 Jun 2006 12:57:01 -0700 Subject: [Nitro] help - stuck on basics again In-Reply-To: References: Message-ID: On 6/30/06, itsme213 wrote: > I'm using the 0.30.0.1 from ~bryan. > I've duplicated this and I can't quite figure out why it's happening. Thanks for the report and I'll let you know what I come up with. Bryan From bryan.a.soto at gmail.com Fri Jun 30 15:58:43 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Fri, 30 Jun 2006 12:58:43 -0700 Subject: [Nitro] About the different repos In-Reply-To: <55c107bf0606292313l38ce0f52y35025ce5ec1f4487@mail.gmail.com> References: <3ff63f9b0606230337k28966e79rd327f3bf2bd4d10d@mail.gmail.com> <3ff63f9b0606272335x753d4382t3e2dca1c5ee5c0f4@mail.gmail.com> <55c107bf0606290117r51c27339k205731f245add07f@mail.gmail.com> <55c107bf0606292313l38ce0f52y35025ce5ec1f4487@mail.gmail.com> Message-ID: On 6/29/06, Dimitri Aivaliotis wrote: > I actually prefer Bill's recommendation. It fits the general case better. > Okay. Barring any good objections, I'll go with Bill. Thanks, Bryan From bryan.a.soto at gmail.com Fri Jun 30 16:06:17 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Fri, 30 Jun 2006 13:06:17 -0700 Subject: [Nitro] Lastest nitro + mongrel on WIn XP doesn't work In-Reply-To: <44A581EB.8030700@lassoweb.se> References: <44A56268.9010608@lassoweb.se> <44A581EB.8030700@lassoweb.se> Message-ID: On 6/30/06, Lars Olsson wrote: > Works great. Thanks! > > One thought though...upgrading from devlab doesn't give me the > \bin\gen.bat I get when installing from rubyforge. A bug? > Hmm... okay, I updated rails today and it created an executable, so it doesn't seem to be gems. Perhaps a problem with reap... I'll see if I can narrow it down. Thanks for reporting. Bryan From aglarond at gmail.com Fri Jun 30 16:09:23 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Fri, 30 Jun 2006 22:09:23 +0200 Subject: [Nitro] Rock 'n' Roll (was Roll n' Rain) In-Reply-To: <4b6f054f0606301209w2fc9a7e3kb93d98401eec9382@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> <4b6f054f0606300904rbdf8eb8y6414aea34ba7295d@mail.gmail.com> <55c107bf0606301152v55478e15q3b61ab8b2268bc0f@mail.gmail.com> <4b6f054f0606301209w2fc9a7e3kb93d98401eec9382@mail.gmail.com> Message-ID: <55c107bf0606301309w7bc86661se680dca4edac59c4@mail.gmail.com> On 6/30/06, TRANS wrote: > > Rocks up too. But that still in an earlier stage of coding. > > rock.rubyforge.org > Yeah, but you can't download anything yet. :( The manuals for both Rock and Roll are great - more than enough to get started using the system. One question, though: why can't a 'source' rock install be uninstalled? I'm guessing that the answer would be: "Because Rock doesn't keep track of the installed files." I'd like to put in a feature request, then: that rock keep track of installed locations, like git or installwatch. Thanks for your hard work, Trans. - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060630/8aee352d/attachment.html From transfire at gmail.com Fri Jun 30 16:10:10 2006 From: transfire at gmail.com (TRANS) Date: Fri, 30 Jun 2006 16:10:10 -0400 Subject: [Nitro] Rock 'n' Roll (was Roll n' Rain) In-Reply-To: References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> <4b6f054f0606300904rbdf8eb8y6414aea34ba7295d@mail.gmail.com> Message-ID: <4b6f054f0606301310p4ea48667ge61e8d63b804e22d@mail.gmail.com> On 6/30/06, Aidan Rogers wrote: > How do I get a hold of Rock 'n' Roll? I'd like to try it out and > contribute. That's awesome!!! I just updated Rock(Rain) release 0.3.0. Check it out. http://rubyforge.org/frs/?group_id=1856 I need to add SCM, but alas I am trapped between the love of darcs and the popularity of svn. T. From james.britt at gmail.com Fri Jun 30 16:05:54 2006 From: james.britt at gmail.com (James Britt) Date: Fri, 30 Jun 2006 13:05:54 -0700 Subject: [Nitro] Bug in mongrel.rb? In-Reply-To: References: <448FAC5B.3020508@neurogami.com> <449202BE.8040307@neurogami.com> <44920368.9000909@neurogami.com> <44921AC0.80704@rjspotter.com> <449215EF.80604@neurogami.com> <3ff63f9b0606160041y6964ce4amc3bcb79bc41bb9f@mail.gmail.com> <4492C234.5060400@gmail.com> Message-ID: <44A58422.4000106@gmail.com> George Moschovitis wrote: > manually applied to my repo. > > btw I got the following error while trying to apply your patch: > > > darcs failed: Patch bundle failed hash! > This probably means that the patch has been corrupted by a mailer. > The most likely culprit is CRLF newlines. > > > perhaps this is a windows thing? Could be. I did this on WinXP. I mailed a zipped (or was it tar'ed?) file with the patch, but something in that process may have munged the line endings. (I edit in gvim with Unix line endings so I think the edited file was OK.) -- James Britt "You harmonize; then you customize." - Wilson Pickett From aglarond at gmail.com Fri Jun 30 16:13:05 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Fri, 30 Jun 2006 22:13:05 +0200 Subject: [Nitro] Rock 'n' Roll (was Roll n' Rain) In-Reply-To: <4b6f054f0606301310p4ea48667ge61e8d63b804e22d@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> <4b6f054f0606300904rbdf8eb8y6414aea34ba7295d@mail.gmail.com> <4b6f054f0606301310p4ea48667ge61e8d63b804e22d@mail.gmail.com> Message-ID: <55c107bf0606301313j3b613e35m22f8036a057af0dc@mail.gmail.com> On 6/30/06, TRANS wrote: > > On 6/30/06, Aidan Rogers wrote: > > How do I get a hold of Rock 'n' Roll? I'd like to try it out and > > contribute. > > That's awesome!!! I just updated Rock(Rain) release 0.3.0. Check it out. > > http://rubyforge.org/frs/?group_id=1856 > Ah, great. Thank you. Got it now. - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060630/7bdfee22/attachment.html From bryan.a.soto at gmail.com Fri Jun 30 16:17:53 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Fri, 30 Jun 2006 13:17:53 -0700 Subject: [Nitro] Lastest nitro + mongrel on WIn XP doesn't work In-Reply-To: <44A581EB.8030700@lassoweb.se> References: <44A56268.9010608@lassoweb.se> <44A581EB.8030700@lassoweb.se> Message-ID: On 6/30/06, Lars Olsson wrote: > Works great. Thanks! > > One thought though...upgrading from devlab doesn't give me the > \bin\gen.bat I get when installing from rubyforge. A bug? > It's a bug in Reap. Thanks for catching it. I'll pass it on to Trans. Bryan From transfire at gmail.com Fri Jun 30 16:24:05 2006 From: transfire at gmail.com (TRANS) Date: Fri, 30 Jun 2006 16:24:05 -0400 Subject: [Nitro] Rock 'n' Roll (was Roll n' Rain) In-Reply-To: <55c107bf0606301313j3b613e35m22f8036a057af0dc@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> <4b6f054f0606300904rbdf8eb8y6414aea34ba7295d@mail.gmail.com> <4b6f054f0606301310p4ea48667ge61e8d63b804e22d@mail.gmail.com> <55c107bf0606301313j3b613e35m22f8036a057af0dc@mail.gmail.com> Message-ID: <4b6f054f0606301324l718670d3p413440c00bd23545@mail.gmail.com> On 6/30/06, Dimitri Aivaliotis wrote: > On 6/30/06, TRANS wrote: > > > On 6/30/06, Aidan Rogers wrote: > > > How do I get a hold of Rock 'n' Roll? I'd like to try it out and > > > contribute. > > > > That's awesome!!! I just updated Rock(Rain) release 0.3.0. Check it out. > > > > http://rubyforge.org/frs/?group_id=1856 > > > > Ah, great. Thank you. Got it now. BTW what OS are you using? So far only the source, gems and debain adapters are functional. T. From aglarond at gmail.com Fri Jun 30 16:26:56 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Fri, 30 Jun 2006 22:26:56 +0200 Subject: [Nitro] Rock 'n' Roll (was Roll n' Rain) In-Reply-To: <4b6f054f0606301324l718670d3p413440c00bd23545@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> <4b6f054f0606300904rbdf8eb8y6414aea34ba7295d@mail.gmail.com> <4b6f054f0606301310p4ea48667ge61e8d63b804e22d@mail.gmail.com> <55c107bf0606301313j3b613e35m22f8036a057af0dc@mail.gmail.com> <4b6f054f0606301324l718670d3p413440c00bd23545@mail.gmail.com> Message-ID: <55c107bf0606301326u16661b40p8292f95b2924844a@mail.gmail.com> On 6/30/06, TRANS wrote: > > > BTW what OS are you using? So far only the source, gems and debain > adapters are functional. > I'm on Linux (LFS, so essentially 'source') and FreeBSD. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060630/912fe8a5/attachment.html From aglarond at gmail.com Fri Jun 30 17:22:35 2006 From: aglarond at gmail.com (Dimitri Aivaliotis) Date: Fri, 30 Jun 2006 23:22:35 +0200 Subject: [Nitro] Rock 'n' Roll (was Roll n' Rain) In-Reply-To: <4b6f054f0606301310p4ea48667ge61e8d63b804e22d@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> <4b6f054f0606300904rbdf8eb8y6414aea34ba7295d@mail.gmail.com> <4b6f054f0606301310p4ea48667ge61e8d63b804e22d@mail.gmail.com> Message-ID: <55c107bf0606301422p3075a320k4a9f204ff488899e@mail.gmail.com> On 6/30/06, TRANS wrote: > > On 6/30/06, Aidan Rogers wrote: > > How do I get a hold of Rock 'n' Roll? I'd like to try it out and > > contribute. > > That's awesome!!! I just updated Rock(Rain) release 0.3.0. Check it out. > Some initial feedback: - if you have facets installed via gems, and don't have RUBYOPT="-rubygems", rock won't be able to find 'facet/command' - installing the demo package doesn't work: you first get an error that it can't find '/tmp/rock/rock_demo/package_rock_demo', and then it renames the 'rock_demo' directory in the current directory to 'package_rock_demo' - recreating the tarball to include 'package_rock_demo' yields the following error: /usr/lib/ruby/1.8/fileutils.rb:501:in `rename': No such file or directory - rock_demo or package_rock_demo/rock_demo (Errno::ENOENT) from /usr/lib/ruby/site_ruby/1.8/rock/package.rb:267:in `unpack' from /usr/lib/ruby/site_ruby/1.8/rock/package.rb:215:in `prepare' from /usr/lib/ruby/site_ruby/1.8/rock/package.rb:189:in `install' from /usr/lib/ruby/site_ruby/1.8/rock/bin/rock.rb:56:in `install' Hope this helps a bit. That's all I've got time for atm. - Dimitri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060630/aef2f24c/attachment-0001.html From transfire at gmail.com Fri Jun 30 18:06:58 2006 From: transfire at gmail.com (TRANS) Date: Fri, 30 Jun 2006 18:06:58 -0400 Subject: [Nitro] Rock 'n' Roll (was Roll n' Rain) In-Reply-To: <55c107bf0606301422p3075a320k4a9f204ff488899e@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> <4b6f054f0606300904rbdf8eb8y6414aea34ba7295d@mail.gmail.com> <4b6f054f0606301310p4ea48667ge61e8d63b804e22d@mail.gmail.com> <55c107bf0606301422p3075a320k4a9f204ff488899e@mail.gmail.com> Message-ID: <4b6f054f0606301506l1bed7eb6sa63e732fee6c4177@mail.gmail.com> On 6/30/06, Dimitri Aivaliotis wrote: > On 6/30/06, TRANS wrote: > > > On 6/30/06, Aidan Rogers wrote: > > > How do I get a hold of Rock 'n' Roll? I'd like to try it out and > > > contribute. > > > > That's awesome!!! I just updated Rock(Rain) release 0.3.0. Check it out. > > > > Some initial feedback: > > - if you have facets installed via gems, and don't have > RUBYOPT="-rubygems", rock won't be able to find 'facet/command' > - installing the demo package doesn't work: you first get an error that it > can't find '/tmp/rock/rock_demo/package_rock_demo', and > then it renames the 'rock_demo' directory in the current directory to > 'package_rock_demo' > - recreating the tarball to include 'package_rock_demo' yields the > following error: > > /usr/lib/ruby/1.8/fileutils.rb:501:in `rename': No such > file or directory - rock_demo or package_rock_demo/rock_demo (Errno::ENOENT) > > from > /usr/lib/ruby/site_ruby/1.8/rock/package.rb:267:in `unpack' > from > /usr/lib/ruby/site_ruby/1.8/rock/package.rb:215:in > `prepare' > from > /usr/lib/ruby/site_ruby/1.8/rock/package.rb:189:in > `install' > from > /usr/lib/ruby/site_ruby/1.8/rock/bin/rock.rb:56:in > `install' > > > Hope this helps a bit. That's all I've got time for atm. Thanks! Yea like I said still early dev stage. But I get these fixed and let you know when I update. Probably tomorrow. T. From itsme213 at hotmail.com Fri Jun 30 18:27:20 2006 From: itsme213 at hotmail.com (itsme213) Date: Fri, 30 Jun 2006 17:27:20 -0500 Subject: [Nitro] has_one fails with preceding property Message-ID: class A has_one :b, B end will fail: /src/domains.rb:31: undefined method `has_one' for Slot:Class (NoMethodError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from run.rb:7 while class A property :x, String has_one :b, B end will succeed. What is the thinking behind this? I am sure there is some other explicit declaration I can make so that first version works, but this I find this kind of magic inconsistent and confusing. Thanks for any light shed. From bryan.a.soto at gmail.com Fri Jun 30 19:28:11 2006 From: bryan.a.soto at gmail.com (Bryan Soto) Date: Fri, 30 Jun 2006 16:28:11 -0700 Subject: [Nitro] has_one fails with preceding property In-Reply-To: References: Message-ID: On 6/30/06, itsme213 wrote: > What is the thinking behind this? I am sure there is some other explicit > declaration I can make so that first version works, but this I find this > kind of magic inconsistent and confusing. > > Thanks for any light shed. > The property method enchants the class with the additional methods as you noticed. I'm guessing it doesn't enchant classes implicitly to avoid namespace noise. That's probably a question for George. The decision was before my time. :) I think you can do this: class A < Og::Entity has_one :b, B end and things will work as you expect. Again, it's explicit though. Bryan From itsme213 at hotmail.com Fri Jun 30 21:03:09 2006 From: itsme213 at hotmail.com (itsme213) Date: Fri, 30 Jun 2006 20:03:09 -0500 Subject: [Nitro] require 'breakpoint' takes me into actionpack ! Message-ID: I put this in my nitro code: require 'breakpoint'; breakpoint And it does this ... Any idea what is going on? Looks like gem is very confused. I have used breakpoint frequently before without any problem. Thanks. C:\>ruby run.rb INFO: INFO: INFO: INFO: INFO: c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/vendor/builder/blankslate.rb:11: Bui lder is not a module (TypeError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:2 00:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/vendor/builder/xmlbase. rb:3 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:2 00:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/vendor/builder/xmlmarku p.rb:14 ... 23 levels... from ./src/dental/types_and_instances.rb:8 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from run.rb:18 From itsme213 at hotmail.com Fri Jun 30 21:15:46 2006 From: itsme213 at hotmail.com (itsme213) Date: Fri, 30 Jun 2006 20:15:46 -0500 Subject: [Nitro] some questions on oxyliquit Message-ID: In case these might recur, I put them (just the questions ... hoping for answers) on oxy. =============== Og: object.save : what exactly is saved? =============== What is the API generated from Og macros? =============== has_one vs. belongs_to: what is the difference? =============== Magic vs. explicit ways to make class persistent Many thanks. From itsme213 at hotmail.com Fri Jun 30 21:45:38 2006 From: itsme213 at hotmail.com (itsme213) Date: Fri, 30 Jun 2006 20:45:38 -0500 Subject: [Nitro] HasManyCollection : Enumerable ? Message-ID: Why does this not implement the Enumerable interface? It does not do #find correctly, returning an array instead of the element (or nil). irb(main):017:0> c = i.slots => #, @errors=#>, @find_options=nil, @insert_proc=:add_slot , @count_proc=:count_slots, @member_class=Slot, @building=false, @find_proc=:find_slots> irb(main):018:0> c.find {|s| s.name == "foo"} => [] irb(main):019:0> Enumerable === c => false Thanks. From itsme213 at hotmail.com Fri Jun 30 22:05:16 2006 From: itsme213 at hotmail.com (itsme213) Date: Fri, 30 Jun 2006 21:05:16 -0500 Subject: [Nitro] Storing Og objects in ordinary instance variables Message-ID: Is it OK to do this? Any problems with storing Ruby object-refs instead of Og oids? class A < Og::Entity # some props etc. end class B < Og::Entity # some props etc. def a= (a) @a = a end def a @a end end Thanks. From transfire at gmail.com Fri Jun 30 22:16:03 2006 From: transfire at gmail.com (TRANS) Date: Fri, 30 Jun 2006 22:16:03 -0400 Subject: [Nitro] Rock 'n' Roll (was Roll n' Rain) In-Reply-To: <55c107bf0606301422p3075a320k4a9f204ff488899e@mail.gmail.com> References: <4b6f054f0606270844k7742ee44g312c4de351075f93@mail.gmail.com> <44A2A94C.3050509@gmail.com> <4b6f054f0606281305m515f0341k8afe9e047d29ff05@mail.gmail.com> <4b6f054f0606290437h5e1e285dhb917a81ef269a32b@mail.gmail.com> <4b6f054f0606300904rbdf8eb8y6414aea34ba7295d@mail.gmail.com> <4b6f054f0606301310p4ea48667ge61e8d63b804e22d@mail.gmail.com> <55c107bf0606301422p3075a320k4a9f204ff488899e@mail.gmail.com> Message-ID: <4b6f054f0606301916w333a9936qdbdf9232cbff8bf3@mail.gmail.com> On 6/30/06, Dimitri Aivaliotis wrote: > - if you have facets installed via gems, and don't have > RUBYOPT="-rubygems", rock won't be able to find 'facet/command' What do you do about this? I alwasy assumed that was the best way to handle gems. > - installing the demo package doesn't work: you first get an error that it > can't find '/tmp/rock/rock_demo/package_rock_demo', and > then it renames the 'rock_demo' directory in the current directory to > 'package_rock_demo' > - recreating the tarball to include 'package_rock_demo' yields the > following error: > > /usr/lib/ruby/1.8/fileutils.rb:501:in `rename': No such > file or directory - rock_demo or package_rock_demo/rock_demo (Errno::ENOENT) > > from > /usr/lib/ruby/site_ruby/1.8/rock/package.rb:267:in `unpack' > from > /usr/lib/ruby/site_ruby/1.8/rock/package.rb:215:in > `prepare' > from > /usr/lib/ruby/site_ruby/1.8/rock/package.rb:189:in > `install' > from > /usr/lib/ruby/site_ruby/1.8/rock/bin/rock.rb:56:in > `install' > Thanks. Fixed. Release 0.3.1 on its way soon. T. From itsme213 at hotmail.com Fri Jun 30 22:19:39 2006 From: itsme213 at hotmail.com (itsme213) Date: Fri, 30 Jun 2006 21:19:39 -0500 Subject: [Nitro] has_one fails with preceding property References: Message-ID: "Bryan Soto" wrote in message > I think you can do this: > > class A < Og::Entity > has_one :b, B > end > > and things will work as you expect. Again, it's explicit though. I am happier with explicit than with invisible but confusing magic. If #property can enchant, why can't #has_one and the rest of the family? Sadly this one does not work. class A < Og::Entity belongs_to :b, B end I don't get the setter #b= ... undefined method `b=' for ... (NoMethodError) From transfire at gmail.com Fri Jun 30 22:32:51 2006 From: transfire at gmail.com (TRANS) Date: Fri, 30 Jun 2006 22:32:51 -0400 Subject: [Nitro] Trac+Darcs after all? Message-ID: <4b6f054f0606301932j4cfa4579wda319880f39417f0@mail.gmail.com> http://progetti.arstecnica.it/trac+darcs/ T. From transfire at gmail.com Fri Jun 30 23:47:54 2006 From: transfire at gmail.com (TRANS) Date: Fri, 30 Jun 2006 23:47:54 -0400 Subject: [Nitro] has_one fails with preceding property In-Reply-To: References: Message-ID: <4b6f054f0606302047i574029d0l930e4c9517716d7c@mail.gmail.com> On 6/30/06, itsme213 wrote: > > "Bryan Soto" wrote in message > > > I think you can do this: > > > > class A < Og::Entity > > has_one :b, B > > end > > > > and things will work as you expect. Again, it's explicit though. > > I am happier with explicit than with invisible but confusing magic. If > #property can enchant, why can't #has_one and the rest of the family? > > Sadly this one does not work. > > class A < Og::Entity > belongs_to :b, B > end Does this? class A is EntityMixin belongs_to :b, B end Personally I'm still all in favor of explict like: class A < Og::Object belongs_to :b, B end class A is Og::Able belongs_to :b, B end I wonder waht happens not that attr_reader :x, String can be used instead of prop_reader? etc. T.