153969-156744

153730-162409 subjects 154284-158635

Is it possible to make a class unavailable?
153969 [evansbj@te u] ...
154018 [nohmad@gm il] If you find something like 'undef' on class, you'd better consider using

Re: Word Chains (#44)
153973 [horndude77@g] My solution uses the same method of others here: bi-directional
154022 [adam.shelly@] Here's my solution,

catching segmentation faults from Ruby
153979 [idoo4002@ma ] editor that allows you to edit ruby code for a GUI at runtime. only
154028 [decoux@mo lo] Look at rb_eval_string_protect(), rb_protect()
154030 [idoo4002@ma ] in fact, the problem here is that i'm not calling the functions from
154032 [decoux@mo lo] Your try/catch is rb_protect()
154038 [idoo4002@ma ] rb_protect(app.exec(),VALUE ?,RESULT ?);
154041 [decoux@mo lo] /* Something like this */
+ 154042 [idoo4002@ma ] excellent!! i thought that rb_protect was only for ruby methods.
+ 154050 [idoo4002@ma ] it appears that i can't pass the name of a C function to rb_protect.
  154051 [decoux@mo lo] use a typecast
  154057 [idoo4002@ma ] rb_protect((VALUE (*)(VALUE))executeApplication,(VALUE)0,&status);
  154061 [decoux@mo lo] Do it do the same thing when the script is called directly (outside the
  154066 [idoo4002@ma ] well, actually the script doesn't do anything outside the application!!
  154069 [decoux@mo lo] It must not segfault
  154070 [idoo4002@ma ] okay, thanks for your help.

[Q] how to unflatten a flat-array
153980 [tshiget1@gw ] dear guys,
+ 153981 [hal9000@hy e] arr = array.dup
| 153985 [tshiget1@gw ] greetings, Hal. gratitude to you.
+ 153986 [dblack@wo bl] class Array    # or do it as a module, or whatever
| 153990 [tshiget1@gw ] greetings, David. how nice it is!
| 153991 [dblack@wo bl] [1,2,3,4,5,6,7].in_slices_of(2).map {|x,y| [x,y]}
+ 153993 [james@gr yp ] irb(main):001:0> arr = [ 1, 2, 3, 4, 5, 6]
| 153994 [tshiget1@gw ] greeting James. what an intriguing way!
+ 154014 [shortcutter@] => [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9]]
| 154025 [tshiget1@gw ] greetings, Robert. thank you, it does make sense to me.
| + 154026 [shortcutter@] No, not generally.  With arrays you can use #each_with_index and in
| + 154033 [daniel@br ck] You can't easily go backwards, but skipping to the next is
|   154036 [tshiget1@gw ] greetings, Daniel. true. 'next' works.
|   + 154045 [dblack@wo bl] irb(main):003:0> require 'enumerator'
|   | 154054 [tshiget1@gw ] thank you, David. it helps me a lot.
|   | 154201 [tshiget1@gw ] correction to my reply.
|   + 154053 [rhkramer@gm ] I appreciate you including your fully-qualified URL, but it would be more
|   | 154064 [tshiget1@gw ] greetings, Randy. i much appreciate you for pointing it out.
|   + 154056 [bob.news@gm ] Like this?
|     + 154060 [shortcutter@] Uh, forget that. Enumerator is already there.  +1 for having to look
|     + 154202 [agemoagemo@y] Am I the only one who thinks this seems a little
|       + 154207 [tshiget1@gw ] greetings, Morgan. i concur with your point.
|       | 154240 [rhkramer@gm ] ;-)
|       | 154243 [tshiget1@gw ] sorry, Randy.
|       | 154319 [rhkramer@gm ] I'm speechless, I had no idea this technology had been implemented
|       | 154328 [tshiget1@gw ] this is a midnight talk from far east.
|       | 154367 [rhkramer@gm ] I've been told that StringScanner is a good approach.  Here are some links.
|       + 154233 [bob.news@gm ] Well, it depends.  If, for example, you would want to make a plot that
|         154517 [agemoagemo@y] It seems like it depends on the application then. Most
|         154539 [bob.news@gm ] That's what I meant.
+ 154035 [sellberg@gm ] def slicer arr, n

[ANN] Ruport 0.1.0 Released
153984 [gregory.t.br] Ruport 0.1.0 Released

Re: Ruport 0.1.0 Released
153987 [gregory.t.br] I'm really sorry for the formatting of this with the excessive newlines

