125671-126412 subjects 126063-130484

[SOLUTION] LCD Numbers (#14)
125801 [heron@jp .n ] ...

Segfault in timer.rb
125805 [segfault.rub] I am running RSSScraper and get segfault on both 1.8.2 and 1.9.1
125975 [segfault.rub] I am seeing this on 2 different machines with fresh install. Compiling
126012 [flgr@cc n. e] Any other libraries that it's using? YAML used to do something similar.
126054 [segfault.rub] Here are the various requires and includes (not in order)
126253 [segfault.rub] All of these segfaults seemed to be happening at
126297 [segfault.rub] (Cross posting to core)
+ 126316 [junkblocker@] ;) Actually, I took on the name after getting annoyed
| + 126410 [decoux@mo lo] Well, try to write a small script to reproduce the problem. Personnally I
| + 126625 [ruby-lists@l] instead of that try another version of ruby
|   126658 [segfault.rub] I'll do that when someone officially tells me that 'cygwin' is
|   126665 [ruby-lists@l] i've heard other bug reports with threading that
|   126742 [mulperi@cc h] The cygwins signal handling is not most robust and ruby threading
|   126752 [segfault.rub] I just tried the latest snapshot and it doesn't work. I get the segfault
+ 126598 [segfault.rub] ...
  126678 [decoux@mo lo] I was unable to reproduce the problem (linux, openbsd, solaris), someone

