[#187137] DO NOT USE JAVA BECAUSE IT IS NOT OPEN SOURCE — atbusbook@...

Programing Languiges Are Ment to be free. That is why i am starting The

15 messages 2006/04/01

[#187149] ruby-dev summary 28274-28600 — APURI Furuhashi <afuru@...>

Hi all,

16 messages 2006/04/01

[#187194] Ruby Goes to the Sun — James Britt <james_b@...>

I've not seen this translated anyplace, but the Japanese Ruby site has

13 messages 2006/04/01

[#187228] Dynamic code generation — "Thiago Arrais" <thiago.arrais@...>

I have been trying to do some simple dynamic code generation in Ruby.

12 messages 2006/04/01

[#187230] %w{tomato cheese ham pineapple}.join(', ', ' and ') — Benjohn Barnes <benjohn@...>

=> 'tomato, cheese, ham and pineapple'

15 messages 2006/04/01

[#187263] Typed Parameters — "Robert Dober" <robert.dober@...>

Dear group

34 messages 2006/04/01
[#187279] Re: Typed Parameters — "Austin Ziegler" <halostatue@...> 2006/04/01

On 4/1/06, Robert Dober <robert.dober@gmail.com> wrote:> Dear group>> there was a recent thread about "Boolean" and it braught me to my> favorit thing I would love to have in Ruby2.>> *typed parameters*

[#187298] Re: Typed Parameters — "Trans" <transfire@...> 2006/04/02

<blockquote>

[#187313] Re: Typed Parameters — "Daniel Nugent" <nugend@...> 2006/04/02

Well, I think you should allowed to put a selective effect on the

[#187345] Re: Typed Parameters — "Robert Dober" <robert.dober@...> 2006/04/02

On 4/2/06, Daniel Nugent <nugend@gmail.com> wrote:

[#187371] Re: Typed Parameters — "Austin Ziegler" <halostatue@...> 2006/04/02

On 4/2/06, Robert Dober <robert.dober@gmail.com> wrote:> On 4/2/06, Daniel Nugent <nugend@gmail.com> wrote:>> Well, I think you should allowed to put a selective effect on the>> remaining arguments, but it should at least allow you to be a little>> smarter than simply checking one single Type. I'd like to see you>> able to check against multiple types as well as methods and>> combinations thereof, like>>>> def foo(arg1 : (Array and :custom_array_method) or Hash or>> :special_method)>>>> Then at least it's simply a syntactic convenience for writing>> respond_to? and kind_of? calls. And, logically, you should be able>> to assign these parameter checks to a variabe so you can reduce the>> duplication of them, although I don't have a clue as to what a good>> syntax for that would be... Maybe something like:>>>> type_check = TypeCheck.new do |var|>> case var>> when Array>> return true if var.respond_to? :custom_array_method>> when Hash>> return Hash>> else>> return true if var.respond_to? :special_method>> end>> return false>> end>>>> And, of course, you can do any checking you want in the block. You>> could then do this:>>>> def foo(arg1 : type_check)>> def bar(arg1, arg2 : type_check)

[#187567] Possible RubyQuiz idea — Hal Fulton <hal9000@...>

This might be too easy, it's JEG2's call.

17 messages 2006/04/04

[#187659] un_include and un_extend — "itsme213" <itsme213@...>

How do I un_include a module from a class/module, or un_extend a module from

13 messages 2006/04/04
[#187727] Re: un_include and un_extend — "itsme213" <itsme213@...> 2006/04/05

Thanks. Will 2.0 allow this?

[#187908] Re: un_include and un_extend — Yukihiro Matsumoto <matz@...> 2006/04/06

Hi,

[#187923] Re: un_include and un_extend — "Austin Ziegler" <halostatue@...> 2006/04/06

On 4/6/06, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:> In message "Re: un_include and un_extend"> on Wed, 5 Apr 2006 09:03:47 +0900, "itsme213" <itsme213@hotmail.com> writes:>| Thanks. Will 2.0 allow this?> No plan. Currently I have no reason to allow it.

[#187698] is GUI a weak point? — "greg.rb" <ghalsey@...>

Ruby seems pretty eash to code and understand. However, as a

43 messages 2006/04/04
[#187764] Re: is GUI a weak point? — "Michal Suchanek" <hramrach@...> 2006/04/05

On 4/4/06, greg.rb <ghalsey@yahoo.com> wrote:> Ruby seems pretty eash to code and understand. However, as a> non-professional programmer, I find GUI the hardest part so far.

[#187786] Re: is GUI a weak point? — "Mark Volkmann" <r.mark.volkmann@...> 2006/04/05

On 4/5/06, Michal Suchanek <hramrach@centrum.cz> wrote:

[#187770] Re: is GUI a weak point? — Hidetoshi NAGAI <nagai@...> 2006/04/05

From: "greg.rb" <ghalsey@yahoo.com>

[#187776] Re: is GUI a weak point? — "Carl Woodward" <cjwoodward@...> 2006/04/05

I am thinking about this problem at the moment. There are a lot of

[#187777] Re: is GUI a weak point? — azrael@... 2006/04/05

> There are plenty of others but one thing that I would like to see/like

[#187781] Re: is GUI a weak point? — Caleb Tennis <caleb@...> 2006/04/05

[#187792] Re: is GUI a weak point? — zdennis <zdennis@...> 2006/04/05

Caleb Tennis wrote:

[#187793] Re: is GUI a weak point? — azrael@... 2006/04/05

> > Using Rails and a web interface is a nice way to present data to an end

[#187798] Re: is GUI a weak point? — Randy Kramer <rhkramer@...> 2006/04/05

On Wednesday 05 April 2006 09:40 am, azrael@cream.org wrote:

[#187802] Re: is GUI a weak point? — "Chris Alfeld" <chris.alfeld@...> 2006/04/05

Cross platform GUIs is a very serious problem today and one without

[#187723] GPL v3 and Ruby License. — "Gregory Brown" <gregory.t.brown@...>

I went to MIT for the Free Software Foundation Associate members

34 messages 2006/04/04
[#187801] Re: GPL v3 and Ruby License. — "Austin Ziegler" <halostatue@...> 2006/04/05

On 4/4/06, Gregory Brown <gregory.t.brown@gmail.com> wrote:> I went to MIT for the Free Software Foundation Associate members> meeting last weekend. I asked Stallman the question of whether the> FSF planned to contact various individuals who were using dual> licenses and encourage them to participate in commenting on GPLv3.

[#187804] Re: GPL v3 and Ruby License. — "Gregory Brown" <gregory.t.brown@...> 2006/04/05

On 4/5/06, Austin Ziegler <halostatue@gmail.com> wrote:

[#187809] Re: GPL v3 and Ruby License. — "Austin Ziegler" <halostatue@...> 2006/04/05

On 4/5/06, Gregory Brown <gregory.t.brown@gmail.com> wrote:> On 4/5/06, Austin Ziegler <halostatue@gmail.com> wrote:>> On 4/4/06, Gregory Brown <gregory.t.brown@gmail.com> wrote:>> [...]

[#187820] Re: GPL v3 and Ruby License. — "Gregory Brown" <gregory.t.brown@...> 2006/04/05

I really didn't want to start a license flame war. I've responded

[#187829] Re: GPL v3 and Ruby License. — "Austin Ziegler" <halostatue@...> 2006/04/05

On 4/5/06, Gregory Brown <gregory.t.brown@gmail.com> wrote:> I really didn't want to start a license flame war. I've responded> below, but please keep in mind that my personal beliefs and my> pragmatic beliefs are somewhat disjointed, and that for the> community's sake, I'd always side with my pragmatic feelings.>> Meaning... when GPLv3 comes out, do we.>> a) Resist it by removing any "any later version" clauses from our> license agreements which use the license of ruby>> b) Embrace it and re-release code using GPLv3 and Matz's terms, but> make sure the FSF hears the voice of our community beforehand.>> c) Can it entirely and favor an established license such as the BSD> license.>> d) Draft up our own license, possibly with cartoon foxes.

[#187835] Re: GPL v3 and Ruby License. — "Gregory Brown" <gregory.t.brown@...> 2006/04/05

On 4/5/06, Austin Ziegler <halostatue@gmail.com> wrote:

[#187849] Re: GPL v3 and Ruby License. — "Austin Ziegler" <halostatue@...> 2006/04/05

On 4/5/06, Gregory Brown <gregory.t.brown@gmail.com> wrote:> On 4/5/06, Austin Ziegler <halostatue@gmail.com> wrote:[...]>>> Stronger is not necessarily better, of course. Stronger also can be>>> seen as 'more restrictive' by some. However, I do believe that>>> copyleft is not coercion because you cannot coerce someone through>>> licensing terms.>> That's a common misconception. One *can* coerce through licensing>> terms. If the choice is "my way or the highway", where the highway is>> extremely difficult, it's coercion. A lot of Libertarians I know>> would disagree me on this point, but they're also of the opinion that>> coercion can only come from physical force. The verb "coerce",>> however, is defined as: "To cause to do through pressure or>> necessity, by physical, moral or intellectual means". A licence can>> be coercion.> I'm an anarcho-capitalist. I guess that puts me in the dissenting> group on things like that. I believe that strong contracts that are> freely entered into can be upheld and can be used to support various> political and ethical goals.

[#187870] Re: GPL v3 and Ruby License. — "Michal Suchanek" <hramrach@...> 2006/04/05

On 4/5/06, Austin Ziegler <halostatue@gmail.com> wrote:> On 4/5/06, Gregory Brown <gregory.t.brown@gmail.com> wrote:> > On 4/5/06, Austin Ziegler <halostatue@gmail.com> wrote:> [...]> >>> I am mostly in favor of weak copyleft, in most pragmatic> >>> applications of licenses. Protect your source, ensure it will> >>> remain free software, ensure the license can't be buried under a> >>> proprietary license, etc. As far as linking and integrating with> >>> non-free software... i'd like to be an idealist and say it's evil...> >>> but of course, I wouldn't have a job if that were the case ;)> >> Something like the MPL. The problem is, with the way that the GPL is> >> written, the MPL is incompatible with it. This will not be changing> >> under GPLv3.> > I imagine I must be the FSF's "most loving critic". I do love these> > guys and their ideas, but I don't love the vagueness and rhetoric they> > are prone to:>> Yeah. That's Stallman through and through. I was one of the ~300 or so> folks heavily involved in the discussion list about the MPL back in the> day, and I got into some arguments with Eben Moglen about the whole> thing when the FSF was trying to get Netscape to *solely* use the GNU> GPL. (I consider the day that the Mozilla Foundation relicensed> everything as MPL and GNU GPL as a net loss for quality open source.)>> The problem is entirely in the GNU GPL's wording preventing further> restrictions on the code. Here's a gedankenexperiment:>> * Create a copyleft licence patterned after the GNU GPL (make it the> GNU GPL without the propaganda). Call it the ASCL (Austin's Strong> Copyleft Licence). Add one additional term that enforces your right> to be known as the author of a work (this is *not* the advertising> clause from the original BSD, mind you). The ASCL is incompatible> with the GNU GPL.>> The GNU GPL requires that your licence have a *subset* of restrictions> that the GNU GPL provides. It is not even clear if the GNU GPL would be> compatible the ASCL even if the additional term were removed. However,> even *one* additional restriction, no matter how reasonable, renders> your licence wholly incompatible with the GNU GPL.>> It's nonsense, and it could be fixed pretty easily.>

[#187822] what are sympbols?!? — Alain <mantat@...>

Hi, simple question here but I cant figure it out after reading the Ruby

11 messages 2006/04/05

[#187851] Rake: Making "cleanup" task — Pistos Christou <jesusrubsyou.5.pistos@...>

I'm just getting my feet wet with Rake, at least as far as running unit

18 messages 2006/04/05
[#187861] Re: Rake: Making "cleanup" task — Jim Weirich <jim@...> 2006/04/05

Pistos Christou wrote:

[#187954] Re: Rake: Making "cleanup" task — Pistos Christou <jesusrubsyou.5.pistos@...> 2006/04/06

Jim Weirich wrote:

[#188027] Re: Rake: Making "cleanup" task — Eric Armstrong <Eric.Armstrong@...> 2006/04/07

> Jim Weirich wrote:

[#188130] Re: Rake: Making "cleanup" task — Pistos Christou <jesusrubsyou.5.pistos@...> 2006/04/07

Eric Armstrong wrote:

[#188143] Re: Rake: Making "cleanup" task — "Austin Ziegler" <halostatue@...> 2006/04/07

On 4/7/06, Pistos Christou <jesusrubsyou.5.pistos@geoshell.com> wrote:> Eric Armstrong wrote:> >> Jim Weirich wrote:> > >>> Is this possible? If so, how? :)> > >>>> > Rake is just executing a ruby script, right?> >> > So what's wrong with coding an END block> > at the end of the script?> > (he asked, not yet having tried it, but> > wondering why it wouldn't work)>> Could you show some example code? I've never heard of this "END block"> thing. I thought __END__ in Perl made the interpreter stop and ignore> everything below that line.

[#187853] best practices — Jean-Charles Carelli <jnchrls@...>

I'm working my way through the Pickaxe book and I have a question

15 messages 2006/04/05

[#187920] String generalization — Peter Szinek <peter@...>

Hello all,

15 messages 2006/04/06

[#188004] Re: Archive::Tar uncompress question — "Berger, Daniel" <Daniel.Berger@...>

> -----Original Message-----

2 messages 2006/04/06

[#188057] win32ole with COM method taking two out refs — Adam Gardiner <adam.gardiner@...>

Hi,

20 messages 2006/04/07

[#188061] Markov Chains (#74) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

40 messages 2006/04/07
[#188068] Re: [QUIZ] Markov Chains (#74) — Charlie Bowman <charlie@...> 2006/04/07

I'm pumped! I've been reading this mailing list for the last 3 months

[#188074] Re: [QUIZ] Markov Chains (#74) — James Edward Gray II <james@...> 2006/04/07

On Apr 7, 2006, at 8:53 AM, Charlie Bowman wrote:

[#188098] Simple Question About Deleting Instances — Nathan Olberding <nathan.olberding@...>

I have a case where I'd like to delete an instance of a class I made

28 messages 2006/04/07
[#188099] Re: Simple Question About Deleting Instances — zdennis <zdennis@...> 2006/04/07

-----BEGIN PGP SIGNED MESSAGE-----

[#188103] Re: Simple Question About Deleting Instances — Nathan Olberding <nathan.olberding@...> 2006/04/07

> Some code would help. Saying: ...

[#188105] Re: Simple Question About Deleting Instances — "Mark Van Holstyn" <mvette13@...> 2006/04/07

I think you problems is in the report class. Each time you do report =3D

[#188108] Re: Simple Question About Deleting Instances — Nathan Olberding <nathan.olberding@...> 2006/04/07

Mark Van Holstyn wrote:

[#188110] Re: Simple Question About Deleting Instances — zdennis <zdennis@...> 2006/04/07

-----BEGIN PGP SIGNED MESSAGE-----

[#188115] Re: Simple Question About Deleting Instances — Nathan Olberding <nathan.olberding@...> 2006/04/07

zdennis wrote:

[#188120] Re: Simple Question About Deleting Instances — zdennis <zdennis@...> 2006/04/07

Nathan Olberding wrote:

[#188123] Re: Simple Question About Deleting Instances — Nathan Olberding <nathan.olberding@...> 2006/04/07

zdennis wrote:

[#188126] Re: Simple Question About Deleting Instances — zdennis <zdennis@...> 2006/04/07

Nathan Olberding wrote:

[#188131] Re: Simple Question About Deleting Instances — Nathan Olberding <nathan.olberding@...> 2006/04/07

zdennis wrote:

[#188137] Re: Simple Question About Deleting Instances — zdennis <zdennis@...> 2006/04/07

Nathan Olberding wrote:

[#188141] Re: Simple Question About Deleting Instances — Nathan Olberding <nathan.olberding@...> 2006/04/07

zdennis wrote:

[#188145] Re: Simple Question About Deleting Instances — zdennis <zdennis@...> 2006/04/07

Nathan Olberding wrote:

[#188149] Re: Simple Question About Deleting Instances — Nathan Olberding <nathan.olberding@...> 2006/04/07

zdennis wrote:

[#188151] Re: Simple Question About Deleting Instances — zdennis <zdennis@...> 2006/04/07

-----BEGIN PGP SIGNED MESSAGE-----

[#188169] Re: Simple Question About Deleting Instances — Nathan Olberding <nathan.olberding@...> 2006/04/07

zdennis wrote:

[#188176] Re: Simple Question About Deleting Instances — "Austin Ziegler" <halostatue@...> 2006/04/07

On 4/7/06, Nathan Olberding <nathan.olberding@gmail.com> wrote:> zdennis wrote:[...]> It's not so much that I feel strongly as much as that it perplexes me.> I guess I just wanted to make sure my meds haven't been replaced with> crazy pills.>> I thought of this, too: isn't it odd that you can define class> variables in a definition of how instances of a class should work, but> you can't define their accessors? It seems inconsistent. If it's> agreed that this is inconsistent, I'll post something to the site you> mentioned, but if it's that way for a reason, I'll just take your much> appreciated advice, learn that much more, and be that much less of a> newbie.

[#188179] Re: Simple Question About Deleting Instances — Nathan Olberding <nathan.olberding@...> 2006/04/07

Austin Ziegler wrote:

[#188190] Re: Simple Question About Deleting Instances — "Austin Ziegler" <halostatue@...> 2006/04/08

On 4/7/06, Nathan Olberding <nathan.olberding@gmail.com> wrote:> Austin Ziegler wrote:>> So using attr_accessor doesn't declare a variable; it declares a pair>> of methods that access and may instantiate a variable, but doesn't>> have to. And *that* is why doing "attr_accessor :@var" really>> wouldn't be appropriate.> I guess to put my question simply, why is there a single context in> which I can define class variables but not class methods (accessors> for these variables)? Shouldn't the two be handled in the same context> / scope / block / area-of-code?

[#188228] windows gurus i beseech you — ara.t.howard@...

12 messages 2006/04/08

[#188297] Dumb reflection problem - create object from String — Brian Parkinson <parkI@...>

Hello - I'm bashing my head against the wall - I'm sure this is a simple

9 messages 2006/04/09

[#188327] Ruby Grammar - "do" — Bihal <wmioch@...>

Hey everyone

14 messages 2006/04/10
[#188329] Re: Ruby Grammar - "do" — Eric Hodel <drbrain@...7.net> 2006/04/10

[#188330] Re: Ruby Grammar - "do" — Bihal <wmioch@...> 2006/04/10

Okay. My next question is then

[#188334] Re: Ruby Grammar - "do" — Jeff Coleman <progressions@...> 2006/04/10

Bihal wrote:

[#188335] Re: Ruby Grammar - "do" — Bihal <wmioch@...> 2006/04/10

Thanks Hal, that explains it.

[#188336] Re: Ruby Grammar - "do" — Bihal <wmioch@...> 2006/04/10

And Eric, sorry if I mislead you, by example code I meant any code I

[#188349] Adding in class attribute with a Module — kris <krisleech@...>

Is it possible to add class attributes (cattr_accessor) using a module?

26 messages 2006/04/10
[#188350] Re: Adding in class attribute with a Module — "Farrel Lifson" <farrel.lifson@...> 2006/04/10

Worked pretty much how I expected it to:

[#188355] Re: Adding in class attribute with a Module — dblack@... 2006/04/10

Hi --

[#188367] Re: Adding in class attribute with a Module — kris <krisleech@...> 2006/04/10

Thanks very much for all the examples. I think I need to clarify,

[#188386] Quick syntax question — Gregory Seidman <gsslist+ruby@...>

Consider the following three class definitions:

17 messages 2006/04/10
[#188395] Re: Quick syntax question — "Austin Ziegler" <halostatue@...> 2006/04/10

On 4/10/06, Gregory Seidman <gsslist+ruby@anthropohedron.net> wrote:> Consider the following three class definitions:>> class Foo> def self.bar> @@bar> end> def self.bar=(val)> @@bar = val> end> end>> class Foo> class << self> def bar> @@bar> end> def bar=(val)> @@bar = val> end> end> end>> class Foo> class << self> attr_accessor :bar> end> end>> Am I correct in believing that they are equivalent? If not, how do they> differ?

[#188476] Class Definition inside a method definition? — Bihal <wmioch@...>

I was under the impression that a class definition could not be inside a

24 messages 2006/04/11
[#188478] Re: Class Definition inside a method definition? — Bihal <wmioch@...> 2006/04/11

Thanks David. I'm not sure you caught sight of the line of code I was

[#188483] Re: Class Definition inside a method definition? — David Vallner <david@...> 2006/04/11

D=C5=88a Utorok 11. Apr=C3=ADl 2006 02:39 Bihal nap=C3=ADsal:

[#188486] Re: Class Definition inside a method definition? — Bihal <wmioch@...> 2006/04/11

Thanks for the explanation David, I'm sure it's close enough :P

[#188496] Re: Class Definition inside a method definition? — Bihal <wmioch@...> 2006/04/11

Hey guys,

[#188501] Re: Class Definition inside a method definition? — John Wilger <johnwilger@...> 2006/04/11

On Apr 10, 2006, at 9:46 PM, Bihal wrote:

[#188504] Re: Class Definition inside a method definition? — Bihal <wmioch@...> 2006/04/11

Sorry John, I didn't realise this was a mailing list as opposed to a

[#188615] Q about tk buttons — "Jeppe Jakobsen" <jeppe88@...>

Hi guys, I have a little problem with the buttons in tk. I want to add 1 to

12 messages 2006/04/11

[#188631] vim 7 ruby omni-complete v0.2 — Mark Guzman <segfault@...>

Thanks to some outside suggestions and contributions we now have another

17 messages 2006/04/12

[#188678] First script seems slow - What's a better way to write this? — Charlotte <c.f.curtis@...>

I've inherited a tcl script from previous co-op students, and it's a

19 messages 2006/04/12
[#188688] Re: First script seems slow - What's a better way to write this? — Peter Hickman <peter@...> 2006/04/12

As a side issue there is a tool to generate cross references in tcl

[#188696] Re: First script seems slow - What's a better way to write t — Charlotte <c.f.curtis@...> 2006/04/12

Thanks for the link. However, I forgot to mention that the reason I'm

[#188705] Re: First script seems slow - What's a better way to write t — ara.t.howard@... 2006/04/12

On Thu, 13 Apr 2006, Charlotte wrote:

[#188707] Re: First script seems slow - What's a better way to write t — Daniel Berger <Daniel.Berger@...> 2006/04/12

ara.t.howard@noaa.gov wrote:

[#188714] Re: First script seems slow - What's a better way to write t — "Mark Volkmann" <r.mark.volkmann@...> 2006/04/12

On 4/12/06, Daniel Berger <Daniel.Berger@qwest.com> wrote:

[#188791] Ruby Idioms (TextMate Bundle) — James Edward Gray II <james@...>

Just a short note here, for TextMate users. I've made my bundle of

14 messages 2006/04/13
[#188868] Re: [ANN] Ruby Idioms (TextMate Bundle) — Ezra Zygmuntowicz <ezmobius@...> 2006/04/13

[#188900] Refactoring (#75) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

9 messages 2006/04/14
[#189159] Re: [QUIZ] Refactoring (#75) — "Ilmari Heikkinen" <ilmari.heikkinen@...> 2006/04/17

On 4/14/06, Ruby Quiz <james@grayproductions.net> wrote:> The three rules of Ruby Quiz:>> 1. Please do not post any solutions or spoiler discussion for this quiz until> 48 hours have passed from the time on this message.>> 2. Support Ruby Quiz by submitting ideas as often as you can:>> http://www.rubyquiz.com/>> 3. Enjoy!>> Suggestion: A [QUIZ] in the subject of emails about the problem helps everyone> on Ruby Talk follow the discussion.>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=>> by Pat Eyler>> This week's quiz is a bit of a departure from the normal. Instead of submitting> different implementations of the same code, we'd like you to submit different> implementations of the same process -- Refactoring.>> Refactoring is the art of improving the design of existing code, without> changing it's functional behaviour. It is well documented in the book> 'Refactoring' by Martin Fowler, and on his website:>> http://www.refactoring.com>> The quiz this week is to submit refactorings of code you use -- whether your own> code, a library or application for RubyForge, or even something from the> Standard Library. Any submission should implement a refactoring from:>> http://www.refactoring.com/catalog/index.html>> or other citable sources, e.g.:>> http://kallokain.blogspot.com/2006/01/refactoring-extract-mixin.html>> Each Submission should follow this outline:>> Refactoring name (and citation if needed)> Original code> Explanation of the purpose and mechanics of the refactoring> New code> (optionally, unit tests created/used to verify the code)>> Submissions will be combined into an online catalog of Ruby Refactorings,> probably on the RubyGarden wiki.>>

[#188932] Google Summer of Code -- It's back — "Patrick Hurley" <phurley@...>

http://code.google.com/soc/

50 messages 2006/04/14
[#188934] Re: Google Summer of Code -- It's back — "pat eyler" <pat.eyler@...> 2006/04/14

On 4/14/06, Patrick Hurley <phurley@gmail.com> wrote:

[#188936] Re: Google Summer of Code -- It's back — dblack@... 2006/04/14

Hi --

[#188937] Re: Google Summer of Code -- It's back — Peter Szinek <peter@...> 2006/04/14

dblack@wobblini.net wrote:

[#189103] Re: Google Summer of Code -- It's back — Nicolas Kassis <nic.kassis@...> 2006/04/17

Peter Szinek wrote:

[#189176] Re: Google Summer of Code -- It's back — Gregory Seidman <gsslist+ruby@...> 2006/04/17

On Tue, Apr 18, 2006 at 12:34:49AM +0900, Nicolas Kassis wrote:

[#189183] Re: Google Summer of Code -- It's back — Jake McArthur <jake.mcarthur@...> 2006/04/17

I'm also eligible, and this is right up my ally. Would love to get

[#189194] Re: Google Summer of Code -- It's back — "Tanner Burson" <tanner.burson@...> 2006/04/18

On 4/17/06, Jake McArthur <jake.mcarthur@gmail.com> wrote:

[#189231] Re: Google Summer of Code -- It's back — "Patrick Hurley" <phurley@...> 2006/04/18

On 4/17/06, Tanner Burson <tanner.burson@gmail.com> wrote:

[#189232] Re: Google Summer of Code -- It's back — James Edward Gray II <james@...> 2006/04/18

On Apr 18, 2006, at 7:28 AM, Patrick Hurley wrote:

[#188935] Super-unstable Webrick on Windows 2000 — Bryan Duxbury <bryan.duxbury@...>

I'm using Ruby 1.8.4 on a Windows 2000 machine. When running anything

13 messages 2006/04/14
[#188939] Re: Super-unstable Webrick on Windows 2000 — Stephen Caudill <vox@...> 2006/04/14

Why not just use Mongrel[1]?

[#188941] Re: Super-unstable Webrick on Windows 2000 — James Britt <james_b@...> 2006/04/14

Stephen Caudill wrote:

[#188943] Re: Super-unstable Webrick on Windows 2000 — Bryan Duxbury <bryan.duxbury@...> 2006/04/15

Actually, I ran on 1.8.2 for a long time, too. The errors had exactly

[#188951] HighLine - examples for using "list" — "Sy Ali" <sy1234@...>

http://highline.rubyforge.org/doc/classes/HighLine.html

25 messages 2006/04/15
[#188959] Re: HighLine - examples for using "list" — Mike Stok <mike@...> 2006/04/15

[#188965] Re: HighLine - examples for using "list" — "Sy Ali" <sy1234@...> 2006/04/15

On 4/15/06, Mike Stok <mike@stok.ca> wrote:

[#188967] Re: HighLine - examples for using "list" — "Sy Ali" <sy1234@...> 2006/04/15

Ok, I played with it some more and it appears it won't do what I want.

[#188969] Re: HighLine - examples for using "list" — James Edward Gray II <james@...> 2006/04/15

On Apr 15, 2006, at 10:19 AM, Sy Ali wrote:

[#188971] Re: HighLine - examples for using "list" — "Sy Ali" <sy1234@...> 2006/04/15

On 4/15/06, James Edward Gray II <james@grayproductions.net> wrote:

[#188974] Re: HighLine - examples for using "list" — "Sy Ali" <sy1234@...> 2006/04/15

On 4/15/06, Sy Ali <sy1234@gmail.com> wrote:

[#188978] Re: HighLine - examples for using "list" — James Edward Gray II <james@...> 2006/04/15

On Apr 15, 2006, at 1:36 PM, Sy Ali wrote:

[#188984] Re: HighLine - examples for using "list" — "Sy Ali" <sy1234@...> 2006/04/15

On 4/15/06, James Edward Gray II <james@grayproductions.net> wrote:

[#188985] Re: HighLine - examples for using "list" — Mike Stok <mike@...> 2006/04/15

[#188987] Re: HighLine - examples for using "list" — James Edward Gray II <james@...> 2006/04/15

On Apr 15, 2006, at 5:00 PM, Mike Stok wrote:

[#189018] Re: HighLine - examples for using "list" — "Gregory Brown" <gregory.t.brown@...> 2006/04/16

On 4/15/06, James Edward Gray II <james@grayproductions.net> wrote:

[#189025] Re: HighLine - examples for using "list" — James Edward Gray II <james@...> 2006/04/16

On Apr 16, 2006, at 9:55 AM, Gregory Brown wrote:

[#188957] Bug: Requiring "breakpoint" causes the entire Rails framework to load. — "Alder Green" <alder.green@...>

Hi

11 messages 2006/04/15
[#188976] Re: Bug: Requiring "breakpoint" causes the entire Rails framework to load. — Florian Gro<florgro@...> 2006/04/15

Alder Green wrote:

[#188973] "Ruby for Rails" now available in PDF! — dblack@...

Hi everyone --

12 messages 2006/04/15

[#189058] Tattoo — "ruby talk" <rubytalk@...>

I want to get a tattoo of ruby code, but i just cant seem to find code

15 messages 2006/04/17

[#189118] Need to carry over application variable into RUBY script — Peter Bailey <pbailey@...>

I have an application that converts PDFs to individual EPS files. When

7 messages 2006/04/17
[#189120] Re: Need to carry over application variable into RUBY script — "Austin Ziegler" <halostatue@...> 2006/04/17

On 4/17/06, Peter Bailey <pbailey@bna.com> wrote:> I have an application that converts PDFs to individual EPS files. When> it does so, it creates a subdirectory with the same name as the original> filename and puts all of the resulting EPS files it creates into that> directory. Well, I have to do a lot of scripting and stuff on those EPS> files. To automate this, I need to know what the directory name is that> it put the files. The application provides a variable, "%2," just for> this purpose. I've gotten this %2 variable to work for me in cmd.exe.> But, I'd like it to work in RUBY. I'm sure it can be done. But, came> someone tell me how I can transfer this %2 variable from my application> to a Dir.chdir target?

[#189130] Re: Need to carry over application variable into RUBY script — Peter Bailey <pbailey@...> 2006/04/17

Austin Ziegler wrote:

[#189136] Re: Need to carry over application variable into RUBY script — "Austin Ziegler" <halostatue@...> 2006/04/17

On 4/17/06, Peter Bailey <pbailey@bna.com> wrote:> Austin Ziegler wrote:> > On 4/17/06, Peter Bailey <pbailey@bna.com> wrote:> >> I have an application that converts PDFs to individual EPS files. When> >> it does so, it creates a subdirectory with the same name as the original> >> filename and puts all of the resulting EPS files it creates into that> >> directory. Well, I have to do a lot of scripting and stuff on those EPS> >> files. To automate this, I need to know what the directory name is that> >> it put the files. The application provides a variable, "%2," just for> >> this purpose. I've gotten this %2 variable to work for me in cmd.exe.> >> But, I'd like it to work in RUBY. I'm sure it can be done. But, came> >> someone tell me how I can transfer this %2 variable from my application> >> to a Dir.chdir target?> >> > %2 is the 2nd argument on the command-line, so you just have to look> > for ARGV[2].> >> > It'd be interesting to find out what %1 is ;)> Thanks, Austin. So, do I do this?>> Dir.chdir(ARGV[2])> or this> Dir.chdir("ARGV[2]")?

[#189203] Google Summer of Code update — dblack@...

Hi --

13 messages 2006/04/18

[#189258] Is anyone doing serious dev using the one-click Ruby? — David Reynolds <dr-groups@...>

I'm getting started with Rails on Windows and really like the

8 messages 2006/04/18
[#189261] Re: Is anyone doing serious dev using the one-click Ruby? — "Austin Ziegler" <halostatue@...> 2006/04/18

On 4/18/06, David Reynolds <dr-groups@fantast.com> wrote:> I'm getting started with Rails on Windows and really like the> convenience of the one-click Ruby installer but the stable releases are> too few and far between -- only about once a year it seems -- which> means you get stuck with an old version of Ruby.> Is there an easy way to patch it while waiting between stable releases?> Or is the one-click version of Ruby just a convenient tool for newbies> on Windows and not recommended for serious Ruby development? (A few> things I've found that don't work have also given me this impression.)> If not the one-click installer, what? One of the other binaries for> Windows? Or is the problem endemic to all win32 binaries, and the best> course is to work on linux?

[#189263] ruby-ldap on Windows (built) — Chris Scharf <scharfie@...>

I have finally managed to build the ruby-ldap library for the Windows

34 messages 2006/04/18
[#189279] Re: ruby-ldap on Windows (built) — "Wilson Bilkovich" <wilsonb@...> 2006/04/18

On 4/18/06, Chris Scharf <scharfie@gmail.com> wrote:

[#189280] Re: ruby-ldap on Windows (built) — Chris Scharf <scharfie@...> 2006/04/18

Wilson Bilkovich wrote:

[#189285] Re: ruby-ldap on Windows (built) — Ian Macdonald <ian@...> 2006/04/18

Chris Scharf wrote:

[#189328] Re: ruby-ldap on Windows (built) — Ian Macdonald <ian@...> 2006/04/19

Ian Macdonald wrote:

[#189633] Re: ruby-ldap on Windows (built) — Ian Macdonald <ian@...> 2006/04/20

Ian Macdonald wrote:

[#189286] Publishing to rubyforge - is there a command line tool that accompanies the rubyforge publisher rake contrib task — "Jeff Barczewski" <jeff.barczewski@...>

I was trying to use the rake contrib task for publishing to Rubyforge, but

5 messages 2006/04/18
[#189289] Re: Publishing to rubyforge - is there a command line tool that accompanies the rubyforge publisher rake contrib task — "Austin Ziegler" <halostatue@...> 2006/04/18

On 4/18/06, Jeff Barczewski <jeff.barczewski@gmail.com> wrote:> I was trying to use the rake contrib task for publishing to Rubyforge, but> it seems to use a command line component to do the work (which I don't seem> to have :-) I believe this was contributed by Florian Gross. Does anyone> know where I get this extra piece to make this all work?>> What do people use to automate their uploads to Rubyforge? Is this publish> task the best way? I have many files to post each time.

[#189354] interested in metaprogramming? — "chiaro scuro" <kiaroskuro@...>

Hi, I have started writing a guide to metaprogramming called 'the way

19 messages 2006/04/19
[#189359] Re: interested in metaprogramming? — Mark Somerville <mark@...> 2006/04/19

On Wednesday 19 April 2006 09:37, chiaro scuro wrote:

[#189361] Re: interested in metaprogramming? — "chiaro scuro" <kiaroskuro@...> 2006/04/19

two people is already a crowd to me :-)

[#189366] Re: interested in metaprogramming? — Gregory Seidman <gsslist+ruby@...> 2006/04/19

On Wed, Apr 19, 2006 at 06:31:47PM +0900, chiaro scuro wrote:

[#189407] Is there an "in" operator in ruby ? — Dinesh Umanath <u_dinesh@...>

Hi all,

13 messages 2006/04/19

[#189423] Symbol#to_proc is just so beautiful — Daniel Schierbeck <daniel.schierbeck@...>

When is this ever getting into Ruby Core?

21 messages 2006/04/19
[#189449] Re: Symbol#to_proc is just so beautiful — Florian Gro<florgro@...> 2006/04/19

Daniel Schierbeck schrieb:

[#189500] Re: Symbol#to_proc is just so beautiful — John Johnson <johnatl@...> 2006/04/19

[#189448] Symbol#to_proc is just so beautiful — TRANS <transfire@...>

What would you think of:

20 messages 2006/04/19
[#189466] Gateway (was Re: Symbol#to_proc is just so beautiful) — Ross Bamford <rossrt@...> 2006/04/19

On Thu, 2006-04-20 at 04:02 +0900, TRANS wrote:

[#189477] Re: Gateway (was Re: Symbol#to_proc is just so beautiful) — Eric Hodel <drbrain@...7.net> 2006/04/19

On Apr 19, 2006, at 12:56 PM, Ross Bamford wrote:

[#189486] Array#each Looping Gotcha — Nathan Olberding <nathan.olberding@...>

I think I've found a gotcha. Really, it should be expected behavior, but

8 messages 2006/04/19

[#189505] Zero is true, but it isn't — John Johnson <johnatl@...>

I was wondering today, so I tried this:

12 messages 2006/04/19

[#189516] Re: Gateway (was Re: Symbol#to_proc is just so beautiful) — TRANS <transfire@...>

You guys have no sympathy for goodness sake! You want to dis the

12 messages 2006/04/20
[#189522] Re: Gateway (was Re: Symbol#to_proc is just so beautiful) — "Gregory Brown" <gregory.t.brown@...> 2006/04/20

On 4/19/06, TRANS <transfire@gmail.com> wrote:

[#189592] Converting IP range to array of IP's — Kris <krisleech@...>

I'm looking to convert an IP string (ranges, subnet masks or wild-carded

14 messages 2006/04/20

[#189703] Text Munger (#76) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

74 messages 2006/04/21
[#189708] Re: [QUIZ] Text Munger (#76) — =?ISO-8859-15?Q?Florian_Gro=DF?= <florgro@...> 2006/04/21

Ruby Quiz wrote:

[#189709] Re: [QUIZ] Text Munger (#76) — James Edward Gray II <james@...> 2006/04/21

On Apr 21, 2006, at 8:10 AM, Florian Growrote:

[#189712] Re: [QUIZ] Text Munger (#76) — "Dirk Meijer" <hawkman.gelooft@...> 2006/04/21

this quiz is probably easier than usually, as, for the first time

[#189714] Re: [QUIZ] Text Munger (#76) — Gregory Seidman <gsslist+ruby@...> 2006/04/21

On Fri, Apr 21, 2006 at 11:16:38PM +0900, Dirk Meijer wrote:

[#189753] Re: [QUIZ] Text Munger (#76) — Jake McArthur <jake.mcarthur@...> 2006/04/21

My first participation in Ruby Quiz, and it has to be easy. That

[#189756] Re: [QUIZ] Text Munger (#76) — "Ryan Leavengood" <leavengood@...> 2006/04/21

Strictly speaking, any Ruby code can be made into one line with

[#189767] Re: Text Munger (#76) — "Bill Kelly" <billk@...> 2006/04/21

From: "Andrew Johnson" <ajohnson@cpan.org>

[#189758] Newbie questoin of the day:A for loop that counts backwards? — MenDAKE <mendake_ddude@...>

How do I get a for loop to count backwards?

11 messages 2006/04/21

[#189900] How do threads and join work? — "Pat Maddox" <pergesu@...>

I'm reading the pickaxe and it says on p137 "When a Ruby program

20 messages 2006/04/23

[#189906] How to make an array from a date range? — "Marston A." <marston@...>

What is the easiest way in Ruby to make an array our of a date range?

13 messages 2006/04/23

[#189993] Ruby programs to learn from. — Jonathan uUttle <j.tuttle@4077.mash.org>

Hello,

13 messages 2006/04/23

[#190036] Squeak-like Ruby env — "Robert Feldt" <robert.feldt@...>

Hi,

23 messages 2006/04/24
[#190054] Re: Squeak-like Ruby env — "Ryan Leavengood" <leavengood@...> 2006/04/24

On 4/24/06, Robert Feldt <robert.feldt@gmail.com> wrote:

[#190080] Re: Squeak-like Ruby env — "Ilmari Heikkinen" <ilmari.heikkinen@...> 2006/04/24

Hi,

[#190144] Rake task dependeny vs. method call — TRANS <transfire@...>

In Rake, what's the signifficant difference between

19 messages 2006/04/25

[#190186] Ruby IDE — SleepJunk13 <SleepJunk13@...>

Is there a standard IDE out there that most people use? I'm looking at

40 messages 2006/04/25
[#190197] Re: Ruby IDE — "Ryan Leavengood" <leavengood@...> 2006/04/25

On 4/25/06, SleepJunk13 <SleepJunk13@gmail.com> wrote:

[#190207] Re: Ruby IDE — "John Gabriele" <jmg3000@...> 2006/04/26

On 4/25/06, Ryan Leavengood <leavengood@gmail.com> wrote:

[#190729] Re: Ruby IDE — Paul Legato <plegato@...> 2006/04/29

SleepJunk13 wrote:

[#190751] Re: Ruby & Emacs — Eric Armstrong <Eric.Armstrong@...> 2006/04/30

Hmm. The only thing that turned me off to Emacs was the

[#190311] Ruby for command line applications — Alan M <nospam@...>

Hi,

32 messages 2006/04/26
[#190312] Re: Ruby for command line applications — Jake McArthur <jake.mcarthur@...> 2006/04/26

Of course, you can expect a bias on this mailing list, but I will

[#190317] Re: Ruby for command line applications — James Edward Gray II <james@...> 2006/04/26

On Apr 26, 2006, at 4:31 PM, Jake McArthur wrote:

[#190368] from block to code (also: how to get the bindings of a block) — "chiaro scuro" <kiaroskuro@...>

Does anyone know how to convert a block to a string representation of

34 messages 2006/04/27
[#190793] Re: from block to code (also: how to get the bindings of a block) — Eric Hodel <drbrain@...7.net> 2006/04/30

On Apr 27, 2006, at 12:35 AM, chiaro scuro wrote:

[#190798] Re: from block to code (also: how to get the bindings of a block) — "chiaro scuro" <kiaroskuro@...> 2006/04/30

On 4/30/06, Eric Hodel <drbrain@segment7.net> wrote:

[#190902] Re: from block to code (also: how to get the bindings of a block) — Eric Hodel <drbrain@...7.net> 2006/05/01

On Apr 30, 2006, at 1:30 PM, chiaro scuro wrote:

[#190909] Re: from block to code (also: how to get the bindings of a block) — "chiaro scuro" <kiaroskuro@...> 2006/05/01

On 5/1/06, Eric Hodel <drbrain@segment7.net> wrote:

[#190910] Re: from block to code (also: how to get the bindings of a block) — "Jacob Fugal" <lukfugl@...> 2006/05/01

On 5/1/06, chiaro scuro <kiaroskuro@gmail.com> wrote:

[#190913] Re: from block to code (also: how to get the bindings of a block) — "chiaro scuro" <kiaroskuro@...> 2006/05/01

On 5/1/06, Jacob Fugal <lukfugl@gmail.com> wrote:

[#190948] Re: from block to code (also: how to get the bindings of a block) — Ross Bamford <rossrt@...> 2006/05/01

On Tue, 2006-05-02 at 05:11 +0900, chiaro scuro wrote:

[#190950] Re: from block to code (also: how to get the bindings of a block) — "chiaro scuro" <kiaroskuro@...> 2006/05/02

Not sure about the ATs. even if I don't mind them that much... if I unfocus

[#190955] Re: from block to code (also: how to get the bindings of a block) — Ross Bamford <rossrt@...> 2006/05/02

On Tue, 2006-05-02 at 09:27 +0900, chiaro scuro wrote:

[#190435] Integration/Antidifferentiation Program — SleepJunkie <SleepJunk13@...>

I'd like to write a program to integrate derivatives to save time on

28 messages 2006/04/27
[#192005] Re: Integration/Antidifferentiation Program — Justin Bangerter <bodanger@...> 2006/05/09

I've been thinking about doing something like this myself, just for

[#190438] OT: Vim->Ruby and back ? — Meino Christian Cramer <Meino.Cramer@...>

Hi,

12 messages 2006/04/27

[#190453] Re: Fishing in Ruby — "Brown, Warren" <warrenbrown@...>

>> But does it scale?

43 messages 2006/04/27
[#190455] Re: Fishing in Ruby — dblack@... 2006/04/27

Hi --

[#190467] Re: Fishing in Ruby — Pistos Christou <jesusrubsyou.5.pistos@...> 2006/04/27

unknown wrote:

[#190469] Re: Fishing in Ruby — Jake McArthur <jake.mcarthur@...> 2006/04/27

>>>>> But does it scale?

[#190536] Re: Fishing in Ruby — Steve Callaway <sjc2000_uk@...> 2006/04/28

For sure, there's no plaice here for them....

[#190537] Re: Fishing in Ruby — "Daniel Baird" <danielbaird@...> 2006/04/28

Surely there has been enough carping on.. we should stop baiting each

[#190551] Re: Fishing in Ruby — "Alan Fritz" <Alan.Fritz@...> 2006/04/28

Yes, I agree. This is all becoming one big flaming fugu...

[#190554] Re: Fishing in Ruby — "stuart yarus" <syarus@...> 2006/04/28

I'm floundering around, hoping there will be a reel end to this

[#190620] Re: Fishing in Ruby — "Giles Bowkett" <gilesb@...> 2006/04/28

I think it may be a while before this thread hits its fin ish.

[#190623] Re: Fishing in Ruby — "John Gabriele" <jmg3000@...> 2006/04/28

Nah. This is just a fluke. The bad puns will abait any minute now.

[#190632] Re: Fishing in Ruby — "Giles Bowkett" <gilesb@...> 2006/04/28

You're right. We've definitely passed the point where anyone else will dive in.

[#190633] Re: Fishing in Ruby — "Bill Guindon" <agorilla@...> 2006/04/28

On 4/28/06, Giles Bowkett <gilesb@gmail.com> wrote:

[#190634] Re: Fishing in Ruby — "Vlad GALU" <vladgalu@...> 2006/04/28

On 4/28/06, Bill Guindon <agorilla@gmail.com> wrote:

[#190638] Re: Fishing in Ruby — "Mike Brum" <ruby@...> 2006/04/28

Welcome, it's good to see more people getting their feet wet with Ruby!

[#190639] Re: Fishing in Ruby — "Alan Fritz" <Alan.Fritz@...> 2006/04/28

Yes we usually don't see this much carp over one thread but Welcome!

[#190640] Re: Fishing in Ruby — Charlie Bowman <charlie@...> 2006/04/28

I just followed a link earlier in this post to the ruby forum. Google

[#190457] Ruby Drops — Jake McArthur <jake.mcarthur@...>

This is the idea I am thinking of proposing for my Google Summer of

27 messages 2006/04/27
[#190529] Re: Ruby Drops — Jake McArthur <jake.mcarthur@...> 2006/04/28

Come on, it can't be that bad of an idea! Is this really going to go

[#190564] time.parse fails for year values > 2037 (time out of range) in ruby 1.8.4 — "Peter Krantz" <peter.krantz@...>

Hi!

12 messages 2006/04/28
[#190680] Re: time.parse fails for year values > 2037 (time out of range) in ruby 1.8.4 — Jim Morris <morris@...> 2006/04/29

If you don't need the time and just the date, then Date seems to have a much wider range

[#190607] how to create Class object with name determined at runtime — Bill Roberts <bill.roberts@...>

I hope someone can help with this - I am a Ruby newbie.

10 messages 2006/04/28

[#190622] how to use curly brackets vs. 'end' in Ruby — carlo <cdicelico@...>

i dislike the use of 'end' (just about the only think i *don't* like in

20 messages 2006/04/28
[#190625] Re: how to use curly brackets vs. 'end' in Ruby — "Austin Ziegler" <halostatue@...> 2006/04/28

On 4/28/06, carlo <cdicelico@earthlink.net> wrote:> i dislike the use of 'end' (just about the only think i *don't* like in> ruby). so, since everybody is saying that this is just a matter of> taste, why won't this work:

[#190689] Multiplexed I/O — "Vlad GALU" <vladgalu@...>

I'd like to use Ruby for a quite high performance networking tool.

20 messages 2006/04/29

[#190712] can a ruby script perform a chdir on win xp? — "Bill Guindon" <agorilla@...>

I want to run a ruby script, and end up in a different directory. Possible?

23 messages 2006/04/29

[#190758] Constant in Ruby. — Charlie <peckcharlie@...>

I'm new to Ruby programming and I saw this article which concerns me:

20 messages 2006/04/30
[#190761] Re: Constant in Ruby. — Mike Fletcher <lemurific+rforum@...> 2006/04/30

Charlie wrote:

[#190765] Re: Constant in Ruby. — Charlie <peckcharlie@...> 2006/04/30

Mike Fletcher wrote:

[#190770] Re: Constant in Ruby. — Daniel Schierbeck <daniel.schierbeck@...> 2006/04/30

Charlie wrote:

[#191539] Re: Constant in Ruby. — Charlie <peckcharlie@...> 2006/05/05

Thank you everyone for your input. I got this simple example to share:

[#190776] Ruby based editor — Phil Jackson <phil@...>

Hi all,

20 messages 2006/04/30
[#190806] Re: Ruby based editor — Randy Kramer <rhkramer@...> 2006/04/30

On Sunday 30 April 2006 11:00 am, Phil Jackson wrote:

[#190810] Re: Ruby based editor — Phil Jackson <phil@...> 2006/04/30

On Mon, May 01, 2006 at 07:38:40AM +0900, Randy Kramer wrote:

[#190817] Re: Ruby based editor — "John Gabriele" <jmg3000@...> 2006/05/01

On 4/30/06, Phil Jackson <phil@shellarchive.co.uk> wrote:

[#190855] Re: Ruby based editor — "Simon Strandgaard" <neoneye@...> 2006/05/01

On 5/1/06, John Gabriele <jmg3000@gmail.com> wrote:

Ruby Weekly News 27th March - 2nd April 2006

From: timsuth@... (Tim Sutherland)
Date: 2006-04-04 10:33:48 UTC
List: ruby-talk #187595
http://www.rubyweeklynews.org/20060402.html

Ruby Weekly News 27th March - 2nd April 2006
============================================

   Ruby Weekly News is a summary of the week's activity on the ruby-talk
   mailing list / the comp.lang.ruby newsgroup / Ruby forum, brought to you
   by Tim Sutherland.

   [ Contribute to the next newsletter ]

Articles and Announcements
==========================

     * Italy on Rails - First Europe Ruby on Rails Conference 
     --------------------------------------------------------

       Nathaniel Brown announced the first Ruby on Rails Conference in
       Europe. It will be held in Rome in late 2006, and run by Open Source
       Path.

     * Article: An Exercise in Metaprogramming with Ruby 
     ---------------------------------------------------

       Hal Fulton wrote an article in February called An Exercise in
       Metaprogramming with Ruby, but neglected to post a link to it on
       ruby-talk.

       | My editor said it "didn't do that well" in terms of page views. And
       | I said, well, I should have posted it to ruby-talk. And she said: Do
       | that now, and we'll see what effect it has.
       |
       | So there you have it. No bots or artificial inflation, please. ;)

       The article was well received by the group.
       http://www.devsource.com/article2/0,1895,1928561,00.asp

     * Brazilian Portuguese Ruby Book 
     --------------------------------

       Eustaquio Rangel de Oliveira J announced his Brazilian Portuguese Ruby
       book, to be released on April 5.

       The book was added to the RubyGarden RubyBookList page.

       | Com um texto orientado para quem jprograma em alguma outra
       | linguagem, este livro apresenta exemplos claros que podem ser
       | facilmente assimilados, servindo de guia para o conhecimento e
       | aprendizado da linguagem Ruby.

     * Ruby and RoR Book Roundup 
     ---------------------------

       Rob Sanheim, "a big bookworm", put together a list of Ruby books
       coming up in 2006.

User Group News
===============

     * The San Diego Ruby Users Group lives! 
     ---------------------------------------

       Daniel Amelang claimed that the San Diego Ruby Users Group lives!
       "After some false starts, we've decided to do this thing for real now.
       Calling all San Diego Rubyists!"

     * Ruby Social Club - 1st April Milan Meeting 
     --------------------------------------------

       Chiaro Scuro: "The Ruby Social Club is getting up to speed and
       spreading fast. After the first two meetings in Rome we are going to
       meet up in Milan on the evening of saturday the first of April."

     * April Meeting of the Phoenix Ruby Users Group 
     -----------------------------------------------

       James Britt announced that the Phoenix Ruby Users Group will be
       meeting on April 10, and will likely discuss new features in Rails
       1.1, and old features in Ruby's built-in unit testing library. "And
       I'm sure we'll make stuff up as we go."

Quote of the Week
=================

     * Blixy Tee Bus Stop 
     --------------------

	 So I was wearing my chunky bacon Blixy Tee
	
	   http://www.cafepress.com/blixytees.10116504
	
	 at the School bus stop the other day, and my
	 son (5yrs) gets up on his tip toes and starts
	 trying to read foxspeak: "Chunky?... bacon?
	 Chunky Bacon... Come on, seriously... Chunky.
	 Bacon. Chunky Bacon. [repeated ad nauseam]"
	
	 Pretty soon all the kids were chanting.
	
	 It was fun.
	
	 Thanks Why,
	
	 Bil Kleb

Threads
=======

  ruby-dev summary 28274-28600
  ----------------------------

   Furuhashi Apuri summarised the Japanese mailing list ruby-dev, which had
   ideas around regexp named captures, __method__ to hold the name of the
   currently executing method, and a proposal for multi-method support.

   The latter would allow you to write

 class Bar
   def foo(String x)
     "a string"
   end

   def foo(Integer x)
     "an integer"
   end
 end

 b = Bar.new
 b.foo("hello") # -> "a string"
 b.foo(5) # -> "an integer"

   The String or Integer or ... is just anything that has an === method.
   "Matz said he agrees and this can be committed to 1.9 if it is fast
   implementation."

  Ruby Goes to the Sun
  --------------------

   April Fools' jokes. Hansson's getting the band back together. Mmmbop.

  Testing DiGraph (#73)
  ---------------------

   Robert Feldt posted this week's Ruby Quiz.

   "In this week's Ruby Quiz you will not only have fun and (hopefully) learn
   something; you will also contribute to a research project evaluating
   automated testing techniques. So please read on and then take the quiz!"

   "The goal of this quiz is to write a good and extensive test suite for a
   Ruby DiGraph (directed graph) class."

  WIN32OLE#[] and WIN32OLE#[]= method in Ruby 1.9 (or later)
  ----------------------------------------------------------

   Win32OLE author Masaki Suketa said he was considering changing the
   behaviour of WIN32OLE#[] and WIN32OLE#[]= "in Ruby 1.9 or later."

   "I have not commited the change yet. Before commiting it, I want
   suggestions or opinions from Win32OLE users."

   Currently, [] and []= map to method calls, so that excel.visible = true
   and excel['visible'] = true are equivalent. The change is to make them act
   on properties, so you can write code like worksheet.cells[1,2] = 10.

   Dave Burt:
   | Excellent! This makes a lot more sense than the existing function of []
   | and []=.
   |
   | When I first used WIN32OLE, I was surprised that you couldn't use [] to
   | access index operations.

  Rails 1.1
  ---------

   In a thread noting the release of Rails 1.1, Jim Weirich commented "The
   CVS head of rubygems will do incremental downloads of the index file. We
   are working out the details of testing this on a large site like
   RubyForge."

   This will greatly improve the speed of the "Updating Gem source index"
   action when installing or upgrading gems.

  Ruby Black Belt
  ---------------

   Dmitry Buzdin posted a draft Ruby exam, having decided to create a Ruby
   equivalent of JavaBlackBelt.com.

   "What we need is a feedback of experienced Ruby enthusiasts (means You)."

   James Edward Gray II posted a list of errors in the draft exam, while
   Justin Collins asked what the purpose of the exam was, given that
   previously "most people expressed a strong dislike for anything resembling
   Ruby `certification'."

   Dmitry: "What we are talking here about is a bit different, than
   traditional certification. The main purpose is learning. You pass the exam
   and see that You don't know some answers."

   Listrecv: "One of the problems I'd have with a certification of this sort
   is that it focuses only on the least important aspects of the language -
   syntax, nomenclature, conventions, etc."

   Peter Szinek mentioned The Python Challenge - a set of programming riddles
   where you must apply some Python programming techniques to advance to the
   next level.

   | I came to know a LOT of non-programmers through python challange - i
   | have been mailing on a (nearly) dayly basis with an US (non programmer)
   | girl (i think se was a lawyer) up to the 18th or something level. When
   | she begun she did nothing about programming at all, after 1 week he has
   | been posting about regexps, after 2 weeks about bzip2 from python, after
   | 3 weeks cookies and HTTP, well you get the idea... She was really
   | enthusiastic to learn this stuff (which is IMHO not typical for a non
   | technical person) just to see the next screen... And she was not the
   | only one...

   This made Bill Kelly think of _why's Try Ruby! web-based interactive
   interpreter. It has an on-line tutorial where you type code into your web
   browser and see what happens.

   Pistos Christou: "I tentatively agree with the others about official
   certification, but this idea of some sort of online interface that covers
   all (or many) of the features, tools, libs, etc. of Ruby in an
   interactive, educational fashion sounds appealing."

   Ruby Quiz was mentioned several times as a resource for improving your
   Ruby skills.

  Calling R from Ruby
  -------------------

   AlexG created a simple bridge between Ruby and R (a statistical package /
   language), allowing him to use R libraries from Ruby.

   The thread also discussed advantages and disadvantages of using either of
   the languages over the other, for example R has a fast matrix library (but
   so does Ruby, via NArray), R is "Procedural, with highly limited function
   support", but

   | Au contraire! R is at heart a functional language with a Lisp ancestry!
   | What's different about R (and S) is two different ways of doing objects
   | and classes, neither one of which is remotely like a Java or Ruby
   | programmer's idea of objects and classes. [M. Edward Borasky]

   Going back to the original topic, Thomas said that if you're on Windows
   then you can access R through Win32OLE.

  Round floats to N decimal places?
  ---------------------------------

   Pat Maddox:

   | I'm doing some math that results in floats with ~10 decimal places, but
   | I'd like to round them to 2 places. Is there a built in way of doing
   | this? Right now I'm doing format("%0.2f", the_float).to_f, which seems
   | to work fine but it seems like an ugly way of doing it.

   Dave Burt said that the Facets project defines Numeric#round_at(d) and
   Numeric#round_to(n) methods for this purpose, and suggested that Ruby's
   built-in Numeric#round method be altered to accept an optional parameter
   for degrees of rounding.

   Karl Brodowsky suggested Pat take a look at the LongDecimal library, which
   is "specialized for doing calculations with a defined number of digits
   after the decimal point."

  B & E (#72)
  -----------

   Stephen Waits created (last) week's Ruby Quiz - find the least number of
   security codes you need to try to break a system where the code passes
   whenever the last sequences of key-presses matches the codes, without any
   reset between.

  Get the size in pixels for a string
  -----------------------------------

   St駱hane Thibaudeau asked how to get the pixel width and height of a
   string rendered with a particular font.

   Chris Alfeld:

 require 'tk'

 f = TkFont.new('Courier 10')
 width = f.measure("Hi There!")
 height = f.metrics.assoc('linespace')[1]

New Releases
============

  JRuby 0.8.3
  -----------

   Thomas E Enebo said that JRuby 0.8.3 was released. "JRuby is a project to
   provide a Java implementation of the Ruby language and interpreter."

   jirb now works, using Java classes from Ruby is "dramatically" faster,
   several important bugs were fixed and more.

  Mongrel Web Server 0.3.12 -- Pre-Release
  ----------------------------------------

   Zed Shaw: "Mongrel is due for a 0.3.12 release which will feature some
   pretty insane goodies for everyone. There's talk of IOWA support, lots of
   speed improvements (including sendfile support), a great Configurator
   which makes configuring Mongrel a snap (especially for framework
   implementers), and a ton of debugging stuff."

   "DON'T CRY" (it's a pre-release).

   "Mongrel now has sponsorship from Eastmedia (http://www.eastmedia.com) in
   partnership with Verisign (http://www.verisign.com/) to make Mongrel fast
   and stable enough for enterprise class loads (meaning "gigantic", not
   "Java style")."

  Rake 0.7.1
  ----------

   Jim Weirich put out a new Rake release, fixing a bug on Windows and adding
   a few features.

  Instant Rails 1.1
  -----------------

   Curt Hibbs announced Instant Rails 1.1 an update of the "one-stop Rails
   runtime solution containing Ruby, Rails, Apache, and MySQL, all
   preconfigured and ready to run". Unsurprisingly, this release features
   Rails 1.1.

  ZenTest 3.1.0
  -------------

   Ryan Davis exposed ZenTest 3.1.0, with updated versions of zentest,
   unit_diff, autotest and multiruby.

  RJS, Active Record++, respond_to, integration tests, and 500 other things!
  --------------------------------------------------------------------------

   Hoho, it's Rails 1.1.

   "The biggest upgrade in Rails history has finally arrived. Rails 1.1
   boasts more than 500 fixes, tweaks, and features from more than 100
   contributors. Most of the updates just make everyday life a little
   smoother, a little rounder, and a little more joyful."-David Heinemeier
   Hansson.

  Ruby-FLTK 0.9.3
  ---------------

   Jeremy Henty announced a new version of the Ruby-FLTK bindings, "Yes, it's
   been a while!".

In This Thread

Prev Next