Re: how to unflatten a flat-array
153997 [gene.tani@gm] require 'enumerator'
153998 [tshiget1@gw ] greetings, Gene. i have felt that yours is quite a ruby-ish way.
154017 [w_a_x_man@ya] ary = [1,2,3,4,5,6,7,8]
154019 [tshiget1@gw ] greetings, William. i'm sorry, your way is beyond my light-weight brain.
+ 154029 [shortcutter@] Although I'm not the author I can jump in with an explanation.
+ 154432 [SimonKroeger] Muhahaha...

Hash.new(confusion)
153999 [transfire@gm] irb(main):006:0> def r
+ 154004 [vjoel@pa h. ] Try
+ 154005 [gfb@to es ft] If you specify a parameter for Hash.new the SAME object will be used
+ 154007 [idylls@gm il] r is independent of r[:b]. r[:b] is a hash with a value containing
+ 154010 [dave@bu t. d] h = Hash.new({})
+ 154044 [dblack@wo bl] r[:b] doesn't exist, so instead, you get the hash's default value
  154047 [transfire@gm] Ahhhh, Now I _finally_understand. It's quite subtle.

I think that French verb conjugation is as simple as, if not simpler than, that of English (no kidding!) - see www.sixpourcent.com
154013 [pan6pourcent] Dear friends,
+ 154027 [julian@co et] Firstly, English verb conjugation isn't very simple.
+ 154046 [paul@se .m .] Non, pas certaines personnes, ici tout le monde te considere comme
+ 154137 [negentropon@] (blah, blah, blah)
+ 154139 [negentropon@] (blah, blah, blah)
+ 154355 [ jupp@gm .d ] Ils sont fous ces Fran?ais >;->
  154369 [jeremy@ch os] English!  The Perl of natural language!
  154375 [james_b@ne r] I recall an interview of John Irving by Gunter Grass, where Grass
  + 154713 [idylls@gm il] Bruce Willis said it best in the Fifth Element.
  + 154774 [ jupp@gm .d ] Wrong. Bad English IS the international lanugage of TODAY. >;->
    154814 [james_b@ne r] Well, there you go.  I read that interview about 10 years ago.

Ruby/Event and Myriad 0.4 Released
154016 [zedshaw@ze s] Title says it all folks.  This is a BETA release of 0.4 while I try to work on the more complete rough guide to using the libray.  This release should turn everyone into a TCP/IP client/server master software developer and suddenly flood #ruby-lang with plenty of l33t hax0r IRC bots.

Re: Standalone application...
154024 [google@er kv] True. An executable generated by RubyScript2Exe can't be

Re: beaten to the punch, and a request
154062 [chneukirchen] PROJECT = "mycoolapp"
154103 [jim@we ri hh] I think the release task in the RubyGems Rakefile is moderately

