[#154598] implementing the "each" method for own classes — Philipp Huber <huber.philipp@...>

hello!

12 messages 2005/09/01

[#154620] Word Chains (#44) — Ruby Quiz <james@...>

Gavin Kistner asked that I try timing the quiz solutions this week. I did

13 messages 2005/09/01

[#154733] Ruby-specific performance heuristics? — Hugh Sasse <hgs@...>

I've been doing some stuff with CSV recently, having data in one

15 messages 2005/09/02

[#154775] Idiomatic conversion of yielding block to array — David Brady <ruby_talk@...>

So I have a function that generates like 300 lines of text and I want to

23 messages 2005/09/02
[#154776] Re: Idiomatic conversion of yielding block to array — Levin Alexander <levin.alexander@...> 2005/09/02

David Brady <ruby_talk@shinybit.com> wrote:

[#154779] Re: Idiomatic conversion of yielding block to array — Simon Krer <SimonKroeger@...> 2005/09/02

Levin Alexander wrote:

[#154785] Re: Idiomatic conversion of yielding block to array — Simon Krer <SimonKroeger@...> 2005/09/02

Simon Krer wrote:

[#154789] Re: Idiomatic conversion of yielding block to array — Jacob Fugal <lukfugl@...> 2005/09/02

Good heavens, no! Neither of those are thread safe. Criminy!

[#154872] windows shell — Gaston Garcia <gaston.garcia@...>

Is there anyone here that uses Windows XP and uses a windows shell=20

28 messages 2005/09/04
[#154876] Re: windows shell — "Robert Klemme" <bob.news@...> 2005/09/04

Gaston Garcia <gaston.garcia@gmail.com> wrote:

[#154917] Re: windows shell — Austin Ziegler <halostatue@...> 2005/09/05

On 9/4/05, Robert Klemme <bob.news@gmx.net> wrote:

[#154874] params v.s. @params in rails? — "Barry" <rubyrails@...>

Both work in my controller class, so I am wondering what's the

11 messages 2005/09/04

[#154920] Help me clean up this method — "Vincent Foley" <vfoley@...>

Hello guys,

32 messages 2005/09/05

[#155018] Rake 0.6.0 Released — Jim Weirich <jim@...>

= Rake 0.6.0 Released

20 messages 2005/09/06

[#155064] Sorted arrays — <ruby@...64.com>

I'm a relative newcomer to Ruby. Most of my experience is in Delphi. And in Delphi one of the most commonly-used classes is TStringList, which is sort of analogous to ruby's Array (Delphi also has dynamic arrays and static arrays). TStringList has a property called Sorted, which if set to True makes it possible to insert strings into the list and have it maintain them as a sorted list (without having to re-sort it each time). Then you can use the IndexOf method (or the Find method) to do a binary search on the list, so you can quickly find the element you're looking for. My question is whether Ruby has anything like this. It seems like one could create a descendant of Array that does this.

18 messages 2005/09/06
[#155067] Re: Sorted arrays — "Robert Klemme" <bob.news@...> 2005/09/06

ruby@danb64.com wrote:

[#155120] Units for Ruby — "Lucas Carlson" <lucas@...>

I have also created a new library to add units to numbers in Ruby:

14 messages 2005/09/06

[#155127] Rio 0.3.4 — "rio4ruby" <rio4ruby@...>

New and Improved -- Rio 0.3.4

24 messages 2005/09/07

[#155181] Need help finding decent IDE/development environment for Windows — "Paul Dix" <paulcdix@...>

I've just started playing around with ruby on rails and by association,

41 messages 2005/09/07
[#155218] Re: Need help finding decent IDE/development environment for Windows — graham <fghfghfh@...> 2005/09/07

Paul Dix wrote:

[#155220] Re: Need help finding decent IDE/development environment for Windows — Joe Van Dyk <joevandyk@...> 2005/09/07

On 9/7/05, graham <fghfghfh@homr.vom> wrote:

[#155221] Re: Need help finding decent IDE/development environment for Windows — graham <fghfghfh@...> 2005/09/07

> You could ask them why they need all that IDE stuff for developing in Ruby.

[#155225] Re: Need help finding decent IDE/development environment for Windows — Edward Faulkner <ef@...> 2005/09/07

On Thu, Sep 08, 2005 at 02:36:29AM +0900, graham wrote:

[#155264] Re: Need help finding decent IDE/development environment for Windows — graham <fghfghfh@...> 2005/09/07

Edward Faulkner wrote:

[#155280] Re: Need help finding decent IDE/development environment for Windows — James Edward Gray II <james@...> 2005/09/08

On Sep 7, 2005, at 6:56 PM, graham wrote:

[#155327] general performance question — Brian Le Roy <brian@...>

I'm running top and when I run my app - I see the user CPU utilitization

15 messages 2005/09/08

[#155364] KirbyBase — rubyhacker@...

I'm posting from work, but will try to follow up in more

57 messages 2005/09/08
[#155795] Re: KirbyBase — rubyhacker@... 2005/09/12

Jamey Cribbs wrote:

[#155801] Re: KirbyBase — Jamey Cribbs <cribbsj@...> 2005/09/12

rubyhacker@gmail.com wrote:

[#155818] Re: KirbyBase — Randy Kramer <rhkramer@...> 2005/09/12

On Monday 12 September 2005 04:11 pm, Jamey Cribbs wrote:

[#155833] Re: KirbyBase — rubyhacker@... 2005/09/12

Randy Kramer wrote:

[#155836] Re: KirbyBase — Kevin Brown <blargity@...> 2005/09/12

On Monday 12 September 2005 17:06, rubyhacker@gmail.com wrote:

[#155861] Re: KirbyBase — Hal Fulton <hal9000@...> 2005/09/13

Kevin Brown wrote:

[#155873] Re: KirbyBase — Ezra Zygmuntowicz <ezra@...> 2005/09/13

[#155976] Re: KirbyBase — rubyhacker@... 2005/09/13

[#155986] Re: KirbyBase — Jamey Cribbs <cribbsj@...> 2005/09/13

rubyhacker@gmail.com wrote:

[#156005] Re: KirbyBase — Logan Capaldo <logancapaldo@...> 2005/09/13

[#156029] Re: KirbyBase [ANN (sort-of)] proof-of-concept KirbyBase ORM — Logan Capaldo <logancapaldo@...> 2005/09/14

[#155369] compiling ruby on red hat linux — "Philip J. Mikal" <philip_mikal@...>

Hi,

15 messages 2005/09/08

[#155411] Optimizing a single slow method — "Glenn M. Lewis" <noSpam@...>

Hi!

34 messages 2005/09/09
[#155474] Re: Optimizing a single slow method — Eric Hodel <drbrain@...7.net> 2005/09/09

On 08 Sep 2005, at 20:46, Glenn M. Lewis wrote:

[#155464] quick print type debugging — Eric Mahurin <eric_mahurin@...>

Anybody think something like this would be useful?

12 messages 2005/09/09

[#155507] Using Ruby as a preprocessor for another language — debbie@...

I have the misfortune of being stuck programming in a very bad

11 messages 2005/09/10

[#155530] Win32 gem for RMagick 1.9.1 — Timothy Hunter <cyclists@...>

Hot on the heels of the latest RMagick update, Kaspar Schiess has

15 messages 2005/09/10

[#155537] RCR to modify #puts and #print inside ERB — Gavin Kistner <gavin@...>

Proposed RCR:

26 messages 2005/09/10

[#155601] r4 - the simplest ruby pre-processor — "Ara.T.Howard" <Ara.T.Howard@...>

18 messages 2005/09/11

[#155638] The Early Demise of Myriad (Thanks To Ruby Threads) — "Zed A. Shaw" <zedshaw@...>

Hi Everyone,

17 messages 2005/09/11

[#155708] how to well-qualify the 2-inherited methods at their collision point — "SHIGETOMI, Takuhiko" <tshiget1@...>

dear guys,

10 messages 2005/09/12

[#155828] Adventures in html decoding. — Morgan <taria@...>

From the "If you want it done right, do it yourself... maybe"

16 messages 2005/09/12

[#155847] Choosing an open source license — "debbie@..." <debbie@...>

I'm working on a server program and I'm trying to decide which open

22 messages 2005/09/13

[#155941] yet another simple command-line option parser — Eric Mahurin <eric_mahurin@...>

I just put in a good example for:

11 messages 2005/09/13
[#155946] Re: yet another simple command-line option parser — Jim Freeze <jim@...> 2005/09/13

That's pretty interesting Eric, to grab the type off the default.

[#155949] Sets, uniqueness not unique. — Hugh Sasse <hgs@...>

I have been splitting a comma separated values file, and putting

29 messages 2005/09/13

[#155970] Surprising Regexp Behavior — James Edward Gray II <james@...>

I keep running into some surprising points with Ruby's Regexp engine

13 messages 2005/09/13

[#155992] Launch directory in Rake — Jim Freeze <jim@...>

Hi

15 messages 2005/09/13

[#156053] ruby and aop — Alexandru Popescu <the.mindstorm.mailinglist@...>

Hi!

12 messages 2005/09/14

[#156189] Get to the Point: Ruby and Rails Presentation Slides — "John W. Long" <ng@...>

Hi,

20 messages 2005/09/15

[#156230] you can't get in trouble with your boss for picking C# — "Phlip" <phlipcpp@...>

Rubies:

69 messages 2005/09/15
[#156297] Re: you can't get in trouble with your boss for picking C# — "Phlip" <phlipcpp@...> 2005/09/15

klancaster1957 wrote:

[#156308] Re: you can't get in trouble with your boss for picking C# — Josh Charles <josh.charles@...> 2005/09/15

On 9/15/05, Phlip <phlipcpp@yahoo.com> wrote:

[#156549] Re: you can't get in trouble with your boss for picking C# — "ToRA" <tristan.allwood@...> 2005/09/17

Hey all,

[#156582] Re: you can't get in trouble with your boss for picking C# — Florian Gro<florgro@...> 2005/09/18

ToRA wrote:

[#156248] Math: sum and faculty — Daniel Schierbeck <daniel.schierbeck@...>

I hereby propose two additions to Ruby. Please come with some comments

13 messages 2005/09/15

[#156299] MS Access — "Steve" <sdouglas949@...>

I'm considering learning Ruby. I have no programming experience yet. I was

23 messages 2005/09/15
[#156303] Re: MS Access — "Phlip" <phlipcpp@...> 2005/09/15

Steve wrote:

[#156335] Re: MS Access — Sean Armstrong <phinsxiii@...> 2005/09/15

On 9/15/05, Phlip <phlipcpp@yahoo.com> wrote:

[#156336] Re: MS Access — Sascha Ebach <se@...> 2005/09/15

Sean Armstrong wrote:

[#156347] Re: MS Access — Sean Armstrong <phinsxiii@...> 2005/09/15

Does anyone know how to install the Ruby MySQL module on a Windows platform=

[#156352] Re: MS Access — Jacob Quinn Shenker <jqshenker@...> 2005/09/15

Sean,I needed to compile/install mysql (running ./configure--without-server) from source to get the required developmentlibraries under Cygwin. (then I moved the newly-created clientbinaries out of the way so I could use the Win32-native mysqlbinaries.) After that, it worked like a charm. *Do not compile theCygwin-ized mysql client with "--with-openssl"* I don't know why, butthe gem refused to install if I did. Good luck, and let me know if yourun into any issues. Overall, developing on Cygwin for Ruby/Rails isquite nice.

[#156353] Re: MS Access — Sean Armstrong <phinsxiii@...> 2005/09/15

Let me make sure I got this right:

[#156461] Re: MS Access — Sean Armstrong <phinsxiii@...> 2005/09/16

It still refuses to find the lib and include directories even if I use the=

[#156506] Re: MS Access — Jacob Quinn Shenker <jqshenker@...> 2005/09/16

Sean,I'm going to try to explain *exactly* what I did, and hopefully you'llsee something you forgot to do.1. Download mysql-essential-4.1.14-win32.msi from mysql.org and install it.2. Download mysql-4.1.13.tar.gz from mysql.org3. Extract the above, and run "./configure -C --without-server" (the-C enables config caching, I use it because the ./configure scriptruns very slowly under Cygwin. Optional, of course)4. Run "make && make install"5. Run "gem install mysql"6. Go make cool rails apps!

[#156444] Hash table questions — EdUarDo <eduardo.yanezNOSPAM@...>

Hi all,

14 messages 2005/09/16

[#156480] Some interesting criticisms of rails — David Balick <davidbalick@...>

may be found in the podcast

24 messages 2005/09/16
[#156530] Re: Some interesting criticisms of rails — "Robert Klemme" <bob.news@...> 2005/09/17

Zed A. Shaw <zedshaw@zedshaw.com> wrote:

[#156624] Language recommendations from ruby persons.... — "Greg Lorriman" <bogus@...>

Dear sirs and madames,

36 messages 2005/09/18

[#156662] Capcha in ruby — Federico <pix@...>

Hello,

23 messages 2005/09/19

[#156708] help with tricky proc/binding issue — "Ara.T.Howard" <Ara.T.Howard@...>

14 messages 2005/09/19

[#156743] The Ruby troll [was: Looking for...] — Gunnar Hjalmarsson <noreply@...>

David H. Adler wrote:

22 messages 2005/09/19

[#156749] ruby idiom for python's for/else while/else — Gergely Kontra <kgergely@...>

Hi!

18 messages 2005/09/19

[#156796] Dissident 0.1, a Ruby dependency injection container — Christian Neukirchen <chneukirchen@...>

Hello,

13 messages 2005/09/20
[#156797] Re: [ANN] Dissident 0.1, a Ruby dependency injection container — "Jason Voegele" <jason@...> 2005/09/20

On Tue, September 20, 2005 8:22 am, Christian Neukirchen said:

[#156801] Re: [ANN] Dissident 0.1, a Ruby dependency injection container — Christian Neukirchen <chneukirchen@...> 2005/09/20

"Jason Voegele" <jason@jvoegele.com> writes:

[#156966] Re: [ANN] Dissident 0.1, a Ruby dependency injection container — Logan Capaldo <logancapaldo@...> 2005/09/21

This is a little OT, but every-time dependency injection comes up I

[#156866] Places for a programmer to live? — Devin Mullins <twifkak@...>

While we seem to be rife with OT threads, I thought I'd throw in an OT

37 messages 2005/09/20

[#156933] Hello, I am a newbie to ruby. — could ildg <could.net@...>

I want learn a script language.

11 messages 2005/09/21

[#157005] Large Ruby Apps ? — "Warren Seltzer" <warrens@...>

I am coming to Ruby having used the usual list of scripting and C* languages. Since Ruby

30 messages 2005/09/21
[#158399] Re: Large Ruby Apps ? — <slonik.az@...> 2005/09/30

Very useful discussion that highlights quite few misconceptions.

[#157007] Re: Large Ruby Apps ? — "Berger, Daniel" <Daniel.Berger@...>

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

27 messages 2005/09/21

[#157051] hi, i'm new. plus one question — travis laduke <wrong@...>

I've been forced to work on some php lately and found myself

13 messages 2005/09/22

[#157063] Visual IDEs?? — "Erland" <Erland.Erikson@...>

HI,

24 messages 2005/09/22

[#157080] A question about Intelligent Systems and using Ruby — Daniel Lewis <danieljohnlewis@...>

Yesterday (21/09/2005) I sent an email to Dave Thomas (author of

16 messages 2005/09/22

[#157101] Instantiating a subclass of NilClass. — "Trans" <transfire@...>

I've subclasses NilClass, but don't know how to instantiate it. Any

16 messages 2005/09/22

[#157189] "The class that it is mixed in to..." — John Carter <john.carter@...>

Ok, so I'm documenting a Mixin.

20 messages 2005/09/23
[#157193] Re: "The class that it is mixed in to..." — William Morgan <wmorgan-ruby-talk@...> 2005/09/23

Excerpts from John Carter's mail of 22 Sep 2005 (CDT):

[#157271] Re: "The class that it is mixed in to..." — "David A. Black" <dblack@...> 2005/09/23

Hi --

[#157222] RDE 1.0.0 released — sakazuki <qzs01353@...>

Hi.

16 messages 2005/09/23

[#157299] On accidental unsubscribe messages — "Berger, Daniel" <Daniel.Berger@...>

Hi all,

15 messages 2005/09/23

[#157520] Relative speed of Ruby vs Java for a large compiled app like Freenet — seekingleverage@...

I'm wondering if anyone could shed some light on whether or not it

45 messages 2005/09/25
[#157716] Re: Relative speed of Ruby vs Java for a large compiled app like Freenet — "Isaac Gouy" <igouy@...> 2005/09/26

Martin, perhaps you could collect this stuff and put it into your wiki

[#157540] String#ggsub — Gavin Kistner <gavin@...>

I occasionally find myself with gsub regexp that either eat too much,

21 messages 2005/09/25

[#157565] Rinda frustration — Mark Volkmann <r.mark.volkmann@...>

I'm trying to determine what the methods "move" and "notify" do in the

12 messages 2005/09/26

[#157623] A big thank you to Robby Russell... — Tom Copeland <tom@...>

...for providing another RubyForge mirror via his company, PlanetArgon.

18 messages 2005/09/26
[#157770] Re: A big thank you to Robby Russell... — Gavin Kistner <gavin@...> 2005/09/27

On Sep 26, 2005, at 7:25 AM, Tom Copeland wrote:

[#157826] Re: A big thank you to Robby Russell... — Tom Copeland <tom@...> 2005/09/27

On Tue, 2005-09-27 at 12:43 +0900, Gavin Kistner wrote:

[#157864] Re: A big thank you to Robby Russell... — Sam Mayes <codeslave@...> 2005/09/27

whats the process for becomming a mirror?

[#157871] Re: A big thank you to Robby Russell... — Kirk Haines <khaines@...> 2005/09/27

On Tuesday 27 September 2005 10:24 am, Sam Mayes wrote:

[#157875] Re: A big thank you to Robby Russell... — Tom Copeland <tom@...> 2005/09/27

On Wed, 2005-09-28 at 01:38 +0900, Kirk Haines wrote:

[#157648] Rapid GUI Development with QtRuby — Dave Thomas <dave@...>

I hope y'all don't mind a short announcement, but it seemed relevant.

22 messages 2005/09/26

[#157654] Ruby Threads 101 — Ben <benbelly@...>

I am leading a peer-learning group that is using "Programming Ruby" to

13 messages 2005/09/26

[#157658] Time interval — Daniel Berger <Daniel.Berger@...>

Hi all,

20 messages 2005/09/26

[#157697] Embedded Ruby and Tag Libs — Adam Van Den Hoven <mail@...>

Hey guys,

16 messages 2005/09/26

[#157732] ShortURL 0.7.0 — "Vincent Foley" <vfoley@...>

After a lot of procrastination, I have released ShortURL 0.7.0. I

14 messages 2005/09/26

[#157746] Fwd: Lisp macros — Joe Van Dyk <joevandyk@...>

Whoops, this belongs on ruby-talk... Sorry.

47 messages 2005/09/27
[#157751] Re: Fwd: Lisp macros — James Britt <james_b@...> 2005/09/27

Joe Van Dyk wrote:

[#157779] Re: Fwd: Lisp macros — Jim Freeze <jim@...> 2005/09/27

On 9/26/05, James Britt <james_b@neurogami.com> wrote:

[#157813] Re: Fwd: Lisp macros — Ben <benbelly@...> 2005/09/27

On 9/27/05, Jim Freeze <jim@freeze.org> wrote:

[#157807] How do I (really) encrypt a string in ruby? — Michal Suchanek <hramrach@...>

Hello

10 messages 2005/09/27

[#157854] Class and Iterator Design Question — Jim Freeze <jim@...>

This may be a silly design question, but I always balk at

26 messages 2005/09/27
[#157866] Re: Class and Iterator Design Question — Bob Hutchison <hutch@...> 2005/09/27

[#157889] Re: Class and Iterator Design Question — Jim Freeze <jim@...> 2005/09/27

Wow, thanks for all the responses.

[#157893] Re: Class and Iterator Design Question — "David A. Black" <dblack@...> 2005/09/27

Hi --

[#157896] Re: Class and Iterator Design Question — Jim Freeze <jim@...> 2005/09/27

On 9/27/05, David A. Black <dblack@wobblini.net> wrote:

[#157947] Dynamically generating classes? — Jonas Galvez <jonasgalvez@...>

Hi,

15 messages 2005/09/27

[#158051] Re: creating independent lambdas in loops — "Kroeger Simon (ext)" <simon.kroeger.ext@...>

24 messages 2005/09/28
[#158057] Re: creating independent lambdas in loops — Eric Mahurin <eric_mahurin@...> 2005/09/28

--- "Kroeger Simon (ext)" <simon.kroeger.ext@siemens.com>

[#158074] Re: creating independent lambdas in loops — Gavin Kistner <gavin@...> 2005/09/28

On Sep 28, 2005, at 7:47 AM, Eric Mahurin wrote:

[#158081] Re: creating independent lambdas in loops — Eric Mahurin <eric_mahurin@...> 2005/09/28

--- Gavin Kistner <gavin@refinery.com> wrote:

[#158093] Re: creating independent lambdas in loops — Eric Mahurin <eric_mahurin@...> 2005/09/28

--- Eric Mahurin <eric_mahurin@yahoo.com> wrote:

[#158094] Re: creating independent lambdas in loops — "David A. Black" <dblack@...> 2005/09/28

Hi --

[#158096] Re: creating independent lambdas in loops — Eric Mahurin <eric_mahurin@...> 2005/09/28

--- "David A. Black" <dblack@wobblini.net> wrote:

[#158121] Python to Ruby: Two puzzlements... — "Elf M. Sternberg" <elf@...>

I'm afraid that I'm coming from Python, a B&D language where I'm used to

22 messages 2005/09/28

[#158157] IBM vs. Microsoft vs. ... Ruby? — "itsme213" <itsme213@...>

More "Enterprise Scale" talk over here, with a strong leaning towards

29 messages 2005/09/28
[#158330] Re: IBM vs. Microsoft vs. ... Ruby? — "bonefry" <bellarchitects@...> 2005/09/29

Hi,

[#158258] In your opinion.... — Daniel Lewis <danieljohnlewis@...>

In your opinion(s)....

51 messages 2005/09/29
[#158263] Re: In your opinion.... — Gennady Bystritksy <gfb@...> 2005/09/29

Daniel Lewis wrote:

[#158265] Re: In your opinion.... — Daniel Lewis <danieljohnlewis@...> 2005/09/29

> Too lazy to do your own research? It happens ;-). For a starter, check

[#158311] rush 0.1.bandicoot: object-oriented shell goodness (rationed for your health)! — The rush folks <rush-ruby-ml@...>

= rush-0.1.bandicoot

10 messages 2005/09/29

[#158327] Operator Overloading << — "matt.hulse@..." <matt.hulse@...>

Is there a way to overload '<<' in the Array class?

19 messages 2005/09/29

[#158412] SQLite / Ruby on Windows? — david@...

Does anyone have an install-by-copy version of the SQLite Ruby binding at hand?

12 messages 2005/09/30

[#158460] Ruby licence... — netspam@...

I understand that the distribution of Ruby is under the GPL.

25 messages 2005/09/30
[#158600] Re: Ruby licence... — "Gregory Brown" <gregory.t.brown@...> 2005/10/02

The Ruby License and the License of Ruby are two different things.

[#158620] Re: Ruby licence... — Kevin Brown <blargity@...> 2005/10/02

On Saturday 01 October 2005 20:51, Gregory Brown wrote:

[#158659] Re: Ruby licence... — Christian Neukirchen <chneukirchen@...> 2005/10/02

Kevin Brown <blargity@gmail.com> writes:

[#158663] Re: Ruby licence... — Kevin Brown <blargity@...> 2005/10/02

On Sunday 02 October 2005 10:56, Christian Neukirchen wrote:

[#158690] Re: Ruby licence... — Christian Neukirchen <chneukirchen@...> 2005/10/02

Kevin Brown <blargity@gmail.com> writes:

[#158692] Re: Ruby licence... — Kevin Brown <blargity@...> 2005/10/02

On Sunday 02 October 2005 12:45, Christian Neukirchen wrote:

[#158497] Interest in Boost::Ruby — Alan Gutierrez <alan-ruby-talk@...>

I'd like to build a CSS renderer in modern C++ as an enthusist's

24 messages 2005/09/30

Ruby Weekly News 5th - 11th September 2005

From: timsuth@... (Tim Sutherland)
Date: 2005-09-12 12:36:34 UTC
List: ruby-talk #155759
http://www.rubyweeklynews.org/20050911.html

   Ruby Weekly News 5th - 11th September 2005
   ------------------------------------------

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

Articles and Announcements
--------------------------

     * Ruby Debugging Article at IBM Developerworks
     ----------------------------------------------

       Time for [Debugging Ruby programs 101], thanks to Pat Eyler's latest
       IBM developerWorks article.

       Florian Gronoted the omission of ruby-breakpoint, a library that
       allows you to stop at any point in your program and attach irb.

     * Registration is CLOSING SOON for RubyConf 2005!
     -------------------------------------------------

       David A. Black: "Registration will be open until September 16, OR
       until we reach 190 *paid* registrations, whichever comes first." [/].

       | Thanks for bearing with us as we go through the process of
       | organizing a conference that is literally three times the size of
       | last year's event. We want to accomodate everyone, consistent with
       | the physical constraints of the space and the need to have definite
       | numbers in place in a timely manner.

       "If you have pre-registered for RubyConf, you still must register.
       Pre-registration != registration." [/]

     * dtrace + ruby super profiling?
     --------------------------------

       Joe Van Dyk reported on an article by Bryan Cantrill about using
       DTrace to get profiling information on Ruby applications.

       (Thanks to a patch by Rich Lowe's to allow this.)

User Group News
---------------

     * Boston.rb Goes Live!
     ----------------------

       Chris Lambert announced the very first meeting of Boston.rb, on
       Tuesday, September 13.

Quote of the Week
-----------------

     * Poetry Jam 05: A Ruby Octet
     -----------------------------

       Devin Mullins:

 ########

 $the_love_you.display \
 do not let it end
 __END__

 #requires a file called 'dark and stormy night', obviously
 1.times do
  open 'dark and stormy night' { |story|
   story.read.display
  } #the
     end
 __END__

 for once in 'my life'... 'I' do
  not know if the pain
  will end
 __END__

 #Ask the Oracle:
 /to port this code to Java will not/.require 'time'
 #=> false
 __END__

 for nicat in''      \
 do it.with.a.
              fri end
 __END__

 #I call this, 'Happy Ending'
 <<please.display
 affection
 please
 __END__

 #!`env ruby` -W0
 fork { there is no fork } unless

     unless:what?

 oh...yeah unless this is the end.to_a {
  Wachowski trilogy }
 __END__

 #5/7/5, and => true
 $capitalism.
 is_a? $system_that_promotes.
 class { separation }

 #_THE_#
 __END__

 ########

Threads
-------

  Standalone application...
  -------------------------

   Charles, using MacOS X and Linux, wanted to know whether it is possible to
   make a `standalone' Ruby application - a single executable that includes
   not only his application but also the Ruby interpreter and any other
   libraries used.

   Erik Veenstra plugged his rubyscript2exe, which is used to do exactly
   this, and also works on Windows.

   `nobody' added that exerb does the same, but only works on Windows; and
   asked why the executable resulting from exerb can be compressed with UPX,
   but the one from rubyscript2exe can't.

   The reason is a mystery, hwoever Erik pointed out that rubyscript2exe does
   its own compression, so it doesn't matter.

   Other options include Erik's tar2rubyscript, which converts a Ruby
   application into a single .rb file, but does not include the interpreter.

   Forrest Chang: "I wanna give Erik a plug. I've been succesfully using the
   bottom 2 apps to make standalone ruby apps for one of my projects. Very
   handy."

   Damphyr: "By the way the documentation on rubyscript2exe is breathtaking.
   WOW!"

  Qt, Ruby, and Windows
  ---------------------

   Gregarican asked about the status of Ruby's Qt bindings on Windows.

   | I have a project I've almost completed running on a Linux-based PDA
   | based on Qt 2.x and was trying to get it ported over to my Windows
   | clients as well.

   He found binaries against Ruby 1.6, but wanted to use 1.8.

   Richard Dale said that he and Caleb Tennis were working on the QtRuby Qt4
   interface, but need someone to do the Windows port.

   It looks like Ruby/Qt2 supports Windows, but you may need to build it from
   source. (Using msys/mingw, Microsoft Visual Studio, or Microsoft's
   freeware compiler.)

  WIN32OLE doesn't seem to support UTF-8.
  ---------------------------------------

   Bret Pettichord said that Win32OLE didn't appear to have support for UTF-8
   or other character sets.

   | I would like to access international text from Excel and Explorer using
   | WIN32OLE. But whenever i do this in Ruby, i get "????". (This code works
   | fine for English).

   nobu responded, saying that the version included in Ruby 1.8.3 has a
   codepage attribute for this purpose.

  Why? Blocks
  -----------

   Julian Leviston asked why he couldn't do this:

 ########
 c = [1,2,3,4,5,6,6,7,8,10]
 b = {|aVal| aVal / 5 == 0}
 d = c.select(b)
 ########

   Jamis Buck pointed out that he actually could, using a Proc object:

 ########
 b = Proc.new {|aVal| aVal / 5 == 0}
 d = c.select(&b)
 ########

   This led to a discussion about the meaning of the ampersand operator & in
   this case (which simply tells Ruby that the parameter is to take the place
   of the block, rather than simply be a Proc argument to the method), of
   which the most interesting comment was the comparison of the star and
   ampersand operators by Brian Schrer:

   | A star packs and unpacks arrays, while the ampersand packs and unpacks
   | code.

   And gave the following example to illustrate his point:

 ########
 $ cat star-ampersand.rb
 def another_method(a, b, c)
   yield(:a=>a, :b => b, :c => c)
 end

 def take_block(*args, &block)
   another_method(*args,  &block)
 end

 take_block(1,2,3) do | hash | p hash end

 $ ruby star-ampersand.rb
 {:b=>2, :c=>3, :a=>1}
 ########

   Julian was so overwhelmed by the amount and clarity of the replies that he
   gave everyone {BIG VIRTUAL HUGS}.

  Detecting a hung/stalled child process
  --------------------------------------

   Chris sought to launch an external process (with `foo`), "but then kill
   that process some time later if it has not completed."

   Joel VanderWerf said that timeout was the way to go.

  RubyGems Statistics
  -------------------

   James Edward Gray II, setting forth to give an introduction to Ruby at his
   local university, asked for some RubyGems statistics.

   Jim Menard motioned at the gems.rubyforge.org stats page, which "lists all
   of the gems and the number of downloads for each."

  Kudos!
  ------

   Austin Ziegler offered his "heartfelt thanks and kudos to the developers
   of two projects": Aslak Hellesoy for MetaProject and Park Heesob for
   GMailer.

   MetaProject provides APIs for project hosting servers, issue trackers and
   SCMs (Source Control Management), as well as a `quick-release' mechanism
   for Rubyforge and others.

   GMailer is an API for Google's GMail.

   Austin is using the two projects to (almost) automate the release of new
   versions of PDF::Writer.

  katrina images generated with ruby
  ----------------------------------

   Ara.T.Howard demonstrated efficient image generation under Ruby with
   pictures of the Katrina hurricane.

   The narray and mmap libraries were used.

  RCR to modify #puts and #print inside ERB
  -----------------------------------------

   In case you didn't know, if you are using the ERb templating system and
   suddenly feel like writing puts(foo), you should instead use _erbout <<
   foo.

   This allows you to add text to the output from within a <% ... %>, for
   those cases where it's inconvenient to do <%= foo %>.

   Another nice feature involves lines that begin with %. (Feature not [yet?]
   available in Rails.)

   In this case, the entire line is treated as though it is wrapped in <% and
   %>, but looks much cleaner if you have several lines of code embedded.

  Kerberos module for ruby?
  -------------------------

   snacktime: "Is there a kerberos module anywhere for ruby? I wasn't able to
   find anything after searching around so thought I would ask here."

   The answer appeared to be "no".

   (A worthwhile project lurks.)

  Python supported for client side scripting in Mozilla.
  ------------------------------------------------------

   In future Mozilla-based browsers, you will be able to write XUL
   applications and extensions in Python, as well as Javascript.

   Erik Terpstra: "Would love to be able to do that with Ruby one day."

  Ruby Conference Hotel
  ---------------------

   "ACK! The hotel is sold out. Any suggestions?" - Matt Lawrence.

   David A. Black noted that they'd had "false alarms" in the past where the
   Hotel said they were sold out, but weren't, however it doesn't seem to be
   the case this time.

   He posted a Google Maps link showing other Hotels in the area, plus the
   RubyConfRoomShares page on rubygarden.org.

   James Edward Gray II added "as a helpful tip, not a complaint",

   | It was out of handicap accessible rooms long before this too. I checked
   | probably a month ago. It sounded to me like that hotel had very few
   | rooms that didn't involve traversing stairs to reach. That might be a
   | point conference organizers want to consider in the future.

  How to view the rdocs for gems?
  -------------------------------

   Lloyd Zusman asked how to view the rdocs documentation for Gems he'd
   installed.

   Running gem_server, then browsing to http://localhost:8808/ was the answer
   given by Austin Ziegler and Ken Kunz.

  Webrick streaming bodies
  -------------------------

   Phlip was happily using WEBrick to serve HTTP data via:

 ########
 def do_GET(req, res)
   res["content-type"] = "text/plain"
   res.body = "Hello, world.\n"
 end
 ########

   The above works well when there is only a small amount of data returned,
   but for larger amounts it would be nice to have WEBrick stream the data to
   the client so it can display it incrementally.

   Yuuzou GOTOU said that res.body can take an IO object, not just a String.
   He added, "If the content-length header field is present, HTTPResponse
   will read specified length data from the IO."

   The following example could be used by Phlip to serve a large string:

 ########
 require 'stringio'

 def do_GET(req, res)
   res["content-type"] = "text/plain"
   res.chunked = true if res.keep_alive?
   res.body = StringIO.new(@a_large_string)
 end
 ########

  Harp?
  -----

   curtis:
   | Just wanted to ask a real quick basic noob question, in some posts I see
   | "harp:" being referenced, what exactly is that? Thanks.

   According to `Irish boy' at [thebackpacker.net],

   | Right along side Guiness, Harp Lager is tops. For St. Paddy's Day, I
   | emptied a 12-pack while watching Irish documentaries. I couldn't think
   | of another beer (besides Guiness) to accompany St. Paddy's Day
   | celebration.

   North Americans beware: `Pat Liston' warns that your Harp is now brewed in
   Canada, not Ireland, and tastes completely different.

   Now it seems that Ara.T.Howard has such a fondness of Harp that it is the
   hostname of one of his machines, and subsequently is included whenever he
   pastes code from a shell prompt. There ends the mystery.

  NDiff (#46)
  -----------

   Bill Kleb posted this week's Ruby Quiz, the results of which will be used
   by NASA for testing aerothermodynamic simulation software.

   The problem is to write a version of diff that compares files numerically,
   allowing you to set a threshold beyond which two numbers are considered
   different.

   Jim Freeze posted some code to handle command-line parsing for the program
   (using the CommandLine library), so that participants can focus on the
   important part of the quiz.

  soap4r and ASP.NET problems
  ---------------------------

   See also [Interop problem after update from 1.5.3 to 1.5.4].

   Pete Elmore's was struggling to get Ruby and .NET to talk together via
   SOAP, with the following error appearing when he tried calling a .NET SOAP
   method from Ruby:

   | SOAP::FaultError: Server was unable to process request. -> Validating
   | User Name: the submitted user name contains forbidden characters: null
   | string

   His investigations revealed that soap4r 1.5.4 (as used in Ruby 1.8.3) was
   doing funny things with namespaces. Downgrading to soap4r 1.5.3 (from Ruby
   1.8.2) fixed the problem.

New Releases
------------

  KirbyBase 2.3 beta 1
  --------------------

   Jamey Cribbs announced beta 1 of KirbyBase 2.3, "a small, pure-Ruby
   database management system that stores it's data in plain-text files."

   A number of significant enhancements were made, including the ability to
   define one-to-one and one-to-many relationships between tables, as well as
   virtual fields and retrieving `crosstab' results.

  Arachno Ruby 0.6 for Windows
  ----------------------------

   Lothar Scholz was happy to announce version 0.6 of the (30-day trial
   available) Windows version of Arachno Ruby IDE.

   Bugs were fixed, and integration was added with RubyGems and rdoc/ri.

   0.6.1 was subsequently released.

  RMagick 1.9.1
  -------------

   Timothy Hunter's RMagick 1.9.1 hit the streets, primarily fixing bugs, but
   also adding a much faster version of Image#import_pixels.

   | RMagick is an interface to the ImageMagick (www.imagemagick.org) and
   | GraphicsMagick (www.graphicsmagick.org) image processing libraries. It
   | supports more than 90 image formats, including GIF, JPEG, and PNG.
   | RMagick now includes RVG, a high-level 2D drawing API based on SVG. The
   | package includes comprehensive HTML documentation.

  acgi-0.0.0
  ----------

   Ara.T.Howard's assiduous acgi fought its way to release.

   A drop-in replacement for Ruby's standard cgi library, it works more like
   FastCGI, but without requiring Apache or lighttpd.

   Unlike cgi, this provides persistence, speed, session affinity and more -
   all in 91 lines of Ruby code (plus a tiny amount of C).

  Units for Ruby
  --------------

   Coming up from Lucas Carlson is units, a library for converting between
   units. (Shock.)

   Par exemple,

 ########
 require 'units/standard'
 1.lb.to_ounces # => 16.0

 require 'units/currency'
 1.euro.usd # => 1.2545
 ########

   Guillaume Marcais wrote a script to grab unit conversion constants from
   Google, and Lucas released version 1.0.1 to fix some errors this revealed.

  Simple RSS for Ruby
  -------------------

   Lucas Carlson introduced Simple RSS, "a simple, flexible, extensible, and
   liberal RSS and Atom reader for Ruby. It is designed to be backwards
   compatible with the standard RSS parser, but will never do RSS
   generation."

   The API is similar to Ruby's built-in RSS parser/generator, however Simple
   RSS also handles Atom, and feeds which are not valid XML.

  gmailer 0.0.9
  -------------

   GMailer now at version 0.0.9, says developer Park Heesob. Provides
   interface to Google Mail it does.

     GMailer can fetch mails, save attachements, get cotact lists, invite
     someone or send message with file attachments. It provides edit methods
     for labels, preferece settings, starring and archiving message.

  Rio 0.3.4
  ---------

   Christopher Kleckner set out the "new and improved" Rio, "a Ruby I/O
   convenience class wrapping much of the functionality of IO, File and Dir."

   Example:

 ########
 # Copy a plain file, gzipping it
 rio('afile.gz').gzip < rio('afile')
 ########

   James Britt responded:

   | I also want to say that your announcement, with all the examples, as
   | well as those by Ara T. Howard (see his Traits release announcements),
   | are exemplary.

   Zed A. Shaw asked whether people really liked having the examples in the
   announcement email, rather than just on a webpage, to which several people
   said "yes!"

  Win32 gem for RMagick 1.9.1
  ---------------------------

   See also ANN: RMagick 1.9.1 win32 binary.

   Timothy Hunter declareareared:

   | Hot on the heels of the latest RMagick update, Kaspar Schiess has
   | uploaded a Win32 gem for RMagick 1.9.1. This gem includes ImageMagick
   | 6.2.3 as well as brand-new support for the JPEG2000 format. Thanks,
   | Kaspar!

   (RMagick is an interface to the ImageMagick and GraphicsMagick image
   processing libraries.)

  Gambit 0.1.1
  ------------

   | Let the games begin!
   |
   | This marks the first official release of Ruby's web gaming framework,
   | Gambit. Gambit was started in May of 2005 as a codefest project between
   | James Edward Gray II and Greg Brown.

  Ruby/Event 0.4.2 w/ Correct Scriptable Telnet
  ---------------------------------------------

   Zed A. Shaw released a new version of Ruby/Event, his bindings for
   libevent.

   "It has nothing to do with calendars and is about doing multiplexed I/O
   efficiently so that you can write fast as hell clients and servers."

   However, see [The Early Demise of Myriad] for some (inherent?) problems
   Zed discovered between Ruby's threads and libevent.

In This Thread

Prev Next