[#177629] memoize (reposting via ML) — Hal Fulton <hal9000@...>
(Reposting via ML as gateway apparently didn't send this through.)
[#177633] IO and non-strings — Mark Volkmann <r.mark.volkmann@...>
How can I write non-string data using the IO class?
On Wed, 1 Feb 2006, Mark Volkmann wrote:
On 1/31/06, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:
Mark Volkmann wrote:
On 2/1/06, Joel VanderWerf <vjoel@path.berkeley.edu> wrote:
Mark Volkmann wrote:
[#177639] memoize to a file — Brian Buckley <briankbuckley@...>
Hello all,
On Wed, Feb 01, 2006 at 12:32:57PM +0900, Brian Buckley wrote:
On Wed, 1 Feb 2006, Mauricio Fernandez wrote:
[#177661] callbacks, events, notification in general — Damphyr <damphyr@...>
OK, bare with me, this is brainstorming of a sorts:
[#177686] ANN: WSS4R was released — "Roland Schmitt" <Roland.Schmitt@...>
Hi everyone,
On 01/02/06, Roland Schmitt <Roland.Schmitt@web.de> wrote:
On Thu, 2 Feb 2006, Austin Ziegler wrote:
On 01/02/06, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:
On 2/1/06, Austin Ziegler <halostatue@gmail.com> wrote:
[#177705] Gateway broken (1-Feb-2006) — Daniel Berger <Daniel.Berger@...>
The gateway is broken again. Posts from usenet (google groups, whatever) are
[#177712] Seeking Continuations Links — James Edward Gray II <james@...>
Myself and a few others are trying to get together a "Playing Around
James Edward Gray II wrote:
[#177715] Indentation vs. "end"s — "Rubyist" <nuby.ruby.programmer@...>
Hi,
Yes I really like the end statements, and they make it easier for
>> What would be even better would be to allow optional labels after end
On 01/02/06, Rubyist <nuby.ruby.programmer@gmail.com> wrote:
doug00@gmail.com wrote:
On 2/2/06, Hal Fulton <hal9000@hypermetrics.com> wrote:> doug00@gmail.com wrote:> > Yes I really like the end statements, and they make it easier for> > beginners. It's possible to support both indenting and end statements> > (i.e. support one mode or the other), and you don't need python's> > redundant and unnecessary colons. I implemented this myself in a> > parser. I don't think it is appropriate for ruby, however.> >> > What would be even better would be to allow optional labels after end> > statements, such as "end class", "end def", so the parser can catch> > more errors.> > I've implemented this as well in a separate project.> >>> Not a bad idea in itself. In fact, I think that really old Ruby> versions (prior to my learning it with 1.4) did something like> that. When modifiers were introduced (x if y, x while y, etc.)> parsing became difficult and they were dropped. I think that's> the case.
>
joesb wrote:
On 2/5/06, Hal Fulton <hal9000@hypermetrics.com> wrote:
>
In article <nUfDf.49093$Kp.5722@southeast.rr.com>,
i like the "end"s, it reminds me of the old days when i programmed my Texas
On 01/02/06, Rubyist <nuby.ruby.programmer@gmail.com> wrote:
Hi,
I'm out of my league, but...
Hi,
On Fri, 2006-02-03 at 12:46 +0900, Yukihiro Matsumoto wrote:
[#177726] Sqlite3 error on Mac OS X — "Dan Munk" <danmunk@...>
Hi,
[#177737] Testing Rails: problem running a Gruff sample — "Richard Lionheart" <NoOne@...>
Hi All,
[#177765] Rails + Oracle — "Robert Hicks" <sigzero@...>
I have tried every connection string on the Rails site and it will not
[#177774] Interfacing white board with ruby on rails — "sapzz" <bafna.sapna@...>
Hi guys,
[#177781] Newbie query regarding ruby best practice — "Neowulf" <neowulf@...>
Hi all,
[#177796] "[BUG] Segmentation fault" on import script. — "sean.swolfe@..." <sean.swolfe@...>
Hi gang. Sorry I haven't been able to respond to my last post about
sean.swolfe@gmail.com wrote:
[#177804] can robot.rb be written a ruby way? — "anne001" <anne@...>
This site gives the c code from robot.c in its
[#177816] neuroimage software - scientific computing and visualization — "Darren L. Weber" <darrenleeweber@...>
Hi Darren
In article <1138805570.480128.261390@g49g2000cwa.googlegroups.com>,
[#177817] Class vs. Object — James Herdman <james.herdman@...>
I'm new to Ruby, and relatively new to OOP (1.5 years of Java -- but
[#177821] Win XP USB Port? — "E.-R. Bruecklmeier" <a82374237x@...>
Good morning rubyists,
On 2/1/06, E.-R. Bruecklmeier <a82374237x@radio-eriwan.de> wrote:
Peter Fitzgibbons schrieb:
[#177834] ruby for the nokia 770 internet tablet — mischamolhoek@...
Hi all,
Hi,
[#177842] Apache 2.2 and mod_fastcgi — "Reis" <andrea.reginato@...>
I'm trying to install mod_fastcgi for my rails app.
[#177853] change from int 1 on int 01 — misiek <michaelaugustyniak@...>
I need to change variable as int = 1 on = 01
[#177902] Job Vacancy RoR — "stephen@..." <stephen@...>
I am part of a small Agency that supplies contractors to clients. A
Please use sites like monster or dice if you wish to post jobs. Some have been
On Feb 1, 2006, at 5:16 PM, tsumeruby@tsumelabs.com wrote:
On Friday 03 February 2006 05:23 am, Eric Hodel wrote:
On 3 Feb 2006, at 22:13, tsumeruby@tsumelabs.com wrote:
On Saturday 04 February 2006 08:30 am, Paul Robinson wrote:
[#177916] Grammars (mini-scripting languages) — Michael Judge <mjudge@...>
I'm working on implementing mini-scripting languages for two different
[#177918] One-Click Ruby Installer 184-16 preview3 is available! — Curt Hibbs <ml.chibbs@...>
=== One-Click Ruby Installer 184-16 preview3 is available! ===
Curt
[#177931] Re: [ANN] Mongrel HTTP Library 0.2.0 (Fast And RubyForgified) — "Daniel Sheppard" <daniels@...>
Seem to have a slight problem with the mongrel gem, unless I'm using the
Odd, not quite sure what would cause that. Can you try the soon to
I know Windows is evil, but I thought I'd paste in my log again, just
[#177955] Mongrel 0.2.1 HTTP Library (Fancy URI Matching) — Zed Shaw <zedshaw@...>
And now it's time for yet another Mongrel release.
[#177964] ruby-dev summary 28206-28273 — Minero Aoki <aamine@...>
Hi all,
[#177977] Parsing Ruby with Ruby — "John Wells" <lists@...>
Guys,
[#177982] Port a Library (#64) — Ruby Quiz <james@...>
The great element of porting a library is that you get examine another
[#177996] Chomping and stomping — John Maclean <info@...>
Chaps,
[#178003] Spaces in between brackets — semmons99@...
Can anyone explain to me why the code works:
[#178019] irb cursor navigation — Matt Maycock <ummaycoc@...>
Whenever I use irb on my OS X 10.4 box, pressing left, right, up, or down
[#178042] Re: Indentation vs. "end"s — "Berger, Daniel" <Daniel.Berger@...>
> -----Original Message-----
[#178073] Question about PStore API — Daniel Berger <Daniel.Berger@...>
Hi all,
[#178074] meaningful RUBY_VERSION#<=> — "Ara.T.Howard" <ara.t.howard@...>
[#178087] Golfing (was Re: Chomping and stomping) — Jacob Fugal <lukfugl@...>
On 2/2/06, William James <w_a_x_man@yahoo.com> wrote:
Jacob Fugal wrote:
>
Ezra Zygmuntowicz wrote:
On 2/3/06, why the lucky stiff <ruby-talk@whytheluckystiff.net> wrote:
On 2/3/06, Matthew Moss <matthew.moss.coder@gmail.com> wrote:
[#178095] Seeking the Ruby way — Todd Breiholz <talanb@...>
I'm just getting my feet wet with Ruby and would like some advice on how yo=
On Fri, 3 Feb 2006, Todd Breiholz wrote:
[#178136] Re: Strange posting about ebooks — Pe, Botp <botp@...>
From: anne001 [mailto:anne@wjh.harvard.edu]
Pe, Botp <botp@delmonte-phil.com> wrote:
botp is right, all you need to do is listen to the news to see that
"anne001" <anne@wjh.harvard.edu> writes:
[#178163] Mongrel HTTP Library 0.2.2 (Serving Directories) — Zed Shaw <zedshaw@...>
Hey Folks,
On 2/3/06, Zed Shaw <zedshaw@zedshaw.com> wrote:
On 2/3/06, Tanner Burson <tanner.burson@gmail.com> wrote:
Did you make sure to require rubygems first? Here's my install:
On 2/3/06, zedshaw@zedshaw.com <zedshaw@zedshaw.com> wrote:
[#178184] Hie Rubyists! — Shubhra <shubhra.maini@...>
Hello ppl!
[#178194] Word Chains (#65) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
[#178213] Allow additional parameters to Enumerable#inject — Levin Alexander <levin@...>
Hi,
Levin Alexander wrote:
[#178215] Rails Recipes Beta Book now available — Dave Thomas <dave@...>
I'm delighted to announce that Chad Fowler's new book, Rails Recipes,
* On Feb 4 0:06, Dave Thomas (ruby-talk@ruby-lang.org) wrote:
[#178218] Splitting the Loot (#65) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
> The first command-line argument to the program will be the number of adventures.
Aditya Mahajan wrote:
On 2/5/06, Luke Blanshard <luke@blanshard.us> wrote:
Ok, the 48 hours passed just now and as I have to leave for a day or two
=begin ############################################################
[#178223] YAML::quick_emit api change — ara.t.howard@...
ara.t.howard@noaa.gov wrote:
On Sat, 4 Feb 2006, why the lucky stiff wrote:
[#178250] Compile problems with 1.8.4 on HP — Jim Freeze <jim@...>
Hi
[#178252] Help installing ruby-odbc on XP — "eching" <bingopajama@...>
I am trying to install ruby-odbc on Windows XP and am stuck at the
[#178256] what happened to :SortKeys option to #to_yaml? — Joel VanderWerf <vjoel@...>
[#178257] serializing Class and Module objects — Joel VanderWerf <vjoel@...>
[#178265] Ruby IDEs — Chris <cpmbailey@...>
After years of programming in C++, Java et al my new job used Smalltalk
Dňa Piatok 03 Február 2006 21:28 Chris napísal:
[#178272] Regexp question for doing "and" searches — Jeff Cohen <cohen.jeff@...>
Just can't quite figure this one out.
[#178298] Editor on Mac OS X — "Dan Munk" <danmunk@...>
Hello,
On Feb 4, 2006, at 1:23, Dan Munk wrote:
[#178305] Proposal For New Ruby Mailing List Subjects — Zed Shaw <zedshaw@...>
Hey,
[#178307] Ruby Syntax: 'initialize' versus 'init' — Clint Checketts <checketts@...>
While programming with Ruby, I've grown to love just how clear and concise
[#178319] Debian, gem(?) , and libraries — furufuru@...
Hello all,
> Hello all,
[#178326] Fixnum#to_a — Levin Alexander <levin@...>
Hi,
[#178331] how to vary sort's block? — Wybo Dekker <wybo@...>
When I have an array of objects (Thing's, say) with two properties (say
[#178332] Extract hash into local variables? — csn <cool_screen_name90001@...>
Is there a Ruby function similar to PHP's extract/list? What I'd like to
Jeffrey Schwab <jeff@schwabcenter.com> wrote:
[#178341] How to use Ruby interpreter as Windows DLL library? — Stanislav Sidristij <sunexdev@...>
I have an idea (program, that uses Ruby interpreter). And I dont know
[#178361] install mysql-ruby on RHEL — Richard Navarrete <richard@...2p.us>
Howdy,
Hi,
Thanks, Oliver.
Hi,
[#178364] Problem with weak references on OS X 10.3 — Caleb Clausen <vikkous@...>
I am having problems with weak references. The program below exhibits
Caleb Clausen <vikkous@gmail.com> wrote:
[#178375] one click installer + gems — "pihentagy@..." <pihentagy@...>
Hi!
On 2/4/06, pihentagy@gmail.com <pihentagy@gmail.com> wrote:
Additional problems:
[#178392] Quiz #65, Principle of Great Surprise, and Array.delete sledgehammer — Dave Howell <groups@...>
I thought I was actually going to enter my first RubyQuiz, but I've
On 2/4/06, Dave Howell <groups@grandfenwick.net> wrote:
On Sun, 5 Feb 2006, Dave Howell wrote:
On Sun, 5 Feb 2006, Dave Howell wrote:
[#178393] built-in vs. standard library — Mark Volkmann <r.mark.volkmann@...>
I'm confused about whether the Date class is built-in or in the
On Feb 4, 2006, at 2:57 PM, Mark Volkmann wrote:
On 2/4/06, James Edward Gray II <james@grayproductions.net> wrote:
Mark Volkmann wrote:
[#178416] Scanning a string for decimal numbers — Jeppe Jakobsen <jeppe88@...>
Hi all, how do you scan a string and avoid getting my decimal numbers
Jeppe Jakobsen wrote:
Hi!
Will that expression include both integers and decimal numbers?
On 2/4/06, Jeppe Jakobsen <jeppe88@gmail.com> wrote:
>
2006/2/12, Alexis Reigel <mail@koffeinfrei.org>:
Seems I accidently got my text marked as a qoute in my last mail, so I'll
Well, that's what I get for dashing off a quick e-mail before dinner.
Yes that worked, but I intend to convert the digits of my array to floats,
[#178441] define_method with a &block? — Erik Veenstra <pan@...>
In the code below, I want test2 to receive a block, like test1,
[#178447] POP email with SSL — Mark Volkmann <r.mark.volkmann@...>
Can someone point me to an example of reading email from a server
[#178495] Ruby feature request - enum.detect_index — "jonT" <j@...>
Hi,
[#178512] #65: Splitting the Loot — Luke Blanshard <luke@...>
My submission is attached. The key insight: if you start with the
On 2/5/06, Luke Blanshard <luke@blanshard.us> wrote:
[#178522] Cookbook2 tutorial error: The error occured while evaluating nil.name — thundercleesed@...
I am following the Cookbook2 tutorial on the InstantRails website (
I forgot to mention I am getting the error when I attempt to "add a
[#178527] Is the SQLite3 gem known to have memory corruption? — "Timothy J. Wood" <tjw@...>
[#178528] Adding properties to a method? — "jonT" <j@...>
Hi,
[#178546] regex trick — Alain FELER <alain.feler@...>
I want to replace all ' by \' ? (I need it to do inserts in mysql).
[#178579] Ruby jargon and slang — Hal Fulton <hal9000@...>
I'm assembling a list of Ruby community "usages" and I want to make
Hal Fulton wrote:
zdennis wrote:
Quoting Hal Fulton <hal9000@hypermetrics.com>:
Can someone point me to the page in the Pickaxe book where #-notation
Dňa Streda 08 Február 2006 05:18 Mark Szpakowski napísal:
On 2/8/06, David Vallner <david@vallner.net> wrote:> D Streda 08 Febru疵 2006 05:18 Mark Szpakowski nap﨎al:> > Can someone point me to the page in the Pickaxe book where #-notation> > is defined? I can't find it through the index.>> That notation is defined in Pickaxe? Now this I want to see.
[#178594] odd http header corruption — Sam Joseph <sam@...>
Hi there,
On Feb 6, 2006, at 1:16 AM, Sam Joseph wrote:
Hi Eric,
[#178601] Adding user input to a hash — John Maclean <info@...>
Chaps,
[#178606] Torn in two - Pythonist — Doug Bromley <doug.bromley@...>
You probably get this question all the time or some version of it.
[#178611] Merging regular expressions — Anthony Durity <anthony.durity@...>
Hello all,
Dave Burt wrote:
Thanks Robert, thanks Dave,
[#178621] [SOLUTION] Splitting the Loot (#65) (My second attempt) — Patrick Deuster <pdeuster@...>
I had a small chat with Manuel Kasten, who found out that my version
On 2/6/06, Patrick Deuster <pdeuster@gmx.net> wrote:
Adam Shelly wrote:
[#178624] New Ruby on Rails Powered Job Site — Michael Gorsuch <michael.gorsuch@...>
Hey everyone - I'm excited to announce that I've just released my
"Search our database of 5 resumes from 84 locations and 30 categories!"
[#178658] Problems building binaries on OS X 10.4 — "Eric Promislow" <eric.promislow@...>
This is with the Ruby that ships with 10.4 (Tiger). We haven't tried
[#178675] Intros to Python for Rubyists? — Daniel Nugent <nugend@...>
Hi all,
[#178682] Method Definitions: &block vs. yield() — "James H." <james.herdman@...>
Suppose I had two methods:
[#178700] Ruby design patterns and idioms — Jack Christensen <jack@...>
I've read Design Patterns and similar material. While I've certainly
[#178710] reasons to use else inside rescue — Mark Volkmann <r.mark.volkmann@...>
I understand that the code in the else part of a begin block is only
David Vallner wrote:
On 2/7/06, Robert Klemme <bob.news@gmx.net> wrote:> David Vallner wrote:> > D Utorok 07 Febru疵 2006 03:33 Mark Volkmann nap﨎al:> >> I understand that the code in the else part of a begin block is only> >> executed if no exceptions are raised by code in the begin block.> >> However, the same is true of code at the end of the begin block. Why> >> not put the code there?> >>> >> For example, I believe these are equivalent.> >>> >> begin> >> do_something> >> rescue> >> handle_exception> >> else> >> do_more_stuff> >> end> >>> >> begin> >> do_something> >> do_more_stuff> >> rescue> >> handle_exception> >> end> >>> >> I suppose a difference is that if "do_more_stuff" raises an> >> exception, the first example can't rescue it and the second might.> >> Is that the only difference?> >>> >> --> >> R. Mark Volkmann> >> Partner, Object Computing, Inc.> >> > There's an else part in a begin / end block?! Oh dear. Heavens> > protect us...>> Why?>> > It seems pretty equivalent to plain old:> >> > begin> > do_something> > rescue> > handle_exception> > end> > do_more_stuff> >> > Do we have a syntax guru to elaborate on this?>> Although not being a syntax guru, the idiom you presented is definitely> *not* equivalent. do_more_stuff will also be called if an exception was> caught and not reraised while code in the "else" branch is only invoked if> there was no exception raised.>> > That said, my wild guess would be that in the code fragment> > (apologies for using different method names):> >> > begin> > foo> > rescue> > bar> > else> > baz> > finally>> "finally" is Java - you probably meant "ensure".>> > quux> > end> >> > (*sic* - messiest code excerpt ever)> >> > if #foo didn't raise an Exception, the order of executions would be> > #foo, #baz, and then #quux. That is, unless the else is nothing more> > than no-op syntactic sugar for just putting the statements after a> > begin / rescue / finally block.>> As Mark said, a *rough* equivalent is to put code in the else part> directly before the first rescue. But they do not have the same> semantics! The difference is that all exceptions raised between "begin"> and "rescue" are potentially subject to exception handling on one of the> "rescue" branches. This is not true for code in the "else" branch.>> Another reason to put code into the else branch is documentation. It's> visibly clear that this code does not belong to the main functionality of> the begin end block but that it's intended to act on successfull execution> of the block.
[#178727] basic oO :: First Class Object — "jansenh" <henning.jansen@...>
Hi all.
[#178741] lazy evaluation? — Martin DeMello <martindemello@...>
Could someone explain why this code works:
[#178743] ONLamp tutorial install issue (mysql gem) — smerz@...
Hi all,
You don't need to install the MySQL gem at all (at least not for going
Thanks,
mysqlclient.lib was not found
I'm trying to use the unnormalize method of the Text class in the
[#178760] Grep via Ruby — "ralf" <stark.dreamdetective@...>
Hi,
[#178784] Ruby in Browsers? — petermichaux@...
Hi,
On Wed, Feb 08, 2006 at 12:58:26AM +0900, petermichaux@yahoo.com wrote:
> The biggest problem with JavaScript is incompatible APIs across browsers.
[#178804] What's the difference between copying and sharing in closure? — "Sam Kong" <sam.s.kong@...>
Hello!
Dňa Utorok 07 Február 2006 18:38 Sam Kong napísal:
> Contrast this to Ruby:
[#178806] Problem with https connection in Ruby 1.8.4 — Todd Breiholz <talanb@...>
I'm getting the following error when executing in Ruby 1.8.4 (tried it
[#178807] About Extending Systax — "Sam Kong" <sam.s.kong@...>
Hi!
[#178808] Start from the start - Ruby or ruby on rails — eain.jones@...
I'm looking to start developing a simple task management application
I'd say your best bet would be to start with a couple of Ruby
I think you meant this one:
I completely agree with Jules: try Rails from the start and learn Ruby
Thanks to everybody for the recommendations. I had a lot of the links
On Feb 8, 2006, at 3:53 AM, eain.jones@gmail.com wrote:
Hi James,
James and Seth,
XML, Yaml, database : before choosing, maybe you would like to have a
Hate to spoil a perfectly good sales pitch, but if the app is supposed to be
[#178826] marshalling constants — Brian Buckley <briankbuckley@...>
Hello,
Brian Buckley wrote:
On Feb 7, 2006, at 11:38 AM, Brian Buckley wrote:
[#178863] Meta-Meta-Programming — Erik Veenstra <pan@...>
http://www.rcrchive.net/rcr/show/321
Trans wrote:
Did I mention that it is possible to double-wrap a method with
So, just for clarifications sake: Both the presented wrapping method
On Feb 8, 2006, at 7:48 AM, Erik Veenstra wrote:
[#178892] mixing in modules ? — "konsu" <konsu@...>
hello,
[#178899] Camping 1.3, the Microframework — why the lucky stiff <ruby-talk@...>
Good people of the town: Maybe some of you are interesting in the
[#178901] Writing an image to file — marcus <m-lists@...>
I have images stored in a database. I now need to read those images from
[#178907] Re: [QUIZ][SOLUTION] Splitting the Loot (#65) — Bill Dolinar <bdolinar@...>
=begin
Bill Dolinar wrote:
[#178915] c api, getting class — Patrick Gundlach <clr8.10.randomuser@...>
Hi,
[#178916] Using Classifier::LSI — "chrisjroos@..." <chrisjroos@...>
Hi,
Ok, so it took just over 7 hours to build the index of 3000 items.
[#178925] NP — Lou Vanek <vanek@...>
If anybody else finds NP-complete problems interesting then you may want
[#178942] boolean annoyance — Claudio Jeker <cjeker@...>
Hello,
> there is one thing in ruby that annoys me most (at least for now).
On Thu, Feb 09, 2006 at 01:16:26AM +0900, Matthew Moss wrote:
On 08/02/06, Claudio Jeker <cjeker@diehard.n-r-g.com> wrote:
Quoting Claudio Jeker <cjeker@diehard.n-r-g.com>:
[#178952] Relocatable Ruby executable — Asfand Yar Qazi <ayZIG0106@...2sZIG.com>
Hi,
[#178954] block_given? vs defined? yield — Daniel Berger <Daniel.Berger@...>
Hi all,
Hi,
[#178963] c extension: symbols — Patrick Gundlach <clr8.10.randomuser@...>
Hi,
[#178975] Sandboxing eval'd code — eastcoastcoder@...
I'm working on a web app with complicated and ever changing business
[#179035] Geocoder 0.1.0 — Paul Smith <paul@...>
Geocoder is a library for Ruby developers and a command-line utility
Hey Paul,
[#179038] how to do instance_eval with arguments — Jim Weirich <jim@...>
I'm prototyping a DSL and came across a situtation where I have a lambda
[#179041] help using facets? — a non y mouse <anonymous@...>
i just discovered facets and would like to begin using them, but am
[#179057] how to create singleton methods in script — charlie bowman <cbowmanschool@...>
Here is a simplified version of a little timekeeper app that I've been
You may want to try putting your method def's above the code that calls
[#179084] can map/collect return fewer values than are found in the target? — Kelly Dwight Felkins <railsinator@...>
Is there a way for collect to return fewer items than the enumerable the
[#179092] Formatting Numbers — HH <lists@...>
This has got to be simple but I checked the PickAxe and Google to no avail.
[#179121] Ruby on AIX? — Obie Fernandez <obiefernandez@...>
We're looking at big IBM hardware running AIX as a potential
Obie,
Hi,
On Sat, Feb 11, 2006 at 03:05:26AM +0900, Diego Cano Lagneaux wrote:
[#179125] Re: Yahoo! Widgets (JavaScript) - do we have a anything like this? — Nuralanur@...
Dear Glenn,
Dňa Štvrtok 09 Február 2006 10:32 Nuralanur@aol.com napísal:
> I believe Glenn called for something that lets him do desktop applets, not
Quoting tsumeruby@tsumelabs.com:
On Friday 10 February 2006 01:59 am, david@vallner.net wrote:
I had a look at Tile, and it looks promising too. But I tried doing some
On Friday 10 February 2006 04:54 am, David Vallner wrote:
Dňa Piatok 10 Február 2006 00:34 tsumeruby@tsumelabs.com napísal:
On Friday 10 February 2006 01:52, David Vallner wrote:
[#179132] yaml object de-serialisation — pere.noel@... (Une b騅ue)
i've a class "Preferences"
[#179144] Splitting the Loot (#65) — Ruby Quiz <james@...>
There was some debate on the list about which NP-complete problem this actually
Ruby Quiz schrieb:
One group of combinations I found that Luke's solution didn't work
Aha. You need to be using my *second* solution, cleverly named
[#179151] Writing Secure Web Services — "Scott" <bauer.mail@...>
I know this is Ruby-specific, but we plan to implement this system
[#179155] Ruby 1.8.4 behaviour - 2 questions — "James B. Byrne" <ByrneJB@...>
OS = CentOS 4.2
On Fri, 10 Feb 2006, James B. Byrne wrote:
Dňa Štvrtok 09 Február 2006 17:51 ara.t.howard@noaa.gov napísal:
On Fri, 10 Feb 2006, David Vallner wrote:
Dňa Piatok 10 Február 2006 04:08 ara.t.howard@noaa.gov napísal:
[#179157] DICOM Tool Kit in Ruby — mac <mtscolony@...>
Good Morning,
Sounds really interesting, thanks for your work. Any plans on the license?
I will release it on Ruby license, open source. I have over 10 years DICOM
[#179181] How to improve this kind of API? — Lyle Johnson <lyle.johnson@...>
I'm looking to make an API change for some methods in FXRuby and would
[#179182] Re: How to improve this kind of API? — "Berger, Daniel" <Daniel.Berger@...>
> -----Original Message-----
[#179235] Thread#stop — Joel VanderWerf <vjoel@...>
Dňa Piatok 10 Február 2006 05:10 Joel VanderWerf napísal:
[#179262] FasterGenerator (#66) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
Ruby Quiz schrieb:
Not being familiar with all the various Ruby packages and libs, I
On Feb 10, 2006, at 10:08 AM, Matthew Moss wrote:
On 2/10/06, Ruby Quiz <james@grayproductions.net> wrote:
On 2/11/06, Jacob Fugal <lukfugl@gmail.com> wrote:
On Feb 10, 2006, at 7:53 AM, Ruby Quiz wrote:
On Tue, 2006-02-14 at 01:57 +0900, James Edward Gray II wrote:
On 2/14/06, Ross Bamford <rossrt@roscopeco.co.uk> wrote:
On Wed, 2006-02-15 at 02:54 +0900, Dave Lee wrote:
On 2/14/06, Ross Bamford <rossrt@roscopeco.co.uk> wrote:
[#179274] Yet another question on exceptions — Eric Jacoboni <jaco@...>
Hi,
[#179318] Preserve value-type semantics in imported types — John Lam <drjflam@...>
I'm importing a value type from the CLR and I'd like to preserve value type
[#179331] Rubyforge releasing — Tobias Luetke <tobias.luetke@...>
Hey everyone,
On Sat, 11 Feb 2006, Tobias Luetke wrote:
[#179339] ruby/dl question — ara.t.howard@...
ara.t.howard@noaa.gov wrote:
[#179340] why would i want to put my mysql password in the yml file? — trevor <trevor@...>
hello - i'm new!
Wouldn't you have to store the password SOMEWHERE? This comes up
From: "trevor" <trevor@idvertise.com>
thanks for the clear-up, i do follow that logic
You'd probably be way better off just making a quick PHP script. No
anibalrojas@gmail.com writes:
[#179351] Private methods - only available to oneself? — "minkoo.seo@..." <minkoo.seo@...>
Hi, all.
Erik Veenstra wrote:
I'm sorry Erik. I'm not native English speaker. So, sometimes it's not
> I'm sorry Erik. I'm not native English speaker. So, sometimes
I think the purpose of instance_eval is one of those "sharp knife"
Phrogz wrote:
gwtmp01@mac.com wrote:
Thanks, Erik. I'm afraid that I'm not a native English spearker, so
Minkoo Seo wrote:
[#179355] Starting Ruby — ani vadhavane <vadhavane_anil@...>
Hi,
[#179366] OpenStruct problem — "Minkoo Seo" <minkoo.seo@...>
OpenStruct class seems to be misbehave when it comes to hashing.
Hashes don't behave well as keys either so it's no surprise openstructs
[#179426] Adding variables to a binding — marcus <m-lists@...>
I need to run an ERB template (a normal Rails view template) in a Rails
[#179434] Quickly before all is lost! — Alex Combas <alex.combas@...>
ZOMG! Ruby RSS feeds growing exponentially!
Alex Combas wrote:
On 2/11/06, James Britt <james_b@neurogami.com> wrote:
James Britt wrote:
Hi --
[#179447] Rake Friday? — Bil Kleb <Bil.Kleb@...>
Is there a Friday,
On Feb 11, 2006, at 7:03 PM, Bil Kleb wrote:
Hi All
Bil Kleb wrote:
[#179466] ruby course confusion — Alex Combas <alex.combas@...>
Working my way through the "ruby course"
[#179472] Simultaneous text input/output in a command line game — rubyvic <rubyvic@...>
Hi everyone!
[#179498] SAFE levels — Tom Allison <tallison@...>
Is there somewhere I can find some description on the proper care and feeding of
[#179503] Cutting a piece of text — Zdebel <szczupienczyk@...>
Helo !
On Feb 12, 2006, at 10:18 AM, Zdebel wrote:
James Edward Gray II wrote:
[#179520] Rescuing blocks? — Daniel Nugent <nugend@...>
Hey guys,
Dňa Nedeľa 12 Február 2006 19:26 Daniel Nugent napísal:
Whoops, shoulda thought of that, a-doy.
this works,
On 2/12/06, Lou Vanek <vanek@acd.net> wrote:
Dňa Nedeľa 12 Február 2006 20:39 Mark Volkmann napísal:
Is
How would you parse the difference whether the raise applies to the whole
Sorry, not sure what the issue is (I assume you mean rescue, not raise there).
On Feb 12, 2006, at 10:55 AM, Daniel Nugent wrote:
Eric Hodel wrote:
Dave Cantrell wrote:
On Feb 14, 2006, at 9:50 PM, Hal Fulton wrote:
On 2/15/06, Eric Hodel <drbrain@segment7.net> wrote:
[#179532] Struct creates non-standard classes — Mark Volkmann <r.mark.volkmann@...>
If Struct is a shorthand way for creating Classes, why don't objects
Dňa Nedeľa 12 Február 2006 20:45 Mark Volkmann napísal:
On 2/12/06, David Vallner <david@vallner.net> wrote:> D Nedeオa 12 Febru疵 2006 20:45 Mark Volkmann nap﨎al:> > If Struct is a shorthand way for creating Classes, why don't objects> > created from those Classes have instance_variables?> >>> My guess is because Struct directly accesses a C hashtable, instead of> registering instance variables in the interpreter. Not like it should matter> unless you for some reason with to access the variables with reflection> instead of the accessors, which I can't imagine why you'd want to do.
2006/2/12, Mark Volkmann <r.mark.volkmann@gmail.com>:> On 2/12/06, David Vallner <david@vallner.net> wrote:> > D Nedeオa 12 Febru疵 2006 20:45 Mark Volkmann nap﨎al:> > > If Struct is a shorthand way for creating Classes, why don't objects> > > created from those Classes have instance_variables?
Robert Klemme wrote:
Hal Fulton wrote:
[#179541] Implanting a new method for a class — Jeppe Jakobsen <jeppe88@...>
Hi there, I have a question regarding how to implant a new method into the
[#179546] Mongrel 0.3.1 -- New Site/Runs Right — Zed Shaw <zedshaw@...>
Hello All,
Zed Shaw wrote:
Yes, it handles concurrent requests *except* for right when it runs the
Zed Shaw wrote:
Yeah, well, too bad I'm given absolutely no reason to click past the front
OK, now I see the actual application web site. The link in the original
[#179563] Equivalent of const modifier — eastcoastcoder@...
Very often, I'd like to ensure (and document) that a method will not
[#179564] How to pass a function as argument in ruby? — "the_crazy88" <python@...>
I've searched a bit about the subject, but I don't understand it. All I
the_crazy88 wrote:
Dňa Nedeľa 12 Február 2006 22:48 Timothy Hunter napísal:
Ok, thanks a lot everyone! Seems like a lot of usefull ideas.
[#179577] newbie question about blocks — Jeppe Jakobsen <jeppe88@...>
Hi, I want to square every element in my array using a block:
[#179595] Idiomatic ruby — eastcoastcoder@...
Very often I have a question method, which, in some cases, the caller
[#179596] couple quick questions about YARV — Joshua Haberman <joshua@...>
I know YARV is far from finished, but:
Hi,
[#179599] Idiomatic ruby — eastcoastcoder@...
Very often I have a question method, which, in some cases, the caller
[#179607] Irb problem in OSX — ssmoot@...
I'm not sure how I got into this situation being a Mac newbie, but I
ssmoot@gmail.com wrote:
[#179619] Ruby GUI Debugger — "mitchell" <ffsnoopy@...>
Hey everyone, over the last week I wrote a GUI front-end to Ruby's
[#179623] tree structures — "frank" <mjzanis@...>
Hi,
Hmm. To be very, very, very frank, If I wanted binary trees for something, I'd
David,
Dňa Pondelok 13 Február 2006 04:33 frank napísal:
Okay, so I need to approach this head on from an OO standpoint. I have
[#179650] Implementing the Self-Shunt testing pattern — Dave Cantrell <ruby-talk@...>
I just stumbled across the Self-Shunt unit testing pattern[0] and
[#179652] Command Pipeline (pipes & filters) in Ruby — eastcoastcoder@...
Anyone know of any generic implementation of a pipeline in ruby? That
[#179667] nonblocking sockets, select, & OpenSSL — "rakaur" <rakaur@...>
I've been having issues using Ruby, select, and the OpenSSL library.
Hi,
[#179668] test::unit runner in eclipse rdt — "Bret Pettichord" <bpettichord@...>
When i run the Test::Unit runner inside eclipse RDT, sometimes i get a
[#179682] ANN: Watir WebRecorder for Ruby — Marcus Tettmar <mtettmar@...>
Hi,
Hi,
[#179709] Ruby port for Nokia 770 Wireless Internet Tablet — ruby770@...
I have a few off-topic questions about the 770 if you have a sec:
1. Too funny. Everyone I've shown my 770 too, more or less, pointed
[#179713] DateTime.parse speed question — Charlie Bowman <cmbowma@...>
I'm trying to speed up a small app that I've written. When I run the
Charlie Bowman wrote:
[#179717] OO Design Advice — eastcoastcoder@...
I'm trying to master the more subtle elements of Rubyish OO design, and
[#179735] Working with kernel.eval — Ian Whitney <iwhitney@...>
I'm trying to calculate the results of formulas that are stored in
Ian Whitney wrote:
[#179741] ruby html (or xhtml) forms class... — "Skeets" <skillet3232@...>
does one exist? i use an excellent php based forms class when i code
After not finding anything that met my needs, I'm writing one. But
[#179790] Mongrel 0.3.2 -- The Right Site/All Requests Answered — Zed Shaw <zedshaw@...>
"Another Mongrel release?! Is he insane?" Yeah, basically.
[#179793] Syntax error messages in 1.8.3 — gabriele renzi <surrender_it@...>
Hi gurus and nubys,
Hi,
[#179824] Form Filler — eastcoastcoder@...
Is there an equivalent in Ruby to the Perl modules which can "fill out
[#179825] rubyforge-0.1.1 — ara.t.howard@...
[#179854] Mongrel 0.3.2 Strangely Silent — Jim Weirich <jim@...>
I wanted to check out the latest ruby craze: Mongrel. So I installed
[#179858] mongrel rails issue — "_blackdog" <rmt512@...>
hi there,
Hey, you need Ruby 1.8.4. I'll see if I can include that in the gem
[#179859] net/sftp 1.10 errors — zdennis <zdennis@...>
I recently downloaded net/ssh 1.0.7 and net/sftp 1.1.0. But I get problems with ruby 1.8.2, 1.8.3 on
[#179860] How to run a Ruby file without installing Ruby? — "Rubyist" <nuby.ruby.programmer@...>
Let's suppose that I wrote a Ruby program which is incredibly
On 2/14/06, Rubyist <nuby.ruby.programmer@gmail.com> wrote:
Dňa Utorok 14 Február 2006 14:03 Rubyist napísal:
tanks!
> We know where you live,
[#179885] Ruby- interactions with Appservers such as Oracle/Jboss — Arjun Khanna <mikku_khanna@...>
Hi:
Arjun Khanna wrote:
[#179907] ruby-lang emails getting blocked — "Caleb Tennis" <caleb@...>
It seems that beryllium.ruby-lang.org has found itself on spamcop's
On Wednesday 15 February 2006 05:06 am, Caleb Tennis wrote:
[#179940] simple programming q — grrr <grrr@...>
I am a ruby newbie. I want to make a simple script that replaces certain
[#179949] Ackbar - ActiveRecord Adapter for KirbyBase — Assaph Mehr <assaph@...>
= About Ackbar
Assaph-
> I am trying to play with ackbar right now. What is the syntax for
[#179960] extend quesion — ptkwt@... (Phil Tomson)
The following doesn't quite do what I would expect:
[#179978] gem/rdoc/ri errors on mingw — Alex Combas <alex.combas@...>
Hello,yesterday I switched from the very good, perfectly functionalone-click installer to a build-it-yourself-ruby-compile on winXPwith the mingw environment.
Alex Combas wrote:
On 2/15/06, Jim Weirich <jim@weirichhouse.org> wrote:>> http://docs.rubygems.org/read/chapter/3 should help with RubyGems.>>
[#179986] irb on windows @{[ etc — Mikkel Bruun <devlists-ruby-talk@...>
Just to set set things straight (once more)...
[#179998] which class defined — "raving_ruby_rider" <ernest.micklei@...>
Hi,
[#180000] Getting Started — lists@...
Hi, I'm trying to get started with Ruby, but I don't feel that any of
On Feb 15, 2006, at 8:01 AM, lists@southernohio.net wrote:
I usually try to find a small tool that I would like to have and then
On Feb 15, 2006, at 8:31 AM, Charlie Bowman wrote:
[#180012] Possible Ruby-centric NASA SBIR area — Bil Kleb <Bil.Kleb@...>
I've been asked to write a small topic area
In article <dsvfnr$qqb$1@vilya.larc.nasa.gov>,
There's already an open source competitior to matlab: python plus
In article <du2e63$rp0$1@vilya.larc.nasa.gov>,
[#180021] Ruby script to Module/Class refactor — "James B. Byrne" <ByrneJB@...>
I have written my first live ruby script that actually performs useful
William James wrote:
[#180024] pack("l"), 64 bit question — Daniel Berger <Daniel.Berger@...>
Hi all,
Hi,
Hi,
Hello.
[#180029] Port of Perl's Parse::AFP? — "Scott" <bauer.mail@...>
Has anyone had the need to port the Perl library Parse::AFP to Ruby?
On Feb 15, 2006, at 18:08, Scott wrote:
[#180046] OT: Is this worth a try? — "gregarican" <greg.kujawa@...>
I am trying out some other scripting languages and wanted to give
Dňa Streda 15 Február 2006 20:33 gregarican napísal:
On Thu, 16 Feb 2006, David Vallner wrote:
John Carter wrote:
On 2/16/06, Jens Auer <jens.auer-news@betaversion.net> wrote:
[#180080] Eating CPAN - Was Port A Library. — John Carter <john.carter@...>
CPAN has 9502 modules.
There are modules in CPAN that can do almost anything you need, and
[#180084] newbie trouble with RubyGems — Don <donavonj@...>
This is a newbie question. I used OneClick to install Ruby onto my
[#180087] why does this freeze not work? — "konsu" <konsu@...>
hello,
[#180114] Mongrel 0.3.4 -- Win32 Gems/Better CGIWrapper — Zed Shaw <zedshaw@...>
Hello Everyone,
Hi
[#180121] Creating objects without knowing their names — paul.p.carey@...
Hi
[#180129] File.exist? svn2rss.rb — Bil Kleb <Bil.Kleb@...>
Hello,
[#180170] Newbie: how to dynamically add methods? — Jeff Cohen <devlists-ruby-talk@...>
The PickAxe doesn't seem to cover details of how to dynamically create
On 2/16/06, Jeff Cohen <devlists-ruby-talk@devlists.com> wrote:
[#180202] recontextualizing a block (looking for deep magic) — ptkwt@... (Phil Tomson)
What I'm trying to do probably isn't possible, but maybe someone knows some
In article <9e3fd2c80602161324n4310a4ecx@mail.gmail.com>,
[#180204] Rubuntu LiveCD I need vim/emacs configs! — Ezra Zygmuntowicz <ezmobius@...>
Friends-
On Fri, 2006-02-17 at 06:12 +0900, Ezra Zygmuntowicz wrote:
Ive switched from emacs to the new RadRails IDE as it is pretty slick
Dňa Utorok 21 Február 2006 16:38 Jon Baer napísal:
Just a thought - what about creating a VMware player appliance with all
This topic has been dead for a few days...how's the project coming?
On 3/24/06, Brandon Hines <brandonhines@gmail.com> wrote:
Good to hear that the project is alive and kicking!
On 3/26/06, Brandon Hines <brandonhines@gmail.com> wrote:
[#180213] Don't let this happen to Ruby, pleeeeease? — Glenn Smith <glenn.ruby@...>
This is quite a good article I just read via a link on artima (I think).
Glenn Smith wrote:
Sorry, posted my rant, then disappeared for two days!
Dňa Sobota 18 Február 2006 21:48 Glenn Smith napísal:
SWYgSSByZXByZXNlbnQgaGFsZiBvZiBSdWJ5J3MgdXNlcnMgKG90aGVyIFdpbmRvd3MgdXNlcnMg
Dňa Nedeľa 19 Február 2006 14:28 Glenn Smith napísal:
RGF2aWQgLSB3ZSBjYW4gc3RhcnQgYSBmbGFtZSB3YXIsIGFsbCByYXRoZXIgcG9pbnRsZXNzIGFu
On 2/16/06, Glenn Smith <glenn.ruby@gmail.com> wrote:> Sorry, bit of a late night rant from somebody who cares...>
[#180227] Re: pack("l"), 64 bit question — "Berger, Daniel" <Daniel.Berger@...>
[#180228] dot-product operators and strides for linear algebra — <jam5238-001@...>
Hi,
[#180233] cross-thread violation — "rakaur" <rakaur@...>
/usr/local/lib/ruby/1.8/monitor.rb:218: [BUG] cross-thread violation on
[#180276] Some error happends when I use SDL model.. — "CFC" <zusocfc@...>
Hi,
[#180280] metakoans.rb (#67) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
A most excellent quiz.
On 2/17/06, Ruby Quiz <james@grayproductions.net> wrote:
On Sat, 18 Feb 2006, Patrick Hurley wrote:
On 2/17/06, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:
On Sat, 18 Feb 2006, Patrick Hurley wrote:
On 2/17/06, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:
On 2/17/06, Wilson Bilkovich <wilsonb@gmail.com> wrote:
On 2/17/06, Jacob Fugal <lukfugl@gmail.com> wrote:
On Sat, 18 Feb 2006, Wilson Bilkovich wrote:
On 2/17/06, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:
I'm at 13
I also have 13; however, two lines exceed 80 columns. Additionally, I
To take the focus off number of lines, let's take a look at bechmarks.
On 2/18/06, Timothy Goddard <interfecus@gmail.com> wrote:
Ruby Quiz wrote:
Florian Gro<florgro@gmail.com> writes:
Here's mine, it's 8 one-liners of which one is randomly picked:
My solution follows - I think it's pretty straightforward. 16 lines
[#180284] Re: Python for Fortran Programmers — Stephan Mueller <d454d@...>
* Bil Kleb <Bil.Kleb@NASA.gov> [060217 11:32]:
On Sat, 18 Feb 2006, Stephan Mueller wrote:
* ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> [060217 16:22]:
* Stephan Mueller <d454d@web.de> [060218 18:52]:
[#180302] Fwd: [grammarians] First release of Rubyfront — mental@...
For those interested in things Ruby and grammatical, grammarian Xue
In article <1140197197.43f6074d686cd@www.rydia.net>, <mental@rydia.net> wrote:
[#180315] Re: getoptlong, getopt, parseopt, which one to use for command linetool? — "Berger, Daniel" <Daniel.Berger@...>
[#180323] Which GUI toolkit in Ubuntu? — "pesachzon" <evahlis@...>
Hi,
[#180354] Telnet question — "rolfedh@..." <rolfedh@...>
I'll ask the questions first, and then show the code and examples
[#180358] Ruby scripts as Win32-Service — "William Ramirez" <mercan01@...>
I've through together a ruby script as test for a monitoring app for a few
On 2/17/06, William Ramirez <mercan01@gmail.com> wrote:
On 2/17/06, Patrick Hurley <phurley@gmail.com> wrote:
On 2/17/06, William Ramirez <mercan01@gmail.com> wrote:> On 2/17/06, Patrick Hurley <phurley@gmail.com> wrote:> > You did "install" the service using win3-service right? (just asking)> Nope, I used the command sc.exe, which allows you to create services. I> didn't see the need to create an 'installer' just for testing purposes. I> browsed the win32-service documentation and it didn't appear to do anything> special with regards to service creation.
>Does win32-service do something special when creating a service that I'm
[#180359] define_method fun — Patrick Ritchie <pritchie@...>
Hi All,
Patrick Ritchie wrote:
[#180362] Desktop apps written in Ruby? — petermichaux@...
Hi,
On 2/17/06, petermichaux@yahoo.com <petermichaux@yahoo.com> wrote:
Thanks for the reply. From that QTRuby link "to create cross-platform
On Saturday 18 February 2006 01:08 pm, petermichaux@yahoo.com wrote:
Why not just build the front end of the app in a windows language
On Saturday 18 February 2006 02:21 pm, Scott Weeks wrote:
On 2/18/06, tsumeruby@tsumelabs.com <tsumeruby@tsumelabs.com> wrote:
On Sat, 2006-02-18 at 18:11 +0900, Gregory Brown wrote:
On 2/18/06, Tsume <tsumeruby@tsumelabs.com> wrote:
[#180420] Odd break behavior? — Thomas E Enebo <enebo@...>
Run the code snippet below:
[#180429] Understanding ruby? need help — bbqbaker <none@...>
I hi,
Chris Pine <chris@pine.fm> wrote:
[#180430] best way to use (exploit) mailing list. — John Maclean <info@...>
hey Chaps,
[#180450] Hello, and a question about finding a defined Class from C — "Jacob Repp" <jacobrepp@...>
First of all I would like to say Hello! I am new to Ruby programming
Jacob Repp wrote:
It's not that simple. For example:
Jacob Repp wrote:
[#180456] Gtk and root window — Eustaquio Rangel de Oliveira J <eustaquiorangel@...>
Hi!
[#180462] PStore bug "Marshal data too short" — Javier Valencia <jvalencia@...01.org>
Is there any solution to the "Marshal data too short" in pstore?
Hi,
[#180475] Mongrel 0.3.5 -- Rails/CGI Actually Works — Zed Shaw <zedshaw@...>
This release of Mongrel features a CGIWrapper that actually works. The
[#180487] maximum number of module methods? — Suraj Kurapati <skurapat@...>
-----BEGIN PGP SIGNED MESSAGE-----
On Feb 18, 2006, at 1:54 PM, Suraj Kurapati wrote:
-----BEGIN PGP SIGNED MESSAGE-----
-----BEGIN PGP SIGNED MESSAGE-----
On Sun, 2006-02-19 at 13:58 +0900, Suraj Kurapati wrote:
-----BEGIN PGP SIGNED MESSAGE-----
[#180506] lazy.rb 0.9.5 -- transparent futures! — MenTaLguY <mental@...>
I'd like to announce a new version of lazy.rb -- this one offering
On Feb 18, 2006, at 7:07 PM, MenTaLguY wrote:
Quoting James Edward Gray II <james@grayproductions.net>:
Hah! Awesome mental, I was going to be implementing something like
On Tue, 2006-02-21 at 16:00 +0900, Daniel Nugent wrote:
I must've misread the code (or misunderstood something)....
On Wed, 2006-02-22 at 04:01 +0900, Daniel Nugent wrote:
Actually, now I'm not so sure that I read that part either....
On Sun, 19 Feb 2006 10:07:12 +0900, MenTaLguY <mental@rydia.net> wrote:
On Tue, 2006-02-21 at 17:33 +0900, Andrew Johnson wrote:
MenTaLguY wrote:
On Wed, 2006-02-22 at 06:49 +0900, Jim Weirich wrote:
MenTaLguY wrote:
Le 21 f騅r. 06, 21:55, Jim Weirich a 馗rit :
Guillaume Marcais wrote:
On Wed, 2006-02-22 at 15:27 +0900, Jim Weirich wrote:
MenTaLguY wrote:
Jim Weirich wrote:
Sorry for newbie question. I tried to install lazy only to fail:
[#180512] Shameless Hype for Ruby Stuff Goodness — James Britt <james_b@...>
[#180518] installing Tk for Ruby on OS X — petermichaux@...
Hi,
[#180535] Ruby Method Lookup Flow — "Phrogz" <gavin@...>
I sat down to diagram Ruby's object model in something better than
[#180549] If statement and if modifier not equivalent? — Mark James <mrj@...>
I was under the impression that the if modifier and the
On Sunday 19 February 2006 12:08, Mark James wrote:
On 2/19/06, Mark James <mrj@bigpond.net.au> wrote:
On 2/19/06, Garance A Drosehn <drosihn@gmail.com> wrote:
[#180580] Some error for Tk. — "CFC" <zusocfc@...>
Hi.
[#180585] Classes and OO design - help — Tony Mobily <merc@...>
Hello Everybody,
Dňa Nedeľa 19 Február 2006 17:19 Tony Mobily napísal:
Hi David,
[#180589] Finding out if a Mysql database contains a certain table — ngw <nicholas_wieland@...>
Hi *,
[#180598] meta_parse: my first metaprogram — "Edgardo Hames" <ehames@...>
Hi guys,
[#180601] Pandora Early Beta Program — "Julian I. Kamil" <julian.kamil@...>
I am happy to announce the Pandora Early Beta Program which will allow
[#180602] Excel file modification without win32ole — Julius de Bruijn <pimeys@...>
Greetings,
[#180609] metakoans.rb (#67) — MenTaLguY <mental@...>
I've got two.
Here's my solution: Took me about 15 minutes to solve the koans. I agree
[#180611] Sodoku-Generator — Meino Christian Cramer <Meino.Cramer@...>
Hi,
[#180639] GC Bug? Ruby 1.8.4 core dumps on a very small extension — "Danie Roux" <danie.roux@...>
Hi all,
[#180659] How to pass a group of arguments? — "anne001" <anne@...>
I want to use a function which expects three arguments
On Feb 20, 2006, at 2:18 AM, anne001 wrote:
Thank you for your responses. The error does go away. I can't find a
It is 'splained on p.80, "Variable-Length Argument Lists."
[#180671] \n on windows? — "Alex Combas" <alex.combas@...>
improper output:irb(main):034:0> YAML::dump m=> "--- !ruby/object:MailTruck \ndriver: Harold\nroute: \n- 12 Corrigan Way\n- 23 Antler Ave\n"irb(main):034:0>
[#180687] can not access constants from Time module — "akbarhome" <akbarhome@...>
Hi,
[#180688] Class variables and Constants — Tony Mobily <merc@...>
Hello people,
Dear Tony,
[#180689] Whats the difference of ActiveRuby and "regular" Ruby install — "Joey S. Eisma" <jeisma@...>
hello!
First things first: there's an ActiveRuby?! Well, not that noone saw it coming
[#180698] How can I search value from xml — "Artit Satanakulpanich" <rubybox@...>
How can i search value from xml file such as I want to find from *pubdate *=
Artit Satanakulpanich wrote:
[#180709] dirty ranges — dvandeun@... (Dirk van Deun)
I'm a new Ruby user (currently at page 68 of Programming Ruby !) and
dvandeun@vub.spam-me-not.ac.be (Dirk van Deun) writes:
[#180711] I'm SYCKened by the SYCK tutorial I found — Asfand Yar Qazi <ayZIG0106@...2sZIG.com>
I am SYCK with disgust...
[#180717] Class instance variables, class variables and constants — Tony Mobily <merc@...>
Hello,
[#180742] can't convert String into Integer — pere.noel@... (Une b騅ue)
i have a hash like that :
[#180744] Making my internal speaker beep — Matt Ramos <matt.ramos@...>
Hello. I'm trying to execute a beep on my computer with ruby as an
[#180755] Re: DB2 Driver on RHEL 4 x86_64 — "Berger, Daniel" <Daniel.Berger@...>
> -----Original Message-----
[#180758] openssl library? — Jonathan Leighton <lists@...>
Hi,
[#180780] perl equiv. — Tom Allison <tallison@...>
I'm looking for something equivelant to the perl modules:
[#180800] can opengl work with an object method? — "anne001" <anne@...>
I started with robot.rb in the sample folder of opengl-0.32g
[#180801] Newbie: need suggestion for "the ruby way" — "kiol" <yanping.jia@...>
I write some code for generate file index for a directory.like this:
[#180811] ANN: Second drop of RubyCLR bridge — "John Lam" <drjflam@...>
This is a much more complete drop of the bridge:
On 2/20/06, John Lam <drjflam@gmail.com> wrote:
>> Any idea if this will, or will be capable of working with mono?
On 2/20/06, John Lam <drjflam@gmail.com> wrote:
[#180869] How can I evaluate and visualize code instead of running it. — "anne001" <anne@...>
I am using a tree and traversing down a tree to generate opengl code
[#180876] Using RMagick to extract IPTC data from JPEG file — "J駻駑y" <jeremy.chatard@...>
Hi all,
Before sending you an image, I want to try by myself :)
RMagick simply provides an interface to the ImageMagick API. The doc
It's Ok, I've just found it!
[#180880] Question about String.unpack — Eric Jacoboni <jaco@...>
Hi,
[#180881] "exporting" module methods — Xavier Noria <fxn@...>
Is there standard idiom to add module methods to classes that mixin
On 2/21/06, Xavier Noria <fxn@hashref.com> wrote:
[#180885] FILE test — "raving_ruby_rider" <ernest.micklei@...>
I noticed that a lot of scripts apply the following coding pattern:
You will see this sort of thing in other scripting languages. __FILE__
[#180889] Blocks / Closures — Picklegnome <picklegnome@...>
I've just been looking into Ruby in the last few days, and I must say it
[#180890] Ruby Murray - Sub::Curry on Ruby Acid — Ross Bamford <rossrt@...>
Ruby Murray, a Ruby port of Perl's Sub::Curry (with added Ruby
[#180930] need: hierarchic data structure — "henon" <meinrad.recheis@...>
hi,
[#180934] need for threads — tony summerfelt <snowzone5@...>
a discussion of tcl threads came up in that newsgroup.
[#180974] Re: Eating CPAN - Was Port A Library. — "Molitor, Stephen L" <Stephen.L.Molitor@...>
On 2/20/06, Edgardo Hames <ehames@gmail.com> wrote:
[#181018] Syntax questions — listrecv@...
A few simple syntax questions:
[#181019] Xpath to attributes — listrecv@...
Is there anyway to do generic xpath's, for both elements and attributes
[#181027] rubynuby - client side Ruby? — Jeff Pritchard <jp@...>
I would like to be able to do client-side scripting things that in the
Hi,
On Wed, Feb 22, 2006 at 12:45:09PM +0900, Jeff Pritchard wrote:
Gregory Seidman wrote:
[#181047] trouble with rexml — hongseok.yoon@...
I read XML file using REXML.
[#181048] How to develop on OS X + debugger problems — dirk.dittert@... (Dirk Dittert)
Hi,
[#181064] A regexp for an include? method — "Boucher, Eric" <eric.boucher@...>
Hi,
[#181071] New to OOP and Abstract Session Pattern — Tony Mobily <merc@...>
Hello people,
Tony Mobily wrote:
[#181077] How to evaluate file as Ruby code? — u235321044@... (Ronald Fischer)
How do I evaluate a text file as a sequence of Ruby statements?
[#181083] A small refractory problem — James Byrne <byrnejb@...>
I have this code:
On Wed, 2006-02-22 at 23:48 +0900, James Byrne wrote:
[#181100] puts behaviour — James Byrne <byrnejb@...>
I have a number of "puts" in my testcase file. When I run my test
[#181124] 'why ruby?' presentations — ara.t.howard@...
[#181134] install problem:: rdoc/ruport from gem — "jansenh" <henning.jansen@...>
Hi group. More newbie stuff...
[#181153] Dynamic code generation and linking — Benjohn Barnes <benjohn@...>
I'm very interested in being able to dynamically generate, compile,
[#181155] Converting a string to a class — Anthony DeRobertis <aderobertis@...>
Take the following snippet:
Gregory Brown wrote:
[#181162] Re: [ANN] lazy.rb 0.9.5 -- transparent futures! — "Daniel Sheppard" <daniels@...>
You can just do
table_name = "CUSTOMERS"
[#181181] Mr. Guid 0.2 (Cross-platform Ruby GUI Debugger) — "mitchell" <ffsnoopy@...>
Mr. Guid 0.2 is a milestone release because it can now be run on both
Sorry all, I am having some instability issues in the windows version I
Okay, my experiments show that TCP in the Windows version of Ruby
[#181186] Re: Rubuntu LiveCD I need vim/emacs configs! — Peña, Botp <botp@...>
On Behalf Of Pistos
[#181193] ruby on gumstix — Joel VanderWerf <vjoel@...>
[#181210] compiling c program using rb_eval_string() — hongseok.yoon@...
I tried to call rb_eval_string(), so I wrote simple C code.
[#181222] Ruby/Tk : Accessing a Checkbox — u235321044@... (Ronald Fischer)
How can I find out whether a Checkbox is checked or unchecked in Ruby?
[#181224] Ruby as First Language — "woodyee" <wood_yee12@...>
Hi! I'm interested in getting opinions on Ruby as a first language. For
Gene Tani wrote:
But more importantly, *should* Ruby be a first language taught, period?
On 2006-02-23 13:55:44 -0500, "Glen" <glen_ap@yahoo.com> said:
I think they should teach kids Lisp/Scheme, C, the Lambda Calculus,
On 2/24/06, Daniel Nugent <nugend@gmail.com> wrote:> I think they should teach kids Lisp/Scheme, C, the Lambda Calculus,> and computer organization at the exact same time.
woodyee wrote:
My order was Quick BASIC, then C++, PHP, then Ruby. I found the
On Sat, Feb 25, 2006 at 08:13:34AM +0900, Timothy Goddard wrote:
On 2/25/06, Gregory Seidman <gsslist+ruby@anthropohedron.net> wrote:> 1) Logo as a preteen, or AWK and/or Bourne shell scripting at any age> 2) C (second procedural language)> 3) Ruby, Python, Java, or C# (first OOP language)
[#181229] What's mean? global variables — "BlueFox" <blue_fox@...>
in test.rb
[#181261] Creating Ruby Classes from XSD? — "Justin Bailey" <jgbailey@...>
.NET ships with a tool that will generate classes directly from an XML
On Thu, 2006-02-23 at 18:32, Logan Capaldo wrote:
[#181268] Two Ruby threading questions — "codeslinger" <codeslinger@...>
Hi all,
[#181269] Q: How to initialize debugger's state when starting — "Dumaiu" <Dymaio@...>
Quick question:
PS:
[#181281] Help with Sha + Base64 for WSSE encoding. — Gregg Pollack <patched@...>
Hello there.
> 1. Create a random Nonce(or string)
[#181291] LibXML-Ruby 0.3.6 — Ross Bamford <rossrt@...>
LibXML-Ruby 0.3.6 is now available from Rubyforge. LibXML-Ruby is (as
Tried to install it under windows and it failed because I didn't have Zlib.
Strange, because ZLib *is* included in the one-click installer.
On Fri, 2006-02-24 at 21:00 +0900, Curt Hibbs wrote:
This is great news - does the library include bindings for libxslt as
[#181306] C Extensions not working on Windows XP 64 — Matt <mattcbro@...>
I can not for the life of me get even the simplest C extension example
[#181315] Huge performance gap — Alexis Reigel <mail@...>
Hi all
Alexis Reigel wrote:
E. Saynatkari wrote:
Stephen Waits wrote:
Here is a simple graph of performance by different platforms.
On 7/1/06, Reggie Mr <buppcpp@yahoo.com> wrote:
Austin Ziegler wrote:
2006/7/1, M. Edward (Ed) Borasky <znmeb@cesmail.net>:
On Sun, 2 Jul 2006, Robert Klemme wrote:
On 7/1/06, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:
Robert Klemme wrote:
Austin Ziegler wrote:
Reggie Mr wrote:
>
What tools exist for profiling Ruby?
Ruby has a built-in profiler. Fair enough, let's run it, it would be
Francis Cianfrocca wrote:
On 7/2/06, M. Edward (Ed) Borasky <znmeb@cesmail.net> wrote:
On 7/2/06, M. Edward (Ed) Borasky <znmeb@cesmail.net> wrote:
On May 12, 7:54=A0am, Roger Pack <rogerpack2...@gmail.com> wrote:
Vidar Hokstad wrote:
[#181316] Fwd: Launching Ruby scripts and the future of MVM — "Charles O Nutter" <headius@...>
I tossed this message off to the Ruby-core list about a month ago, and
On 2/23/06, gwtmp01@mac.com <gwtmp01@mac.com> wrote:> On Feb 23, 2006, at 6:20 PM, Logan Capaldo wrote:>> On Feb 23, 2006, at 5:42 PM, gwtmp01@mac.com wrote:>>> On Feb 23, 2006, at 5:05 PM, Charles O Nutter wrote:>>>> I tossed this message off to the Ruby-core list about a month ago,>>>> and sent a follow-up email today. The basic idea is that if there>>>> were a Kernel#run_script method or similar, all Ruby apps that want>>>> to launch external scripts could do so in a platform and>>>> implementation-independent way.>>> In what way is what you are proposing different from Kernel#system?>> system(x) # x is arbitrary shell command>> run_script(x) # x is guaranteed to be a script written in ruby>>>> This means for instance, that run_script could get away with not>> forking a new process, but rather just a new ruby VM assuming that>> the ruby implementation had that capability> You already have coroutines, threads, fork/exec, system, and load/> require all of which give you different ways to manage multiple> threads of control and/or interpret external ruby code.
> > You already have coroutines, threads, fork/exec, system, and load/
[#181344] ruby-gnome2/gtk error on mac — john k <jkosch@...>
I'm running Ruby 1.8.4 (installed via darwinports) on OS 10.4 with gtk
[#181376] Everything's an object, right? — "Nathan Morse" <nmorse@...>
I was talking to a coworker today about the Ruby, and we were
[#181387] Tk horizontal scrollbar infinite loop — "Chris" <calfeld@...>
Hi,
From: "Chris" <calfeld@math.utah.edu>
From: Chris Alfeld <calfeld@math.utah.edu>
> Do you mean that 1.8.4 has no problem? Or still has the problem?
[#181410] 'mailread' considered dangerous ? — "Martin S. Weber" <Ephaeton@...>
Hoi rubyists,
[#181420] Current Temperature (#68) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
Ruby Quiz wrote:
[#181440] Noob: Building Yarv 0.4.0 — Greg Zoller <gzoller@...>
Apologies if this is posed in the wrong forum...
[#181459] Subversion ruby bindings for win32 — Luis Lavena <luislavena@...>
Already have tried contact subversion ppl, all without luck.
[#181480] select() — misiek <michaelaugustyniak@...>
I got for now this code html
[#181513] Inconsistent Behavior Converting String to Integer/Float — Daniel Harple <dharple@...>
$ruby-yarv -v
[#181542] FasterCSV 0.1.6 -- With Header Support! — James Edward Gray II <james@...>
FasterCSV 0.1.6 Released
On 2/25/06, James Edward Gray II <james@grayproductions.net> wrote:
On Feb 25, 2006, at 7:22 PM, Gregory Brown wrote:
On 2/27/06, James Edward Gray II <james@grayproductions.net> wrote:
On Feb 27, 2006, at 12:21 PM, Gregory Brown wrote:
Hi James,
Thanks for this James, this is really great! We replaced n partial csv codebase with FasterCSV
On Feb 28, 2006, at 8:21 PM, zdennis wrote:
Hi James,
On Mar 10, 2006, at 12:33 PM, Sky.Yin@gmail.com wrote:
Sorry for the confusion, the tests run fine from command line. The
[#181548] N00b request help with scaffold- undefined method 'body=' error — na <na@...>
Hey guys,
[#181550] QtRuby install — "Mark Volkmann" <r.mark.volkmann@...>
I'd like to evaluate using Qt with Ruby. I've downloaded and installed
This is what I have met on My Mac(Tiger 10.4.5).
[#181563] Memory Question — zdennis <zdennis@...>
I am doing some large queries with Mysql and the memory that gets allocated never seems to go back
[#181565] ruby-oci8 0.1.14 — KUBO Takehiro <kubo@...>
ruby-oci8 0.1.14 is released.
[#181567] 'require' does not work under mod_ruby — "Frantisek Fuka" <fuxoft@...>
When using: "require 'engine.rbx'" under mod_ruby, I get "File does not
[#181573] Current Temperature (#68) — "semmons99@..." <semmons99@...>
# Author: Shane Emmons
[#181602] Scope of constants in instance_eval — "Phrogz" <gavin@...>
I'm writing a DSL, and I want to use some constants. To be clean, I
[#181621] ruby vtk bindings — horndude77@...
I'm wanting to use ruby with VTK (http://public.kitware.com/VTK/).
[#181627] Thinking out of the box — Tsume <tsumeruby@...>
Time to get out of my little Linux/BSD/win2k3 comfort zone and make
From: Tsume <tsumeruby@tsumelabs.com>
On Mon, 2006-02-27 at 13:47 +0900, Hidetoshi NAGAI wrote:
On Mon, 2006-02-27 at 16:51 +0900, Tsume wrote:
[#181631] rdoc bug — Pistos Christou <jesusrubsyou.5.pistos@...>
To Whom It May Concern:
[#181632] Using attr_writer? — Joe <joe@...>
I'm confused about attr_writer. I thought it worked like this:
[#181635] RubyCocoa and DarwinPorts Ruby? — "John N. Alegre" <info@...>
Can anyone point me to potential problems with setting up a RubyCocoa
[#181662] Authenticating distributed Ruby — "Trejkaz" <trejkaz@...>
Hi all.
[#181667] Ruby Whitespace Semantics — Almann Goo <almann.goo@...>
Can someone please explain the semantics behind the following:
Almann Goo wrote:
"Hal Fulton" <hal9000@hypermetrics.com> wrote in message
[#181673] Curriculum for Teaching Ruby to C++ Professionals — Stephen Waits <steve@...>
Hi Rubyists,
[#181685] Ruby/Tk: How to access surrounding class from Tk Callback? — u235321044@... (Ronald Fischer)
Assume that I'm modelling a visible form, consisting of entry fields,
[#181689] Ruby path for SVN log XML -> HTML — Bil Kleb <Bil.Kleb@...>
So what's the Ruby way to go from
[#181690] string contains one of these??? — mikkel <mikkel@...>
Imagine,
[#181698] Re: Ruby Whitespace Semantics — "Jim Freeze" <jim@...>
Matz has said that
[#181710] Dynamic stuff and books — Mc Osten <riko@...>
I started using ruby a couple of weeks ago and it's time to make a couple
[#181725] Plugin type discovery/registration - How do I discover what classes were loaded when I dynamically require in ruby files from a directory? — "Jeff Barczewski" <jeff.barczewski@...>
In my current project I am in need of a standard plugin mechanism where I
[#181759] tar with ruby — Tomas Fischer <tomas_fischer99@...>
Hi,
[#181760] DRb and signals — mental@...
Using DRb appears to disable signal handlers in Ruby, at least in
[#181774] :-( — "Joe Van Dyk" <joevandyk@...>
Someone needs to make a "C++ for Ruby programmers" book. I'm getting
On Tue, Feb 28, 2006 at 10:12:22AM +0900, Joe Van Dyk wrote:
[#181787] Pine's book "Learning to Program" - Answer? — "woodyee" <wood_yee12@...>
Hi! I'm stuck on Chapter 5, 5.4:
You're close.
[#181800] Stack level too deep — marcus <m-lists@...>
I have a tree that I do recursion over the nodes (and then some
[#181812] Subclassing Struct.new — "Minkoo Seo" <minkoo.seo@...>
Hi group.
On 2/28/06, Minkoo Seo <minkoo.seo@gmail.com> wrote:
It works! Thank you.
On 2/28/06, Minkoo Seo <minkoo.seo@gmail.com> wrote:
Quoting chiaro scuro <kiaroskuro@gmail.com>:
On 2/28/06, mental@rydia.net <mental@rydia.net> wrote:
On 2/28/06, gwtmp01@mac.com <gwtmp01@mac.com> wrote:
Quoting chiaro scuro <kiaroskuro@gmail.com>:
Hi,
chiaro scuro wrote:
[#181813] Formatting to "Thousands" — "Barrie Jarman" <hscbaj@...>
A colleague of mine wishes to format a float to include commas at thousand
On Feb 28, 2006, at 5:08 AM, Barrie Jarman wrote:
[#181830] Iterators and Assigment — "Godspeed" <bl719293@...>
Consider...
[#181839] Same variable name used in block and local question — "rubyrus" <scriptfan@...>
Can anybody help me here, TIA!!
[#181877] OCI8 driver date "out of range" — "Carlos Diaz" <crdiaz324@...>
Hi all,
[#181879] Visual debuggers for Ruby — Asfand Yar Qazi <ayZIG0106@...2sZIG.com>
Hi,
[#181885] rcov 0.2.0 - code coverage tool for Ruby — Mauricio Fernandez <mfp@...>
Source code, additional information, screenshots... available at
Hi,
On Wed, Mar 01, 2006 at 01:31:11AM +0900, Mauricio Fernandez wrote:
On Tue, Mar 14, 2006 at 09:27:14AM +0900, David Holroyd wrote:
On Wed, Mar 15, 2006 at 02:23:04AM +0900, Mauricio Fernandez wrote:
On 3/14/06, David Holroyd <ruby-talk@badgers-in-foil.co.uk> wrote:
Re: Classes and OO design - help
Hi,
I am not sure if this is considered off-topic, but...
*** THANKS A MILLION *** !!!
Thanks to David, and to everybody else in this list.
Merc.
On 22/02/2006, at 5:25 AM, David Vallner wrote:
> Dňa Utorok 21 Február 2006 09:58 Tony Mobily napísal:
>>>>> Yes. This class could also store the data directory path and
>>>>> manage
>>>>> the
>>>>> lifecycle of Subscriber objects, reducing those to only data
>>>>> retrieval /
>>>>> caching.
>>>>
>>>> You mean with something like:
>>>> sub_container=SubscribersContainer.new()
>>>
>>> A particularly sick thing to do would be making
>>> SubscribersContainer a
>>> singleton and then delegate calls to the class object to the single
>>> instance.
>>> Not really useful though.
>>
>> I don't have enough experience in Ruby to even understand why you'd
>> do that, or when it would make sense to create singleton classes.
>> In fact: when does it make sense to mix a class with Singleton?
>>
>
> In this case? I'd do that to make the code horribly confusing while
> still
> being able to drop pattern names as an excuse. Pure malice ;)
>
> It would make sense to make singletons when you need to make sure
> there's one
> and only one object of a given class. Basically, they're the same
> as globals,
> except you can use encapsulation with them. In Java, they also save
> up a lot
> of typing "static" over and over in the long run, too (major
> feature *grin*).
> They also probably provide you with a little more flexibility in
> one case or
> another, can't imagine an example though.
>
>>>> sub_container['merc'].name="tony"
>>>>
>>>> ...?
>>>> When the method [](email) is called, the object
>>>> SubscribersContainer
>>>> would need to create a new object (if necessary), or return the one
>>>> already created at some point in the past. Is that right?
>>>
>>> I'd still keep the creation and loading as separate operations to
>>> avoid
>>> clobbering some data by mistake when thinking you're making a new
>>> record.
>>
>> Wooops... Maybe we had a misunderstanding here? I meant that
>> sub_container['merc'] would need to create a new *object* (of type
>> Subscriber) and link it to the file system. I wasn't thinking about
>> creating a new record on disk.
>> So, my question was: if each one of these calls:
>>
>> p sub_container['merc'].name
>> p sub_container['dave'].name
>> p sub_container['bridget'].name
>> p sub_container['anna'].name
>>
>> Allocates a Subscriber object in the collection, after 14000 I'd have
>> allocated 14000 Subscriber objects.
>>
>> Or maybe my understanding of containers is still far too poor to
>> follow you properly.
>>
>>> There are other ways to preventing that though, like providing a
>>> method to
>>> check whether a given record exists.
>>
>> OK.
>> Right now, I must admit I have no idea where I'd start creating a
>> container.
>>
>
> The Subscriber objects have to be allocated somewhere anyway, the
> difference
> is where you'd put what. 14000 elements isn't a particularly large
> data set
> anyway - with 150 bytes of data per record on average, this is
> about 2 MB in
> total.
>
> SubscriberContainer wouldn't necessarily be a real collection. But
> I'll let
> the code do the talking:
>
> class SubscriberContainer
> def self.[](email)
> sub = Subscriber.new
> sub.link_to(email)
> return sub
> end
> end
>
> Of course, you could use some weak array / hash or something like
> that to
> cache these objects. I haven't really worked with that though. In
> this case,
> it would even be recommendable, because two objects representing
> the same
> record would very probably lead to bugs because of the caching.
>
> For example if there's a record for "fred@flintstone.com" with an
> attribute
> "name" with the value "Fred Flintstone", you'd get:
>
> ff1 = Subscriber.new
> ff1.link_to "fred@flintstone.com"
>
> ff2 = Subscriber.new
> ff2.link_to "fred@flintstone.com"
>
> ff1,name # The value "Fred Flinstone" gets cached.
>
> ff2.name # Same as above.
>
> ff1.name = "Barney Rubble" # Value gets changed on disk and
> inside the ff1
> object.
>
> puts ff2.name # The ff2 object doesn't notice a change, and
> doesn't reread
> a cached value
>
> Only accessing the records per objects managed in the container
> would prevent
> this, because at most one Subscriber object would exist per record.
>
> On this spot, I'd probably think even more of using an ACID
> compliant database
> backend and a persistence layer to handle the nitty gritty details
> for you.
>
>>>> I am not sure why you say that this class would need the data
>>>> directory...!
>>>
>>> Well, I thought of this class providing the created Subscriber with
>>> the full
>>> record path and the e-mail address when creating the object. That
>>> way, you'd
>>> keep the what's stored where bit out of the Subscriber class.
>>>
>>> You could also determine / change the config file directory at
>>> runtime from a
>>> parameter to the application more intuitively
>>> (SubscriberContainer.new("/path/to/record/directory/") instead of
>>> hardcoding
>>> it or manipulating class variables), or even have several
>>> containers - even
>>> if this would probably be rarely useful.
>>
>> Very true.
>>
>>> Last, but not least, at least to me it makes more sense for the
>>> container to
>>> have the information where its contents are stored.
>>
>> You're completely right.
>> Now that I have a better understanding of scoping, this makes sense.
>>
>>>> Also, I wonder if accessing too many objects that way wouldn't
>>>> clutter the collection too much (the "real" number of
>>>> subscribers we
>>>> have is about 14000. I KNOW we need a DB. We didn't expect quite so
>>>> many. I am planning to switch to DB)
>>>
>>> You wouldn't have to actually store the retrieved object in the
>>> container
>>> after creation / loading, just have the container do this work and
>>> dumb down
>>> the Subscriber storage to data transfer and mutation, those being
>>> ignorant to
>>> as much context as possible.
>>
>> But this would surely mean that "Subscriber" is not really usable
>> without the container... wouldn't it?
>> (maybe that's not a problem?)
>>
>
> No, it's not a problem. The functionality provided would stay the
> same, just
> the responsibility for providing it would be split across the two
> classes.
> The fact a container class exists could be concealed to a lot of
> code using
> the subscriber objects.
>
> The point is keeping sets of related bits of code separated from
> each other as
> much as possible - we need only very little information from a
> Subscriber
> object to store a new value of a field of the object - only the id
> of the
> record (the e-mail address), the field name, and the new value.
> Therefore
> it's more concise to have a separate component with access to the
> minimum
> amount of information necessary to implement this operation.
>
>>>>> I'd say read through the Gang of Four and Refactoring,
>>>>
>>>> Woops... I've lost you here. Are you talking about one specific
>>>> book?
>>>> Or two books?
>>>
>>> Well, THE Refactoring book *cackle*. But Dave Cantrell already
>>> answered this
>>> perfectly. Gang of Four is a nickname of the four authors of the
>>> book. Not
>>> quite up-to-date as far as the patterns mentioned are concerned -
>>> there are
>>> already droves more that have been invented since. But I like the
>>> case study
>>> bit as an explanation that shows an example of quite a few of those
>>> applied
>>> in a single program.
>>
>> OK.
>> I find that a lot of these books apply to Java or C++. Is there a
>> Ruby Patterns book out there?
>> If not... well, it *should* exist!
>>
>
> I think someone made "translations" of the source code in these
> books to Ruby
> and announced that to the ML. Try searching the archives for it?
> The basic
> concepts are pretty much the same between the languages, except for
> a few
> differences in what "special" language features can be used to
> implement what
> patterns more efficiently than the "standard" ones.
>
>>>> @country=nil
>>>> @creation_date=nil
>>>> @name=nil
>>>> @password=nil
>>>> @postcode=nil
>>>> @premium_expiry_date=nil
>>>> @questionnaire_res=nil
>>>> @subscriber_code=nil
>>>> @subscriber_comments=nil
>>>
>>> This shouldn't be necessary. Reading uninitialized instance
>>> variables results
>>> in a nil by default.
>>
>> This is me being me. It's nice to know WHAT instance variables are
>> there. I'm an obsessive compulsive, you see :-)
>> OK, comments exists for that reason...
>>
>
> Hehe, I know that. I can't learn to omit the return keyword, even
> if it's
> actually slower, and on the other hand, can't make myself write
> parentheses
> when declaring a method without arguments...
>
> Oh, and I also do the assignment of nil thing, just not for
> variables I have
> accessors for.
>
>
>>>> # Set the value to nil. This is to reflect the
>>>> # "real" state of the variable (the file has just
>>>> been
>>>> # cleared up by the previous call)
>>>> #
>>>> begin
>>>> ios.print(value)
>>>> rescue SystemCallError
>>>> ios.close
>>>> return nil
>>>> end
>>>
>>> I'd merge this code block with the previous one, and possibly
>>> handle the
>>> exception somewhere else, reporting it to the user as a severe
>>> failure, and
>>> logging it. You could also use the block form of File::open here.
>>
>> OK.
>> I didn't have logging abilities in the object right now. I have no
>> idea where to start, with that.
>
> Print to STDERR? You might check how your webserver works and if
> you can
> integrate into that.
>
>> I also divided the block in two, because in the second half of the
>> code I close the file if there was a problem.
>> I can see that with the "block" in File::open I can do everything at
>> once...!
>>
>> So, the function has become:
>>
>> def set_field(field,value)
>>
>> return nil if ! @email
>>
>> # Open the file
>> #
>> begin
>> File::open(self.full_path+field.to_s,"w") do
>>
>> |ios|
>>
>> ios.print(value)
>> end
>> rescue SystemCallError
>> raise
>> return nil
>> end
>> value
>>
>> end
>>
>
> I think you can actually omit the begin / rescue / end here. The
> "return nil"
> is never reached. You can't both raise an exception and return from a
> function normally.
>
>>> You'd end up cluttering the code with checks for nil all the time,
>>> which is
>>> only proper if you expect the issue to appear during more-or-less
>>> regular
>>> operation; e.g. for calls where a failure isn't abnormal.
>>
>> OK.
>>
>>> Same here as in the previous method, just let the SystemCallError
>>> pass up on
>>> the stack -it's probably not possible to gracefully recover from it.
>>
>> OK.
>> I've just put "raise" there:
>>
>> def set_flag(flag,value)
>>
>> return nil if ! @email
>>
>> if(value)
>> begin
>> File.open(self.full_path
>> +flag.to_s,"w")
>> rescue SystemCallError
>> raise
>> end
>> return true
>> else
>> begin
>> File.delete(self.full_path
>> +fiag.to_s)
>> rescue SystemCallError
>> raise
>> end
>> return false
>> end
>> end
>>
>
> Same as above, you can as well let the call to File.open raise the
> exception
> for you, it's not necessary to do it explicitly.
>
>> Well, the only obscure bit now is how to make this "containable".
>> It's probably not necessary, because the class works well "as it is".
>> However...
>>
>
> Very true. The code as it is is likely to work well enough until
> you get a
> large enough codebase to warrant separating data storage and data
> access.
>
>> OK, I am assuming that to make the container, basically I would have:
>>
>> * A class called "SubscribersContainer". This class would have the
>> methods "country=", country(), and so on; those methods would all use
>> the methods set_field and get_field, NOT implemented in the container
>>
>> * A class called SubscriberFS (which I have), which would ONLY
>> implement get_field, set_field, get_flag, set_flag. These methods
>> will be used by the container to do the "real" work
>>
>> * I could also have a class called SubscribersDB, which would do the
>> same things but connecting to a database
>>
>
> Actually, I meant the naming the other way around. Subscriber would
> access the
> data, and the container would represent the backends - the roles of
> the
> respective objects stay the same. You'd have a single Subscriber
> class, and
> then a separate FSContainer and a DBContainer, that would implement
> the
> specifics of writing the data into the backends.
>
> Something like (excerpts):
>
> class Subscriber
> def initialize(container)
> @container = container
> end
> def get_field(field)
> container.get_field(@email, :field)
> end
> # Etc. for #set_field, #get_flag, #set_flag
> end
>
> class FSContainer
> def get_field(email, field)
> # Find respective file, read it, return what's inside.
> end
>
> # Create a new Subscriber stored in this container.
> def self.[](email)
> sub = Subscriber.new(self)
> sub.email = email
> return sub
> end
> end
>
> class DBContainer
> def get_field(email, field)
> # Connect to the DB and get the needed data from it.
> end
> end
>
> My assumption is that most of the time, you need to manipulate the
> data in the
> Subscriber records without caring how or where they are stored. For
> creation
> of new records, you could set a "default" container to use for that in
> initialization
>
> Or possibly make a "container of containers" - when looking for an
> existing
> record, this one would search the two "real" ones, and when
> creating a new
> record, use the default one. This way you'd completely contain the
> way the
> records are stored in the backends from the creation / loading of
> records -
> the operations you commonly need would be the same code no matter what
> backend is used.
>
> In the latter case, better names for classes would be Subscriber,
> SubscriberFactory, FSStorage, DBStorage. The SubscriberFactory
> would be the
> mentioned "container of containers", a class responsible for the
> creation and
> finding of Subscribers.
>
>> However, I have so many questions in this case... For example,
>> SubscribersDB would need far more information than just a path (like
>> SubscribersFS). Where would this information be stored? What if it
>> changed?
>
> Given my proposed design, of course, the DBStorage would need
> information how
> to connect to a database, and about its layout. However, the
> subscribers
> would still remain uniquely identified by their e-mail addresses, and
> DBStorage would implement the same operations the Subscriber class
> needs from
> its storage object as FSStorage, just using DB access instead of
> file access.
>
> Mind you, I'd only use this specific approach if, and only if you
> really need
> to support both the backends at once, and only for few classes.
> Otherwise,
> you'd need to eventually connect each data class with each backend
> using a
> separate backend, which would be really messy, or have to implement
> a generic
> storage adapter for any type of record, which would be complicated,
> and
> probably has already been done for SQL DBs. Of course, code based
> on very
> similar concepts could be handy when migrating the data between
> backends.
>
>> And what would actually *happen* when I did Subscriber
>> ['merc2@mobily.com'].name="Tony", data-wise?
>>
>
> Well, supposing the record doesn't exist already:
>
> - The call to Subscriber::[] (SubscriberFactory::[] in the naming
> I proposed
> earlier) would use FSStorage or DBStorage to find a record for
> "merc2@mobily.com". (Using a method named like BlahStorage#include? or
> similar.)
> - This would fail (the record doesn't exist), so the
> SubscriberFactory would
> create a new Subscriber object for this e-mail, using the default
> storage to
> handle it (let's say it's DBStorage)
> - SubscriberFactory::[] returns this new Subscriber object - I'll
> name it
> "subscriber" below
> - The call to subscriber.name = "Tony" delegates to
> subscriber.set_field(:name, "Tony")
> - subscriber.set_field(:name, "Tony") calls
> @storage.set_field("merc2@mobily.com", :name, "Tony")
>
> (The last two steps could be merged into one, but the call to
> set_field would
> have to be changed in all the setters. Using this middle-man is the
> lazy way
> out.)
>
> The last method is probably implemented as something like:
>
> class DBStorage
> def set_field(email, field, value)
> # db is the database connection
> db.execute(
> "UPDATE subscribers
> SET subscribers.#{field.to_s} = ?
> WHERE subscribers.email = ?",
> value, email)
> end
> end
>
>
>
>> I feel I am out of my leagues here.
>>
>
> Patience, young grasshopper. (Even if it's more likely you're older
> than
> me :P)
>
>>
>> If you have time, David (or anybody else), I would love it if you
>> could write a basic skeleton for the two classes - something that
>> would make me understand what goes where.
>> However, I feel I am abusing of your time. So... let's say that I'm
>> not expecting it!
>>
>
> Maybe when I remember this in daytime to get my mind off Java at
> work for a
> little while, I have enough coding Ruby in my free time on a side
> job...
>
> David Vallner