Associating a name with a thread?
154071 [andrew.townl] I'm doing some research/work using threads with ruby.  I saw this in the
+ 154074 [shortcutter@] I couldn't find exactly what you are looking for, but you can use
+ 154077 [logancapaldo] Well I can't find anything that seems to indicate that threads have
  154079 [andrew.townl] I went ahead and already have a "NamedThread" class (not particularly
  + 154081 [shortcutter@] It applies to all instances - however, threads created already and
  + 154131 [drbrain@se m] You really want to use ThreadGroups to organize your threads.

Best way to release mini-libraries?
154083 [khaines@en g] I have several tidbits here and there which are part of a larger project, but
+ 154090 [transfire@gm] I have a pretty sizable project that is a collection of just such
+ 154091 [merkoth@gm i] I think the best idea is to host them in the same project page. That
+ 154092 [halostatue@g] I would do the latter. That's more or less what I've done with both
  154123 [khaines@en g] Okay, now, a related question.
  + 154127 [aredridel@nb] My first thought is to keep it in Iowa:: if it's going to stay in synch
  + 154129 [ruby_talk@sh] If I can include it with
  + 154133 [halostatue@g] That's a bit of a good question, and I'm not the *best* person to ask,

Calling object method from variable
154084 [lists@el st ] I have two questions regarding object methods
+ 154086 [shortcutter@] o.send("#{i_am_just_a_var}=", 'some thing I want')
+ 154093 [lthiryidontw] var_method = YourClass.instance_method(:real_method)

Problems with sybase-ctlib
154101 [eduardo.yane] require 'sybsql.rb'
154280 [eduardo.yane] Has anyone used this library?

Re: Question about emacs indentation
154104 [sam.s.kong@g] Now I understand it.
+ 154244 [g_ogata@op u] I got used to using C-j instead of RETs and TABs.  Give it a bash.
| 154267 [david@va ln ] Eugh, my pinky finger hurts enough from coding on a German keyboard from
| 154273 [g_ogata@op u] Heh.  I'm surprised you'd put up with emacs at all if the control-key
+ 154305 [konstantin.l] well, I think emacs way of autoformatting instead of 'fixed identation

tk variables
154106 [csjasnoch@wi] Is it possible to initialize the tk variables so the effect is shown in
+ 154118 [csjasnoch@wi] I am able to handle the button image as I had already created a method
+ 154214 [nagai@ai ky ] TkVariable.new accepts an initial value.

Thread.list confusion
154108 [andrew.townl] Still in pursuit of trying to figure out what is going on with my
154132 [drbrain@se m] Yes

Ruby article
154113 [joevandyk@gm] I'm not familiar with COBOL though, can someone explain how the
154120 [decoux@mo lo] Well ALTER in COBOL is something like this (if memory is good)

Date problem.
154114 [ober@li bs .] I have read over the man pages and can not seem to find a way to do the
+ 154116 [dblack@wo bl] require 'date'
+ 154117 [code@jo ch n] lastmonth = Date.new(Date.today.year, Date.today.month - 1)
| + 154128 [dblack@wo bl] I think my answer probably suffered from the January bug.  Here's
| + 154147 [rhkramer@gm ] Huh, never thought there might be a man page for ruby.  Interesting, worth
|   + 154148 [logancapaldo] Try man cc or man gcc (if on a system with GNU tools). That probably
|   | 154683 [rhkramer@gm ] Thanks!
|   + 154153 [joevandyk@gm] The man page for c++ is for g++, the GNU GCC compiler.  There is no
|     154680 [rhkramer@gm ] Thanks!
+ 154124 [joevandyk@gm] irb(main):001:0> require 'date'
+ 154136 [w_a_x_man@ya] month,year = Time.now.to_a[4..5]

Re: mssql ado problems
154119 [jaydonnell@g] I tried that and got
156744 [rpardee@co c] Hmmm...  I wonder if the connections are getting pooled under the

Question: How to run Ruby/Rails under IIs
154134 [asdasd@sd sd] has anyone had any success doing this?  any pointers or walkthroughs?
154172 [dave@bu t. d] ...

Tk menu
154138 [bart.massche] I started experimenting with Tk, out of the box, with the basic
154140 [joevandyk@gm] Yeah, the menu spec thing is sorta confusing for submenus.  From the
154141 [bart.massche] I love this list!! The response time is almost like asking your
154142 [Daniel.Berge] Sometimes it works out that way.  It can work even better on IRC, if the

New to Ruby
154143 [sdouglas949@] I'm new to ruby and programming (although I did dabble in BASIC with my
+ 154144 [joevandyk@gm] There might be an option (right click on the .rb file and choose
+ 154145 [w_a_x_man@ya] Start / All programs / Accessories / Command Prompt
| 154146 [jeff.darklig] Or, simply click start, then run and then type "cmd" in the box and
| + 154150 [matt.hulse@g] WindowsKey + R  (Same as Start -- Run)
| | 154155 [jeff.darklig] yeah, but that only works if you have a keyboard *WITH* a windows key ...
| | 154164 [jamal.hansen] I just tried this and it seemed to work, though it is kind of kludgy.
| | 154165 [jeff.darklig] The normal keystroke for the start menu ( the one hidden by the
| | 154173 [dave@bu t. d] Just add the following line to the end of your program; it will wait for
| + 154278 [eduardo.yane] Anybody knows some windows console software better than cmd?
|   154282 [gene.tani@gm] ...
|   154285 [eduardo.yane] I'll do a try
+ 154177 [Digikata@gm ] If you used the windows one click installer, you'll probably have the
+ 154249 [david@va ln ] I prefer to have the command prompt open - putting it in the quicklaunch
+ 154603 [mikewoodhous] Steve,

Adding instance methods to class at runtime
154158 [jlsysinc@al ] I want to add instance methods to a class at runtine.
+ 154159 [dblack@wo bl] There's no other time to do it :-)
| 154162 [jlsysinc@al ] Excellent Thank you.
+ 154160 [khaines@en g] irb(main):013:0* Foo.send(:include, Bar)

[ANN] Priority Queue 0.0.0.0. ... .0
154174 [ruby.brian@g] ...
154313 [levin@gr nd ] Oooh nice ;)  And a full blown Fibonacci Heap even.  Thank you.
154334 [ruby.brian@g] What would that mean? Create n nodes with priority priority, or create

Re: Welcome to our (ruby-talk ML)         You are added automatically
154182 [idoo4002@ma ] unusubscribe

[ANN] The MouseHole Proxy 1.0 -- a Greasemonkey alternative
154184 [ruby-talk@wh] And now I ask these gaunt faces, "Is anyone in the mood for fledling
154206 [ptkwt@ar cn ] This looks like some kind of revolution starting over there at RedHanded.  I

Aesthetics of while ... do ... end versus while ...: ... end
154188 [mailing-list] while <test> do <something> end
+ 154205 [dooby@d1 .k ] <something> while <test>
| 154236 [mailing-list] Yeah, that's what I'd use, but the problem is that x is first defined in
+ 154237 [dougkearns@g] I always use 'do' with 'while', 'until' and 'for' - probably the result
+ 154263 [david@va ln ] while fred is barney
+ 154281 [chneukirchen] I generally use
  154296 [mailing-list] I'd rather use : or do than ; here.  My question was with regards to
  154306 [chneukirchen] I disagree, and I don't see why everyone hates the semicolon.
  154357 [mailing-list] Yes, but you can write it as
  154486 [daniel@br ck] Since we're already discussing mitutiae, I'll chime in and

unit testing DRb server
154193 [joevandyk@gm] I'm trying to test a class that starts a DRb server.  I have a stop
154197 [drbrain@se m] Do you really need to test it via DRb?  Why not just call the methods
154203 [joevandyk@gm] I guess I could do that.

Watir attracts Ruby Newbies
154211 [bret@pe ti h] Watir is rapidly attracting users. (We pronounce it 'water'.)
+ 154261 [james_b@ne r] I've some Watir tools that I've been meaning to clean up and package
| 154277 [bret@pe ti h] Sounds cool! I would be interested to take a look at your code and see if i
| 154300 [james_b@ne r] Very good.  I'll make some time to bundle up what I have, with some sort
+ 154340 [ptkwt@ar cn ] Bret,
  + 154348 [tanner.burso] ...
  + 154362 [dave@bu t. d] It uses the IE COM and HTML-DOM. This provides end-user-level testing.
  | 154414 [bret@pe ti h] This problem with this approach is that Watir is in-browser and
  + 154413 [bret@pe ti h] Well, part of the problem is that they don't know what part of their
    154426 [dave@bu t. d] (and to wtr-general:)
    154676 [ruby_talk@sh] ...They're DELICIOUS!

Re: how to unflatten a flat-array
154212 [w_a_x_man@ya] module Enumerable

Re: One-Click Installer: iconv, curses
154217 [dave@bu t. d] ...

[SOLUTION] Word Chains (#44)
154221 [daniels@pr n] Bit slow in bringing my code to market.
154222 [daniels@pr n] Bah.

[OT] Pragmatic programmers
154224 [bearitall@ra] Just for those of you who have gone through various tutorials on ruby
154231 [chrisgame@ex] What I find difficult about the book is that one keeps coming across
154364 [kero@ch ll .] If you don't understand e.g. binding, skip it and come back later.
154450 [chneukirchen] And I think that is good.  There are so much books about programming,

Re: automated testing tool in ruby
154228 [dave@bu t. d] Watir is a really good and handy tool for testing an app by driving the same

[ANN] Priority Queue 0.0.0 Homepage
154232 [ruby.brian@g] Is there interest in me packing this into a gem, rpa, deb, setup.rb or

shell command with envvars -  howto?
154234 [wybo@se va y] I want to make a system calling method that returns output, success rate,
+ 154235 [reyn.vlietst] ...
+ 154275 [Ara.T.Howard] (newline)
| 154515 [wybo@se va y] You're quite right - I have been totally confused and made the wrong test!
+ 154307 [clr7.10.rand] I am not sure if this might break anything, but try inserting a ';'

ThreadPool (was: Re: Thread.list confusion)
154238 [andrew.townl] Hmmm... I think I might use a ThreadGroup, no? ;)
154320 [drbrain@se m] #    @workers = []

net/http with cookies?
154257 [brian@le ro ] I'm attempting to navigate a website that requires a login.  In
154336 [dooby@d1 .k ] I assume when you've logged in, your details are saved

Re: Pragmatic programmers
154269 [jcromartie@g] The better book, in my opinion, for learning Ruby is Why's (Poignant)
154361 [dave@bu t. d] I know some PHBs that would prefer PragProg :)

[ANN] gmailer-0.0.7
154283 [phasis@bc in] GMailer 0.0.7 Released
+ 154299 [shanko_date@] my password :-)
+ 154324 [daniel.schie] Great work!
threads.html
top