Tutorial: TDD for sqlite3-ruby
125807 [phlip_cpp@ya] I work at a shop that has bought all the latest payware tools for GUIs, web
125840 [jamis_buck@b] This is a very important point, and I'd like to stress it. SQLite3, in
125867 [phlip_cpp@ya] So if I write a bunch of test cases, and if setup() erased the database and
125891 [jamis_buck@b] Rebuilding is slow. On my machine, it took (including the time to do

Immediate values
125817 [eustaquioran] I heard that immediate values holds the object, not a reference to it, is
+ 125829 [halostatue@g] Up until this paragraph I was with you and completely agree.
| 125857 [bob.news@gm ] "Austin Ziegler" <halostatue@gmail.com> schrieb im Newsbeitrag
| 125863 [flgr@cc n. e] Note that there is a small difference for Symbols and Fixnums. You can
| 125868 [bob.news@gm ] "Florian Gross" <flgr@ccan.de> schrieb im Newsbeitrag
| 125870 [decoux@mo lo] Look at [ruby-talk:17321]
+ 125830 [eule@sp ce c] I have already answered to this on the irc channel, but will try to
| 125877 [lists@be tr ] Stricly spoken, Fixnums don't. They are treated a special
| 125899 [itsme213@ho ] You can try to work the angle that value-like things (Fixnums) are
| + 125905 [flgr@cc n. e] Fixnums are Objects, even if they are not represented by an actual
| | + 125915 [rhkramer@fa ] (Not "picking" on Florian in particular, just needed a convenient quote
| | | + 125921 [flgr@cc n. e] Oh, note that me talking about VALUE was just the way Object's are
| | | + 125943 [ruby-talk@wh] refering to an object's symbol table id.  The symbol table being the
| | |   + 125966 [timsuth@ih g] There is no such global dictionary, all the information is encoded in the
| | |   + 126034 [rhkramer@fa ] Just for the record, it's Randy.  (I've been stuck using my wife's email
| | + 125932 [itsme213@ho ] *References* to Fixnums are encoded as 2's complement bit strings (for
| + 125906 [bob.news@gm ] "itsme213" <itsme213@hotmail.com> schrieb im Newsbeitrag
+ 125862 [georgesawyer] "Eustaquio Rangel de Oliveira Jr." <eustaquiorangel@yahoo.com> Jan 10, 2005
  125884 [eustaquioran] Forgive me if I misunderstood, but so VALUEs are variables?
  + 125887 [eustaquioran] Btw, I'm trying to understand how these things works to see if it avoids
  + 125897 [flgr@cc n. e] a is mapped to a VALUE. VALUEs are pointers to Ruby Object Structs.
  | + 125907 [decoux@mo lo] 2**23 - 1
  | | 125909 [flgr@cc n. e] Hm, why not 2 ** 24 - 1? (Is one bit used for a special purpose or am I
  | | 125911 [decoux@mo lo] It must make the transformation ID ==> Symbol, Symbol ==> ID and if I'm
  | | 125922 [flgr@cc n. e] Hmmm, maybe this is can one day be used for representing Characters in
  | | 125935 [itsme213@ho ] That would be great.
  | + 125938 [itsme213@ho ] That works better if readers understand that the immediate object is not the
  | + 125939 [itsme213@ho ] Sorry if this repeats ...
  |   125945 [flgr@cc n. e] I dislike this whole "stored at" model. It's too complex. Let's express
  |   125961 [itsme213@ho ] value
  |   126011 [flgr@cc n. e] But VALUE != value. VALUEs are in Ruby's internals what Objects are in Ruby.
  |   126049 [itsme213@ho ] I grok what you mean and its certainly good enough, thanks.
  + 126109 [georgesawyer] "Eustaquio Rangel de Oliveira Jr." <eustaquiorangel@yahoo.com> Jan 11, 2005

Soap - connecting applications
125841 [m44rt3n@ya o] ...
125845 [Roland.Schmi] ...
125849 [m44rt3n@ya o] Thanks! Works like a charm.

[OT] Buy Programming Ruby in London
125843 [ehames@gm il] My brother is flying to London next week and I wonder if he can buy
127136 [robertbrook.] Or indeed http://www.amazon.co.uk.

Criptography for beginner (Dummies?)
125896 [victor.reyes] Can anyone suggest some good books about Cryptography for a neophyte?
+ 125900 [lyle.johnson] Are you looking for technical or non-technical books?
| 125901 [Roland.Schmi] Both books are very good, i think.
+ 125903 [alex.martin@] Applied Cryptography (http://www.schneier.com/book-applied.html)
| 125904 [lyle.johnson] Ah, yes, I forgot about "The Codebreakers".  It is sort-of a history
+ 125994 [martindemell] Simon Singh's "The Code Book" is supposed to be excellent.
  126006 [thomas.leitn] I'm currently reading Simon Singh's "The Code Book" and it IS
  126008 [petite.abeil] Not strictly about cryptography, but interesting read nonetheless is

A question on Ruby license
125908 [lists@za a. ] Suppose I modify Ruby 1.8.2, create some incompatible changes, and call
+ 125912 [rasputnik@he] I think it's a BSD-alike licence, so yes, so long as the derived work
+ 125914 [rff_rff@re o] 3. You may distribute the software in object code or executable
  125955 [rampant@gm i] So not "Ruby 1.8.99" (just to make it clear :)
  125969 [matz@ru y- a] If you really want to name it "Ruby 1.8.99", discard the Ruby terms,

[ANN] SiSU document publishing with common citation system and search
125916 [ralph@am ss ] SiSU document publishing with common citation system and search (with

calling tcl/tk scripts from ruby
125931 [snowzone5@ho] all i need to do is process tk buttons (which button was clicked) ,
125980 [nagai@ai ky ] Oh, sorry! That is one of many new features of Ruby1.8.2.
125982 [snowzone5@ho] thanks...that worked...the gui exited immediately, so i'll have to
125984 [nagai@ai ky ] Did you call Tk.mainloop after loading Tcl script?
125989 [snowzone5@ho] smacks head...yeah, got it...
126000 [nagai@ai ky ] Hmm...

[SOLUTION] LCD Numbers (#14)
125933 [lmlourenco@i] Here's my solution.

Re: [good] Re: Python vs Ruby
125934 [snowzone5@ho] that's been an argument used against perl for a long time. i think
125951 [rasputnik@he] If your ass remains unbitten, i salute you.

Tutorial: Distributed pipes with DRb
125937 [kig@mi fi in] writing a distributed LAME, and then generalizes from there into

[ANN] XDCC-Fetch 1.239
125940 [martin.anker] XDCC-Fetch is a tool for collecting, searching and downloading

Oracle and Rails
125941 [graham@in a.] Perhaps not he right pleace - but is any work being done to make
+ 125944 [david@lo dt ] We just added drivers for DB2 and MS SQL Server, so I'd say we got two
+ 125968 [tobias.luetk] If you feel adventurous there is a research ticket #451 in the bug

[ANN] Ruby Facets, v0.6.1
125942 [transami@ru ] A N N O U N C I N G

Problems Using rb-gsl
125946 [mark@th -b n] I'm trying to use rb-gsl in an application I'm writing and am able to
+ 125950 [ytsunesada@y] I've never found the problems in my test,
| 125953 [mark@th -b n] Thank-you for your help I really appreciate it!  I did the things you
| 125956 [ytsunesada@y] Hmm, the message says the system could not find libgsl.so.0.
| 125958 [mark@th -b n] The libgsl.so.0 is in /usr/local/lib which I'm assuming is in my search
+ 125977 [ytsunesada@y] Mark,
  126050 [mark@th -b n] Just to update you and the rest of the list, I was able to get this

Re: Automated ducks solution (was: Re: Duck Typing as Pattern Matching)
125962 [eero.saynatk] Patience, the solution is at the bottom.

file location
125983 [contact_us@h] #file1.rb
+ 125986 [vjoel@PA H. ] #file1.rb
| 125987 [contact_us@h] Thanks you very much
+ 125997 [matz@ru y- a] The current directory (which is returned from Dir.pwd) is something
  126003 [contact_us@h] I litle bit feel shame to admit it, but your suggestion is the shortest

List of Ruby 1.8.2 changes after 2004-12-25 release
125992 [nospam@no pa] If you're new and wondering whether to use stable-snapshot or a release

why dosn't ruby support  // to comment?
125995 [ruby@3c .c m] i think use keyboard type "//" is fast than "#" to comment one line code.
+ 125996 [alex@ve k. n] Because // is an empty regular expression.
| 126403 [ambrus@ma h.] Not only that, but also a division by a regular expression.
| 126500 [flgr@cc n. e] What does it do?
| 126503 [gfb@to es ft] Even when using modern gcc, if you specify option "--traditional", this
+ 126007 [antonio@vi u] ...
| + 126036 [langstefan@g] On a German keyboard: Shift+7 Shift+7 to get '//' but only
| + 126072 [bighead@us r] Really? Must see UK keyboard then.
|   126086 [rampant@gm i] It is just to the left of the enter key. My # is above my three, which
+ 126018 [nobu.nokada@] And also, # is necessary for shebang line.
+ 126212 [ jupp@gm .d ] What is faster depends on the keyboard layout. With a german keyboard
| 126272 [chneukirchen] Too bad it has the icky taste of SQL. :)
| 126277 [ehames@gm il] But, that's also a comment in Haskell ;)
| + 126290 [chneukirchen] Now you just made me wonder if I ever saw commented Haskell source. :P
| + 126354 [zdennis@mk e] That is also the comment in AppleScript.
|   + 126395 [peter.schram] $COMMENT_BEGIN="/*"
|   | 126398 [transami@ru ] Watch me...
|   + 126516 [nobu.nokada@] IIRC, also in Ada.
|     + 126521 [eero.saynatk] It also seems to be very popular among famous historical
|     | 126528 [nobu.nokada@] Well, then we should introduce ++ now.
|     | + 126535 [transami@ru ] Hey, what abut REM? Now that's a real man's remark! :)
|     | | 126536 [nobu.nokada@] It's quite easy.
|     | | 126847 [ambrus@ma h.] \def \qc #1{}
|     | | 126854 [eban@os ri .] this is a comment
|     | + 126565 [robert.hulme] You don't have ++?
|     |   + 126567 [chneukirchen] Without any hacks by Florian Gro?, you simply use `foo += 1'.
|     |   | 126593 [flgr@cc n. e] What happened *there*? ;)
|     |   | 126667 [chneukirchen] Did the sz get garbled?  Sorry if so, I'm still unable to use latin1
|     |   + 126568 [cyclists@nc ] x += 1
|     |   + 126575 [dblack@wo bl] No, because numbers are immediate values, even when referenced by
|     + 126522 [theaney@ca l] Also in Lua.
|       126540 [rff_rff@re o] and, it seem to me, also in eiffel
|       + 126543 [djberg96@ho ] keyboard you
|       | + 126547 [pete@pe ta t] Daniel Berger seems to have lost the debate!
|       | + 126566 [chneukirchen] No idea what Hitler uses, but Stalin uses `;'.  *scnr*
|       + 126549 [chneukirchen] So, it's 4:2 for icky languages. :)
+ 126551 [sera@fh an .] This is pretty pedantic, but maybe comments should be really difficult
  126586 [cyclists@nc ] Actually I'm surprised that this thread has generated so much interest. In
  126590 [alex@ve k. n] One school of thought is that a good code should be written in such a
  126603 [cyclists@nc ] Yeah, I've read the reasoning behind that practice. I guess I'm just

List of new features between 1.8.1 and 1.8.2?
126001 [centrepins@g] Typical newby question - is there a list of new features between 1.8.1
+ 126004 [antonio@vi u] ...
+ 126010 [rff_rff@re o] hope it helps.

cannot I search the doc's contents (doc=file.read) one more times?
126002 [shaobo.li@gm] I wanna retrive ip and its port from the html file which contains

Re: gem oddities?
126009 [tpeters@un -] I don't know anything about gems. I just noticed that the letters' cases

Password input
126014 [hen_WEG_dami] is it possible to let the user input a password without the actual
126016 [rasputnik@he] Yes, there's a ruby-password library - see RAA.
126023 [hen_WEG_dami] Thanks, that's what I was looking for.

mod_ruby & rails doc?
126015 [braempje@ne ] Is there a place where I can find information on using mod_ruby? A single
+ 126017 [rasputnik@he] you don't need modruby to use rails.
| 126043 [braempje@ne ] It will probably be my fault but I can't find any example on modruby.net? I
| 126045 [brianm@ap ch] You can use it with mod_ruby. I think FastCGI is probably used more
| 126075 [sarahtanemba] Using the mod_ruby gives web application more bags of tools that comes
| + 126085 [david@lo dt ] mod_ruby uses one interpreter per Apache process, which means that apps
| + 126096 [jamesUNDERBA] I believe this is because FastCGI keeps one or more Ruby interpreters in
+ 126134 [braempje@ne ] Doesn't anyone use mod_ruby then? Does everyone use Rails? There must be
  + 126175 [jeffrey.dik@] but perhaps
  + 126260 [lists@za a. ] mod_ruby doesn't have to be used to create a webapp, you know :-) I use
  | 126264 [braempje@ne ] I don't understand it, you need some sort of layer on top of apache to use
  | 126313 [lists@za a. ] What I meant was that, mod_ruby is a tool that binds Ruby to Apache. You
  | 126323 [sarahtanemba] I too like to see more application in mod_ruby/eruby and take advantage
  + 132946 [ged@Fa ri MU] It has neither the developer resources nor groundswell of interest that

beginner question  conversion array <-> string
126019 [kiksen1@gm .] I am trying to convert a string (s="-----boundary with some http
+ 126020 [    v@vs .r ] s.each_byte do |x|
+ 126021 [jamesUNDERBA] try
+ 126022 [curne@cu no ] the easy way is #split

question about YAML over sockets
126026 [pine29@my as] As far as I can tell, YAML.load will not return until the sender closes
126042 [ruby-talk@wh] If you need to have YAML.load return before you've closed the socket,
126060 [pine29@my as] I tried sending the pause indicator using a variety of plausible IO
126071 [ruby-talk@wh] The YAML loader tries to read enough to fill its buffer.  It might be
126073 [pine29@my as] Thanks, _why, that change works for me.
126078 [ruby-talk@wh] Likewise, it's good to see growth.  And openness to fledgling

TCPSockets slooooooow
126027 [ bchk@gm .d ] - Ruby 1.8.1 on Windows
126029 [Dave@Pr gP o] What happens if you call
126033 [ bchk@gm .d ] Dave,
126542 [kero@ch ll .] TCP does some timeout stuff, so actively talking in both directions gives

Exclusive lock of a file
126035 [    v@vs .r ] Could you please give me a hint how in Ruby
126037 [batkins57@gm] File.open "filename" do |f|
126038 [batkins57@gm] Actually, that should be File::LOCK_EX.

126039 [jp.sullivan@] unsubscribe

126041 [batkins57@gm] Send this to ruby-talk-ctl@ruby-lang.org

Variable Arguments
126047 [rohitlodha@h] ...
126048 [bob.news@gm ] <rohitlodha@hotwireindia.com> schrieb im Newsbeitrag
126052 [rohitlodha@h] How can you say caller know about the number of arguments. It might be
126053 [flgr@cc n. e] But you can check the method's arity before calling it. If it's a
+ 126057 [eero.saynatk] As Mr. Gross pointed out, you can use #arity to find out the number
| 126059 [rohitlodha@h] I am asking VM level. I am currently writing a stack based VM for Ruby
| 126061 [eero.saynatk] Glad that you found a way. It being a somewhat interesting topic,
+ 126118 [bob.news@gm ] "Florian Gross" <flgr@ccan.de> schrieb im Newsbeitrag
  126187 [batkins57@gm] Guess that's why they call him the Mystifier.... :)
  126192 [bob.news@gm ] "Bill Atkins" <batkins57@gmail.com> schrieb im Newsbeitrag

Compiling native extension into Ruby
126055 [dave@in oe h] ...
126056 [decoux@mo lo] you don't need to put it into ruby-1.8.2/ext
126058 [dave@in oe h] ...
+ 126091 [kjana@dm la ] Then give the option to configure.  Ruby's configure passes unknown
+ 126128 [decoux@mo lo] There is a bug in extconf.rb for bdb, not really a surprise for me :-)

Kernel#eval and class definition
126062 [lists@be tr ] I try to understand more deeply what Ruby does.
+ 126068 [eero.saynatk] I'm assuming you have something passed to the function that you need
| 126120 [lists@be tr ] That shouldn't make a difference and, as far as I see, it
+ 126119 [bob.news@gm ] "Bertram Scharpf" <lists@bertram-scharpf.de> schrieb im Newsbeitrag
  126123 [matz@ru y- a] Thanks for explanation.  class definition in the method is prohibited
  + 126126 [lists@be tr ] Ah, thank you both.
  + 126129 [flgr@cc n. e] There's also Class.new which will create an anonymous class. You can
    126159 [vjoel@PA H. ] Better, in the sense that it takes a block (see below). But evaling a
    126256 [bob.news@gm ] "Joel VanderWerf" <vjoel@PATH.Berkeley.EDU> schrieb im Newsbeitrag
    + 126258 [pit@ca it in] The def syntax lets you define methods with blocks, but it doesn't let you use
    | 126262 [bob.news@gm ] "Pit Capitain" <pit@capitain.de> schrieb im Newsbeitrag
    + 126259 [decoux@mo lo] This is because you use strange name like #foo and "bar"and ruby don't
      126261 [bob.news@gm ] "ts" <decoux@moulon.inra.fr> schrieb im Newsbeitrag
      126263 [decoux@mo lo] yes,